github cloudflare/workers-sdk miniflare@4.20250525.1

Minor Changes

  • #9173 fac2f9d Thanks @edmundhung! - feat: 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.

  • #9313 92719a5 Thanks @edmundhung! - feat: 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

  • #9440 8c7ce77 Thanks @penalosa! - Preserve original error messages

  • #9390 80e75f4 Thanks @penalosa! - Support additional Mixed Mode resources in Wrangler:

    • AI
    • Browser
    • Images
    • Vectorize
    • Dispatch Namespaces
  • #9390 80e75f4 Thanks @penalosa! - Additional option for the Miniflare plugin interface to allow defining workerd extensions without having to include deduplication logic.

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.