github slackapi/bolt-js v5.2.0

2 hours ago

Minor Changes

  • 821e3d1: Default clientOptions.slackApiUrl from the SLACK_API_URL environment variable when clientOptions.slackApiUrl is not explicitly provided.
  • b8d11ae: Declare undici as a peer dependency (^7.28.0 || ^8.0.0). @slack/bolt constructs a SocketModeClient from @slack/socket-mode@3, which requires undici as a peer. Consumers on strict package managers (Yarn Berry, pnpm) should install undici alongside @slack/bolt. The ^7.28.0 floor avoids undici 7 releases affected by CVE-2026-12151 (GHSA-vxpw-j846-p89q), a high-severity WebSocket denial-of-service. undici@^8 requires Node.js >=22.19; on Node.js 20, install undici@^7. Resolves #3039.

Patch Changes

  • 0dc739d: Enforce bodyLimit on request bodies that were read before Bolt runs. Google Cloud Functions and Cloud Run with @google-cloud/functions-framework set req.rawBody before the receiver is called, and ExpressReceiver and HTTPReceiver skipped the size check in that case. Both receivers now respond with 413 when a pre-read body is larger than bodyLimit, before verifying the request signature.
  • cc36593: Match a command pattern with the g or y flag the same way on every request. app.command() listeners registered with such a pattern could skip the request after a match, so it went unacknowledged and timed out.
  • 0be0088: Match a pattern with the y flag the same way on every request in app.action(), app.event(), app.message(), app.options(), app.shortcut() and app.view() listeners. These listeners could skip the request after a match, or match a request they shouldn't. Skipped interactions went unacknowledged and timed out.

Don't miss a new bolt-js release

NewReleases is sending notifications on new releases.