Packages

wrangler

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

Your version

3.63.0

3 Jul 2024Where it was published

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

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.js

    export default fetch; // all this does is export the standard fetch function`

    You can then configure wrangler.toml like 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 dev and deploy). Like:

    npx wrangler dev --alias node-fetch:./fetch-nolyfill
  • Added D1 export support for local databases

Patch Changes

  • Fix pages dev watch mode [Functions]

    The watch mode in pages dev for 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 Function math-is-fun.ts, defined as follows:

    import { ADD } from "../math/add";
    
    export async function onRequest() {  
        return new Response(`${ADD} is fun!`);  
    }

    pages dev will reload for any changes in math-is-fun.ts itself, but not for any changes in math/add.ts, which is its dependency.

    Similarly, pages dev will 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 dev watch mode experience.

  • Use account id for listing zones

    Fixes #4944

    Trying to fetch /zones fails 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

  • url and inspectorUrl properties have been exposed on the worker object returned by new unstable_DevEnv().startWorker(options)

  • Bump ws dependency

  • Add extra error logging to auth response errors

  • Removes unnecessary wrangler tail warning against resetting durable object

    fixes jira.cfdata.org/browse/STOR-3318

  • Improve the getPlatformProxy configPath option 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.