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 security7 new1 faster6 fixed3 internal
- Security
Update bundled third-party dependencies with known security fixes
Release note
Minor Changes
Store experimental
cf-wrangler devstate in.cloudflare/statePersist local resource data in
.cloudflare/staterelative to the configuration file. Direct Wrangler usage continues to default to.wrangler/state.Add
--compatibilityflag towrangler d1 exportYou can now export a remote D1 database that contains virtual tables, such as FTS5 or R*Tree tables:
wrangler d1 export my-database --remote --output dump.sql --compatibility sqlite3_cli_onlyIt accepts
d1(the default) andsqlite3_cli_only. Withsqlite3_cli_only, the dump matches the output of thesqlite3 .dumpcommand, including virtual tables. D1 cannot import this dump.sqlite3_cli_onlyis only supported for remote exports.Support
CLOUDFLARE_AUTH_PROFILEfor shared authentication profile selectionCloudflare tooling can pass a selected profile to child processes through
CLOUDFLARE_AUTH_PROFILE. Explicit profile arguments take precedence over the variable, followed by directory bindings and the default profile. Thecf-wranglerdevelopment delegate also initializes cf authentication so it reads the selected cf credentials.Experimental cf development delegates inherit the selected profile without additional command-line flags. Vite refreshes remote authentication when the resolved profile changes, and
cf-wranglerkeeps its authentication scoped to the delegate invocation.Support jurisdiction when automatically provisioning D1 databases
Set
jurisdictionon a D1 binding without adatabase_idto create the database in that jurisdiction during deployment. For example,{"d1_databases":[{"binding":"DB","jurisdiction":"eu"}]}creates an EU-jurisdiction database.Add an explicit opt-out for main module imports in generated Worker types
Use
wrangler types --include-main-module=falsewhen the Worker entrypoint is generated build output that should not be type-checked as application source. The correspondingincludeMainModuleoption is available in the experimental type-generation API. The option is preserved by--checkand automatic regeneration. Omitting the import opts out of module-derivedctx.exportstyping while preserving runtime types, environment bindings, and Durable Object namespace declarations.New SvelteKit Workers projects created with C3 use this option so their generated declarations remain stable before and after a build. Imports needed to type Durable Object, service, and Workflow bindings are unaffected.
Patch Changes
- Security
Update bundled third-party dependencies with known security fixes
Local development and Workers Vitest tests now include security fixes for their bundled dependencies. Local browser rendering also includes security fixes for browser downloads, archive extraction, and proxy support.
Miniflare and Wrangler now require Node.js 22.12.0 or later, matching the supported runtime range of the new browser installer.
Warn when cron triggers are configured alongside
--dispatch-namespaceWhen deploying a user Worker to a dispatch namespace (Workers for Platforms), cron triggers are not supported, but Wrangler previously dropped them silently: schedules configured via
triggers.cronsin the Wrangler config file or the--triggersCLI flag never ran and no warning was shown. Wrangler now warns that cron triggers will be ignored when deploying with--dispatch-namespace.Stop
wrangler email routing addresses createfrom claiming a verification email was sent for addresses that are already verifiedCloudflare doesn't send a verification email when the destination address is already verified on the account, such as the account owner's own email. The command now shows the verification timestamp in that case. It only mentions a verification email when the address is still pending.
Report a failed Wrangler command when the CLI child is terminated by a signal
Wrangler's executable previously translated signal termination into exit code 0, which could cause callers to report a successful deployment after the operating system stopped Wrangler. Signal exits now use the conventional nonzero shell status.
Remove Container networking sidecars and snapshot clone volumes in local development
Wrangler and the Vite plugin removed only the application containers of Container-enabled Durable Objects, found by image tag, and left behind the networking sidecars and snapshot clone volumes that workerd also creates. They now leave cleanup to Miniflare, which removes all of these when the Container configuration changes, such as after a rebuild, when local development stops, and when the process exits.
Preserve environment inputs when automatically regenerating Worker types
Automatic type regeneration now reuses the recorded
--envand--env-fileoptions. This keeps environment-specific bindings and secret declarations consistent with the generated header and subsequentwrangler types --checkruns.Avoid materializing unused multipart request bodies
Wrangler no longer creates a full text copy of multipart API request bodies when debug logs are disabled or sanitized. This substantially reduces peak memory use when uploading large batches of static assets while preserving request-body output when unsanitized debug logging is explicitly enabled.
Stop
getPlatformProxy()asset misses from recursively calling its own listenerRequests for assets that do not exist now return a 404 response without hanging or exhausting local development resources.
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.