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 new5 fixed5 internal
Release note
Minor Changes
Add a new
--forceflag tod1 migrations applywhich skips the interactive confirmation and applies any pending migrations non-interactively. This is useful for CI and automation.Usage example:
wrangler d1 migrations apply <db> --remote --force
Fixes #5017
Patch Changes
Correct the dry-run setup message to say "exiting now" instead of "existing now".
The previous wording contained a typo and appeared in Wrangler setup output and other consumers of shared autoconfig.
Report
.dev.varsand.envfiles that are not UTF-8 instead of silently loading no variablesBefore Wrangler would incorrectly read non UTF-8
.dev.varsand.envfiles as UTF-8. A.dev.varsfile that is not UTF-8 now stopswrangler devwith a message that says how to fix it, and a.envfile that is not UTF-8 is skipped with a warning. UTF-8 files, with or without a BOM, load as before.Replace the unmaintained asset hashing dependency with
hash-wasmKeep asset hashes unchanged for Workers and Pages deployments and local Pages development while using a maintained WebAssembly implementation.
Fail remote RPC binding requests on network errors instead of hanging
Remote bindings that connect over RPC treated every network failure, such as being offline, a DNS or TLS error, as a preview reload. The request then waited silently for a reload that never came. These requests now fail with the error, while GET and HEAD requests interrupted by an actual reload are still retried.
Fix TypeScript errors when importing Wrangler's APIs
Projects that import Wrangler's APIs, such as
getPlatformProxyordefineWranglerConfig, can now type-check withskipLibCheck: false. The published types no longer refer to missing internal packages, and their required type dependencies are installed automatically.
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.