Packages

wrangler

4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed

Your version

4.13.0

23 Apr 2025Where it was published

4.167.0 is the newest release of 4.x.

In short

2 new1 fixed1 internal

Security

1 advisory affects 4.13.0; 4.59.1 fixes them

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));
        }
    }
  • Add config.keep_names option

    Adds a new option to Wrangler to allow developers to opt out of esbuild's keep_names option (esbuild.github.io/api/). By default, Wrangler sets this to true

    This is something developers should not usually need to care about, but sometimes
    keep_names can create issues, and in such cases they will be now able to opt-out.

    Example wrangler.jsonc:

    {
        "name": "my-worker",
        "main": "src/worker.ts",
        "keep_names": false
    }

Patch Changes

  • Correctly handle 0 length responses to wrangler containers list.

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.