Patch Changes
-
#16224
5152bf8Thanks @adrianhall! - Fix short-lived local sessions hanging instead of exiting afterdispose()A Miniflare instance using shared local storage could keep the Node process alive after
dispose()resolved, because a filesystem watcher on the dev registry directory was left running. A one-shot local command would do its work and print its result, then never exit —cf d1 migrations apply --local, for example, applied every migration successfully and still had to be killed. Disposal now releases the watcher reliably, so the process exits on its own. -
#16146
9f87de8Thanks @armancharan! - Replay the request body whendispatchFetch()retries HTTP 421A known-length POST that receives 421 used to throw
UND_ERR_REQ_CONTENT_LENGTH_MISMATCH. The retry aborted the connection before the response was finished, which dropped the body while keeping the originalContent-Length. The abort from that retry is now ignored so the same bytes are sent again. -
#16221
9be5ec7Thanks @jamesopstad! - Promote Miniflare v5 prereleases from alpha to beta.This aligns the Miniflare prereleases with
cfand@cloudflare/vite-plugin. -
#16219
d232454Thanks @petebacondarwin! - HonorX-Forwarded-Protofor incoming development requests behind TLS-terminating proxiesMiniflare now uses the original client protocol when constructing URLs for network requests. This also prevents Wrangler from downgrading HTTPS URLs in response headers such as
LocationandWWW-Authenticatewhen a tunnel forwards requests over HTTP. Explicit programmatic request URLs and configured upstream origins remain authoritative.