Packages

miniflare

4.20260730.0 · 30 Jul 2026MIT57.5M / weekRepositoryHomepagenpmAtom feed

Your version

4.20260124.0

27 Jan 2026Where it was published

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-ip CLI flag and dev.inspector_ip configuration option to allow customising the IP address that the inspector server listens on. Previously, the inspector was hardcoded to listen only on 127.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-ansi package.

  • Bundle the zod dependency to reduce supply chain attack surface

    In 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 builds

    • undici: Dynamically required at runtime in worker threads

    • ws: Has optional native bindings for performance

    • workerd: Native binary (Cloudflare's JavaScript runtime)

    • @cspotcode/source-map-support: Uses require.cache manipulation at runtime

    • youch: 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.