An npm package that provides an implementation of the WHATWG AbortController interface for JavaScript, useful for managing cancellation and emitting an abort event via an AbortSignal. It includes ES modules, CommonJS, and UMD builds, and supports a separate polyfill import to install a shim when needed.
Project status
- Maintenance status: Likely dormant, last upstream push was 2021-03-30, with no more recent evidence of ongoing updates beyond the 2019 published versions.
- Update cadence: Releases show a burst in early 2019 (v2.0.2, v2.0.3, then v3.0.0), followed by a long gap with no further updates evident up to today (2026-08-12).
AI summary generated
Recent updates
v3.0.0
v3.0.0 introduces a new `browser` entry in `package.json` that makes bundlers prefer a browser-targeted build. This browser build intentionally does not include the AbortController shim and pushes consumers to use `abort-controller/polyfill` for older environments.
Breakingv2.0.3
This release (v2.0.3) is a small packaging/build fix that updates the UMD bundle output to avoid using `const` in the generated global assignment snippet. The published version changes from 2.0.2 to 2.0.3, with corresponding changes in the build configuration and the generated dist file.
v2.0.2
Release v2.0.2 updates the package to fix issues with the generated TypeScript declaration file (dist/abort-controller.d.ts). In addition to correcting the d.ts content, the build now runs a post-processing script to rewrite and normalize the generated declarations.
v2.0.1
Release v2.0.1 is described as a TypeScript rewrite with no user-facing changes. The diff shows a significant internal reorganization (renaming .mjs sources to .ts, updating build/test tooling, and regenerating dist artifacts). However, the TypeScript declaration surface appears to have changed materially.
v2.0.0
v2.0.0 adds first-party TypeScript type definitions for AbortControllerShim/AbortSignalShim and bumps the library to a newer toolchain and runtime support matrix. The release notes only call out Node 4 deprecation and the new types, but the diff also includes a runtime dependency upgrade and a stricter Node engine requirement.
BreakingFeaturesv1.1.0
v1.1.0 adds a new subpath entry point, `abort-controller/polyfill`, intended to populate `window` (or other globals) with `AbortController` and `AbortSignal` when they are missing. The code change primarily introduces `polyfill.js` and `polyfill.mjs`, plus updates to test and Karma globs to cover the new test file.
Featuresv1.0.2
v1.0.2 primarily adds proper Symbol.toStringTag values for AbortController and AbortSignal. The change is implemented in the source and built artifacts, and is accompanied by test updates to assert non-callability and correct stringification behavior.
v1.0.1
v1.0.1 is presented as a small bug fix for AbortSignal Web IDL compliance. In the actual code change, AbortController and AbortSignal were substantially reworked to use ES6 classes and stricter runtime type checks, with new TypeErrors thrown for invalid usage.
v1.0.0
This release, v1.0.0, is the initial public release of the project. No specific feature list, changes, fixes, or migration guidance are provided in the release notes.