Packages

wrangler

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

Your version

2.13.0

20 Mar 2023Where it was published

2.21.3 is the newest release of 2.x.

npm marks 2.13.0 as deprecated: Wrangler v2 is no longer supported. Please upgrade to Wrangler v4

In short

3 new2 fixed

Security

3 advisories affect 2.13.0; 3.114.17 fixes them

Release note

Minor Changes

  • Support external imports from cloudflare:... prefixed modules

    Going forward Workers will be providing built-in modules (similar to node:...) that can be imported using the cloudflare:... prefix. This change adds support to the Wrangler bundler to mark these imports as external.

  • Thanks @jspspike@gmail.com! - feature: add wrangler deployment view and wrangler rollback subcommands

wrangler deployments view [deployment-id] will get the details of a deployment, including bindings and usage model information.
This information can be used to help debug bad deployments.

wrangler rollback [deployment-id] will rollback to a specific deployment in the runtime. This will be useful in situations like recovering from a bad
deployment quickly while resolving issues. If a deployment id is not specified wrangler will rollback to the previous deployment. This rollback only changes the code in the runtime and doesn't affect any code or configurations
in a developer's local setup.

wrangler deployments list will list the 10 most recent deployments. This command originally existed as wrangler deployments

example of view <deployment-id> output:

Deployment ID: 07d7143d-0284-427e-ba22-2d5e6e91b479
Created on:    2023-03-02T21:05:15.622446Z
Author:        jspspike@gmail.com
Source:        Upload from Wrangler 🤠
------------------------------------------------------------
Author ID:          e5a3ca86e08fb0940d3a05691310bb42
Usage Model:        bundled
Handlers:           fetch
Compatibility Date: 2022-10-03
--------------------------bindings--------------------------
[[r2_buckets]]
binding = "MY_BUCKET"
bucket_name = "testr2"

[[kv_namespaces]]
id = "79300c6d17eb4180a07270f450efe53f"
binding = "yeee"
  • Add support for Queue Consumer concurrency

    Consumer concurrency allows a consumer Worker processing messages from a queue to automatically scale out horizontally in order to keep up with the rate that messages are being written to a queue.
    The new max_concurrency setting can be used to limit the maximum number of concurrent consumer Worker invocations.

Patch Changes

  • Display cause when local D1 migrations fail to apply

    Previously, if wrangler d1 migrations apply --local failed, you'd see something like:

    ❌ Migration 0000_migration.sql failed with following Errors  
    ┌──────────┐  
    │ Error │  
    ├──────────┤  
    │ D1_ERROR │  
    └──────────┘

    We'll now show the SQLite error that caused the failure:

    ❌ Migration 0000_migration.sql failed with following Errors  
    ┌───────────────────────────────────────────────┐  
    │ Error │  
    ├───────────────────────────────────────────────┤  
    │ Error: SqliteError: unknown database "public" │  
    └───────────────────────────────────────────────┘
    
  • Fix issue with keep_vars having no effect in wrangler.toml

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.