Skip to content

Conversation

martinheidegger
Copy link

Node 15 added AbortController and AbortSignal to the global scope.
This PR adds a ./node.js file that will use node.js globals if available and else falls back to the shim.

Note: I found it really hard to export AbortController as default AND add the AbortController/AbortSignal properties to it without extending AbortController so I dropped it. Sadly, this means that this PR is a breaking change as the default value is not available anymore.

Closes #24

@martinheidegger
Copy link
Author

Node 16.3 has been released in the meantime.

@taras
Copy link

taras commented Dec 22, 2022

We see the same problem with Node 18 + TypeScript 4.9.

@pietrovismara
Copy link

Same here, @taras did you find any workaround?

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.

Use native AbortController when possible.
3 participants