Wrangler
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 exportsIn 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 rootnode_modules
directory.#7355
5928e8c
Thanks @emily-shen! - feat: addexperimental_serve_directly
option to Workers with AssetsUsers 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
#7326
24c752e
Thanks @OilyLime! - Print wrangler.toml snippet when creating new Hyperdrive Config#7272
a3f56d1
Thanks @penalosa! - Make debug log for.env
not found less scary#7377
6ecc74e
Thanks @edmundhung! - Thex-provision
experimental flag now skips validation of KV, R2, and D1 IDs in the configuration file.#7348
4cd8b46
Thanks @edmundhung! - Addedx-provision
global optionThis experimental flag currently has no effect. More details will be shared as we roll out its functionality.
#7381
22a4055
Thanks @penalosa! - Turn on--x-registry
for Pages by default#7360
98d2725
Thanks @emily-shen! - fix: allow runningwrangler types
when expected entrypoint doesn't existUpdated dependencies [
ac87395
,6b21919
,b3d2e7d
]:- miniflare@3.20241106.2
- @cloudflare/workers-shared@0.9.1
Minor Changes
#7230
6fe9533
Thanks @penalosa! - Turn onwrangler.json(c)
support by defaultWrangler 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 isJSON
rather thanTOML
. 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! - Addpreview_urls
toggle towrangler.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 onworkers.dev
, and the newpreviews_enabled
field of the enable-subdomain API will allow that. This change separates theworkers_dev
andpreview_urls
behavior duringwrangler triggers deploy
andwrangler versions upload
.preview_urls
defaults to true, and does not implicitly depend on routes the wayworkers_dev
does.#7308
1b1d01a
Thanks @gpanders! - Add a default image for cloudchamber create and modify commands#7232
7da76de
Thanks @toddmantell! - feat: implement queues info commandThis 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
#7319
5a2c93d
Thanks @vicb! - chore(wrangler): update unenv dependency versionPulls in the implementation of module.findSourceMap
Updated dependencies [
0d314ed
,476e5df
]:- @cloudflare/workers-shared@0.9.0
- miniflare@3.20241106.1
Minor Changes
Patch Changes
- Updated dependencies [
6ba5903
]:- @cloudflare/workers-shared@0.8.0
- miniflare@3.20241106.1
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! - Renamedirectory
toprojectRoot
and ensure it's relative to thewrangler.toml
. This fixes a regression which meant that.wrangler
temporary folders were inadvertently generated relative toprocess.cwd()
rather than the location of thewrangler.toml
file. It also renamesdirectory
toprojectRoot
, which affects the `unstable_startWorker() interface.Updated dependencies [
563439b
]:
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
#7243
941d411
Thanks @penalosa! - Include Version Preview URL in Wrangler's output file#7038
e2e6912
Thanks @petebacondarwin! - fix: only show fetch warning if on old compatibility_dateNow that we have the
allow_custom_ports
compatibility flag, we only need to show the fetch warnings when that flag is not enabled.#7216
09e6e90
Thanks @vicb! - chore(wrangler): update unenv dependency version#7081
b4a0e74
Thanks @penalosa! - Default the file based registry (--x-registry
) to on. This should improve stability of multi-worker developmentUpdated dependencies []:
Minor Changes
#7201
beed72e
Thanks @GregBrimble! - feat: Tail Consumers are now supported for Workers with assets.You can now configure
tail_consumers
in conjunction withassets
in yourwrangler.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
#7210
c12c0fe
Thanks @taylorlee! - Avoid an unnecessary GET request duringwrangler deploy
.#7197
4814455
Thanks @michelheusschen! - fix console output forwrangler d1 migrations create
#6795
94f07ee
Thanks @benmccann! - chore: upgrade chokidar to v4#7133
c46e02d
Thanks @gpanders! - Do not emit escape sequences when stdout is not a TTY
Minor Changes
- #7154
ef7c0b3
Thanks @jonesphillip! - Added the ability to enable, disable, and get r2.dev public access URLs for R2 buckets.
Patch Changes
#7169
9098a3b
Thanks @penalosa! - Ensureworkerd
processes are cleaned up after address-in-use errors#7172
3dce388
Thanks @penalosa! - Clarify dev registry messaging around locally connected services. The connection status of local service bindings & durable object bindings is now indicated byconnected
ornot connected
next to their entry in the bindings summary. For more details, refer to https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/#local-development#7193
ad51d1d
Thanks @sdnts! - Output suggested wrangler.toml changes after creating an R2 bucket#7191
1d5bc6d
Thanks @sdnts! - Output suggested wrangler.toml changes after creating a QueueUpdated dependencies [
1db7846
,08c6580
]:- miniflare@3.20241106.0
- @cloudflare/workers-shared@0.7.1