Skip to content

Commit 8cb83fa

Browse files
chore: version packages (#17)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent bc50c1a commit 8cb83fa

3 files changed

Lines changed: 43 additions & 40 deletions

File tree

.changeset/slack-telegram-adapters.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# Changelog
22

3+
## 1.0.0
4+
5+
### Major Changes
6+
7+
- [#16](https://github.com/IQAIcom/alert-logger/pull/16) [`bc50c1a`](https://github.com/IQAIcom/alert-logger/commit/bc50c1aaf4660872db6d81b3726b732d25e87794) Thanks [@Royal-lobster](https://github.com/Royal-lobster)! - Add Slack and Telegram adapters with adapter-owned routing
8+
9+
**Breaking changes:**
10+
11+
- Removed `RoutingConfig` type, `Router` class, and `routing` option from `AlertLoggerConfig`
12+
- Removed `webhookUrl` and `pings` from `FormattedAlert`
13+
- Removed `pings` from `EnvironmentConfig`
14+
- Routing is now configured per-adapter via `channels`, `tags`, and `mentions` constructor options
15+
16+
**Migration:** Move `routing.channels`, `routing.tags`, and `routing.pings` into your adapter constructor:
17+
18+
```ts
19+
// Before
20+
AlertLogger.init({
21+
adapters: [new DiscordAdapter({ webhookUrl: "..." })],
22+
routing: {
23+
channels: { critical: "..." },
24+
pings: { critical: ["<@&role>"] },
25+
},
26+
});
27+
28+
// After
29+
AlertLogger.init({
30+
adapters: [
31+
new DiscordAdapter({
32+
webhookUrl: "...",
33+
channels: { critical: "..." },
34+
mentions: { critical: ["<@&role>"] },
35+
}),
36+
],
37+
});
38+
```
39+
40+
**New features:**
41+
42+
- `SlackAdapter` — Incoming Webhooks with Block Kit formatting, per-level channel routing, mention support, mrkdwn sanitization
43+
- `TelegramAdapter` — Bot API with HTML formatting, per-level forum topic routing, tag-to-topic mapping, @username mentions, safe HTML truncation
44+
345
## 0.4.1
446

547
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@iqai/alert-logger",
3-
"version": "0.4.1",
3+
"version": "1.0.0",
44
"description": "Smart alert aggregation for any destination — Discord, Sentry, Slack, console, or your own adapter",
55
"type": "module",
66
"license": "MIT",

0 commit comments

Comments
 (0)