miniflare
4.20260730.0 · 30 Jul 2026MIT57.5M / weekRepositoryHomepagenpmAtom feed
4.20260730.0 is the newest release of 4.x.
In short
2 breaking
- Breaking
The
--node-compatflag andnode_compatconfig properties are no longer supported as of Wrangler v4. Instead, use thenodejs_compatcompatibility flag. This includes the functionality from legacynode_compatpolyfills and natively implemented Node.js APIs. See developers.cloudflare.com/workers/runtime-apis/… for more information. - Breaking
Packages in Workers SDK now support the versions of Node that Node itself supports (Current, Active, Maintenance). Currently, that includes Node v18, v20, and v22.
Release note
Major Changes
- Breaking
The
--node-compatflag andnode_compatconfig properties are no longer supported as of Wrangler v4. Instead, use thenodejs_compatcompatibility flag. This includes the functionality from legacynode_compatpolyfills and natively implemented Node.js APIs. See developers.cloudflare.com/workers/runtime-apis/… for more information.If you need to replicate the behaviour of the legacy
node_compatfeature, refer to developers.cloudflare.com/workers/wrangler/migr… for a detailed guide. - Breaking
Packages in Workers SDK now support the versions of Node that Node itself supports (Current, Active, Maintenance). Currently, that includes Node v18, v20, and v22.
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.