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

chore: replace node-fetch and https-proxy-agent with undici #743

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benmccann
Copy link
Collaborator

@benmccann benmccann commented Jun 29, 2024

Fixes: #876

Added in Node 16.15.0. This library already requires Node 18

undici is the official fetch implementation, which is bundled with Node. While fetch is available as a Node global, unfortunately ProxyAgent is not yet available in Node: nodejs/node#43187. Nonetheless I've switched this PR to use undici in favor of https-proxy-agent because it will eventually be the standard and we're replacing two dependencies with one

Nock doesn't seem to be working. Might need to switch to: https://x.com/mattpocockuk/status/1841074839446003927?t=nPivnaYBwxq9AQ51N2zkUg&s=19

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.

DEP0155 and DEP0156 warnings during build
1 participant