You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: replace make-fetch-happen with built-in fetch (#3302)
* feat: replace make-fetch-happen with built-in fetch
Use Node's built-in fetch for downloading headers/tarballs, with undici's
EnvHttpProxyAgent providing --proxy, --noproxy and --cafile support (plus
http_proxy/https_proxy/no_proxy env var handling). Drops 36 transitive
dependencies.
* fixup: address review feedback
- Guard Readable.fromWeb against null body (204/304 responses)
- Add socket error handlers to CONNECT tunnel in proxy test
- Destroy socket in noproxy test's CONNECT handler so a regression
fails fast instead of hanging
* ci: fix Python lint and npm install in tests workflow
Apply f-string fix from gyp-next#337 to resolve ruff F507 in
simple_copy.py, and add npm@~11.10.0 pre-install step from #3300
to work around npm/cli#9151.
* fix: apply cafile to proxied TLS connections
EnvHttpProxyAgent forwards opts to an internal ProxyAgent for proxied
requests, which reads origin TLS config from requestTls rather than
connect. Set connect/requestTls/proxyTls so the custom CA is honored
on both direct and proxied paths. Adds a test covering https origin
behind an HTTP CONNECT proxy with a custom CA.
0 commit comments