Packages

miniflare

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

Your version

4.20250422.0

23 Apr 2025Where it was published

4.20260730.0 is the newest release of 4.x.

In short

1 new1 internal

Release note

Minor Changes

  • Add support for defining props on a Service binding.

    In your configuration file, you can define a service binding with props:

    {
        "services": [
            {
                "binding": "MY_SERVICE",
                "service": "some-worker",
                "props": { "foo": 123, "bar": "value" }
            }
        ]
    }

    These can then be accessed by the callee:

    import { WorkerEntrypoint } from "cloudflare:workers";
    
    export default class extends WorkerEntrypoint {
        fetch() {
            return new Response(JSON.stringify(this.ctx.props));
        }
    }

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.