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 breaking3 fixed2 internal
- Breaking
Write source maps in Build Output with
sourcesrelative to each source map file
Release note
Minor Changes
Write source maps in Build Output with
sourcesrelative to each source map fileThis changes the experimental Build Output that
wrangler build --experimental-cf-build-outputandcf-wrangler buildwrite. Their source maps were prepared as if for upload, withsourcesrelative to the project root. For Workers that Wrangler does not bundle, leading../segments were also removed, which lost the location of some files. They now point from each source map's location inbundle/to the original files, like the source maps the Vite plugin writes.
Patch Changes
Name
cfcommands andcloudflare.config.tssettings in remote bindings errors fromcf-wranglerWhen
cfruns development through thecf-wranglerdelegate and remote bindings cannot be authenticated, the error now tells you to runcf auth whoami,cf auth logoutandcf auth logininstead of the Wrangler commands, and the Cloudflare Access hint names cf. The Flagship error for a binding whose app has not been created now names the binding'sidsetting instead ofapp_id, and suggestscf flagship apps create.wrangler devstill names Wrangler's commands and settings.Normalize relative redirect pathnames consistently across Pages and Workers assets
Relative
_redirectstargets now use shared pathname normalization after placeholder replacement, keeping repeated separators within the site's path. Explicit external targets (including scheme-less URLs such as//example.com/path), query values and fragments retain their contents.Keep the remote bindings session when you remove the last remote binding
When you removed the last remote binding while
wrangler devwas running, Wrangler restarted the remote bindings session with credentials that ignored--profileand theaccount_idin your Wrangler config. So it could use a different account or ask you to choose one. Wrangler now keeps the existing session, and starts a new one with your current credentials when you add a remote binding again.
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.