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 security3 new6 fixed4 internal
- Security
Update Undici to 7.30.2 to include upstream security fixes
Release note
Minor Changes
Show configured trigger targets during experimental
wrangler triggers deploy --dry-runDry runs now print a "Would deploy" summary of routes, custom domains, cron schedules, Queue producers and consumers, Workflows, event triggers, and Email Routing addresses instead of exiting without a summary. Explicitly empty cron schedules and Email Routing addresses are shown as removals. The preview makes no API requests or authentication checks; when workers.dev is enabled, it reports that setting without looking up the account's subdomain.
Add
images.url_transformationsto the Wrangler configurationThe
imagesblock now accepts aurl_transformationsobject for controlling/cdn-cgi/image/transformations on requests served by a Worker.enabledis required, andallowed_originsoptionally lists the origins images may be fetched from (use["*"]to allow any origin).bindingis now optional, sourl_transformationscan be configured without an Images binding:{ "images": { "url_transformations": { "enabled": true, "allowed_origins": ["images.example.com"] } } }Like the rest of the
imagesblock,url_transformationsis not inherited by named environments, and must be specified in each environment that needs it.cloudflare.config.tsgains the equivalent setting as a top-levelimagesfield on the Worker, with the Images binding remaining inenv:export default defineConfig({ worker: { name: "my-worker", compatibilityDate: "2026-11-01", images: { urlTransformations: { enabled: true, allowedOrigins: ["images.example.com"], }, }, }, });cf migratecarriesimages.url_transformationsover to this field.This change adds configuration and validation only.
url_transformationsis not supported inpreviews.Add
--show-diffflag towrangler triggers deployWhen
--show-diffis passed, the command fetches the currently deployed trigger configuration from the remote worker and displays a colored diff against the local configuration before deploying. This covers routes, custom domains, cron schedules, and theworkers_dev/preview_urlssubdomain settings. Route and custom-domain lists are fetched only when that category has local entries to deploy, avoiding unnecessary permission requirements. Queue consumers and event triggers are not compared.The flag also works with
--dry-runto preview these changes without actually deploying. Displaying a diff requires authentication, including during a dry run.
Patch Changes
Validate external Workflow settings before updating Worker triggers
Reject
limits,concurrency,schedules,default_retention, andjurisdictionconfigured on external Workflows before making trigger API calls. This prevents failed deployments from partially updating workers.dev or routes; dry runs reject the same invalid configurations.Warn when invocation logs are enabled while logs are disabled
Configuration validation now warns when
observability.logs.invocation_logsistrueandobservability.logs.enabledisfalse. Invocation logging remains disabled untilobservability.logs.enabledis set totrue.Recover when concurrent
wrangler previewbuilds try to create the same Preview name.If another build creates a Preview after the initial lookup, Wrangler now reads the existing Preview and applies the requested Preview settings instead of failing with Cloudflare API error 100338. Other creation errors still fail, and existing Previews are never deleted.
Wait for a just-uploaded Worker version to become readable during deploys
For a few seconds after a version is uploaded, the Workers API can alternate between returning it and reporting it as not found.
wrangler versions deployfailed on the first not-found read, andwrangler deployfor Durable Object-managed containers gave up after about 2 seconds and reported that the container settings were not fully applied.Both now keep retrying a not-found version for up to about 12 seconds and log a message while they wait. These reads also retry transient API failures, such as server errors, rate limiting, timeouts and network errors, which can wait longer when the API asks for it. Other errors still fail immediately.
Stop running Docker at the end of builds for projects with no Containers
Builds that write the Build Output Specification ran
docker image lson every build to find image tags left by a previous build, even when the project configured no Containers. On a machine with Docker installed this added about a quarter of a second to each build, and the build waited on the Docker CLI for as long as it took to respond. The lookup is now skipped when the project has no Containers and the build output being replaced had none either. Projects that configure Containers, and the first build after the last Container is removed, still remove previous tags as before.- Security
Update Undici to 7.30.2 to include upstream security fixes
This patch includes six upstream security fixes covering caching, redirects, and Subresource Integrity verification. Update the shared Undici dependency and matching types together so affected packages ship the patched version.
Fix remote bindings authentication with API tokens scoped to an individual Worker
Remote bindings now create preview sessions through the Worker-scoped endpoint. When the response includes a usable exchange URL, its hostname is used without account-wide Workers subdomain access; otherwise, the existing account subdomain lookup or registration is used. This applies to
getPlatformProxyand remote bindings in Wrangler, the Cloudflare Vite plugin, and the Vitest integration. Tokens still need permission to update the named Worker.
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.