Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .changeset/slack-telegram-adapters.md

This file was deleted.

42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
# Changelog

## 1.0.0

### Major Changes

- [#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

**Breaking changes:**

- Removed `RoutingConfig` type, `Router` class, and `routing` option from `AlertLoggerConfig`
- Removed `webhookUrl` and `pings` from `FormattedAlert`
- Removed `pings` from `EnvironmentConfig`
- Routing is now configured per-adapter via `channels`, `tags`, and `mentions` constructor options

**Migration:** Move `routing.channels`, `routing.tags`, and `routing.pings` into your adapter constructor:

```ts
// Before
AlertLogger.init({
adapters: [new DiscordAdapter({ webhookUrl: "..." })],
routing: {
channels: { critical: "..." },
pings: { critical: ["<@&role>"] },
},
});

// After
AlertLogger.init({
adapters: [
new DiscordAdapter({
webhookUrl: "...",
channels: { critical: "..." },
mentions: { critical: ["<@&role>"] },
}),
],
});
```

**New features:**

- `SlackAdapter` — Incoming Webhooks with Block Kit formatting, per-level channel routing, mention support, mrkdwn sanitization
- `TelegramAdapter` — Bot API with HTML formatting, per-level forum topic routing, tag-to-topic mapping, @username mentions, safe HTML truncation

## 0.4.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iqai/alert-logger",
"version": "0.4.1",
"version": "1.0.0",
"description": "Smart alert aggregation for any destination — Discord, Sentry, Slack, console, or your own adapter",
"type": "module",
"license": "MIT",
Expand Down