Releases: slackapi/node-slack-sdk
Releases · slackapi/node-slack-sdk
@slack/client v4.7.0
New Features
- You can now specify HTTP headers you'd like to include on all requests from
WebClient
. Just pass aheaders
option to the constructor. Thanks @ethan0920 (#629).
Bug fixes
- Fixes a bug when specifying the
agent
option onWebClient
using an agent fromhttps-proxy-agent
. Thanks @aoberoi (#645).
Documentation improvements
-
Fixes pagination sample code. Thanks @smaeda-ks (#641).
-
Adds missing
WebClient
instance in the Getting Started guide. Thanks @jharrilim (#637). -
Adds documentation for using the package within a TypeScript project - see https://slackapi.github.io/node-slack-sdk/typescript. Thanks @aoberoi (#644).
-
Clarifies usage of Web API methods with no required options using callbacks. Thanks @aoberoi (#631).
@slack/client v3.16.1-sec.2
This version is a special pre-release that is specifically meant to address a security issue. See #621 for details
- Upgrades the
https-proxy-agent
dependency (thanks @mistydemeo) #621
@slack/client v4.6.0
@slack/client v4.5.0
New Features
RTMClient.start()
now returns a Promise that resolves with the data emitted with theauthenticated
event - thanks @clavin (#611)- Adds the
state
property to the type definition ofDialog
- thanks @DominikPalo (#619)
Bug Fixes
- Fixes an issue where
RTMClient
did not emit the"disconnected"
event when it fails to connect - thanks @clavin (#610)
Other
@slack/client v4.4.0
New Features
- Workspace apps can now call methods on behalf of users for methods which require the
X-Slack-User
header. When
calling one of these methods, specify the user ID in the newon_behalf_of
option. - thanks @aoberoi (#609) - The new
rejectRateLimitedCalls
option in theWebClient
constructor allows you to customize how you'd like to handle
rate limiting. If you set it totrue
, theWebClient
will not attempt to retry an API call for you, and will instead
return an error with acode
property set to the valueErrorCode.RateLimitedError
. - thanks @aoberoi (#599) - Automatic pagination for cursor-based pagination enabled methods: It's always recommended to perform
pagination using thecursor
andlimit
options directly, but if you don't pass either when calling a method, the
WebClient
will automatically iterate through all the pages and returned a merged result. - thanks @aoberoi (#596) - The
WebClient
will warn when calling deprecated methods (files.comments.add
andfiles.comments.edit
) - thanks @aoberoi (#604)
Bug fixes and more
- Fixes the crash when
RTMClient#disconnect()
was called from theconnecting
state - thanks @aoberoi (#603) - Fixes an issue where uploading a file without a token fails in
WebClient
with an unrelated error - thanks @aoberoi (#587) - Resolves an issue where your app requires a newer version of
@types/node
than this package specifies - thanks @aoberoi (#605) - Fixes the
Dialog.selected_options
type definition - thanks @harveyr (#588) - Adds information, fixes syntax issues, and corrects typos in the documentation - thanks @chris-peterson, @jd0920 (#584, #600, #601)
- Tests against node v10 in Travis - thanks @aoberoi (#606)
@slack/client v3.16.1-sec
This version is a special pre-release that is specifically meant to address a security issue. See #547 for details
- Drops support for node < v4 and updates
request
dep to solve for CVE-2018-3728. (thanks @aoberoi) #590 - Removes deprecated facet
users.setActive
(thanks @DominikPalo) #464
@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