npm / http-proxy-agent
http-proxy-agent
What changed in http-proxy-agent 6 to 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
4 breaking5 new APIs and options1 behavior and defaults
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inithttp-proxy-agent 96 changes
Breaking changes 1
The minimum supported Node.js version is now 20.
New APIs and options 4
Adds the negotiate: true option to use the kerberos package for automatic Negotiate/SPNEGO proxy authentication.
Adds an optional async callback to HttpProxyAgent options; when a proxy responds with 407, it receives the response and auth scheme and returns headers for retrying the request.
After the proxy connection is established, the request emits a proxy event with the proxy URL string and socket, useful for debugging and logging which proxy was used.
Emits a proxyConnect event on both the request and agent instance when the socket connects to the proxy server.
Behavior and default changes 1
The package exports no longer impose the unnecessary imports restriction.
http-proxy-agent 81 changes
Breaking changes 1
All packages now use type: module and compile to ESM output instead of CommonJS.
http-proxy-agent 71 changes
Breaking changes 1
The secureProxy getter was removed; check agent.proxy.protocol === 'https:' instead.
http-proxy-agent 62 changes
Breaking changes 1
The constructor now takes the proxy URL and agent options as two separate arguments, so users upgrading from 5.x must move extra options to the second argument.
New APIs and options 1
Adds support for core
keepAlive: true.