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
4 new8 fixed2 internal
Security
1 advisory affects 4.44.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
Config
preview_urlsdefaults toworkers_devvalue.Originally, we were defaulting config.preview_urls to
true, but we
were accidentally enabling Preview URLs for users that only had
config.workers_dev=false.Then, we set the default value of config.preview_urls to
false, but we
were accidentally disabling Preview URLs for users that only had
config.workers_dev=true.Rather than defaulting config.preview_urls to
trueorfalse, we
default to the resolved value of config.workers_dev. Should result in a
clearer user experience.Statically replace the value of
process.env.NODE_ENVwithdevelopmentfor development builds andproductionfor production builds if it is not set. Else, use the given value. This ensures that libraries, such as React, that branch code based onprocess.env.NODE_ENVcan be properly tree shaken.Add params type to Workflow type generation. E.g.
interface Env { MY_WORKFLOW: Workflow< Parameters<import("./src/index").MyWorkflow["run"]>[0]["payload"] >; }Add media binding support
Patch Changes
Improve potential errors thrown by
startRemoteProxySessionby including more informationFix
observability.logs.persistbeing flagged as an unexpected field during the wrangler config file validationUpdate logs handling to use the new
handleStructuredLogsminiflare optionWhen either WRANGLER_OUTPUT_FILE_PATH or WRANGLER_OUTPUT_FILE_DIRECTORY are set
in the environment, then command failures will append a line to the output file
encoding the error code and message, if present.Cleanup any running containers again on wrangler dev exit
Always load container image into local store during build
BuildKit supports different build drivers. When using the more modern
docker-containerdriver (which is now the default on some systems, e.g. a standard Docker installation on Fedora Linux), it will not automatically load the built image into the local image store. Since wrangler expects the image to be there (e.g. when callinggetImageRepoTags), it will thus fail, e.g.:⎔ Preparing container image(s)... [+] Building 0.3s (8/8) FINISHED docker-container:default [...] WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load ✘ [ERROR] failed inspecting image locally: Error response from daemon: failed to find image cloudflare-dev/sandbox:f86e40e4: docker.io/cloudflare-dev/sandbox:f86e40e4: No such image
Explicitly setting the
--loadflag (equivalent to-o type=docker) during the build fixes this and should make the build a bit more portable without requiring users to change their default build driver configuration.Make Workflows instances list command cursor based
Improve the diffing representation for
wrangler deploy(run under--x-remote-diff-check)
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.