Skip to content

refactor(deps): remove deprecated NodeJS AbortController polyfill - #4323

Merged
robert-hebel-sb merged 2 commits into
swagger-api:mainfrom
AFCMS:remove_abortcontroller_polyfill
Nov 25, 2026
Merged

robert-hebel-sb merged 2 commits into
swagger-api:mainfrom
AFCMS:remove_abortcontroller_polyfill

Conversation

@AFCMS

@AFCMS AFCMS commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Description

Remove node-abort-controller, all abort controller polyfill/ponyfill files, and their imports and browser mappings. Update the cancellation documentation.

Motivation and Context

node-abort-controller is deprecated on npm. This package supports only Node.js >=22, which provides AbortController and AbortSignal natively.

How Has This Been Tested?

On Node.js 24:

  • All 140 cancellation, resolver, execution, and HTTP tests passed.
  • All 12 artifact tests passed.
  • CommonJS, ES module, and browser UMD builds passed.
  • ESLint passed.

Screenshots (if appropriate):

N/A

Types of changes

  • No code changes (changes to documentation, CI, metadata, etc)
  • Dependency changes (any modification to dependencies in package.json)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Remove `node-abort-controller`, deprecated on npm.
All supported Node.js versions (>=22) provide the APIs natively.
Copilot AI lite review requested due to automatic review settings November 13, 2026 20:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The review identifies no active issues, with the deprecated dependency, polyfill infrastructure, related metadata, and documentation references addressed across the listed changes.

No open issues 🎉

What changed in this PR

This PR removes the deprecated node-abort-controller dependency and its Node.js/browser polyfill infrastructure, relying on native AbortController support in supported runtimes.

Changes:

  • Removes polyfill imports, implementations, dependency metadata, lockfile entries, and browser mappings.
  • Updates cancellation documentation and project guidance to reference native support.
File Description
src/​resolver/​apidom/​reference/​resolve/​resolvers/​http-swagger-client/​index.js Removes the obsolete AbortController polyfill import.
src/​helpers/​abortcontroller-ponyfill.node.js Deletes the Node.js AbortController ponyfill.
src/​helpers/​abortcontroller-ponyfill.browser.js Deletes the browser AbortController ponyfill.
src/​helpers/​abortcontroller-polyfill.node.js Deletes the Node.js global AbortController polyfill setup.
src/​helpers/​abortcontroller-polyfill.browser.js Deletes the browser global AbortController polyfill setup.
package.json Removes the deprecated dependency and browser mappings.
package-lock.json Removes the locked dependency entries.
docs/​usage/​tags-interface.md Updates cancellation guidance to document native AbortController support.
docs/​usage/​http-client.md Updates cancellation guidance to document native AbortController support.
docs/​usage/​http-client-for-oas-operations.md Updates cancellation guidance to document native AbortController support.
CLAUDE.md Removes obsolete dependency and polyfill references.

Review effort: Lite

@robert-hebel-sb robert-hebel-sb changed the title refactor: remove deprecated NodeJS AbortController polyfill refactor(deps): remove deprecated NodeJS AbortController polyfill Nov 24, 2026
@robert-hebel-sb

Copy link
Copy Markdown
Contributor

hey @AFCMS 👋

thank you for the contribution! 🖤

Approving and merging once workflows passes 🚀

@robert-hebel-sb
robert-hebel-sb merged commit 0890b13 into swagger-api:main Nov 25, 2026
8 checks passed
@AFCMS
AFCMS deleted the remove_abortcontroller_polyfill branch November 25, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants