Releases: slackapi/node-slack-sdk
Releases · slackapi/node-slack-sdk
@slack/client v4.3.1
@slack/client v4.3.0
- Adds new permissions method named aliases to
WebClient
:apps.permissions.resources.list
and
apps.permissions.scopes.list
(#568) - thanks @ggruiz - Fixes an issue where an
RTMClient
instance throws errors while trying to reconnect after a connection interuption
(#560) - thanks @aoberoi - Fixes issue where rate-limit handling in
WebClient
was not triggering, and adds tests (#570, #573) - thanks @ggruiz - Adds missing
IncomingWebhookResult
type to exports (#562) - thanks @mledom - Changes
options
argument ofRTMClient#start()
to be optional as it was intended (#567) - thanks @christophehurpeau
@slack/client v4.2.2
- Adds the
notify_on_cancel
field to theDialog
type definition (#541) - thanks @DominikPalo - Adds
AttachmentAction
type definition to express the type of theaction
property ofMessageAttachment
. (#543, #551) - thanks @brianeletype, @DominikPalo - Adds the
SelectOption
type defintion and related properties to theDialog
type definition. (#549) - thanks @DominikPalo - Fixes the missing
scopes
property inWebClient
responses. (#554) - thanks @aoberoi - Fixes an issue in
RTMClient
where websocket errors in theconnecting:authenticated
state would cause the program
to crash. (#555) thanks @aoberoi - Fixes an issue where
KeepAlive
would monitor the RTM connection while the websocket was not ready after a
reconnection. (#555) thanks @aoberoi - Uses the
"files"
key inpackage.json
to implement a whitelist of files that are packed fornpm publish
.
@slack/client v4.2.0
- Allows
mrkdwn_in
andcallback_id
fields in message attachments for formatting on attachment fields (#528) - thanks @DominikPalo - Fixes optionality of
validate
argument forchannels.join
method (#530) - thanks @DominikPalo - Adds the
users.conversations
method (#532) - thanks @DominikPalo - Fixes overwriting of default parameters after
send()
call (#535) - thanks @franckbrignoli - Fixes and adds logging for unexpected websocket close in StateMachine (#537) - thanks @shanedewael
@slack/client v4.1.0
IncomingWebhook.send()
works with both callbacks and Promises (#508) - thanks @clavin- Completes type defintions for all
WebClient
method arguments (#512) - thanks @clavin - Allows
files.upload
to work with Buffers (in addition to ReadableStreams) (#500) - thanks @KharitonOff - Allows any WebClient methods argument to work with binary types (#519) - thanks @clavin and @aoberoi
- Fails when
WebClient.apiCall()
options don't look like the right type (#522) - thanks @aoberoi - Fixes TypeScript compile errors in node >=6 <=8 related to
callbackify
(#518) - thanks @aoberoi - Fixes mismatched parenthesis in RTMClient usage example documentation (#511) - thanks @parthsr
- Adds
examples
directory back to the repository (#520) - thanks @aoberoi
@slack/client v4.0.1
- Fixes crash in projects where
"name"
or"version"
were not defined in thepackage.json
file (#478) - thanks @wilhelmklopp @clavin @aoberoi - Fixes
IncomingWebhook.send()
to parse the response as text instead of JSON (#477) - thanks @aoberoi - Allows
IncomingWebhook
to be initialized without defaults (#479) - thanks @aoberoi - Allows
WebClient
to be initialized without atoken
in TypeScript (#482) - thanks @aoberoi - Allows unspecificed arguments to be used with
WebClient
method aliases andapiCall()
(#484) - thanks @clavin - Exports method argument types as top level exports in the type declarations (#483) - thanks @aoberoi
- Fixes inaccurate property type for
as_user
inChatPostMessageArguments
(#475) - thanks @harveyr - Improves the
OAuthAccessArguments
andOAuthTokenArguments
types (#481) - thanks @aoberoi
@slack/client v4.0.0
Breaking Changes If you are upgrading from a previous version, follow our comprehensive
Migration Guide to learn how to transport
your app into the new, shiny, future!
WebClient
- New
apiCall(method, options)
public API for making generic Web API calls. - Improved logging
- Improved error management
- Configuration for custom http Agent
- Custom TLS configuration
- Tons of performance improvements
RTMClient
- Improved message queuing - No need to wait for client to connect before sending a message.
- Lifecycle events driven by an all-new state machine
- New keep-alive algorithm
- Improved logging
- Improved error management
- Configuration for custom http Agent
- Custom TLS configuration
- Tons of performance improvements
General
- TypeScript declarations available for all APIs 🎉
- Updates all dependencies to their latest version
- Drops support for node versions less than 6.0
@slack/client v3.16.0
- Adds several missing RTM events into
RTM.EVENTS
export (thanks @clavin) #457 #448 - Adds
users.lookupByEmail
to WebClient (thanks @DominikPalo) #434 - Fixes stale values kept across requests when using
requestOptionsTransport
(thanks @bertrandom) #450 - Adds documentation for presence subscription over RTM (thanks @aoberoi) #454
- Fixes typos in documentation (thanks @konklone, @marclemagne, @aoberoi) #444, #446, #461, #466
As always, just run npm install @slack/client
to get the latest version. Stay tuned for v4, coming soon!
@slack/client v3.15.0
Deprecates data store APIs See the migration document for more details: https://github.com/slackapi/node-slack-sdk/wiki/DataStore-v3.x-Migration-Guide
- Major docs content rewrite (thanks @aoberoi) #428, #239, #305, #310, #364, #366, #413, #411, #423
- Adds
chat.getPermalink
Web API method (thanks @DominikPalo) #431 - Adds
opts.user
argument tousers.identity
Web API method (thanks @bertrandom) #432 - Fixes bug with not passing optional arguments for
conversations.info
(thanks @aoberoi) #441 - Fixes dead link to node-retry (thanks @pine) #433
- Adds eaiser support for
Buffer
input infiles.upload
Web API method (thanks @aoeberoi) #307 - Refactors logger usage across the package (thanks @aoberoi) #334
- General JSDoc,
require()
, dead code, clean up
@slack/client 3.14.2
Adds a new transport that lets you define options on the request module, expose it from the library