Skip to content

Releases: slackapi/node-slack-sdk

@slack/client v2.2.1

13 Mar 00:09
Compare
Choose a tag to compare
  • Adds an im alias for the dm facet to the web client, to match the API endpoint naming

@slack/client v2.2.0

12 Mar 23:51
Compare
Choose a tag to compare
  • Adds promise support to the RTM client send and sendMessage methods
  • Fixes the way message response callbacks work, so that the success case is only called when the websocket receives a message with a reply_to matching the id of the dispatched message, instead of when the ws instance signals message send success
  • Fixes the way getAPICallArgs works, to correctly pull data out of the opts arg

@slack/client v2.0.6

01 Mar 16:09
Compare
Choose a tag to compare
  • Fixes a crash introduce in 2.0.5 if you try and instantiate a WebClient without passing in any options

@slack/client v2.0.5

01 Mar 08:17
Compare
Choose a tag to compare
  • Updates the way that API requests are throttled to:
    • avoid a condition where the request queue callback could be called multiple times, causing a crash
    • refactor the logic in _callTransport into multiple functions to make it easier to follow
  • Updates dev dependencies:
    • eslint
    • nock
    • eslint-config-airbnb

NOTE: This release contained a bad bag that would cause a crash if you created a WebClient without passing in any options. It's been unpublished from NPM and should not be used from here. Please use the 2.0.6 release instead.

@slack/client v2.0.4

28 Feb 21:46
Compare
Choose a tag to compare
  • Passes through the logLevel param to the getLogger function

@slack/client v2.0.3

28 Feb 20:33
Compare
Choose a tag to compare
  • The RTM AUTHENTICATED event now also emits the rtm.start payload
  • Fixes the way that loggers are instantiated and used, so that the JSDoc for opts.logger is correct

@slack/client v2.0.2

16 Feb 00:05
Compare
Choose a tag to compare
  • Adds coveralls to the repo, to track code coverage and display a badge in the README
  • Updates the disconnect function on the RTM client to support both an error message and a code or reason for the disconnect, e.g. account_inactive
  • Updates the message-handlers for team_xxx events to set the team back to the data-store once changes are made

@slack/client v2.0.1

13 Feb 20:33
Compare
Choose a tag to compare
  • Updates to ws@1.0.1
  • Fixes a bad variable name in example-web-client

@slack/client v2.0.0

13 Feb 19:24
Compare
Choose a tag to compare

Refactors the library to javascript, adds a lot of tests and restructures it to improve maintainability and extend functionality.

  • Creates two separate clients:
    • RTM; manages connection to Slack's RTM API, including reconnects
    • Web; provideas a callback interface to all of Slack's Web API endpoints
  • Moves the memory data store implementation off the clients and into its own class
  • Uncouples the model objects from the clients; model functions to send messages to channels etc are now accessed via the web and RTM client
  • Moves the transport layer (websockets and HTTP) to a pluggable model, so that complex transports (through request proxies etc) can be handled
  • Adds test coverage on most core functionality in the library