Skip to content

wrangler@2.13.0

Compare
Choose a tag to compare
@github-actions github-actions released this 20 Mar 22:22
· 1835 commits to main since this release
2496a42

Minor Changes

  • #2905 6fd06241 Thanks @edevil! - feat: 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.

  • #2607 163dccf4 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"
  • #2859 ace46939 Thanks @jbwcloudflare! - feature: 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

  • #2838 9fa6b167 Thanks @mrbbot! - fix: 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" │
    └───────────────────────────────────────────────┘
    
  • #2902 9996ac44 Thanks @jspspike! - Fix issue with keep_vars having no effect in wrangler.toml