Packages

wrangler

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

Your version

4.167.0

23 Nov 2026Where it was published

In short

1 removed1 new4 fixed4 internal

  • Removed

    Remove the wrangler dispatch-namespace rename command

Release note

Minor Changes

  • Support --env-file in the experimental cf-wrangler dev delegate

    Wrangler-bundled projects can now use cf dev -- --env-file ../../.env to load a shared development file outside the project directory without enabling CLOUDFLARE_INCLUDE_PROCESS_ENV. Repeat --env-file to load multiple files, with later files overriding earlier values.

  • Removed

    Remove the wrangler dispatch-namespace rename command

    Renaming a Workers for Platforms dispatch namespace left the namespace name stored in dispatcher bindings out of date, which could make Workers in the namespace impossible to read or delete by name. The Cloudflare API now rejects requests that change a dispatch namespace's name, so the command has been removed. To use a different name, create a new dispatch namespace and redeploy your Workers to it.

Patch Changes

  • Exit with a nonzero status when the Basin SQL service rejects a query

    wrangler basin sql query reports the service error and exits with status 1 so shell scripts and CI can detect a rejected query.

  • Show that --local is the default in D1 command help

    wrangler d1 execute, wrangler d1 export, wrangler d1 migrations apply and wrangler d1 migrations list run against the local database unless --remote is passed, but their --help output did not say so. The --local flag description now ends with "(default)".

  • Recover from missing Worker scripts after an interrupted first deploy

    When the Workers API returns a service without a script, wrangler deploy uses the first-deploy flow instead of crashing. wrangler versions upload tells you to run wrangler deploy first.

  • Fix intermittent subdomain lookup failures on a Worker's first deploy

    After a successful first upload, wrangler deploy can now read the subdomain settings from the script API if the Worker API does not yet see the new Worker. The normal deploy continues without waiting for the Worker API to catch up.

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.