Slack Developer Kit for Node.js
MIT License
Bot releases are hidden (Show)
Published by filmaj 4 months ago
4df9fb8c feat(web-api): add new Slack Connect APIs team.externalTeams.list
and users.discoverableContacts.lookup
(#1826)
f3acb2f5 feat(web-api): Update response types to latest automatically generated (#1824)
20f026b6 feat(web-api): user id map in MigrationExchangeResponse as map (#1821)
Published by filmaj 4 months ago
The new feature available in this release is access to new Canvas APIs - programmatically manipulate your Canvases to your heart's content!
Additionally:
web-api
, if you were using an API method that required no arguments (e.g. api.test
), you still had to pass it an empty object ({}
). Thanks to @davidlj95's work in #1809, that is no longer a requirement!attachOriginalToWebAPIRequestError
to false
to ensure API responses are not logged. By default, this option will be set to false
. Many thanks to @Parama92 for their work in this area!a2c0fe56 web-api: public canvas APIs (#1813)
9f2935ff feat: allow using WebClient APIs without argument (#1809) - fixes #1769; thank you @davidlj95 for your contribution! ❤️
b98ef1e1 feat: providing a way to disable message content being logged (#1786) - fixes #1751; thank you @Parama92 for your contribution! ❤️
Published by filmaj 5 months ago
The Image Block and Image Block Element now correctly support using either an image_url
string or a slack_file
object. The latter is particularly useful when wanting to display an image that is only uploaded within Slack, and not available via a public URL.
Also, the rich_text_quote
Block Element had a missing border
property. We have addressed this deficiency. Hooray!
aea11d00 Add slack_file
object to image
block/element types (#1783)
20899b01 Add missing border
property to rich_text_quote
block element (#1753)
Published by filmaj 5 months ago
A few new APIs were added: a suite of low-level shell process wrappers under shell.*
, a new app.list
command, and exposing QA environment targeting for all commands.
qa
option to all commands by @filmaj in https://github.com/slackapi/node-slack-sdk/pull/1799
shell
and app.list
APIs, exposing QA environment flags, added more traces available in CLI v2.25.0 by @filmaj in https://github.com/slackapi/node-slack-sdk/pull/1804
Published by filmaj 5 months ago
First official GitHub release of the new cli-test
module! This module aims to provide node.js bindings for the Slack Platform CLI.
9fb278a4 cli-test: small internal refactor to use new app.list
command (#1797)
c3725a96 cli-test(trace): include test trace constants for 'datastore count' (#1795)
11cb80e5 cli-test: add app.list
command (#1794)
Published by filmaj 6 months ago
New major version! We have dropped the ancient, finite-state-machine-based implementation and ported the rock solid python-slack-sdk socket-mode implementation to node.
We also removed a couple of events and properties that are no longer relevant in the new implementation. Check out our socket mode 1.x -> 2.0 migration guide to get all the details and ease your upgrading path.
476e6a9e socket-mode: Rewrite to Python(ish) Implementation (#1781)
3ebb6cef socket-mode: do not throw exception when calling disconnect()
and already disconnected; do not raise slack_event
in case of type:disconnect
messages (#1762)
6ab1e68b socket-mode: add more debug logging to low level websocket event handlers (#1757)
46b500db socket-mode: fix bug when apps.connections.open
returns an error and won't retry (#1735)
a6f2b283 socket-mode: prep for major release, start
now completes only once Connected
state is emitted (#1732)
Published by filmaj 6 months ago
Please note that this will be the final planned release of @slack/socket-mode
in the 1.x line. The next release will be 2.0, which will include a few breaking changes.
A few bug fixes and stability improvements were landed in this release:
type:disconnect
coming from the Slack backend should now consistently force-reconnect the socket mode client; previously certain type:disconnect
messages (containing a specific reason
property) were not treated in this way.type:disconnect
messages from the Slack backend now do not raise a slack_event
event; this led to problems, particularly for users of bolt-js.disconnect()
if the client is already disconnected no longer raises an exception.dc489596 socket-mode: do not throw if calling disconnect()
and already disconnected, and do not raise slack_event
if message received is of type: disconnect
Published by filmaj 6 months ago
We released a fix for the oauth.v2.exchange
method argument type; previously it did not require a token
, which was incorrect. It now requires a token
parameter, which matches the expectations of this API method.
ae755dc4 web-api(fix): oauth.v2.exchange
method requires a token
parameter (#1779) - thanks for reporting @iggyray!
Published by filmaj 6 months ago
We've deprecated the files.upload
method. Check out our announcement on the topic here. Instead, use the uploadV2
method provided by the client.
ae9ace8b web-api(fix): fix node-retry types (#1772) - thanks @cotsupa!
fec4895f web-api(docs): Add deprecation JSdoc to files.upload
method (#1773)
8bff32ff web-api(fix): Fix typo in error throwing for rate limit exceeded (#1755) - thanks @WhiteKiwi!
Published by filmaj 7 months ago
This major release bumps dependencies to their latest versions and sets the minimum node version is to v18, the current LTS node.js. While the library should work with older versions of node, we no longer test the library against versions of node older than 18, so we cannot guarantee compatibility.
In addition, calling disconnect()
when already disconnected should no longer throw an exception (fixed https://github.com/slackapi/node-slack-sdk/issues/842).
Published by zimeg 7 months ago
A new doctor
hook was added to surface certain runtime dependencies depended upon by your project! Stay tuned for an upcoming CLI release to find out how it'll be used. Hint: It's related to the doctor
command 😉
Published by filmaj 7 months ago
We added some more debug-level logging to the underlying socket connections used in this package. Now both primary and backup secondary websocket connections are identified in logs, and websocket-level events (like open
and close
) are logged out at the debug level.
e3bf5cdb socket-mode: add more debug logging to low level websocket event handlers (#1757)
Published by zimeg 8 months ago
Nothing major or even minor in this release! Just a few patches:
Full Changelog: https://github.com/slackapi/node-slack-sdk/compare/@slack/[email protected]...@slack/[email protected]
Published by zimeg 9 months ago
A new package has been introduced to enable inter-process communication between the Slack CLI and applications built with Bolt for JavaScript. That's this @slack/cli-hooks
package!
More information on this package can be found on the package's README.md
and releases are currently available on NPM.
f3dff4d2d278d5a38de2c526b3a372017f4f95ca Introduce a @slack/cli-hooks
package that implements Slack CLI hooks in https://github.com/slackapi/node-slack-sdk/pull/1714 - Thanks @zimeg @misscoded @WilliamBergamin @filmaj
Published by zimeg 9 months ago
The following methods were added to the web client to support functions.*
methods:
4f393719e76236d8d3eb9e5961e6837045e445b4 Add support for functions.* (complete) methods in #1702 - Thanks @misscoded!
Published by filmaj 9 months ago
Only relevant to consumers in TypeScript projects: we mistakenly removed the types for method arguments as exports in the 7.0.0 major release (e.g. ViewsPushArguments
, etc. - any of the types listed in this file). These were available for consumers to import
in the 6.x versions of web-api
. Woops! This release simply adds these back in.
d5c17d8 web-api: re-export method argument types (#1729)
Published by filmaj 9 months ago
This major release introduces two major changes:
@slack/web-api
package has been updated to the latest major version, v7. While web-api
is not directly exposed in this oauth
library so it should not affect consuming applications, it is worth mentioning that the client methods web-api
exposes has newer, stricter, more accurate TypeScript types. This should not affect developers, but is worth calling out.No other changes were released!
Published by filmaj 9 months ago
There are two big (potentially) breaking changes library users should be aware of:
But do not fear! We have written a migration guide for v6 -> v7 users which painstakingly list out the changes per-method, which should provide you with an easy upgrade process.
As usual, if you have trouble with this library, feel free to file an issue! We are here to help 🫂 😄
Much love,
The Slack DevRel Engineering team
e29f6a1 Add support for overriding token when using fileUploadV2
(#1723 fixes #1644)
d53ef02 @slack/web-api
argument type safety (#1673)
4a8eeac Remove warning about lack of fallback text from chat.update
invocations (#1674)
6e8a31e Bump minimum node version to v18 (#1667)
Published by filmaj 9 months ago
This patch release bumps the @slack/web-api dependency up a patch version to address an underlying security vulnerability in the axios sub-dependency.
Published by filmaj 9 months ago
This patch release bumps the @slack/web-api
dependency up a patch version to address an underlying security vulnerability in the axios sub-dependency.