miniflare
4.20260730.0 · 30 Jul 2026MIT57.5M / weekRepositoryHomepagenpmAtom feed
4.20260730.0 is the newest release of 4.x.
In short
2 fixed
Release note
Patch Changes
Make Miniflare inspector proxy more resilient to selecting a free port
We have seen some test flakes when there are a lot of Miniflare instances running in parallel.
This appears to be that there is a small chance that a port becomes unavailable between checking if it is free and using it.Fix WebSocket proxy timeout by disabling Node.js HTTP timeouts
The dev registry proxy server was experiencing connection timeouts around
60-90 seconds for long-lived WebSocket connections. This was caused by Node.js's
headersTimeout (defaults to min(60s, requestTimeout)) which is checked periodically
by connectionsCheckingInterval (defaults to 30s).When proxying WebSocket connections, the HTTP server's headers timeout was
still active on the underlying socket, causing ERR_HTTP_REQUEST_TIMEOUT errors
to be thrown and both client and server sockets to be destroyed.Setting both headersTimeout: 0 and requestTimeout: 0 in createServer options
disables timeout enforcement, allowing WebSocket connections to remain open
indefinitely as needed.
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.