github cloudflare/workers-sdk wrangler@4.167.0

2 hours ago

Minor Changes

  • #17060 fa50aba Thanks @petebacondarwin! - 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.

  • #17093 310633d Thanks @for-the-kidz! - 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

  • #17102 1e65920 Thanks @samarthyadavv! - 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.

  • #17099 fc3d770 Thanks @mayanthacreates! - 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)".

  • #17070 657179d Thanks @dependabot! - Update DEFAULT_COMPAT_DATE to 2026-11-23

    Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.

  • #17070 657179d Thanks @dependabot! - Update dependencies of "miniflare", "wrangler"

    The following dependency versions have been updated:

    Dependency From To
    @cloudflare/workers-types ^5.20261119.1 ^5.20261123.1
    workerd 1.20261119.1 1.20261123.1
  • #17078 b007991 Thanks @petebacondarwin! - 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.

  • #17123 1edd2f4 Thanks @petebacondarwin! - 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.

  • Updated dependencies [657179d, 657179d, b007991, 7afc49c, 086706d, 5b45f32, 00413bb, 5bc7dba, 086706d, 5970e6a]:

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.