miniflare
4.20260730.0 · 30 Jul 2026MIT57.5M / weekRepositoryHomepagenpmAtom feed
4.20260730.0 is the newest release of 4.x.
In short
2 new1 internal
Release note
Minor Changes
Add environment variables to control cf.json fetching behavior
You can now use environment variables to control how Miniflare handles the
Request.cfobject caching:CLOUDFLARE_CF_FETCH_ENABLED- Set to "false" to disable fetching entirely and use fallback data. Nonode_modules/.mf/cf.jsonfile will be created. Defaults to "true".CLOUDFLARE_CF_FETCH_PATH- Set to a custom path to use a different location for caching the cf.json file instead of the defaultnode_modules/.mf/cf.json.
This is particularly useful for non-JavaScript projects (like Rust or Go Workers) that don't want a
node_modulesdirectory created automatically.Example:
# Disable cf fetching for all projects export CLOUDFLARE_CF_FETCH_ENABLED=false npx wrangler dev # Or use a custom cache location export CLOUDFLARE_CF_FETCH_PATH=/tmp/.cf-cache.json npx wrangler dev
Serve the local explorer UI from Miniflare
This bundles the local explorer UI into Miniflare, and if enabled, Miniflare serves the UI at
/cdn-cgi/explorer.This is an experimental, WIP feature.
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.