fix(deps): update dependency @slack/bolt to v4 #72
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.14.0
->4.1.1
Release Notes
slackapi/bolt (@slack/bolt)
v4.1.1
Compare Source
What's Changed
Changelog
New Contributors
Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​4](https://redirect.github.com/4).1.0...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​4](https://redirect.github.com/4).1.1
v4.1.0
Compare Source
What's Changed
say
util by @misscoded in https://github.com/slackapi/bolt-js/pull/2300title
to setSuggestedPrompts utility by @misscoded in https://github.com/slackapi/bolt-js/pull/2308Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​4](https://redirect.github.com/4).0.1...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​4](https://redirect.github.com/4).1.0
v4.0.1
Compare Source
What's Changed
Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​4](https://redirect.github.com/4).0.0...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​4](https://redirect.github.com/4).0.1
v4.0.0
Compare Source
Bolt v4
What's Changed
New Features
Support for Agents & Assistants is now available!
Bolt now offers a simple and intuitive way to create an Agent/Assistant using the new
Assistant
class. Simply include the required callbacks and add the assistant to yourApp
instance. Get up and running even quicker with a working, out-of-the-box example that utilizes OpenAI here.Breaking Changes
We have prepared a migration guide to help BoltJS consumers migrate their Bolt v3 apps to v4.
While a few breaking changes were introduced, we don't expect a majority of bolt v3 users to require changing their apps to upgrade to v4. More complex apps may need a few tweaks. TL;DR is: if your bolt v3 app is built with TypeScript, or uses the
ExpressReceiver
or theAwsLambdaReceiver
, or your app used previously-deprecated types or functions, best to read the migration guide.Middleware Type Changes
In bolt we have a set of
Slack*MiddlewareArgs
types: for events, shortcuts, commands, and so on. They 'wrap' the underlying event payloads with additional middleware-relevant bits like anext()
method, acontext
object for devs to augment, and so on.Many of these types, for example the
SlackEventMiddlewareArgs
type, previously used a conditional to sometimes define particular additional helper utilities on the middleware arguments. For example, thesay
utility, or tacking on a conveniencemessage
property for message-event-related payloads. This was problematic in practice in TypeScript situations, not just internally (this change fixes https://github.com/slackapi/bolt-js/issues/2135) within the bolt codebase but for developers as well: when the payload was not of a type that required the extra utility, these properties would be required to exist on the middleware arguments but have a value ofundefined
. Those of us trying to build generic middleware utilities would have to deal with TS compilation errors and needing to liberally type-cast to avoid these conditional mismatches withundefined
.Instead, these
MiddlewareArgs
types now conditionally create a type intersection when appropriate in order to provide this conditional-utility-extension mechanism. In practice that looks something like:With the above, now when a message payload is wrapped up into middleware arguments, it will contain an appropriate
message
property, whereas a non-message payload will be intersected withunknown
- effectively a type "noop." No more e.g.say: undefined
ormessage: undefined
to deal with!Other Breaking Changes
express
to v4->v5;ExpressReceiver
users will be exposed to express v4 -> v5 breaking changes - fixes #2242@slack/socket-mode
v2;SocketModeReceiver
users who have attached custom event listeners to the publicsocketModeClient
directly should read the v1 -> v2 migration guide in case the major upgrade could affect them - fixes #2225@slack/web-api
v7; all users should read the web-api v6->v7 migration guide to see what the scope of breaking changes theclient
within listeners is affected byKnownKeys
@slack/types
now exist under a named exporttypes
.SocketModeFunctions
class that had a single static method on it and instead directly exposed thedefaultProcessEventErrorHandler
method from it.ignoreSelf
anddirectMention
now no longer must be invoked as a method in order to return middleware; instead they are middleware to be used directly. this lines up the API for these built-in middlewares to match the other builtins.AwsEvent
interface now models event payloads a bit differently; we now properly model AWS API Gateway v1 and v2 payloads separately - fixes #2272OptionsRequest
interfaceauthed_users
andauthed_teams
from event payload enveloperender-html-for-install-path
moduleverify
andVerifyOptions
from theverify-request
modulesrc/receivers/http-utils.ts
moduleNon-breaking Changes
@slack/web-api
dependency under thewebApi
named exportAwsLambdaReceiver
where apps with no registered handlers that processed an incoming event would still log out an error related to not acknowledging the request in time - fixes #2284raw-body
to v3@slack/oauth
to v3promise.allsettled
since that is natively supported in node since v14@types/tsscmp
to dev dependencies since that is not exposed to developersChangelog
@slack/[email protected]
by @filmaj in https://github.com/slackapi/bolt-js/pull/2294Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).22.0...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​4](https://redirect.github.com/4).0.0
v3.22.0
Compare Source
What's new
This release adds support for the
assistant.threads.*
API methods introduced in@slack/[email protected]
🤖 as well as improvements to documentation at the new https://tools.slack.dev/bolt-js site and patches to dependencies 🔒Example usage
More details about these endpoints can be discovered in the documentation, and listeners can be added to code to respond to incoming events like so:
Changes
📚 Documentation
📦 Dependencies
🎉 New contributors
Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).21.4...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).22.0
v3.21.4
Compare Source
What's Changed
path-to-regexp
to partially address a security vulnerability (#2242) by @filmaj in https://github.com/slackapi/bolt-js/pull/2251Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).21.3...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).21.4
v3.21.3
Compare Source
What's Changed
Woops! We (coughfilmajcough) removed the
EnvelopedEvent
export in a recent change. We are adding it back in in this patch release. Please accept our sincere apologies for this temporary breaking change in bolt 3.21.2.Changelog
New Contributors
Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).21.2...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).21.3
v3.21.2
Compare Source
What's Changed
The main change in this patch release is creating an npm release for the change in #2223, where exported event payload types were moved from bolt-js to
@slack/types
. If you see errors compiling your TypeScript-based application that look like:.. then upgrading to this release should address the issue (see #2233 and #2234 for issue details).
next
function to the last listener middleware by @filmaj in https://github.com/slackapi/bolt-js/pull/2214 (fixes #1457)@slack/types
and consume event payloads from it by @filmaj in https://github.com/slackapi/bolt-js/pull/2223Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).21.1...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).21.2
v3.21.1
Compare Source
What's Changed
This patch release brings improvements to documentation and sureness in our CI, as well as security updates to certain
@slack
packages - see CVE-2024-39338 and[email protected]
for more details!Changes
📚 Documentation
🔒 Security
🧰 Maintenance
Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).21.0...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).21.1
v3.21.0
Compare Source
What's Changed
Bolt-JS now supports Custom Steps! That's right, your trusty Bolt app now let's you expose Custom Steps in Bolt, allowing you to provide steps for use in Workflow Builder.
You can now use the new
function()
method to register handlers for thefunction_executed
event. Check out our API docs on the topic to get started.Changelog
New Contributors
Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).20.0...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).21.0
v3.20.0
Compare Source
What's Changed
@slack/[email protected]
by @filmaj in https://github.com/slackapi/bolt-js/pull/2195New Contributors
Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).19.0...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).20.0
v3.19.0
Compare Source
What's Changed
More customizations for the
AwsLambdaReceiver
have landed as well as a few touchups to typings and documented details!With this release, the signature verification for
AwsLambdaReceiver
can now be turned off if that's something you're interested in! Perhaps you have your own stylish way of verifying these signatures. The following can be added to your receiver to unlock this:Read on and browse around for more details on all of the changes included!
🎁 Enhancments
AwsLambdaReceiver
to enable/disable signature verification in https://github.com/slackapi/bolt-js/pull/2107 - thanks @noah-guillory!🐛 Fixes
CodedError
in https://github.com/slackapi/bolt-js/pull/2110 - thanks @filmaj!📚 Documentation
🧰 Maintenance
📦 Dependencies
New Contributors
Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).18.0...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).19.0
v3.18.0
Compare Source
What's Changed
files
toapp_mention
event payload by @seratch in https://github.com/slackapi/bolt-js/pull/2057New Contributors
Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).17.1...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).18.0
v3.17.1
Compare Source
What's Changed
New Contributors
Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).17.0...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).17.1
v3.17.0
Compare Source
What's Changed
style.code
properties on rich text elements (updates@slack/types
to 2.11 and@slack/web-api
to 6.11) by @filmaj in https://github.com/slackapi/bolt-js/pull/2017Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).16.0...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).17.0
v3.16.0
Compare Source
What's Changed
Enhancements 🎁
Maintainers
New Contributors 👋
Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).15.0...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).16.0
v3.15.0
Compare Source
What's Changed
This minor release includes support for the new File Input Block Kit Element, which allows for users to submit files using Block Kit. It also removes all traces of vulnerable versions of the
axios
dependency.Enhancements
file_input
block element payload support in TS by @seratch in https://github.com/slackapi/bolt-js/pull/1995rich_text_input
block element payload support in TS by @seratch in https://github.com/slackapi/bolt-js/pull/1963SocketModeReceiver
to be used with Socket Mode by @zimeg in https://github.com/slackapi/bolt-js/pull/1972ExpressReceiver
by @zimeg in https://github.com/slackapi/bolt-js/pull/1973Bug Fixes
Dependencies
Other
New Contributors
Full Changelog: https://github.com/slackapi/bolt-js/compare/[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).14.0...[@​slack/bolt](https://redirect.github.com/slack/bolt)[@​3](https://redirect.github.com/3).15.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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.