Introducing Slack JS 9.0.0 πŸŽ‰

Brian Leroux
September 25, 2017

Slack Logo

Super stoked to share the latest version of our JS client for the Slack Web API! You can find the source code here and the npm distribution here.

Speed is πŸ”‘

Apps built for Slack by their nature are real time. All facets of speed are critical factors for creating a great user experience. And with performance as our guide I am very pleased to say we support the entire Slack Web API in a 7kb (not gzip’d) payload that has been solidly tested for all LTS versions of Node and modern evergreen browsers.

Being so tiny means this library loads super fast which makes it perfect for AWS Lambda and browser-based applications where cold start responsiveness is critical.

Modern JS πŸ“ŸπŸ’¬

Building apps on Slack has matured a tonne since 1.0.0, which shipped in September of 2016. Between evergreen browsers and Node 8.x about to go LTS it was time to open up the interface support for more modern async primitives now that they have suitably matured.

const Slack = require('slack')
const token = process.env.SLACKBOT_TOKEN
const bot = new Slack({token})

let result = await bot.api.test({hello:'world'})


Modern features JS are now well enough supported the library no longer requires a transpile step to publish.

βš™ Tip: sets up a Slack Events API endpoint in minutes on AWS API Gateway and Lambda

Install πŸš€

npm i slack --save

New shiny πŸ’–

Upgrading? Read on! ➑

Things that stay the same πŸ‘―β€β™‚οΈ

Things being removed πŸ‘‹

Changes for Contributors πŸ„

Thanks to the Slack dev community, and contributors and in particular Angelina Fabbro, Spencer Kelly, Ryan Block and Mike Brevoort for reviewing the code and this post.