miniflare
4.20260730.0 · 30 Jul 2026MIT57.5M / weekRepositoryHomepagenpmAtom feed
4.20260730.0 is the newest release of 4.x.
In short
1 deprecated2 new1 fixed1 internal
- Deprecated
Deprecate
supportedCompatibilityDateexport
Release note
Minor Changes
- Deprecated
Deprecate
supportedCompatibilityDateexportThe
supportedCompatibilityDateexport is now deprecated. Instead of relying on the workerd-derived compatibility date, callers should just use today's date directly, e.g.new Date().toISOString().slice(0, 10). Add experimental headful browser rendering support for local development
Experimental: This feature may be removed or changed without notice.
When developing locally with the Browser Rendering API, you can enable headful (visible) mode via the
X_BROWSER_HEADFULenvironment variable to see the browser while debugging:X_BROWSER_HEADFUL=true wrangler dev X_BROWSER_HEADFUL=true vite dev
Note: when using
@cloudflare/playwright, two Chrome windows may appear — the initial blank page and the one created bybrowser.newPage(). This is expected behavior due to how Playwright handles browser contexts via CDP.Add
vpc_networksbinding support for routing Worker traffic through a Cloudflare Tunnel or network.{ "vpc_networks": [ // Route through a specific Cloudflare Tunnel { "binding": "MY_FIRST_VPC", "tunnel_id": "<tunnel-id>" }, // Route through the Cloudflare One mesh network { "binding": "MY_SECOND_VPC", "network_id": "cf1:network" } ] }
Patch Changes
Fix source phase imports parsing in Miniflare
Miniflare now uses the
acorn-import-phasesplugin to parseimport sourcesyntax when analyzing module dependencies. This fixesERR_MODULE_PARSEerrors when running Workers that use source phase imports for WebAssembly modules in local development.
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.