Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

yet-another-abortcontroller-polyfill

benlesh29kMIT0.0.4

An AbortController Polyfill

AbortController, fetch, polyfill, AbortSignal

readme

npm version Node.js CI

abort-controller-polyfill

A simple polyfill for abort controller with proper event handling.

This was created because other polyfills had event handling that was so far off that fixing them would have contituted just rewriting them completely.

Polyfills the following:

Development

Be sure to install dependencies. This depends on a lightweight EventTarget polyfill, but nothing else.

To run tests, just run npm test.

changelog

0.0.3 (2020-07-20)

Code Refactoring

  • Remove EventTarget polyfilling (f170f0e)

BREAKING CHANGES

  • This module now only polyfills AbortController and AbortSignal, if you are in a version of node that requires EventTarget, you will need to polyfill that also. Recommended to use event-target-polyfill if that is necessary.