unstale

npm / @slack/bolt

@slack/bolt

What changed in @slack/bolt 4 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

30 breaking1 security2 deprecations15 new APIs and options3 behavior and defaults1 tooling10 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@slack/bolt 524 changes

Breaking changes 13

  • HTTPReceiver and ExpressReceiver reject request bodies larger than 4 MB by default with HTTP 413 before buffering; apps can configure bodyLimit to allow larger payloads or disable the limit.

    5.1.0release notes

  • app.function() is now the sole way to handle custom function executions, providing complete() and fail() callbacks and an inputs property.

    5.0.0upgrade guide

  • When no logger option is provided, the default receiver shares the same Logger instance as app.logger, so changing its level after construction affects receiver-side logging too.

    5.0.0release notes

  • The app.step() method has been deleted; use app.function() with custom functions instead.

    5.0.0upgrade guide

  • The agent option is removed; use clientOptions.fetch to provide a custom fetch implementation for proxy or TLS needs.

    5.0.0release notesupgrade guide

  • The clientTls option is removed; use clientOptions.fetch to provide a custom fetch implementation for proxy or TLS needs.

    5.0.0release notesupgrade guide

  • The unused trailing callback parameter is removed from the AwsHandler type.

    5.0.0release notes

  • The minimum required runtime is Node.js 20; npm must be at least 9.6.4.

    5.0.0release notesupgrade guide

  • The minimum npm version is now 9.6.4.

    5.0.0upgrade guide

  • respond() uses native fetch for response_url calls, throws RespondError for non-2xx responses, and resolves to a Response on success instead of an axios response object.

    5.0.0release notesupgrade guide

  • SocketModeReceiver accepts an undici-compatible Dispatcher instance for unified proxy and TLS configuration of WebSocket connections and HTTP API calls.

    5.0.0upgrade guide

  • The deprecated WorkflowStep class and its associated types, middleware, and utilities are removed. Use CustomFunction and app.function() instead.

    5.0.0release notesupgrade guide

  • The WorkflowStepEdit type has been deleted; remove imports and use app.function() with custom functions instead.

    5.0.0upgrade guide

Deprecations 1

  • The legacy AwsCallback export is retained and marked deprecated.

    5.0.0release notes

New APIs and options 4

  • Use clientOptions.fetch to provide a custom fetch implementation for proxy or TLS needs.

    5.0.0release notes

  • context_enterprise_id is added as an optional field for envelopes delivered for Slack Connect channels and Enterprise Grid org-wide apps.

    5.0.0release notes

  • context_team_id is added as an optional field so typed code can route events by the correct workspace.

    5.0.0release notes

  • A dispatcher option is added for proxy or TLS configuration in socket mode.

    5.0.0release notes

Behavior and default changes 2

  • Default error handlers log richer details for web-api errors, including API error codes, rate limit durations, and HTTP status codes, alongside the full error object.

    5.0.0release notes

  • Errors thrown by the internal WebClient are now proper Error subclasses, enabling instanceof-based error handling.

    5.0.0upgrade guide

Tooling 1

  • TypeScript projects targeting an older ECMAScript library may fail to build; the notes recommend raising the compilation target to es2022 or later.

    5.0.0upgrade guide

Fixes and other changes 3

  • The type now allows null, matching AWS API Gateway payloads and APIGatewayProxyEvent so events can be passed directly to an AwsLambdaReceiver handler without a type error.

    5.1.0release notes

  • Authorization errors are now wrapped in AuthorizationError, preserving the original thrown value; non-Error rejections are retained via the wrapped original's cause.

    5.0.0release notes

  • toHandler() returns a 2-argument promise-based function, preventing startup failure on AWS Lambda Node.js 24+.

    5.0.0release notes

@slack/bolt 438 changes

