wrangler
4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed
3.114.17 is the newest release of 3.x.
In short
3 new6 fixed1 internal
Security
3 advisories affect 3.15.0; 3.114.17 fixes them
- CriticalArbitrary remote code execution within `wrangler dev` Workers sandboxGHSA-f8mp-x433-5wpf · 3 Jan 2024Fixed in 3.19.0
- HighWrangler affected by OS Command Injection in `wrangler pages deploy`GHSA-36p8-mvp6-cv38 · 21 Jan 2026Fixed in 3.114.17
- ModerateArbitrary remote file read in Wrangler dev serverGHSA-cfph-4qqh-w828 · 3 Jan 2024Fixed in 3.19.0
Release note
Minor Changes
Callout
--minifywhen script size is too largeSuppress compatibility date fallback warnings if no
wranglerupdate is availableIf a compatibility date greater than the installed version of
workerdwas
configured, a warning would be logged. This warning was only actionable if a new
version ofwranglerwas available. The intent here was to warn if a user set
a new compatibility date, but forgot to updatewranglermeaning changes
enabled by the new date wouldn't take effect. This change hides the warning if
no update is available.It also changes the default compatibility date for
wrangler devsessions
without a configured compatibility date to the installed version ofworkerd.
This previously defaulted to the current date, which may have been unsupported
by the installed runtime.Resolve npm exports for file imports
Previously, when using wasm (or other static files) from an npm package, you would have to import the file like so:
import wasm from "../../node_modules/svg2png-wasm/svg2png_wasm_bg.wasm";
This update now allows you to import the file like so, assuming it's exposed and available in the package's
exportsfield:import wasm from "svg2png-wasm/svg2png_wasm_bg.wasm";
This will look at the package's
exportsfield inpackage.jsonand resolve the file usingresolve.exports.Use
zone_nameto determine a zone when the pattern is a custom hostnameIn Cloudflare for SaaS, custom hostnames of third party domain owners can be used in Cloudflare.
Workers are allowed to intercept these requests based on the routes configuration.
Before this change, the same logic used bywrangler devwas used inwrangler deploy, which caused wrangler to fail with:✘ [ERROR] Could not find zone for [partner-saas-domain.com]
When uploading additional modules with your worker, Wrangler will now report the (uncompressed) size of each individual module, as well as the aggregate size of your Worker
Patch Changes
Fix various logging of shell commands to correctly quote args when needed
Store temporary files in
.wranglerAs Wrangler builds your code, it writes intermediate files to a temporary
directory that gets cleaned up on exit. Previously, Wrangler used the OS's
default temporary directory. On Windows, this is usually on theC:drive.
If your source code was on a different drive, our bundling tool would generate
invalid source maps, breaking breakpoint debugging. This change ensures
intermediate files are always written to the same drive as sources. It also
ensures unused build outputs are cleaned up when runningwrangler pages dev.This change also means you no longer need to set
cwdandresolveSourceMapLocationsin.vscode/launch.jsonwhen creating anattach
configuration for breakpoint debugging. Your.vscode/launch.jsonshould now
look something like...{ "configurations": [ { "name": "Wrangler", "type": "node", "request": "attach", "port": 9229, // These can be omitted, but doing so causes silent errors in the runtime "attachExistingChildren": false, "autoAttachChildProcesses": false } ] }Move helper cli files of C3 into @cloudflare/cli and make Wrangler and C3 depend on it
Ensure
console.log()s during startup are displayedPreviously,
console.log()calls before the Workers runtime was ready to
receive requests wouldn't be shown. This meant any logs in the global scope
likely weren't visible. This change ensures startup logs are shown. In particular,
this should fix Remix's HMR,
which relies on startup logs to know when the Worker is ready.
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.