Removes default exports for AbortController. You must now import the AbortController
object explicitly. This is a breaking change for some users relying on default exports. Upgrading to 3.0 is a one line change:
// ES Modules Users
// v2
import AbortController from "node-abort-controller";
// v3
import { AbortController } from "node-abort-controller";
// Common JS Users
// v2
const AbortController = require("node-abort-controller");
// v3
const { AbortController } = require("node-abort-controller");
Other changes:
- Fix typos in docs
- Update all dev dependencies to resolve deprecation warnings
- Export AbortSignal class. This is a non-breaking change for JavaScript users and almost surely a non-breaking change for TypeScript users but we are doing a major version bump to be safe.
- Remove dependency on lib.dom for types that was conflicting with NodeJS types
- Add proper EventTarget support to signal and
signal.onabort
- Initial Stable Release