Breaking changes 17

  • Empty signingSecret values are rejected at initialization to prevent accidental HMAC signature forgery.

    4.7.3release notes

  • authed_teams is removed from the event payload envelope.

    4.0.0release notes

  • authed_users is removed from the event payload envelope.

    4.0.0release notes

  • The interface is now a union of API Gateway v1 and v2 payload structures; TypeScript users may need to test properties to narrow the payload version.

    4.0.0upgrade guiderelease notes

  • Apps using ExpressReceiver now use express v5 and may need to account for its breaking changes.

    4.0.0upgrade guide

  • The deprecated method has been removed.

    4.0.0upgrade guiderelease notes

  • The src/receivers/http-utils.ts module is removed.

    4.0.0release notes

  • Pass this built-in middleware directly rather than invoking it to return a middleware.

    4.0.0upgrade guiderelease notes

  • The deprecated type has been removed.

    4.0.0upgrade guiderelease notes

  • Bolt 4 requires Node 18 or later, so applications using Node 14 or 16 must upgrade their runtime.

    4.0.0upgrade guiderelease notes

  • Bolt 4 requires npm 8.6.0 or later.

    4.0.0upgrade guide

  • The render-html-for-install-path module is removed.

    4.0.0release notes

  • Bolt upgrades Socket Mode from v1 to v2; applications with custom code attached to SocketModeReceiver may need to account for migration changes.

    4.0.0upgrade guide

  • Bolt upgrades its Web API client from v6 to v7; TypeScript applications may encounter compilation issues from the client changes.

    4.0.0upgrade guide

  • The class is no longer the way to access its single static handler; import the handler directly instead.

    4.0.0upgrade guiderelease notes

  • @slack/types is no longer re-exported without a namespace; access its types through the named types export.

    4.0.0upgrade guiderelease notes

  • The deprecated type has been removed.

    4.0.0upgrade guiderelease notes

Security 1

  • Only the exact value ssl_check=1 bypasses signature verification, preventing truthy but incorrect values from skipping authentication checks.

    4.7.2release notes

Deprecations 1

  • A variety of related methods, constants, and types are deprecated and will be removed in Bolt 5.

    4.0.0upgrade guide

New APIs and options 11

  • App options can configure the client ping timeout for Socket Mode.

    4.7.0release notes

  • App options can enable ping-pong logging for Socket Mode.

    4.7.0release notes

  • App options can configure the server ping timeout for Socket Mode.

    4.7.0release notes

  • respond accepts thread_ts so a response can be published in a thread.

    4.7.0release notes

  • Listeners for app.event and app.message can use sayStream to send streaming messages.

    4.7.0release notes

  • Listeners can use setStatus to show loading status when required event details are available.

    4.7.0release notes

  • The complete and fail utility gains hasBeenCalled.

    4.6.0release notes

  • Bolt adds support for work objects.

    4.6.0release notes

  • A new Assistant class lets developers create an Agent or Assistant by including callbacks and adding it to an App instance.

    4.0.0release notes

  • The handler is now available as a direct named export instead of through the SocketModeFunctions class.

    4.0.0upgrade guide

  • Bolt now exports @slack/web-api under the webApi namespace so applications can use the package version bundled with Bolt.

    4.0.0upgrade guiderelease notes

Behavior and default changes 1

  • The acknowledgment timeout is extended for function executed events.

    4.6.0release notes

Fixes and other changes 7

  • Corrects the code associated with InvalidCustomPropertyError.

    4.7.1release notes

  • Fixes promise handling in MemoryStore.

    4.7.1release notes

  • An edge case involving an error during authorize was fixed.

    4.7.0release notes

  • Named exports have improved ESM compatibility.

    4.7.0release notes

  • Optional chained parameters are anticipated as undefined when parsing event details.

    4.6.0release notes

  • Apps with no registered handlers no longer log an error about not acknowledging an incoming event in time.

    4.0.0release notes

  • Middleware argument types now conditionally intersect in event-specific utilities, avoiding properties such as say or message being required with type undefined for unrelated payloads.

    4.0.0upgrade guide