npm / http-proxy-agent
http-proxy-agent
What changed in http-proxy-agent 8 to 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
2 breaking4 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.