Packages

miniflare

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

Your version

4.20250813.1

14 Aug 2025Where it was published

4.20260730.0 is the newest release of 4.x.

In short

1 new1 fixed

Release note

Minor Changes

  • Add unsafeHandleDevRegistryUpdate callback option to Miniflare

    Adds a new option to Miniflare that allows users to register a callback function that gets invoked whenever the dev registry is updated with changes to external services that the current Worker depends on.

    This callback is useful for scenarios where you need to react to changes in bound services, such as updating bindings tables or reloading configurations when dependent Workers are added, removed, or modified in the dev registry.

    const mf = new Miniflare({
        // ... other options
        unsafeHandleDevRegistryUpdate(registry) {
            console.log("Dev registry updated:", registry);
            // Handle registry updates (e.g., reprint bindings, reload config)
        },
    });

Patch Changes

  • Browser Rendering for local development now uses @puppeteer/browsers package instead of puppeteer

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.