npm http-proxy-middleware 4.0.0
v4.0.0

2 hours ago

Notable changes

  • Switched proxy from http-proxy to httpxy
    This replaces a long-standing core dependency and brings in many upstream fixes and behavior improvements documented by the httpxy project: unjs/httpxy#2.

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

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

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

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

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

Many thanks to everyone who helped make this release possible. 🙏

What's Changed

New Contributors

Full Changelog: v3.0.5...v4.0.0

Don't miss a new http-proxy-middleware release

NewReleases is sending notifications on new releases.