From 73f598509fa0087b6ff577fe1471530bddd6c66a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 9 Jan 2025 19:02:37 +0000 Subject: [PATCH] Version Packages --- .changeset/bright-keys-march.md | 5 - .changeset/fuzzy-nails-invent.md | 5 - .changeset/green-dodos-push.md | 5 - .changeset/green-socks-trade.md | 5 - .changeset/healthy-bags-cry.md | 5 - .changeset/hungry-llamas-repair.md | 5 - .changeset/nervous-scissors-suffer.md | 7 - .changeset/odd-ducks-attack.md | 5 - .changeset/polite-goats-behave.md | 5 - .changeset/proud-rules-try.md | 5 - .changeset/red-lamps-obey.md | 5 - .changeset/red-pillows-provide.md | 5 - .changeset/silver-plums-brake.md | 15 --- .changeset/thin-pots-camp.md | 84 ------------ .changeset/three-chefs-bathe.md | 5 - .changeset/twelve-fireants-hunt.md | 11 -- .changeset/young-icons-rescue.md | 5 - packages/chrome-devtools-patches/CHANGELOG.md | 6 + packages/chrome-devtools-patches/package.json | 2 +- packages/create-cloudflare/CHANGELOG.md | 6 + packages/create-cloudflare/package.json | 2 +- packages/miniflare/CHANGELOG.md | 10 ++ packages/miniflare/package.json | 2 +- packages/pages-shared/CHANGELOG.md | 15 +++ packages/pages-shared/package.json | 2 +- packages/unenv-preset/CHANGELOG.md | 9 ++ packages/unenv-preset/package.json | 2 +- packages/vitest-pool-workers/CHANGELOG.md | 12 ++ packages/vitest-pool-workers/package.json | 2 +- packages/wrangler/CHANGELOG.md | 122 ++++++++++++++++++ packages/wrangler/package.json | 2 +- 31 files changed, 187 insertions(+), 189 deletions(-) delete mode 100644 .changeset/bright-keys-march.md delete mode 100644 .changeset/fuzzy-nails-invent.md delete mode 100644 .changeset/green-dodos-push.md delete mode 100644 .changeset/green-socks-trade.md delete mode 100644 .changeset/healthy-bags-cry.md delete mode 100644 .changeset/hungry-llamas-repair.md delete mode 100644 .changeset/nervous-scissors-suffer.md delete mode 100644 .changeset/odd-ducks-attack.md delete mode 100644 .changeset/polite-goats-behave.md delete mode 100644 .changeset/proud-rules-try.md delete mode 100644 .changeset/red-lamps-obey.md delete mode 100644 .changeset/red-pillows-provide.md delete mode 100644 .changeset/silver-plums-brake.md delete mode 100644 .changeset/thin-pots-camp.md delete mode 100644 .changeset/three-chefs-bathe.md delete mode 100644 .changeset/twelve-fireants-hunt.md delete mode 100644 .changeset/young-icons-rescue.md create mode 100644 packages/unenv-preset/CHANGELOG.md diff --git a/.changeset/bright-keys-march.md b/.changeset/bright-keys-march.md deleted file mode 100644 index e1ab85956cd3..000000000000 --- a/.changeset/bright-keys-march.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -chore: removes --experimental-versions flag, as versions is now GA. diff --git a/.changeset/fuzzy-nails-invent.md b/.changeset/fuzzy-nails-invent.md deleted file mode 100644 index e21d23648c10..000000000000 --- a/.changeset/fuzzy-nails-invent.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cloudflare/pages-shared": minor ---- - -feat: Return a 304 Not Modified response when matching an asset preservation cache request if appropriate diff --git a/.changeset/green-dodos-push.md b/.changeset/green-dodos-push.md deleted file mode 100644 index 00f14ab3b2a2..000000000000 --- a/.changeset/green-dodos-push.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"miniflare": patch ---- - -Fix D1 exports to properly pad HEX strings for binary values. diff --git a/.changeset/green-socks-trade.md b/.changeset/green-socks-trade.md deleted file mode 100644 index 56a625bfceb4..000000000000 --- a/.changeset/green-socks-trade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cloudflare/pages-shared": patch ---- - -chore: Remove now-unused asset preservation cache (v1) diff --git a/.changeset/healthy-bags-cry.md b/.changeset/healthy-bags-cry.md deleted file mode 100644 index 7a4dc6d710d0..000000000000 --- a/.changeset/healthy-bags-cry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": minor ---- - -chore: remove nodejs_compat flag from basic C3 templates diff --git a/.changeset/hungry-llamas-repair.md b/.changeset/hungry-llamas-repair.md deleted file mode 100644 index d726a47e5e57..000000000000 --- a/.changeset/hungry-llamas-repair.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -include the top level Worker name in the parsed config structure diff --git a/.changeset/nervous-scissors-suffer.md b/.changeset/nervous-scissors-suffer.md deleted file mode 100644 index 6da7fc0e0910..000000000000 --- a/.changeset/nervous-scissors-suffer.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cloudflare/unenv-preset": minor ---- - -chore(unenv-preset): drop unused .cjs files - -Only .mjs files are used. diff --git a/.changeset/odd-ducks-attack.md b/.changeset/odd-ducks-attack.md deleted file mode 100644 index 2542e6b1d8f2..000000000000 --- a/.changeset/odd-ducks-attack.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -feat: Use OAuth flow to generate R2 tokens for Pipelines diff --git a/.changeset/polite-goats-behave.md b/.changeset/polite-goats-behave.md deleted file mode 100644 index 330b226c1edf..000000000000 --- a/.changeset/polite-goats-behave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cloudflare/vitest-pool-workers": minor ---- - -chore: add nodejs_compat by default in Vitest Pool Workers diff --git a/.changeset/proud-rules-try.md b/.changeset/proud-rules-try.md deleted file mode 100644 index a3bdede4a6bb..000000000000 --- a/.changeset/proud-rules-try.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cloudflare/pages-shared": patch ---- - -fix: Store an empty result when Early Hints parsing returns nothing or errors. Previously, we weren't storing anything which resulted in Early Hints being parsed on every request. diff --git a/.changeset/red-lamps-obey.md b/.changeset/red-lamps-obey.md deleted file mode 100644 index 93c477bcab5c..000000000000 --- a/.changeset/red-lamps-obey.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"miniflare": minor ---- - -Support the `CF-Connecting-IP` header, which will be available in your Worker to determine the IP address of the client that initiated a request. diff --git a/.changeset/red-pillows-provide.md b/.changeset/red-pillows-provide.md deleted file mode 100644 index 78589c191409..000000000000 --- a/.changeset/red-pillows-provide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cloudflare/chrome-devtools-patches": patch ---- - -chore: rebases patches on latest devtools head diff --git a/.changeset/silver-plums-brake.md b/.changeset/silver-plums-brake.md deleted file mode 100644 index 97a3194ba3d1..000000000000 --- a/.changeset/silver-plums-brake.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"wrangler": minor ---- - -Add support for env files to wrangler secret bulk i.e. `.dev.vars` - -Run `wrangler secret bulk .dev.vars` to add the env file - -```env -//.dev.vars -KEY=VALUE -KEY_2=VALUE -``` - -This will upload the secrets KEY and KEY_2 to your worker diff --git a/.changeset/thin-pots-camp.md b/.changeset/thin-pots-camp.md deleted file mode 100644 index e578c1d1ca85..000000000000 --- a/.changeset/thin-pots-camp.md +++ /dev/null @@ -1,84 +0,0 @@ ---- -"wrangler": minor ---- - -feat: add support for redirecting Wrangler to a generated config when running deploy-related commands - -This new feature is designed for build tools and frameworks to provide a deploy-specific configuration, -which Wrangler can use instead of user configuration when running deploy-related commands. -It is not expected that developers of Workers will need to use this feature directly. - -### Affected commands - -The commands that use this feature are: - -- `wrangler deploy` -- `wrangler dev` -- `wrangler versions upload` -- `wrangler versions deploy` -- `wrangler pages deploy` -- `wrangler pages build` -- `wrangler pages build-env` - -### Config redirect file - -When running these commands, Wrangler will look up the directory tree from the current working directory for a file at the path `.wrangler/deploy/config.json`. This file must contain only a single JSON object of the form: - -```json -{ "configPath": "../../path/to/wrangler.json" } -``` - -When this file exists Wrangler will follow the `configPath` (relative to the `.wrangler/deploy/config.json` file) to find an alternative Wrangler configuration file to load and use as part of this command. - -When this happens Wrangler will display a warning to the user to indicate that the configuration has been redirected to a different file than the user's configuration file. - -### Custom build tool example - -A common approach that a build tool might choose to implement. - -- The user writes code that uses Cloudflare Workers resources, configured via a user `wrangler.toml` file. - - ```toml - name = "my-worker" - main = "src/index.ts" - [[kv_namespaces]] - binding = "" - id = "" - ``` - - Note that this configuration points `main` at user code entry-point. - -- The user runs a custom build, which might read the `wrangler.toml` to find the entry-point: - - ```bash - > my-tool build - ``` - -- This tool generates a `dist` directory that contains both compiled code and a new deployment configuration file, but also a `.wrangler/deploy/config.json` file that redirects Wrangler to this new deployment configuration file: - - ```plain - - dist - - index.js - - wrangler.json - - .wrangler - - deploy - - config.json - ``` - - The `dist/wrangler.json` will contain: - - ```json - { - "name": "my-worker", - "main": "./index.js", - "kv_namespaces": [{ "binding": "", "id": "" }] - } - ``` - - And the `.wrangler/deploy/config.json` will contain: - - ```json - { - "configPath": "../../dist/wrangler.json" - } - ``` diff --git a/.changeset/three-chefs-bathe.md b/.changeset/three-chefs-bathe.md deleted file mode 100644 index 2c816c7df720..000000000000 --- a/.changeset/three-chefs-bathe.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Remove defaults for `batch-max-*` pipeline parameters and define value ranges diff --git a/.changeset/twelve-fireants-hunt.md b/.changeset/twelve-fireants-hunt.md deleted file mode 100644 index 164aa3504679..000000000000 --- a/.changeset/twelve-fireants-hunt.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"wrangler": patch ---- - -allow overriding the unenv preset. - -By default wrangler uses the bundled unenv preset. - -Setting `WRANGLER_UNENV_RESOLVE_PATHS` allow to use another version of the preset. -Those paths are used when resolving the unenv module identifiers to absolute paths. -This can be used to test a development version. diff --git a/.changeset/young-icons-rescue.md b/.changeset/young-icons-rescue.md deleted file mode 100644 index a1e3851c1bdf..000000000000 --- a/.changeset/young-icons-rescue.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": minor ---- - -Default wrangler d1 export to --local rather than failing diff --git a/packages/chrome-devtools-patches/CHANGELOG.md b/packages/chrome-devtools-patches/CHANGELOG.md index d33ad294c1dc..60a92e8711d4 100644 --- a/packages/chrome-devtools-patches/CHANGELOG.md +++ b/packages/chrome-devtools-patches/CHANGELOG.md @@ -1,5 +1,11 @@ # @cloudflare/chrome-devtools-patches +## 0.1.2 + +### Patch Changes + +- [#7693](https://github.com/cloudflare/workers-sdk/pull/7693) [`65a3e35`](https://github.com/cloudflare/workers-sdk/commit/65a3e3590aff2f287c669172856512d6b29bd37f) Thanks [@emily-shen](https://github.com/emily-shen)! - chore: rebases patches on latest devtools head + ## 0.1.1 ### Patch Changes diff --git a/packages/chrome-devtools-patches/package.json b/packages/chrome-devtools-patches/package.json index a85e6f9ab40e..45a80545c675 100644 --- a/packages/chrome-devtools-patches/package.json +++ b/packages/chrome-devtools-patches/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/chrome-devtools-patches", - "version": "0.1.1", + "version": "0.1.2", "private": true, "description": "Chrome Devtools hosted for easy use with Workers tooling and applications (Wrangler, Playground, Quick Editor).", "homepage": "https://github.com/cloudflare/workers-sdk#readme", diff --git a/packages/create-cloudflare/CHANGELOG.md b/packages/create-cloudflare/CHANGELOG.md index 49cded8219be..131fdb3c46d9 100644 --- a/packages/create-cloudflare/CHANGELOG.md +++ b/packages/create-cloudflare/CHANGELOG.md @@ -1,5 +1,11 @@ # create-cloudflare +## 2.36.0 + +### Minor Changes + +- [#7388](https://github.com/cloudflare/workers-sdk/pull/7388) [`78c1649`](https://github.com/cloudflare/workers-sdk/commit/78c1649a1e072d5db101c8939890a98c4533b4c0) Thanks [@andyjessop](https://github.com/andyjessop)! - chore: remove nodejs_compat flag from basic C3 templates + ## 2.35.2 ### Patch Changes diff --git a/packages/create-cloudflare/package.json b/packages/create-cloudflare/package.json index b1140391bf73..0bed085f0bf0 100644 --- a/packages/create-cloudflare/package.json +++ b/packages/create-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "create-cloudflare", - "version": "2.35.2", + "version": "2.36.0", "description": "A CLI for creating and deploying new applications to Cloudflare.", "keywords": [ "cloudflare", diff --git a/packages/miniflare/CHANGELOG.md b/packages/miniflare/CHANGELOG.md index 3b263ebc1291..b0caa418adb2 100644 --- a/packages/miniflare/CHANGELOG.md +++ b/packages/miniflare/CHANGELOG.md @@ -1,5 +1,15 @@ # miniflare +## 3.20241230.1 + +### Minor Changes + +- [#7702](https://github.com/cloudflare/workers-sdk/pull/7702) [`78bdec5`](https://github.com/cloudflare/workers-sdk/commit/78bdec59ce880365b0318eb94d4176b53e950f66) Thanks [@penalosa](https://github.com/penalosa)! - Support the `CF-Connecting-IP` header, which will be available in your Worker to determine the IP address of the client that initiated a request. + +### Patch Changes + +- [#7701](https://github.com/cloudflare/workers-sdk/pull/7701) [`2c76887`](https://github.com/cloudflare/workers-sdk/commit/2c7688737346992d046d2f88eba5c9847ede1365) Thanks [@lambrospetrou](https://github.com/lambrospetrou)! - Fix D1 exports to properly pad HEX strings for binary values. + ## 3.20241230.0 ### Patch Changes diff --git a/packages/miniflare/package.json b/packages/miniflare/package.json index fe21557f1bed..fe55365f12b7 100644 --- a/packages/miniflare/package.json +++ b/packages/miniflare/package.json @@ -1,6 +1,6 @@ { "name": "miniflare", - "version": "3.20241230.0", + "version": "3.20241230.1", "description": "Fun, full-featured, fully-local simulator for Cloudflare Workers", "keywords": [ "cloudflare", diff --git a/packages/pages-shared/CHANGELOG.md b/packages/pages-shared/CHANGELOG.md index f624c212d5e1..bf39723dc5df 100644 --- a/packages/pages-shared/CHANGELOG.md +++ b/packages/pages-shared/CHANGELOG.md @@ -1,5 +1,20 @@ # @cloudflare/pages-shared +## 0.13.0 + +### Minor Changes + +- [#7561](https://github.com/cloudflare/workers-sdk/pull/7561) [`8b48ca6`](https://github.com/cloudflare/workers-sdk/commit/8b48ca6f18160d350cdde7f21a2a9fbb6add45d5) Thanks [@GregBrimble](https://github.com/GregBrimble)! - feat: Return a 304 Not Modified response when matching an asset preservation cache request if appropriate + +### Patch Changes + +- [#7561](https://github.com/cloudflare/workers-sdk/pull/7561) [`8b48ca6`](https://github.com/cloudflare/workers-sdk/commit/8b48ca6f18160d350cdde7f21a2a9fbb6add45d5) Thanks [@GregBrimble](https://github.com/GregBrimble)! - chore: Remove now-unused asset preservation cache (v1) + +- [#7561](https://github.com/cloudflare/workers-sdk/pull/7561) [`8b48ca6`](https://github.com/cloudflare/workers-sdk/commit/8b48ca6f18160d350cdde7f21a2a9fbb6add45d5) Thanks [@GregBrimble](https://github.com/GregBrimble)! - fix: Store an empty result when Early Hints parsing returns nothing or errors. Previously, we weren't storing anything which resulted in Early Hints being parsed on every request. + +- Updated dependencies [[`2c76887`](https://github.com/cloudflare/workers-sdk/commit/2c7688737346992d046d2f88eba5c9847ede1365), [`78bdec5`](https://github.com/cloudflare/workers-sdk/commit/78bdec59ce880365b0318eb94d4176b53e950f66)]: + - miniflare@3.20241230.1 + ## 0.12.1 ### Patch Changes diff --git a/packages/pages-shared/package.json b/packages/pages-shared/package.json index 9a75604198d4..0c48bee977ee 100644 --- a/packages/pages-shared/package.json +++ b/packages/pages-shared/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/pages-shared", - "version": "0.12.1", + "version": "0.13.0", "repository": { "type": "git", "url": "https://github.com/cloudflare/workers-sdk.git", diff --git a/packages/unenv-preset/CHANGELOG.md b/packages/unenv-preset/CHANGELOG.md new file mode 100644 index 000000000000..b4f76934c512 --- /dev/null +++ b/packages/unenv-preset/CHANGELOG.md @@ -0,0 +1,9 @@ +# @cloudflare/unenv-preset + +## 0.1.0 + +### Minor Changes + +- [#7697](https://github.com/cloudflare/workers-sdk/pull/7697) [`3e2bede`](https://github.com/cloudflare/workers-sdk/commit/3e2bedecee3dc856f334ccc7feb47d52c1fb05cc) Thanks [@vicb](https://github.com/vicb)! - chore(unenv-preset): drop unused .cjs files + + Only .mjs files are used. diff --git a/packages/unenv-preset/package.json b/packages/unenv-preset/package.json index f24e69ce7f5a..5c5550ec3d1b 100644 --- a/packages/unenv-preset/package.json +++ b/packages/unenv-preset/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/unenv-preset", - "version": "0.0.1", + "version": "0.1.0", "description": "cloudflare preset for unenv", "keywords": [ "cloudflare", diff --git a/packages/vitest-pool-workers/CHANGELOG.md b/packages/vitest-pool-workers/CHANGELOG.md index f04ae7fb8292..eff233d1ade1 100644 --- a/packages/vitest-pool-workers/CHANGELOG.md +++ b/packages/vitest-pool-workers/CHANGELOG.md @@ -1,5 +1,17 @@ # @cloudflare/vitest-pool-workers +## 0.6.0 + +### Minor Changes + +- [#7388](https://github.com/cloudflare/workers-sdk/pull/7388) [`78c1649`](https://github.com/cloudflare/workers-sdk/commit/78c1649a1e072d5db101c8939890a98c4533b4c0) Thanks [@andyjessop](https://github.com/andyjessop)! - chore: add nodejs_compat by default in Vitest Pool Workers + +### Patch Changes + +- Updated dependencies [[`ff4e77e`](https://github.com/cloudflare/workers-sdk/commit/ff4e77e5ad7f9e259c5ff443284f3bf07c80cb0e), [`2c76887`](https://github.com/cloudflare/workers-sdk/commit/2c7688737346992d046d2f88eba5c9847ede1365), [`e771fe9`](https://github.com/cloudflare/workers-sdk/commit/e771fe9909bafa7249cb694d5dd1a23af8bd807e), [`7c8ae1c`](https://github.com/cloudflare/workers-sdk/commit/7c8ae1c7bcfe4c55dc530a1c86520dbb8dd5fb26), [`78bdec5`](https://github.com/cloudflare/workers-sdk/commit/78bdec59ce880365b0318eb94d4176b53e950f66), [`45d1d1e`](https://github.com/cloudflare/workers-sdk/commit/45d1d1edd640f1dc9e2709c68256981a5de26680), [`e4716cc`](https://github.com/cloudflare/workers-sdk/commit/e4716cc87893a0633bd2d00543b351e83e228970), [`773bda8`](https://github.com/cloudflare/workers-sdk/commit/773bda8b38d43102c2a66126df92d3bbc7e80861), [`9d2740a`](https://github.com/cloudflare/workers-sdk/commit/9d2740aa582c76040baf8aded1ac73d8bb2edeeb), [`f3c2f69`](https://github.com/cloudflare/workers-sdk/commit/f3c2f69b30fe8549a06b8f7d8853fc9a6100803a)]: + - wrangler@3.101.0 + - miniflare@3.20241230.1 + ## 0.5.41 ### Patch Changes diff --git a/packages/vitest-pool-workers/package.json b/packages/vitest-pool-workers/package.json index 987884f3d8d5..369db4eeff51 100644 --- a/packages/vitest-pool-workers/package.json +++ b/packages/vitest-pool-workers/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/vitest-pool-workers", - "version": "0.5.41", + "version": "0.6.0", "description": "Workers Vitest integration for writing Vitest unit and integration tests that run inside the Workers runtime", "keywords": [ "cloudflare", diff --git a/packages/wrangler/CHANGELOG.md b/packages/wrangler/CHANGELOG.md index c243026c5fb2..eaa0bf30ba7d 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,127 @@ # wrangler +## 3.101.0 + +### Minor Changes + +- [#7674](https://github.com/cloudflare/workers-sdk/pull/7674) [`45d1d1e`](https://github.com/cloudflare/workers-sdk/commit/45d1d1edd640f1dc9e2709c68256981a5de26680) Thanks [@Ankcorn](https://github.com/Ankcorn)! - Add support for env files to wrangler secret bulk i.e. `.dev.vars` + + Run `wrangler secret bulk .dev.vars` to add the env file + + ```env + //.dev.vars + KEY=VALUE + KEY_2=VALUE + ``` + + This will upload the secrets KEY and KEY_2 to your worker + +- [#7442](https://github.com/cloudflare/workers-sdk/pull/7442) [`e4716cc`](https://github.com/cloudflare/workers-sdk/commit/e4716cc87893a0633bd2d00543b351e83e228970) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - feat: add support for redirecting Wrangler to a generated config when running deploy-related commands + + This new feature is designed for build tools and frameworks to provide a deploy-specific configuration, + which Wrangler can use instead of user configuration when running deploy-related commands. + It is not expected that developers of Workers will need to use this feature directly. + + ### Affected commands + + The commands that use this feature are: + + - `wrangler deploy` + - `wrangler dev` + - `wrangler versions upload` + - `wrangler versions deploy` + - `wrangler pages deploy` + - `wrangler pages build` + - `wrangler pages build-env` + + ### Config redirect file + + When running these commands, Wrangler will look up the directory tree from the current working directory for a file at the path `.wrangler/deploy/config.json`. This file must contain only a single JSON object of the form: + + ```json + { "configPath": "../../path/to/wrangler.json" } + ``` + + When this file exists Wrangler will follow the `configPath` (relative to the `.wrangler/deploy/config.json` file) to find an alternative Wrangler configuration file to load and use as part of this command. + + When this happens Wrangler will display a warning to the user to indicate that the configuration has been redirected to a different file than the user's configuration file. + + ### Custom build tool example + + A common approach that a build tool might choose to implement. + + - The user writes code that uses Cloudflare Workers resources, configured via a user `wrangler.toml` file. + + ```toml + name = "my-worker" + main = "src/index.ts" + [[kv_namespaces]] + binding = "" + id = "" + ``` + + Note that this configuration points `main` at user code entry-point. + + - The user runs a custom build, which might read the `wrangler.toml` to find the entry-point: + + ```bash + > my-tool build + ``` + + - This tool generates a `dist` directory that contains both compiled code and a new deployment configuration file, but also a `.wrangler/deploy/config.json` file that redirects Wrangler to this new deployment configuration file: + + ```plain + - dist + - index.js + - wrangler.json + - .wrangler + - deploy + - config.json + ``` + + The `dist/wrangler.json` will contain: + + ```json + { + "name": "my-worker", + "main": "./index.js", + "kv_namespaces": [ + { "binding": "", "id": "" } + ] + } + ``` + + And the `.wrangler/deploy/config.json` will contain: + + ```json + { + "configPath": "../../dist/wrangler.json" + } + ``` + +- [#7694](https://github.com/cloudflare/workers-sdk/pull/7694) [`f3c2f69`](https://github.com/cloudflare/workers-sdk/commit/f3c2f69b30fe8549a06b8f7d8853fc9a6100803a) Thanks [@joshthoward](https://github.com/joshthoward)! - Default wrangler d1 export to --local rather than failing + +### Patch Changes + +- [#7456](https://github.com/cloudflare/workers-sdk/pull/7456) [`ff4e77e`](https://github.com/cloudflare/workers-sdk/commit/ff4e77e5ad7f9e259c5ff443284f3bf07c80cb0e) Thanks [@andyjessop](https://github.com/andyjessop)! - chore: removes --experimental-versions flag, as versions is now GA. + +- [#7703](https://github.com/cloudflare/workers-sdk/pull/7703) [`e771fe9`](https://github.com/cloudflare/workers-sdk/commit/e771fe9909bafa7249cb694d5dd1a23af8bd807e) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - include the top level Worker name in the parsed config structure + +- [#7534](https://github.com/cloudflare/workers-sdk/pull/7534) [`7c8ae1c`](https://github.com/cloudflare/workers-sdk/commit/7c8ae1c7bcfe4c55dc530a1c86520dbb8dd5fb26) Thanks [@cmackenzie1](https://github.com/cmackenzie1)! - feat: Use OAuth flow to generate R2 tokens for Pipelines + +- [#7576](https://github.com/cloudflare/workers-sdk/pull/7576) [`773bda8`](https://github.com/cloudflare/workers-sdk/commit/773bda8b38d43102c2a66126df92d3bbc7e80861) Thanks [@cmackenzie1](https://github.com/cmackenzie1)! - Remove defaults for `batch-max-*` pipeline parameters and define value ranges + +- [#7685](https://github.com/cloudflare/workers-sdk/pull/7685) [`9d2740a`](https://github.com/cloudflare/workers-sdk/commit/9d2740aa582c76040baf8aded1ac73d8bb2edeeb) Thanks [@vicb](https://github.com/vicb)! - allow overriding the unenv preset. + + By default wrangler uses the bundled unenv preset. + + Setting `WRANGLER_UNENV_RESOLVE_PATHS` allow to use another version of the preset. + Those paths are used when resolving the unenv module identifiers to absolute paths. + This can be used to test a development version. + +- Updated dependencies [[`2c76887`](https://github.com/cloudflare/workers-sdk/commit/2c7688737346992d046d2f88eba5c9847ede1365), [`78bdec5`](https://github.com/cloudflare/workers-sdk/commit/78bdec59ce880365b0318eb94d4176b53e950f66)]: + - miniflare@3.20241230.1 + ## 3.100.0 ### Minor Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index bb67de36c35c..bac0627f7318 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "3.100.0", + "version": "3.101.0", "description": "Command-line interface for all things Cloudflare Workers", "keywords": [ "wrangler",