Packages

miniflare

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

Your version

4.20250525.1

3 Jun 2025Where it was published

4.20260730.0 is the newest release of 4.x.

In short

2 new2 fixed5 changed

Release note

Minor Changes

  • Export getDefaultDevRegistryPath() utility

    This provides a default XDG app-path for the Dev Registry, which can be used to set the unsafeDevRegistryPath option in Miniflare and will be used by both Wrangler and @cloudflare/vite-plugin.

  • Add Dev Registry support

    This change introduces two new options to support cross-process service bindings, durable objects and tail consumers via a file-system based registry, with backward compatibility to Wrangler’s implementation:

    • unsafeDevRegistryPath (string): Filesystem path to the Dev Registry directory.

    • unsafeDevRegistryDurableObjectProxy (boolean): When enabled, exposes internal Durable Objects to other local dev sessions and allows Workers to connect to external Durable Objects.

    Example usage:

    import { Miniflare } from "miniflare";
    
    const mf = new Miniflare({
        scriptPath: "./dist/worker.js",
        unsafeDevRegistryPath: "/registry",
        unsafeDevRegistryDurableObjectProxy: true,
        // ...other options
    });

Patch Changes

  • Preserve original error messages

  • Support additional Mixed Mode resources in Wrangler:

    • AI

    • Browser

    • Images

    • Vectorize

    • Dispatch Namespaces

  • Additional option for the Miniflare plugin interface to allow defining workerd extensions without having to include deduplication logic.

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.