npm / https-proxy-agent
https-proxy-agent
What changed in https-proxy-agent 8 to 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
2 breaking3 new APIs and options1 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inithttps-proxy-agent 96 changes
Breaking changes 1
The minimum supported Node.js version is now 20.
New APIs and options 3
HttpsProxyAgent and HttpProxyAgent accept negotiate: true to use the kerberos package for automatic Negotiate/SPNEGO proxy authentication.
HttpsProxyAgent and HttpProxyAgent accept an optional async onProxyAuth callback, invoked on a 407 response to return headers for retrying the request.
All proxy agents emit a proxy event on the request after the proxy connection is established, with the proxy URL and socket for debugging and logging.
Behavior and default changes 1
Package exports were simplified to remove an unnecessary restriction on imports.
Fixes and other changes 1
Defers socket.resume() via setImmediate() so HTTP client machinery can attach data listeners before data starts flowing, fixing a socket event race condition.
https-proxy-agent 81 changes
Breaking changes 1
Packages now use type: module and compile to ESM output instead of CommonJS, which affects how developers load them.