Packages

http-proxy-middleware

4.2.2 · 15 Nov 2026MIT30.6M / weekRepositoryHomepagenpmAtom feed

Upgrading http-proxy-middleware From 3.0.11 to 4.1.1

3 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 3.0.11Latest4.2.2
  1. 3.0.11yours
  2. 4.0.0major
  3. 4.1.0
  4. 4.1.1target

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0

Release by release

  1. 4.1.1

    14 Jun 20261 fix
    • Fixed

      fixRequestBody: Harden form-data stringification

  2. 4.1.0

    6 Jun 20264 new · 6 fixes
    • New

      definePlugin: Helper function to create plugins

    • New

      router: Add 'res' and 'options' to router function

    • New

      pathRewrite: Add 'res' and 'options' to custom pathRewrite function

    • New

      zstd: Support zstd compression in responseInterceptor and fixRequestBody

  3. 4.0.0

    Migration needed5 May 20261 new
    • Breaking

      ESM-only package 💣 http-proxy-middleware now ships as native ES modules only. CommonJS require() usage is no longer supported, so imports should use ESM syntax.

    • Breaking

      Updated Node.js support policy 💣 Dropped Node.js 14, 16, 18, and 20. New minimum supported runtime is Node.js 22.15.0

    • Breaking

      Removed legacyCreateProxyMiddleware() 💣 The legacy compatibility wrapper has been removed as part of API cleanup. Use createProxyMiddleware() directly.

    • New

      Added IPv6 literal support ✨ target and forward now support literal IPv6 URLs, for example: http://[::1]:3000.

2 other lines we could not sort, mostly version bumps
  • Switched proxy from http-proxy to httpxy ✨ (#1160) This replaces a long-standing core dependency and brings in many upstream fixes and behavior improvements documented by the httpxy project: #2

    4.0.0
  • Experimental Hono support 🧪 Added createHonoProxyMiddleware() for Hono apps, including dedicated subpath support via http-proxy-middleware/hono.

    4.0.0

20 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.