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 removed11 new9 fixed2 internal
- Removed
Remove the
wrangler deploy's--x-remote-diff-checkexperimental flag
Security
1 advisory affects 4.52.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
- Removed
Remove the
wrangler deploy's--x-remote-diff-checkexperimental flagThe remote diffing feature has been enabled by default for a while and its functionality is stable, as a result the experimental flag (only available for option-out of the feature right now) has been removed.
Export unstable helpers useful for generating wrangler config
Improve the
wrangler deployflow to also check for potential overrides of secrets.Now when you run
wrangler deployWrangler will check the remote secrets for your workers for conflicts with the names of the bindings you're about to deploy. If there are conflicts, Wrangler will warn you and ask you for your permission before proceeding.Support TanStack Start in autoconfig
Containers: Allow users to directly authenticate external image registries in local dev
Previously, we always queried the API for stored registry credentials and used those to pull images. This means that if you are using an external registry (ECR, dockerhub) then you have to configure registry credentials remotely before running local dev.
Now you can directly authenticate with your external registry provider (using
docker loginetc.), and Wrangler or Vite will be able to pull the image specified in thecontainers.imagefield in your config file.The Cloudflare-managed registry (registry.cloudflare.com) currently still does not work with the Vite plugin.
Allow users to provide an
account_idas part of theWorkerConfigObjectthey pass tomaybeStartOrUpdateRemoteProxySessionSupport SolidStart in autoconfig
Support Angular projects in autoconfig
Delegate generation of HTTPS certificates to Miniflare
Bumps
esbuildversion to 0.27.0Support internal-only undocumented
cross_account_grantservice binding propertyWe're soon going to make backend changes that mean that
wrangler dev --remotesessions will no longer have an associated inspector connection. In advance of these backend changes, we've enabled a newwrangler tail-based logging strategy forwrangler dev --remote. For now, you can revert to the previous logging strategy withwrangler dev --remote --no-x-tail-logs, but in future it will not be possible to revert.The impact of this will be that logs that were previously available via devtools will now be provided directly to the Wrangler console and it will no longer be possible to interact with the remote Worker via the devtools console.
Patch Changes
Use more workerd native modules
Node modules
punycode,trace_events,cluster,wasi, anddomainswill be used when enabled
via a compatibility flag or by default when the compatibility date is greater or equal to 2025-12-04.Remove uses of
eval()from the Wrangler bundleRemoves duplicate module warnings when vendoring Python packages
Generalize autoconfig wording
Generalize the autoconfig wording so that when it doesn't specifically mention "deployment" (since it can be run via
wrangler setupor the autoconfig programmatic API)Fix autoconfig using absolute paths for static projects
Running the experimental autoconfig logic through
wrangler setupandwrangler deploy --x-autoconfigon a static project results in absolute paths being used. This is incorrect, especially when such paths are being included in the generated wrangler.jsonc. The changes here fix the autoconfig logic to use paths relative to the project's root instead.For example given a project located in
/Users/usr/projects/sites/my-static-site, before:// wrangler.jsonc at /Users/usr/projects/sites/my-static-site { "$schema": "node_modules/wrangler/config-schema.json", "name": "static", "compatibility_date": "2025-11-27", "observability": { "enabled": true }, "assets": { "directory": "/Users/usr/projects/sites/my-static-site/public" } }and after:
// wrangler.jsonc at /Users/usr/projects/sites/my-static-site { "$schema": "node_modules/wrangler/config-schema.json", "name": "static", "compatibility_date": "2025-11-27", "observability": { "enabled": true }, "assets": { "directory": "public" } }Explicitly close FileHandle in
wrangler d1 executeto support Node 25Ensure that when a remote proxy session creation fails a hard error is surfaced to the user (both in
wrangler devand in the programmatic API).When using remote bindings, either with
wrangler devor viastartRemoteProxySession/maybeStartOrUpdateRemoteProxySessionthe remote proxy session necessary to connect to the remote resources can fail to be created, this might happen if for example you try to set a binding with some invalid values such as:MY_R2: { type: "r2_bucket", bucket_name: "non-existent", // No bucket called "non-existent" exists remote: true, },Before this could go undetected and cause unwanted behaviors such as requests handling hanging indefinitely, now wrangler will instead crash (or throw a hard error ion the programmatic API), clearly indicating that something went wrong during the remote session's creation.
Use correctly-formatted names when displaying detected framework details
Update the structure of the
configuremethod of autoconfig frameworksUpdate the signature of the
configurefunction of autoconfig frameworks (AutoconfigDetails#Framework), before they would return aRawConfigobject to use to update the project's wrangler config file, now they return an object that includes theRawConfigand that can potentially also hold additional data relevant to the configuration.
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.