unstale

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 init

@unstale/cli on npm

http-proxy-agent 96 changes

Breaking changes 1

  • The minimum supported Node.js version is now 20.

    9.0.0release notes

New APIs and options 4

  • Adds the negotiate: true option to use the kerberos package for automatic Negotiate/SPNEGO proxy authentication.

    9.1.0release notes

  • 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.

    9.1.0release notes

  • 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.

    9.1.0release notes

  • Emits a proxyConnect event on both the request and agent instance when the socket connects to the proxy server.

    9.1.0release notes

Behavior and default changes 1

  • The package exports no longer impose the unnecessary imports restriction.

    9.0.0release notes

http-proxy-agent 81 changes

Breaking changes 1

  • All packages now use type: module and compile to ESM output instead of CommonJS.

    8.0.0release notes