Skip to content

chore: version packages#17

Merged
Royal-lobster merged 1 commit intomainfrom
changeset-release/main
Apr 10, 2026
Merged

chore: version packages#17
Royal-lobster merged 1 commit intomainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@iqai/alert-logger@1.0.0

Major Changes

  • #16 bc50c1a Thanks @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:

    // 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

@Royal-lobster Royal-lobster merged commit 8cb83fa into main Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant