Change8

miniflare@4.20260415.0

📦 cloudflare-workersView on GitHub →
1 features🐛 5 fixes🔧 4 symbols

Summary

This patch release focuses on stability and performance improvements, including fixing fetch errors for non-2xx responses, resolving crashes with remote bindings in `wrangler dev`, and making startup network operations non-blocking.

✨ New Features

  • Refactored asset-worker invocation and business logic separation to prepare for gradual rollout based on plan routing.

🐛 Bug Fixes

  • Fixed POST/PUT requests returning non-2xx responses from throwing a "fetch failed" TypeError by updating undici dependency to resolve an upstream bug.
  • Fixed `wrangler dev` crashing when using a Flagship binding with `remote: true` by omitting the named entrypoint in remote mode.
  • Fixed `wrangler dev` crashing when using a Stream binding with `remote: true` by omitting the named entrypoint in remote mode.
  • Made startup network requests (npm update check, `request.cf` data fetch) non-blocking on slow connections by implementing timeouts and grace periods.
  • Miniflare now rejects non-local /cdn-cgi/* requests by validating Host and Origin headers against localhost, configured route hostnames, and the upstream hostname.

Affected Symbols