npm / https-proxy-agent
https-proxy-agent
What changed in https-proxy-agent 6 to 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
4 breaking4 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.
https-proxy-agent 71 changes
Breaking changes 1
The secureProxy getter was removed because it was not intended to be a public property; check agent.proxy.protocol === 'https:' instead.
https-proxy-agent 62 changes
Breaking changes 1
The constructor now takes the proxy URL or string as its first argument and an optional options object as its second argument, requiring users of the old object argument to update their code.
New APIs and options 1
Adds support for the core
keepAlive: trueoption.