wrangler
4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed
4.167.0 is the newest release of 4.x.
In short
1 new6 fixed3 internal
Release note
Minor Changes
Support temporary event accounts in R2 and Containers commands
wrangler r2andwrangler containerscommands now accept the hidden--temporaryflag, so accounts created for an event can manage buckets, objects and containers directly. Every command that supports--temporarynow also accepts a hidden--event-codeflag, so the first command a participant runs can create the event account:wrangler r2 bucket create my-bucket --temporary --event-code <code>R2 and Containers are only available on event accounts. R2 custom domains, Sippy, external container registries and
wrangler cloudchambercommands still require a logged-in account.
Patch Changes
Honor Retry-After directives during static asset uploads
Static asset uploads now pause retries and pending uploads until the latest outstanding deadline requested by the API. A per-request limiter also keeps gateway retries at the reduced concurrency after the pause ends, preventing a deployment from immediately overloading a constrained asset service again.
Document that
addressescatch-all entries must use the zone apexA
*@domainentry inaddressesmust use the zone apex, such as*@example.com. The zone catch-all also receives mail for every subdomain in the zone that has no literal rule.Keep Preview secrets when deploying to an existing Preview
Secrets added to a Preview with
wrangler preview secret putorwrangler preview secret bulkwere lost the next timewrangler previewran, because each new deployment was created from the Wrangler config,--varand--secrets-filevalues only.wrangler previewnow carries over the secrets of the Preview's latest deployment. A value passed in this deployment (--secrets-file,--varor apreviewsbinding with the same name) still replaces the existing secret, andwrangler preview secret deleteremoves one.Stop the update check from recommending deprecated versions
Previously, the "update available" notice shown by
wranglerand@cloudflare/vite-pluginalways pointed at whichever version was taggedlateston npm, even after that version had been deprecated for shipping a bug. Deprecated versions are now never recommended: if the latest release has been deprecated, the newest non-deprecated stable release below it is suggested instead, or nothing at all if you are already on it.The check now reads the npm registry directly instead of going through the
update-checkpackage, which discarded the deprecation information. The on-disk cache location and one-hour refresh interval are unchanged.Ship
usingandawait usingdeclarations to the runtime as written, for smaller Worker bundlesWorkers and Pages Functions that use explicit resource management no longer carry about 1 KB of bundled helper code to emulate it. workerd supports
usingandawait usingnatively at every compatibility date, sowrangler deploy,wrangler versions uploadand Pages Functions builds now leave these declarations untouched.Apply each action's own condition in
wrangler r2 bucket lifecycle addWhen a lifecycle rule was added with both expiration and Infrequent Access transition flags, both actions read their condition from the same list of flags, which checked
--expire-daysfirst.--expire-days 365 --ia-transition-days 30therefore transitioned objects after 365 days instead of 30, and--expire-date 2027-01-01 --ia-transition-days 30deleted objects after 30 days instead of on the given date. Expiration now only reads--expire-days/--expire-date, and transition only reads--ia-transition-days/--ia-transition-date.
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.