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 new7 fixed2 internal
Security
1 advisory affects 4.28.0; 4.59.1 fixes them
- HighWrangler affected by OS Command Injection in `wrangler pages deploy`GHSA-36p8-mvp6-cv38 · 21 Jan 2026Fixed in 4.59.1
Release note
Minor Changes
Add --json flag to r2 bucket info command for machine-readable output.
Patch Changes
Fix
wrangler devlogs being logged on the incorrect level in some casescurrently the way
wrangler devprints logs is faulty, for example the following codeconsole.error("this is an error"); console.warn("this is a warning"); console.debug("this is a debug");inside a worker would cause the following logs:
✘ [ERROR] this is an error ✘ [ERROR] this is a warning this is a debug
(note that the warning is printed as an error and the debug log is printed even if by default it should not)
the changes here make sure that the logs are instead logged to their correct level, so for the code about the following will be logged instead:
✘ [ERROR] this is an error ▲ [WARNING] this is a warning
(running
wrangler devwith the--log-level=debugflag will also cause the debug log to be included as well)Move local dev container cleanup to process exit hook. This should ensure containers are cleaned up even when Wrangler is shut down programatically.
Deleting when Pages project binds to worker requires confirmation
Report startup errors before workerd profiling
Update
wrangler containers images listto make fewer API calls to improve command runtimeEnforce 64-character limit for Workflow binding names locally to match production validation
Fix UTF BOM handling in config files - remove UTF-8 BOM and error on other BOMs
Add macOS version validation to prevent EPIPE errors on unsupported macOS versions (below 13.5). Miniflare and C3 fail hard while Wrangler shows warnings but continues execution.
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.