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
2 new4 fixed2 internal
Release note
Minor Changes
Mark
wrangler containerscommands as stableThis changes the status of the Containers CLI from open beta to stable. Wrangler no longer shows
[open beta]labels or beta warning text forwrangler containerscommands, so the help output matches the feature's current availability.JS files imported by the Python Workers runtime SDK are now handled as ESM modules.
This is not a user-facing change, but Python Workers users should update their wrangler version to make sure to get Python workers SDK working properly.
Patch Changes
Fix POST/PUT requests with non-2xx responses throwing "fetch failed"
Previously, sending a POST or PUT request that received a non-2xx response (e.g. 401, 400, 403) would throw a
TypeError: fetch failederror. This was caused by an undici bug whereisTraversableNavigable()incorrectly returnedtrue, causing the 401 credential-retry block to execute in Node.js and fail on stream-backed request bodies. This has been fixed upstream in undici v7.24.8, so we've bumped our dependency and removed the previous pnpm patch workaround.Make startup network requests non-blocking on slow connections
Wrangler makes network requests during startup (npm update check,
request.cfdata fetch) that previously blocked the CLI indefinitely on slow or degraded connections (airplane wifi, trains), causing 10+ second delays.Update check: The banner now races the update check against a 100ms grace period. On a cache hit (most runs) the result resolves in <1ms via the I/O poll phase; on a cache miss the banner prints immediately without blocking. A 3s safety-net timeout caps the
update-checklibrary's auth-retry path.request.cffetch: The fetch toworkers.cloudflare.com/cf.jsonnow usesAbortSignal.timeout(3000), falling back to cached/default data on timeout.
wrangler previewno longer warns on inheritable binding types being missing frompreviewsconfig.Remove unnecessary
flagship:readOAuth scopeThe
flagship:readscope is not needed sinceflagship:writealready implies read access. This reduces the OAuth permissions requested during login to only what is required.
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.