From 03c9de10ffb4315d7d4736e065859ac238e1f605 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 16 Jan 2025 09:41:08 +0000 Subject: [PATCH] Version Packages --- .changeset/chilly-kings-retire.md | 9 --- .changeset/cuddly-pets-smell.md | 5 -- .changeset/fifty-flies-visit.md | 5 -- .changeset/honest-spies-prove.md | 5 -- .changeset/lovely-years-wash.md | 5 -- .changeset/odd-news-invent.md | 5 -- .changeset/proud-forks-build.md | 36 --------- .changeset/smart-lions-suffer.md | 7 -- .changeset/tough-walls-poke.md | 5 -- .changeset/unlucky-timers-sort.md | 46 ----------- packages/create-cloudflare/CHANGELOG.md | 10 +++ packages/create-cloudflare/package.json | 2 +- packages/vitest-pool-workers/CHANGELOG.md | 8 ++ packages/vitest-pool-workers/package.json | 2 +- packages/workers-playground/CHANGELOG.md | 6 ++ packages/workers-playground/package.json | 2 +- packages/workers-shared/CHANGELOG.md | 10 +++ packages/workers-shared/package.json | 2 +- packages/wrangler/CHANGELOG.md | 95 +++++++++++++++++++++++ packages/wrangler/package.json | 2 +- 20 files changed, 134 insertions(+), 133 deletions(-) delete mode 100644 .changeset/chilly-kings-retire.md delete mode 100644 .changeset/cuddly-pets-smell.md delete mode 100644 .changeset/fifty-flies-visit.md delete mode 100644 .changeset/honest-spies-prove.md delete mode 100644 .changeset/lovely-years-wash.md delete mode 100644 .changeset/odd-news-invent.md delete mode 100644 .changeset/proud-forks-build.md delete mode 100644 .changeset/smart-lions-suffer.md delete mode 100644 .changeset/tough-walls-poke.md delete mode 100644 .changeset/unlucky-timers-sort.md diff --git a/.changeset/chilly-kings-retire.md b/.changeset/chilly-kings-retire.md deleted file mode 100644 index 4bc17b51f8b5..000000000000 --- a/.changeset/chilly-kings-retire.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"create-cloudflare": patch ---- - -Fix regression in C3's `next` template - -[#7676](https://github.com/cloudflare/workers-sdk/pull/7676) switched C3 templates to default to `wrangler.json` instead of `wrangler.toml`. Unfortunately, this unintendedly broke the `next` template, which was still attempting to read `wrangler.toml` specifically. This commit fixes the regression. - -Fixes #7770 diff --git a/.changeset/cuddly-pets-smell.md b/.changeset/cuddly-pets-smell.md deleted file mode 100644 index 8bda78a3863c..000000000000 --- a/.changeset/cuddly-pets-smell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -chore(wrangler): use the unenv preset from `@cloudflare/unenv-preset` diff --git a/.changeset/fifty-flies-visit.md b/.changeset/fifty-flies-visit.md deleted file mode 100644 index 227797d78e23..000000000000 --- a/.changeset/fifty-flies-visit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -chore: update unenv dependency version diff --git a/.changeset/honest-spies-prove.md b/.changeset/honest-spies-prove.md deleted file mode 100644 index 6020acffae53..000000000000 --- a/.changeset/honest-spies-prove.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Unwrap the error cause when available to send to Sentry diff --git a/.changeset/lovely-years-wash.md b/.changeset/lovely-years-wash.md deleted file mode 100644 index 72a58e70a6b1..000000000000 --- a/.changeset/lovely-years-wash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cloudflare/workers-shared": patch ---- - -fix: on a 404 from KV, we do not want the asset to stay in cache for the normal 1 year TTL. Instead we want to re-insert with a 60s TTL to revalidate and prevent a bad 404 from persisting. diff --git a/.changeset/odd-news-invent.md b/.changeset/odd-news-invent.md deleted file mode 100644 index c39c78468a28..000000000000 --- a/.changeset/odd-news-invent.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"workers-playground": patch ---- - -fix: sends raw request method through the X-CF-HTTP-Method header diff --git a/.changeset/proud-forks-build.md b/.changeset/proud-forks-build.md deleted file mode 100644 index 7dc7ff27427f..000000000000 --- a/.changeset/proud-forks-build.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -"wrangler": patch ---- - -fix: widen multi-env `vars` types in `wrangler types` - -Currently, the type generated for `vars` is a string literal consisting of the value of the variable in the top level environment. If multiple environments -are specified this wrongly restricts the type, since the variable could contain any of the values from each of the environments. - -For example, given a `wrangler.toml` containing the following: - -``` -[vars] -MY_VAR = "dev value" - -[env.production.vars] -MY_VAR = "prod value" -``` - -running `wrangler types` would generate: - -```ts -interface Env { - MY_VAR: "dev value"; -} -``` - -making typescript incorrectly assume that `MY_VAR` is always going to be `"dev value"` - -after these changes, the generated interface would instead be: - -```ts -interface Env { - MY_VAR: "dev value" | "prod value"; -} -``` diff --git a/.changeset/smart-lions-suffer.md b/.changeset/smart-lions-suffer.md deleted file mode 100644 index 0ec571265d06..000000000000 --- a/.changeset/smart-lions-suffer.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -feat: pull resource names for provisioning from config if provided - -Uses `database_name` and `bucket_name` for provisioning if specified. For R2, this only happens if there is not a bucket with that name already. Also respects R2 `jurisdiction` if provided. diff --git a/.changeset/tough-walls-poke.md b/.changeset/tough-walls-poke.md deleted file mode 100644 index 78faf9c1f60a..000000000000 --- a/.changeset/tough-walls-poke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cloudflare/workers-shared": minor ---- - -Adds jaeger tracing for asset-worker. diff --git a/.changeset/unlucky-timers-sort.md b/.changeset/unlucky-timers-sort.md deleted file mode 100644 index 8c89983ac378..000000000000 --- a/.changeset/unlucky-timers-sort.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -"wrangler": minor ---- - -add `--strict-vars` option to `wrangler types` - -add a new `--strict-vars` option to `wrangler types` that developers can (by setting the -flag to `false`) use to disable the default strict/literal types generation for their variables - -opting out of strict variables can be useful when developers change often their `vars` values, -even more so when multiple environments are involved - -## Example - -With a toml containing: - -```toml -[vars] -MY_VARIABLE = "production_value" -MY_NUMBERS = [1, 2, 3] - -[env.staging.vars] -MY_VARIABLE = "staging_value" -MY_NUMBERS = [7, 8, 9] -``` - -the `wrangler types` command would generate the following interface: - -``` -interface Env { - MY_VARIABLE: "production_value" | "staging_value"; - MY_NUMBERS: [1,2,3] | [7,8,9]; -} -``` - -while `wrangler types --strict-vars=false` would instead generate: - -``` -interface Env { - MY_VARIABLE: string; - MY_NUMBERS: number[]; -} -``` - -(allowing the developer to easily change their toml variables without the -risk of breaking typescript types) diff --git a/packages/create-cloudflare/CHANGELOG.md b/packages/create-cloudflare/CHANGELOG.md index 555c76090d2c..1c90d1be4e99 100644 --- a/packages/create-cloudflare/CHANGELOG.md +++ b/packages/create-cloudflare/CHANGELOG.md @@ -1,5 +1,15 @@ # create-cloudflare +## 2.37.1 + +### Patch Changes + +- [#7774](https://github.com/cloudflare/workers-sdk/pull/7774) [`f9344a0`](https://github.com/cloudflare/workers-sdk/commit/f9344a076de5904ac073a3bee33c582c53a2dadc) Thanks [@CarmenPopoviciu](https://github.com/CarmenPopoviciu)! - Fix regression in C3's `next` template + + [#7676](https://github.com/cloudflare/workers-sdk/pull/7676) switched C3 templates to default to `wrangler.json` instead of `wrangler.toml`. Unfortunately, this unintendedly broke the `next` template, which was still attempting to read `wrangler.toml` specifically. This commit fixes the regression. + + Fixes #7770 + ## 2.37.0 ### Minor Changes diff --git a/packages/create-cloudflare/package.json b/packages/create-cloudflare/package.json index e9a73c8db893..cc4114e4bd84 100644 --- a/packages/create-cloudflare/package.json +++ b/packages/create-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "create-cloudflare", - "version": "2.37.0", + "version": "2.37.1", "description": "A CLI for creating and deploying new applications to Cloudflare.", "keywords": [ "cloudflare", diff --git a/packages/vitest-pool-workers/CHANGELOG.md b/packages/vitest-pool-workers/CHANGELOG.md index 927f7b2934fc..916777636d7e 100644 --- a/packages/vitest-pool-workers/CHANGELOG.md +++ b/packages/vitest-pool-workers/CHANGELOG.md @@ -1,5 +1,13 @@ # @cloudflare/vitest-pool-workers +## 0.6.2 + +### Patch Changes + +- Updated dependencies [[`902e3af`](https://github.com/cloudflare/workers-sdk/commit/902e3af15d014fe37f5789ce4bb9c4be2aecb23a), [`19228e5`](https://github.com/cloudflare/workers-sdk/commit/19228e50f3bd7ed5d32f8132bd02abc9999585ea), [`e8aaa39`](https://github.com/cloudflare/workers-sdk/commit/e8aaa39307f44e974c3ab966e7880f50a5ff6bc9), [`8faf2c0`](https://github.com/cloudflare/workers-sdk/commit/8faf2c07415030a3c8d9e5fc0e122a59141b3786), [`dceb196`](https://github.com/cloudflare/workers-sdk/commit/dceb19608798c2080dc3aa6cfac6f499473f6fb1), [`8faf2c0`](https://github.com/cloudflare/workers-sdk/commit/8faf2c07415030a3c8d9e5fc0e122a59141b3786)]: + - wrangler@3.103.0 + - miniflare@3.20241230.2 + ## 0.6.1 ### Patch Changes diff --git a/packages/vitest-pool-workers/package.json b/packages/vitest-pool-workers/package.json index 8faeacfcafc8..ba6c58f0861f 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.6.1", + "version": "0.6.2", "description": "Workers Vitest integration for writing Vitest unit and integration tests that run inside the Workers runtime", "keywords": [ "cloudflare", diff --git a/packages/workers-playground/CHANGELOG.md b/packages/workers-playground/CHANGELOG.md index 5bb3b05df8dd..45cda7cbf6d2 100644 --- a/packages/workers-playground/CHANGELOG.md +++ b/packages/workers-playground/CHANGELOG.md @@ -1,5 +1,11 @@ # workers-playground +## 0.2.1 + +### Patch Changes + +- [#7639](https://github.com/cloudflare/workers-sdk/pull/7639) [`99f27df`](https://github.com/cloudflare/workers-sdk/commit/99f27df059c211428d4cf3cc07bb99c164d22369) Thanks [@edmundhung](https://github.com/edmundhung)! - fix: sends raw request method through the X-CF-HTTP-Method header + ## 0.2.0 ### Minor Changes diff --git a/packages/workers-playground/package.json b/packages/workers-playground/package.json index 6d4516afde0a..72feedcc194a 100644 --- a/packages/workers-playground/package.json +++ b/packages/workers-playground/package.json @@ -1,6 +1,6 @@ { "name": "workers-playground", - "version": "0.2.0", + "version": "0.2.1", "private": true, "type": "module", "scripts": { diff --git a/packages/workers-shared/CHANGELOG.md b/packages/workers-shared/CHANGELOG.md index adafa14eb562..638009f09f03 100644 --- a/packages/workers-shared/CHANGELOG.md +++ b/packages/workers-shared/CHANGELOG.md @@ -1,5 +1,15 @@ # @cloudflare/workers-shared +## 0.12.0 + +### Minor Changes + +- [#7761](https://github.com/cloudflare/workers-sdk/pull/7761) [`bb85c9a`](https://github.com/cloudflare/workers-sdk/commit/bb85c9ac10d23407085ff8cd479bd0469835c60f) Thanks [@WillTaylorDev](https://github.com/WillTaylorDev)! - Adds jaeger tracing for asset-worker. + +### Patch Changes + +- [#7768](https://github.com/cloudflare/workers-sdk/pull/7768) [`97603f0`](https://github.com/cloudflare/workers-sdk/commit/97603f031b30b8a289519ff48f2c2c39b1396656) Thanks [@WalshyDev](https://github.com/WalshyDev)! - fix: on a 404 from KV, we do not want the asset to stay in cache for the normal 1 year TTL. Instead we want to re-insert with a 60s TTL to revalidate and prevent a bad 404 from persisting. + ## 0.11.2 ### Patch Changes diff --git a/packages/workers-shared/package.json b/packages/workers-shared/package.json index aa0db5c3f7de..c64d69e05d5b 100644 --- a/packages/workers-shared/package.json +++ b/packages/workers-shared/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/workers-shared", - "version": "0.11.2", + "version": "0.12.0", "description": "Package that is used at Cloudflare to power some internal features of Cloudflare Workers.", "keywords": [ "cloudflare", diff --git a/packages/wrangler/CHANGELOG.md b/packages/wrangler/CHANGELOG.md index 7dae232dedc4..8cb8dcfad0e3 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,100 @@ # wrangler +## 3.103.0 + +### Minor Changes + +- [#5086](https://github.com/cloudflare/workers-sdk/pull/5086) [`8faf2c0`](https://github.com/cloudflare/workers-sdk/commit/8faf2c07415030a3c8d9e5fc0e122a59141b3786) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - add `--strict-vars` option to `wrangler types` + + add a new `--strict-vars` option to `wrangler types` that developers can (by setting the + flag to `false`) use to disable the default strict/literal types generation for their variables + + opting out of strict variables can be useful when developers change often their `vars` values, + even more so when multiple environments are involved + + ## Example + + With a toml containing: + + ```toml + [vars] + MY_VARIABLE = "production_value" + MY_NUMBERS = [1, 2, 3] + + [env.staging.vars] + MY_VARIABLE = "staging_value" + MY_NUMBERS = [7, 8, 9] + ``` + + the `wrangler types` command would generate the following interface: + + ``` + interface Env { + MY_VARIABLE: "production_value" | "staging_value"; + MY_NUMBERS: [1,2,3] | [7,8,9]; + } + ``` + + while `wrangler types --strict-vars=false` would instead generate: + + ``` + interface Env { + MY_VARIABLE: string; + MY_NUMBERS: number[]; + } + ``` + + (allowing the developer to easily change their toml variables without the + risk of breaking typescript types) + +### Patch Changes + +- [#7720](https://github.com/cloudflare/workers-sdk/pull/7720) [`902e3af`](https://github.com/cloudflare/workers-sdk/commit/902e3af15d014fe37f5789ce4bb9c4be2aecb23a) Thanks [@vicb](https://github.com/vicb)! - chore(wrangler): use the unenv preset from `@cloudflare/unenv-preset` + +- [#7760](https://github.com/cloudflare/workers-sdk/pull/7760) [`19228e5`](https://github.com/cloudflare/workers-sdk/commit/19228e50f3bd7ed5d32f8132bd02abc9999585ea) Thanks [@vicb](https://github.com/vicb)! - chore: update unenv dependency version + +- [#7735](https://github.com/cloudflare/workers-sdk/pull/7735) [`e8aaa39`](https://github.com/cloudflare/workers-sdk/commit/e8aaa39307f44e974c3ab966e7880f50a5ff6bc9) Thanks [@penalosa](https://github.com/penalosa)! - Unwrap the error cause when available to send to Sentry + +- [#5086](https://github.com/cloudflare/workers-sdk/pull/5086) [`8faf2c0`](https://github.com/cloudflare/workers-sdk/commit/8faf2c07415030a3c8d9e5fc0e122a59141b3786) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - fix: widen multi-env `vars` types in `wrangler types` + + Currently, the type generated for `vars` is a string literal consisting of the value of the variable in the top level environment. If multiple environments + are specified this wrongly restricts the type, since the variable could contain any of the values from each of the environments. + + For example, given a `wrangler.toml` containing the following: + + ``` + [vars] + MY_VAR = "dev value" + + [env.production.vars] + MY_VAR = "prod value" + ``` + + running `wrangler types` would generate: + + ```ts + interface Env { + MY_VAR: "dev value"; + } + ``` + + making typescript incorrectly assume that `MY_VAR` is always going to be `"dev value"` + + after these changes, the generated interface would instead be: + + ```ts + interface Env { + MY_VAR: "dev value" | "prod value"; + } + ``` + +- [#7733](https://github.com/cloudflare/workers-sdk/pull/7733) [`dceb196`](https://github.com/cloudflare/workers-sdk/commit/dceb19608798c2080dc3aa6cfac6f499473f6fb1) Thanks [@emily-shen](https://github.com/emily-shen)! - feat: pull resource names for provisioning from config if provided + + Uses `database_name` and `bucket_name` for provisioning if specified. For R2, this only happens if there is not a bucket with that name already. Also respects R2 `jurisdiction` if provided. + +- Updated dependencies []: + - miniflare@3.20241230.2 + ## 3.102.0 ### Minor Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index b0ef1cddc753..46158090476d 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "3.102.0", + "version": "3.103.0", "description": "Command-line interface for all things Cloudflare Workers", "keywords": [ "wrangler",