npm / httpxy
httpxy
What changed in httpxy 0.2 to 0.5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
7 breaking14 new APIs and options1 performance1 behavior and defaults1 tooling26 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inithttpxy 0.515 changes
Breaking changes 3
Forces connection: close on chunked upstream requests.
Reverts trailing slash preservation in joinURL.
ProxyServer and proxyFetch now share keep-alive HTTP and HTTPS agents, with 256 max sockets and 64 max free sockets; set agent: false to restore per-request connections.
New APIs and options 3
Declare pathname on ProxyTargetDetailed so developers can use the field in typed code.
Error events forward the target URL as their 4th argument.
Adds the server listeningCallback API.
Performance 1
ReadableStream and Blob request bodies are piped directly upstream instead of buffered; bodies are still buffered for 307/308 replay when followRedirects is enabled.
Fixes and other changes 8
Retains the relative protocol in the redirect location header.
Preserve transfer-encoding on chunked DELETE and OPTIONS requests.
Hosts are derived from hostname for plain object targets, and IPv6 literals are bracketed.
The trailing slash is preserved when proxying a root path to a sub-path target.
Headers are no longer set to undefined values.
Uses
agents: falsefor WebSocket upgrades.Fixes HTTP/2 header merging to preserve the host override order.
Outgoing requests are destroyed when a readable request body stream errors.
httpxy 0.423 changes
Breaking changes 3
The distribution is ESM-only, affecting how consumers load the package.
The deprecated req.abort() API is removed.
The deprecated aborted listener is removed.
New APIs and options 8
Listeners can now support HTTP/2.
proxyFetch options now include agent.
proxyFetch options now include changeOrigin.
proxyFetch options now include followRedirects.
proxyFetch options now include HTTPS.
proxyFetch options now include path merging.
proxyFetch options now include timeout.
proxyFetch options now include xfwd.
Fixes and other changes 12
Client disconnects emit econnreset.
WebSocket proxying skips writes to a closed socket on a non-upgrade response.
Response stream errors are handled on failed WebSocket upgrades.
Synchronous exceptions in middleware passes are caught.
The target URL query string is preserved during path merging.
proxyUpgrade preserves the wss:// protocol and fixes error handling.
Redirect host rewriting now handles object targets.
Redirect rewriting now handles relative Location URLs and includes HTTP 303.
Invalid response header characters are handled gracefully, and empty header names are skipped.
Undefined target values no longer overwrite SSL options.
The transfer-encoding header is stripped on 204 and 304 responses.
Middleware no longer appends duplicate x-forwarded-* header values.
httpxy 0.310 changes
Breaking changes 1
Removes support for the legacy Node Url API.
New APIs and options 3
A standalone proxyUpgrade utility is available for use.
Implements native followRedirects support for web-incoming requests.
Adds proxyFetch.
Fixes and other changes 6
Aborts the proxy request when the client disconnects.
Emits a proxy error when a listener exists and rejects only when the error is unhandled.
Destroys the request socket on timeout.
Preserves multiple consecutive slashes in the request URL.
Ensures the outgoing path has a leading slash.
Handles client socket errors before the upstream upgrade.
httpxy 0.22 changes
Behavior and default changes 1
The server event type map is now generic, allowing its event types to be customized.
Tooling 1
Proxy server events are now typed, improving type information for developers working with them.