miniflare
4.20260730.0 · 30 Jul 2026MIT57.5M / weekRepositoryHomepagenpmAtom feed
4.20260730.0 is the newest release of 4.x.
In short
2 new2 fixed1 internal
Release note
Minor Changes
Add support for customising the inspector IP address
Adds a new
--inspector-ipCLI flag anddev.inspector_ipconfiguration option to allow customising the IP address that the inspector server listens on. Previously, the inspector was hardcoded to listen only on127.0.0.1.Example usage:
# CLI flag wrangler dev --inspector-ip 0.0.0.0
// wrangler.json { "dev": { "inspector_ip": "0.0.0.0", }, }Add a no-op local explorer worker, which is gated by the experimental flag
X_LOCAL_EXPLORER.
Patch Changes
Use built-in stripVTControlCharacters utility rather than the
strip-ansipackage.Bundle the
zoddependency to reduce supply chain attack surfaceIn order to prevent possible npm vulnerability attacks, the team's policy is to bundle
dependencies in our packages where possible. This helps ensure that only trusted code
runs on the user's system, even if compromised packages are later published to npm.This change bundles
zod(a pure JavaScript validation library with no native dependencies)
into miniflare and @cloudflare/vitest-pool-workers.Other dependencies remain external for technical reasons:
sharp: Native binary with platform-specific buildsundici: Dynamically required at runtime in worker threadsws: Has optional native bindings for performanceworkerd: Native binary (Cloudflare's JavaScript runtime)@cspotcode/source-map-support: Uses require.cache manipulation at runtimeyouch: Dynamically required for lazy loading
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.