Packages

wrangler

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

Your version

4.16.0

20 May 2025Where it was published

4.167.0 is the newest release of 4.x.

In short

3 new6 fixed2 internal

Security

1 advisory affects 4.16.0; 4.59.1 fixes them

Release note

Minor Changes

  • Allow --name and --env args on wrangler deploy

    Previously it was not possible to provide a Worker name as a command line argument at the same time as setting the Wrangler environment.
    Now specifying --name is supported and will override any names set in the Wrangler config:

    wrangler.json

    {
        "name": "config-worker"
        "env": {
            "staging": { "name": "config-worker-env" }
        }
    }
    CommandPrevious (Worker name)Proposed (Worker name)Comment
    wrangler deploy --name=args-worker"args-worker""args-worker"CLI arg used
    wrangler deploy --name=args-worker --env=stagingError"args-worker"CLI arg used
    wrangler deploy --name=args-worker --env=prodError"args-worker"CLI arg used
    wrangler deploy"config-worker""config-worker"Top-level config used
    wrangler deploy --env=staging"config-worker-env""config-worker-env"Named env config used
    wrangler deploy --env=prod"config-worker-prod""config-worker-prod"CLI arg and top-level config combined

Patch Changes

  • Add no-op props to ctx in getPlatformProxy to fix type mismatch

  • Wire up mixed-mode remote bindings for multi-worker wrangler dev

    Under the --x-mixed-mode flag, make sure that bindings configurations with remote: true actually generate bindings to remote resources during a multi-worker wrangler dev session, currently the bindings included in this are: services, kv_namespaces, r2_buckets, d1_databases, queues and workflows.

    Also include the ai binding since the bindings is already remote by default anyways.

  • Wrangler containers can be configured with the kind of application rollout on apply

  • Wire up mixed-mode remote bindings for (single-worker) wrangler dev

    Under the --x-mixed-mode flag, make sure that bindings configurations with remote: true actually generate bindings to remote resources during a single-worker wrangler dev session, currently the bindings included in this are: services, kv_namespaces, r2_buckets, d1_databases, queues and workflows.

    Also include the ai binding since the bindings is already remote by default anyways.

  • Bump @cloudflare/unenv-preset

  • Support Mixed Mode for more binding types

  • Setting triggers.crons: in Wrangler config should delete deployed cron schedules

  • Support Mixed Mode Dispatch Namespaces

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.