unstale

npm / http-proxy-middleware

http-proxy-middleware

What changed in http-proxy-middleware 1 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

7 breaking4 security11 new APIs and options1 performance3 behavior and defaults1 tooling13 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

http-proxy-middleware 430 changes

Breaking changes 3

  • The package now ships as native ES modules only; CommonJS require() usage is no longer supported.

    4.0.0release notes

  • The legacy compatibility wrapper was removed; use createProxyMiddleware() directly.

    4.0.0release notes

  • The minimum supported runtime is now Node.js 22.15.0; support for Node.js 14, 16, 18, and 20 was dropped.

    4.0.0release notes

Security 4

New APIs and options 8

  • Exports the OnProxyEvent type for use in TypeScript.

    4.2.0release notes

  • Adds a diagnostic message for POST requests with bodyParser that encounter an ECONNRESET error.

    4.2.0release notes

  • A helper function to create plugins is now available.

    4.1.0release notes

  • Custom pathRewrite functions now receive res and options.

    4.1.0release notes

  • The router function now receives res and options.

    4.1.0release notes

  • zstd compression is supported in responseInterceptor and fixRequestBody.

    4.1.0release notes

  • An experimental proxy middleware API was added for Hono apps.

    4.0.0release notes

  • A dedicated subpath import was added for Hono support.

    4.0.0release notes

Performance 1

Behavior and default changes 3

  • The forward option now supports literal IPv6 URLs, such as http://[::1]:3000.

    4.0.0release notes

  • The proxy implementation switched from http-proxy to httpxy, bringing upstream fixes, HTTP/2 support, and performance improvements.

    4.0.0release notes

  • The target option now supports literal IPv6 URLs, such as http://[::1]:3000.

    4.0.0release notes

Fixes and other changes 11

http-proxy-middleware 34 changes

Breaking changes 1

  • Node.js 12 support was dropped as a breaking change; the CI configuration also dropped Node.js 14 and 16.

    3.0.0release notes

Tooling 1

  • Type improvements were made, changing the package's TypeScript type surface.

    3.0.0release notes

Fixes and other changes 2

http-proxy-middleware 22 changes

Breaking changes 2

  • Hardens the WebSocket upgrade behavior, which may affect applications using WebSocket proxying.

    2.0.12release notes

  • Node 10 support was dropped.

    2.0.0release notes

http-proxy-middleware 14 changes

Breaking changes 1

  • Import the middleware explicitly as a named export instead of relying on the previous implicit require/import.

    1.0.0release notes

New APIs and options 3

  • The TypeScript Filter type is exported from http-proxy-middleware for consumers to import.

    1.0.0release notes

  • The TypeScript Options type is exported from http-proxy-middleware for consumers to import.

    1.0.0release notes

  • The TypeScript RequestHandler type is exported from http-proxy-middleware for consumers to import.

    1.0.0release notes