Skip to content

feat(web-api): add support for AbortSignal#2601

Open
LinusU wants to merge 1 commit into
slackapi:v8from
LinusU:lu-v8-abort-signal
Open

feat(web-api): add support for AbortSignal#2601
LinusU wants to merge 1 commit into
slackapi:v8from
LinusU:lu-v8-abort-signal

Conversation

@LinusU
Copy link
Copy Markdown

@LinusU LinusU commented May 19, 2026

Summary

This adds support for aborting in-flight requests, using the standardized AbortSignal

Fixes #1761

This is the same as #2403, but for v8.x. I believe that both should be merged.

I've designed this as an additional parameter instead of mixing it with the body of the specific endpoint. I believe that this is a sounder approach as there will never be any conflicts, and it also avoids the current problem of token also being present in the request body as well as in the header when specified this way.

Requirements

ping @zimeg who reviewed the v7 PR, and @WilliamBergamin who made the fetch switch, would love your 👀 on this 🙏

@LinusU LinusU requested a review from a team as a code owner May 19, 2026 10:19
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 19, 2026

🦋 Changeset detected

Latest commit: c5be203

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@slack/web-api Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

@WilliamBergamin WilliamBergamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your interest and contribution @LinusU 🙏

We plan to release version 8.0.0 of the web-api in the very near future 🚀 Since these changes are purely additive I'd prefer we include them in a minor release of the @slack/web-api package (example in 8.1.0)

The reasoning for this is simply to narrow the changes included in 8.0.0 and increase our odds of a smooth migration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants