Skip to content

Wrangler

2024-12-03

3.92.0

Minor Changes

  • #7251 80a83bb Thanks @penalosa! - Improve Wrangler's multiworker support to allow running multiple workers at once with one command. To try it out, pass multiple -c flags to Wrangler: i.e. wrangler dev -c wrangler.toml -c ../other-worker/wrangler.toml. The first config will be treated as the primary worker and will be exposed over HTTP as usual (localhost:8787) while the rest will be treated as secondary and will only be accessible via a service binding from the primary worker. Notably, these workers all run in the same runtime instance, which should improve reliability of multiworker dev and fix some bugs (RPC to cross worker Durable Objects, for instance).

  • #7130 11338d0 Thanks @nickbabcock! - Update import resolution for files and package exports

    In an npm workspace environment, wrangler will now be able to successfully resolve package exports.

    Previously, wrangler would only be able to resolve modules in a relative node_modules directory and not the workspace root node_modules directory.

  • #7355 5928e8c Thanks @emily-shen! - feat: add experimental_serve_directly option to Workers with Assets

    Users can now specify whether their assets are served directly against HTTP requests or whether these requests always go to the Worker, which can then respond with asset retrieved by its assets binding.

Patch Changes

2024-11-26

3.91.0

Minor Changes

  • #7230 6fe9533 Thanks @penalosa! - Turn on wrangler.json(c) support by default

    Wrangler now supports both JSON (wrangler.json) and TOML (wrangler.toml) for it's configuration file. The format of Wrangler's configuration file is exactly the same across both languages, except that the syntax is JSON rather than TOML. e.g.

    name = "worker-ts"
    main = "src/index.ts"
    compatibility_date = "2023-05-04"
    

    would be interpreted the same as the equivalent JSON

    {
      "name": "worker-ts",
      "main": "src/index.ts",
      "compatibility_date": "2023-05-04"
    }
    
  • #7330 219109a Thanks @jonesphillip! - Added Oceania (oc) location hint as acceptable choice when creating an R2 bucket.

  • #7227 02a0e1e Thanks @taylorlee! - Add preview_urls toggle to wrangler.toml

    The current Preview URLs (beta) feature routes to version preview urls based on the status of the workers_dev config value. Beta users have requested the ability to enable deployment urls and preview urls separately on workers.dev, and the new previews_enabled field of the enable-subdomain API will allow that. This change separates the workers_dev and preview_urls behavior during wrangler triggers deploy and wrangler versions upload. preview_urls defaults to true, and does not implicitly depend on routes the way workers_dev does.

  • #7308 1b1d01a Thanks @gpanders! - Add a default image for cloudchamber create and modify commands

  • #7232 7da76de Thanks @toddmantell! - feat: implement queues info command

    This command allows users to get information on individual queues.

    To run this command use the queues info command with the name of a queue in the user's account.

    wrangler queues info my-queue-name

Patch Changes

2024-11-22

3.90.0

Minor Changes

  • #7315 31729ee Thanks @G4brym! - Update local AI fetcher to forward method and url to upstream

Patch Changes

2024-11-21

3.89.0

Minor Changes

  • #7252 97acf07 Thanks @Maximo-Guk! - feat: Add production_branch and deployment_trigger to pages deploy detailed artifact for wrangler-action pages parity

  • #7263 1b80dec Thanks @danielrs! - Fix wrangler pages deployment (list|tail) environment filtering.

Patch Changes

  • #7314 a30c805 Thanks @Ankcorn! - Fix observability.logs.enabled validation

  • #7285 fa21312 Thanks @penalosa! - Rename directory to projectRoot and ensure it's relative to the wrangler.toml. This fixes a regression which meant that .wrangler temporary folders were inadvertently generated relative to process.cwd() rather than the location of the wrangler.toml file. It also renames directory to projectRoot, which affects the `unstable_startWorker() interface.

  • Updated dependencies [563439b]:

2024-11-19

3.88.0

Minor Changes

  • #7173 b6cbfbd Thanks @Ankcorn! - Adds [observability.logs] settings to wrangler. This setting lets developers control the settings for logs as an independent dataset enabling more dataset types in the future. The most specific setting will win if any of the datasets are not enabled.

    It also adds the following setting to the logs config

    • invocation_logs - set to false to disable invocation logs. Defaults to true.
    [observability.logs]
    enabled = true
    invocation_logs = false
    
  • #7207 edec415 Thanks @jonesphillip! - Added r2 bucket lifecycle command to Wrangler including list, add, remove, set

Patch Changes

2024-11-14

3.87.0

Minor Changes

  • #7201 beed72e Thanks @GregBrimble! - feat: Tail Consumers are now supported for Workers with assets.

    You can now configure tail_consumers in conjunction with assets in your wrangler.toml file. Read more about Static Assets and Tail Consumers in the documentation.

  • #7212 837f2f5 Thanks @jonesphillip! - Added r2 bucket info command to Wrangler. Improved formatting of r2 bucket list output

Patch Changes

2024-11-11

3.86.1

Patch Changes

  • #7069 b499b74 Thanks @penalosa! - Internal refactor to remove the non --x-dev-env flow from wrangler dev

2024-11-08

3.86.0

Minor Changes

  • #7154 ef7c0b3 Thanks @jonesphillip! - Added the ability to enable, disable, and get r2.dev public access URLs for R2 buckets.

Patch Changes