Update dependency @slack/bolt to v5#222
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.12.1→^5.0.0Release Notes
slackapi/bolt-js (@slack/bolt)
v5.0.0Compare Source
Major Changes
d284e69: Drop Node.js 18 support. The minimum required runtime is now Node.js 20 (npm >=9.6.4).d284e69: Remove deprecatedWorkflowStepclass and all associated types, middleware, and utilities. UseCustomFunctionandapp.function()instead.d284e69: Replace axios with native fetch for response_url calls. RemoveagentandclientTlsoptions fromAppOptions— useclientOptions.fetchto provide a custom fetch implementation for proxy/TLS needs. Add adispatcheroption toSocketModeReceiverfor proxy/TLS configuration in socket mode.respond()now throws aRespondErrorwhen theresponse_urlrequest returns a non-2xx status (restoring the throw-on-failure behavior that axios provided) and resolves to aResponseon success rather than an axios response object.Minor Changes
d284e69: Improve error handling by leveraging@slack/web-apiv8 error classes. Authorization errors are now properly wrapped in anAuthorizationError, preserving the original thrown value (non-Errorrejections are retained via thecauseof the wrapped original). Default error handlers log richer details for web-api errors (API error codes, rate limit durations, HTTP status codes) alongside the full error object, so stack traces and causes remain available. The@slack/web-apierror classes (SlackError,WebAPIPlatformError,WebAPIRequestError,WebAPIHTTPError,WebAPIRateLimitedError) can be imported from@slack/web-apiforinstanceofchecks.Patch Changes
9839a50: Pass the App's namedbolt-appConsoleLoggerto the default receivers when nologgeroption is provided. Previously the App constructor built a named logger onthis.loggerbut threaded the raw (potentially undefined) constructor argument intoinitReceiver, soHTTPReceiver/SocketModeReceivereach built their own anonymous logger and receiver-side log lines (e.g. unhandled HTTP requests on custom routes) appeared without thebolt-appprefix.Behaviour change for the no-
loggercase: the default receiver now shares the sameLoggerinstance asapp.logger, so a downstreamapp.logger.setLevel(...)after construction will affect receiver-side logging too. This is consistent with the existing behaviour that already mutatesthis.logger's level via thelogLevelconstructor option. Apps that supplied their ownloggerare unaffected; apps that relied on the receiver's logger being independent ofapp.loggerwill need to pass a separateloggerinto the receiver explicitly.e1c21d7: FixAwsLambdaReceiver.toHandler()so Bolt apps on the AWS Lambda Node.js 24+ runtime no longer fail at startup withRuntime.CallbackHandlerDeprecated. The returned handler is now a 2-arg promise-based function; the unused trailingcallbackparameter has been removed from theAwsHandlertype. The legacyAwsCallbackexport is retained and marked@deprecated.f2de079: Addcontext_team_idandcontext_enterprise_idas optional fields on theEnvelopedEventtype. Slack's Events API delivers these on the envelope for Slack Connect channels and Enterprise Grid org-wide apps, whereteam_idmay refer to a workspace different from the one the bot is installed in. Without the typed fields, downstream code had to reach for@ts-expect-erroror unsafe casts to route by the correct workspace.v4.7.3Compare Source
Patch Changes
341b60e: Reject emptysigningSecretat initialization to prevent accidental HMAC signature forgery.v4.7.2Compare Source
Patch Changes
4545150: Require exactssl_check=1value to bypass signature verification, preventing truthy but incorrect values from skipping authentication checks.v4.7.1Compare Source
Patch Changes
a18c359: fix: correct InvalidCustomPropertyError code and MemoryStore promise handlingv4.7.0Compare Source
What's Changed
Bring magic to a conversation with
sayStreamfor streaming messages and show loading status withsetStatus. Now available forapp.eventandapp.messagelisteners:The
respondfunction now acceptsthread_tsto publish responses in a thread:Configure ping timeouts, reconnect behavior, and other Socket Mode settings directly through
Appoptions:👾 Enhancements
🐛 Fixes
📚 Documentation
🧰 Maintenance
🎁 Dependencies
Core
CI
Dev
Examples
👋 New Contributors 🎉
Full Changelog: https://github.com/slackapi/bolt-js/compare/@slack/bolt@4.6.0...@slack/bolt@4.7.0
Milestone: https://github.com/slackapi/bolt-js/milestone/61
Package: https://www.npmjs.com/package/@slack/bolt/v/4.7.0
v4.6.0Compare Source
📚 Changelog
What's Changed
👾 Enhancements
🐛 Bug fixes
📚 Documentation
🤖 Dependencies
🧰 Maintenance
Milestone: https://github.com/slackapi/bolt-js/milestone/60?closed=1
Full Changelog: https://github.com/slackapi/bolt-js/compare/@slack/bolt@4.5.0...@slack/bolt@4.6.0
Package: https://www.npmjs.com/package/@slack/bolt/v/4.6.0
v4.5.0Compare Source
AI-Enabled Features: Loading States, Text Streaming, and Feedback Buttons
🍿 Preview
2025-10-06-loading-state-text-streaming-feedback.mov
📚 Changelog
⚡ Getting Started
Try the AI Agent Sample app to explore the AI-enabled features and existing Assistant helper:
After the app starts, send a message to the "slack-ai-agent-app" bot for a unique response.
⌛ Loading States
Loading states allows you to not only set the status (e.g. "My app is typing...") but also sprinkle some personality by cycling through a collection of loading messages:
Web Client SDK:
Assistant Class:
🔮 Text Streaming Helper
The
client.chatStream()helper utility can be used to streamline calling the 3 text streaming methods:🔠 Text Streaming Methods
Alternative to the Text Streaming Helper is to call the individual methods.
1)
client.chat.startStreamFirst, start a chat text stream to stream a response to any message:
2)
client.chat.appendStreamAfter starting a chat text stream, you can then append text to it in chunks (often from your favourite LLM SDK) to convey a streaming effect:
3)
client.chat.stopStreamLastly, you can stop the chat text stream to finalize your message:
👍🏻 Feedback Buttons
Add feedback buttons to the bottom of a message, after stopping a text stream, to gather user feedback:
What's Changed
👾 Enhancements
🐛 Bug fixes
📚 Documentation
🤖 Dependencies
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.