Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: swap node-fetch for undici #4

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

achingbrain
Copy link
Owner

node-fetch does not use browser streams which makes using it in typed environments very hard since the methods on node streams are different from those on browser streams.

undici is a node implementation of fetch that supports browser streams and is probably the closest thing we'll ever see to fetch in node core, so swap node-fetch for undici.

BREAKING CHANGE: only browser streams are returned, requires node 16+

node-fetch does not use browser streams which makes using it in typed
environments very hard since the methods on node streams are different
from those on browser streams.

undici is a node implementation of fetch that supports browser streams
and is probably the closest thing we'll ever see to fetch in node core,
so swap node-fetch for undici.

BREAKING CHANGE: only browser streams are returned, requires node 16+
@achingbrain achingbrain merged commit c744c71 into master Nov 17, 2021
@achingbrain achingbrain deleted the feat/swap-node-fetch-for-undici branch November 17, 2021 18:13
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.

1 participant