Skip to content

Releases: slackapi/node-slack-sdk

@slack/client v4.7.0

02 Oct 00:56
Compare
Choose a tag to compare

New Features

  • You can now specify HTTP headers you'd like to include on all requests from WebClient. Just pass a headers option to the constructor. Thanks @ethan0920 (#629).

Bug fixes

  • Fixes a bug when specifying the agent option on WebClient using an agent from https-proxy-agent. Thanks @aoberoi (#645).

Documentation improvements

@slack/client v3.16.1-sec.2

10 Sep 20:13
Compare
Choose a tag to compare
Pre-release

This version is a special pre-release that is specifically meant to address a security issue. See #621 for details

@slack/client v4.6.0

30 Aug 17:38
934a4fd
Compare
Choose a tag to compare

New Features

  • Adds support for short lived tokens and automatic token refresh (#617) - thanks @aoberoi and @shanedewael

@slack/client v4.5.0

25 Aug 00:04
Compare
Choose a tag to compare

New Features

  • RTMClient.start() now returns a Promise that resolves with the data emitted with the authenticated event - thanks @clavin (#611)
  • Adds the state property to the type definition of Dialog - 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

  • Replaces the got dependency with axios - thanks @aoberoi (#620)

@slack/client v4.4.0

11 Aug 01:40
Compare
Choose a tag to compare

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 new on_behalf_of option. - thanks @aoberoi (#609)
  • The new rejectRateLimitedCalls option in the WebClient constructor allows you to customize how you'd like to handle
    rate limiting. If you set it to true, the WebClient will not attempt to retry an API call for you, and will instead
    return an error with a code property set to the value ErrorCode.RateLimitedError. - thanks @aoberoi (#599)
  • Automatic pagination for cursor-based pagination enabled methods: It's always recommended to perform
    pagination using the cursor and limit 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 and files.comments.edit) - thanks @aoberoi (#604)

Bug fixes and more

  • Fixes the crash when RTMClient#disconnect() was called from the connecting 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

04 Jul 00:27
Compare
Choose a tag to compare
Pre-release

This version is a special pre-release that is specifically meant to address a security issue. See #547 for details

@slack/client v4.3.1

07 Jun 04:59
Compare
Choose a tag to compare
  • Fixes an issue where RTMClient would crash after its connection was interrupted because upon reconnection the connection monitoring code would improperly handle new messages as pongs. (#578) - thanks @aoberoi.

@slack/client v4.3.0

05 Jun 23:37
Compare
Choose a tag to compare
  • 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 of RTMClient#start() to be optional as it was intended (#567) - thanks @christophehurpeau

@slack/client v4.2.2

12 May 02:49
Compare
Choose a tag to compare
  • Adds the notify_on_cancel field to the Dialog type definition (#541) - thanks @DominikPalo
  • Adds AttachmentAction type definition to express the type of the action property of MessageAttachment. (#543, #551) - thanks @brianeletype, @DominikPalo
  • Adds the SelectOption type defintion and related properties to the Dialog type definition. (#549) - thanks @DominikPalo
  • Fixes the missing scopes property in WebClient responses. (#554) - thanks @aoberoi
  • Fixes an issue in RTMClient where websocket errors in the connecting: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 in package.json to implement a whitelist of files that are packed for npm publish.

@slack/client v4.2.0

26 Apr 01:14
Compare
Choose a tag to compare
  • Allows mrkdwn_in and callback_id fields in message attachments for formatting on attachment fields (#528) - thanks @DominikPalo
  • Fixes optionality of validate argument for channels.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