wrangler
4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed
3.114.17 is the newest release of 3.x.
In short
3 new7 fixed3 internal
Security
1 advisory affects 3.63.0; 3.114.17 fixes them
- HighWrangler affected by OS Command Injection in `wrangler pages deploy`GHSA-36p8-mvp6-cv38 · 21 Jan 2026Fixed in 3.114.17
Release note
Minor Changes
Alias modules in the worker
Sometimes, users want to replace modules with other modules. This commonly happens inside a third party dependency itself. As an example, a user might have imported
node-fetch, which will probably never work in workerd. You can use the alias config to replace any of these imports with a module of your choice.Let's say you make a
fetch-nolyfill.jsexport default fetch; // all this does is export the standard fetch function`
You can then configure
wrangler.tomllike so:# ... [alias] "node-fetch": "./fetch-nolyfill"
So any calls to
import fetch from 'node-fetch';will simply use our nolyfilled version.You can also pass aliases in the cli (for both
devanddeploy). Like:npx wrangler dev --alias node-fetch:./fetch-nolyfill
Added D1 export support for local databases
Patch Changes
Fix
pages devwatch mode [Functions]The watch mode in
pages devfor Pages Functions projects is currently partially broken, as it only watches for file system changes in the
"/functions" directory, but not for changes in any of the Functions' dependencies. This means that given a Pages Functionmath-is-fun.ts, defined as follows:import { ADD } from "../math/add"; export async function onRequest() { return new Response(`${ADD} is fun!`); }pages devwill reload for any changes inmath-is-fun.tsitself, but not for any changes inmath/add.ts, which is its dependency.Similarly,
pages devwill not reload for any changes in non-JS module imports, such as wasm/html/binary module imports.This commit fixes all these things, plus adds some extra polish to the
pages devwatch mode experience.Use account id for listing zones
Fixes #4944
Trying to fetch
/zonesfails when it spans more than 500 zones. The fix to use an account id when doing so. This patch passes the account id to the zones call, threading it through all the functions that require it.Pass env to getBindings to support reading
.dev.vars.{environment}#5612 added support for selecting the environment of config used, but it missed passing it to the code that reads
.dev.vars.{environment}Closes #5641
urlandinspectorUrlproperties have been exposed on the worker object returned bynew unstable_DevEnv().startWorker(options)Bump ws dependency
Add extra error logging to auth response errors
Removes unnecessary wrangler tail warning against resetting durable object
Improve the
getPlatformProxyconfigPathoption ts-doc comment to clarify its behavior
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.