Packages

wrangler

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

Your version

3.1.0

6 Jun 2023Where it was published

3.114.17 is the newest release of 3.x.

In short

3 new7 fixed

Security

2 advisories affect 3.1.0; 3.114.17 fixes them

Release note

Minor Changes

  • Add wrangler pages project delete command

Patch Changes

  • Wrangler pages dev --script-path argument when using a proxy command instead of directory mode

    Fixes a regression in wrangler@3.x, where wrangler pages dev --script-path=<my script path> -- <proxy command> would start throwing esbuild errors.

  • Avoid unnecessary rebuilding pages functions in wrangler pages dev

  • Fixed wrangler d1 migrations to use --experimental-backend and not --experimentalBackend so that it is consistent with wrangler d1 create.

  • Wrangler rollback shouldn't print its warning in the global menu

  • Failed d1 migrations not treated as errors

    This PR teaches wrangler to return a non-success exit code when a set of migrations fails.

    It also cleans up wrangler d1 migrations apply output significantly, to only log information relevant to migrations.

  • Prevents uploads with both cron triggers and smart placement enabled

  • This PR implements a trimmer that removes BEGIN TRANSACTION/COMMIT from SQL files sent to the API (since the D1 API already wraps SQL in a transaction for users).

  • Add d1 info command for people to check DB size

    This PR adds a d1 info <NAME> command for getting information about a D1 database, including the current database size and state.

    Usage:

    > npx wrangler d1 info northwind
    
    ┌───────────────────┬──────────────────────────────────────┐  
    │ │ d5b1d127-xxxx-xxxx-xxxx-cbc69f0a9e06 │  
    ├───────────────────┼──────────────────────────────────────┤  
    │ name │ northwind │  
    ├───────────────────┼──────────────────────────────────────┤  
    │ version │ beta │  
    ├───────────────────┼──────────────────────────────────────┤  
    │ num_tables │ 13 │  
    ├───────────────────┼──────────────────────────────────────┤  
    │ file_size │ 33.1 MB │  
    ├───────────────────┼──────────────────────────────────────┤  
    │ running_in_region │ WEUR │  
    └───────────────────┴──────────────────────────────────────┘
    
    > npx wrangler d1 info northwind --json  
    {  
      "uuid": "d5b1d127-xxxx-xxxx-xxxx-cbc69f0a9e06",  
      "name": "northwind",  
      "version": "beta",  
      "num_tables": 13,  
      "file_size": 33067008,  
      "running_in_region": "WEUR"  
    }
    
  • Add the --compatibility-flags and --compatibility-date options to the pages project create command

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.