Node Slack Sdk: @slack/[email protected] Release

Release date:
March 19, 2025
Previous version:
@slack/[email protected] (released December 6, 2024)
Magnitude:
916 Diff Delta
Contributors:
8 total committers
Data confidence:
Commits:

43 Features Released with @slack/[email protected]

Top Contributors in @slack/[email protected]

zimeg
slackapi[bot]
filmaj
WilliamBergamin
seratch
dependabot-bot
mwbrooks
hello-ashleyintech

Directory Browser for @slack/[email protected]

All files are compared to previous version, @slack/[email protected]. Click here to browse diffs between other versions.

Loading File Browser...

Release Notes Published

What's Changed

This release adds the allowAbsoluteUrls option to the WebClient constructor.

For code using dynamic method names with .apiCall, this will toggle if requests should be sent to absolute URLs provided:

const { WebClient } = require('@slack/web-api');

const web = new WebClient(token, {
  allowAbsoluteUrls: false, // Default: true
});

const _response = await web.apiCall('https://example.com', { /* ... */ });
$ node index.js
[DEBUG]  web-api:WebClient:0 http request url: https://slack.com/api/https://example.com
...
[WARN]  web-api:WebClient:0 http request failed An HTTP protocol error occurred: statusCode = 404

The default allowAbsoluteUrls value is true to avoid a breaking change with this update, but we suggest deciding if this option should be applied to scripts and adjacent code.

Enhancements 🎉

Maintenance 🧰

Full Changelog: https://github.com/slackapi/node-slack-sdk/compare/@slack/[email protected]...@slack/[email protected] Milestone: https://github.com/slackapi/node-slack-sdk/milestone/131