unstale

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 init

@unstale/cli on npm

https-proxy-agent 96 changes

Breaking changes 1

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

    9.0.0release notes

New APIs and options 3

  • HttpsProxyAgent and HttpProxyAgent accept negotiate: true to use the kerberos package for automatic Negotiate/SPNEGO proxy authentication.

    9.1.0release notes

  • HttpsProxyAgent and HttpProxyAgent accept an optional async onProxyAuth callback, invoked on a 407 response to return headers for retrying the request.

    9.1.0release notes

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

    9.1.0release notes

Behavior and default changes 1

  • Package exports were simplified to remove an unnecessary restriction on imports.

    9.0.0release notes

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.

    9.1.0release notes

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.

    8.0.0release notes

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.

    7.0.0release notes

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.

    6.0.0release notes

New APIs and options 1

  • Adds support for the core keepAlive: true option.

    6.0.0release notes