Repository navigation
v1.0.0
Major Changes
-
#16
bc50c1aThanks @Royal-lobster! - Add Slack and Telegram adapters with adapter-owned routingBreaking changes:
- Removed
RoutingConfigtype,Routerclass, androutingoption fromAlertLoggerConfig - Removed
webhookUrlandpingsfromFormattedAlert - Removed
pingsfromEnvironmentConfig - Routing is now configured per-adapter via
channels,tags, andmentionsconstructor options
Migration: Move
routing.channels,routing.tags, androuting.pingsinto your adapter constructor:// 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 sanitizationTelegramAdapter— Bot API with HTML formatting, per-level forum topic routing, tag-to-topic mapping, @username mentions, safe HTML truncation
- Removed