Packages

wrangler

4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed

Your version

4.165.0

18 Nov 2026Where it was published

4.167.0 is the newest release of 4.x.

In short

1 new5 fixed5 internal

Release note

Minor Changes

  • Add a new --force flag to d1 migrations apply which 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.vars and .env files that are not UTF-8 instead of silently loading no variables

    Before Wrangler would incorrectly read non UTF-8 .dev.vars and .env files as UTF-8. A .dev.vars file that is not UTF-8 now stops wrangler dev with a message that says how to fix it, and a .env file 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-wasm

    Keep 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 getPlatformProxy or defineWranglerConfig, can now type-check with skipLibCheck: 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.