From 67f4f12aae516ca01a5098e87bb149147873301b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 26 Jan 2024 12:56:31 +0000 Subject: [PATCH] Version Packages --- .changeset/c3-frameworks-update-4828.md | 5 --- .changeset/c3-frameworks-update-4836.md | 5 --- .changeset/c3-frameworks-update-4842.md | 5 --- .changeset/c3-frameworks-update-4843.md | 5 --- .changeset/fair-donuts-speak.md | 5 --- .changeset/five-wasps-raise.md | 5 --- .changeset/giant-kings-heal.md | 21 --------- .changeset/giant-sloths-check.md | 5 --- .changeset/selfish-starfishes-cry.md | 17 ------- .changeset/shy-clocks-know.md | 26 ----------- .changeset/strange-bikes-run.md | 20 --------- .changeset/tame-melons-boil.md | 11 ----- .changeset/tender-owls-wink.md | 7 --- .changeset/three-carpets-kick.md | 7 --- fixtures/dev-env/package.json | 2 +- packages/create-cloudflare/CHANGELOG.md | 60 +++++++++++++++++++++++++ packages/create-cloudflare/package.json | 2 +- packages/miniflare/CHANGELOG.md | 18 ++++++++ packages/miniflare/package.json | 2 +- packages/pages-shared/CHANGELOG.md | 7 +++ packages/pages-shared/package.json | 2 +- packages/wrangler/CHANGELOG.md | 43 ++++++++++++++++++ packages/wrangler/package.json | 2 +- pnpm-lock.yaml | 2 +- 24 files changed, 134 insertions(+), 150 deletions(-) delete mode 100644 .changeset/c3-frameworks-update-4828.md delete mode 100644 .changeset/c3-frameworks-update-4836.md delete mode 100644 .changeset/c3-frameworks-update-4842.md delete mode 100644 .changeset/c3-frameworks-update-4843.md delete mode 100644 .changeset/fair-donuts-speak.md delete mode 100644 .changeset/five-wasps-raise.md delete mode 100644 .changeset/giant-kings-heal.md delete mode 100644 .changeset/giant-sloths-check.md delete mode 100644 .changeset/selfish-starfishes-cry.md delete mode 100644 .changeset/shy-clocks-know.md delete mode 100644 .changeset/strange-bikes-run.md delete mode 100644 .changeset/tame-melons-boil.md delete mode 100644 .changeset/tender-owls-wink.md delete mode 100644 .changeset/three-carpets-kick.md diff --git a/.changeset/c3-frameworks-update-4828.md b/.changeset/c3-frameworks-update-4828.md deleted file mode 100644 index 92594c9f37bc..000000000000 --- a/.changeset/c3-frameworks-update-4828.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `gatsby` from `5.13.1` to `5.13.2` diff --git a/.changeset/c3-frameworks-update-4836.md b/.changeset/c3-frameworks-update-4836.md deleted file mode 100644 index 412818dfc748..000000000000 --- a/.changeset/c3-frameworks-update-4836.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `@angular/create` from `17.1.0` to `17.1.1` diff --git a/.changeset/c3-frameworks-update-4842.md b/.changeset/c3-frameworks-update-4842.md deleted file mode 100644 index f060728b4669..000000000000 --- a/.changeset/c3-frameworks-update-4842.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `create-qwik` from `1.4.0` to `1.4.1` diff --git a/.changeset/c3-frameworks-update-4843.md b/.changeset/c3-frameworks-update-4843.md deleted file mode 100644 index 6a1ce37a2ff9..000000000000 --- a/.changeset/c3-frameworks-update-4843.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `gatsby` from `5.13.2` to `5.13.3` diff --git a/.changeset/fair-donuts-speak.md b/.changeset/fair-donuts-speak.md deleted file mode 100644 index 7e853006739e..000000000000 --- a/.changeset/fair-donuts-speak.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -Fixed an issue where commands were sometimes formatted with un-needed escape characters (ex. 'pages:\dev') diff --git a/.changeset/five-wasps-raise.md b/.changeset/five-wasps-raise.md deleted file mode 100644 index 8ed9683f0621..000000000000 --- a/.changeset/five-wasps-raise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Fix a bug where the "Pre-existing Worker (from Dashboard)" option was hidden in the dialog but still selectable diff --git a/.changeset/giant-kings-heal.md b/.changeset/giant-kings-heal.md deleted file mode 100644 index 261826bdc79b..000000000000 --- a/.changeset/giant-kings-heal.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -"wrangler": patch ---- - -fix: ensure upstream_protocol is passed to the Worker - -In `wrangler dev` it is possible to set the `upstream_protocol`, -which is the protocol under which the User Worker believes it has been -requested, as recorded in the `request.url` that can be used for -forwarding on requests to the origin. - -Previously, it was not being passed to `wrangler dev` in local mode. -Instead it was always set to `http`. - -Note that setting `upstream_protocol` to `http` is not supported in -`wrangler dev` remote mode, which is the case since Wrangler v2.0. - -This setting now defaults to `https` in remote mode (since that is the only option), -and to the same as `local_protocol` in local mode. - -Fixes #4539 diff --git a/.changeset/giant-sloths-check.md b/.changeset/giant-sloths-check.md deleted file mode 100644 index a029c28a63f6..000000000000 --- a/.changeset/giant-sloths-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -update the solidStart logic to work with their latest (beta-2) implementation diff --git a/.changeset/selfish-starfishes-cry.md b/.changeset/selfish-starfishes-cry.md deleted file mode 100644 index c151f6eb56e6..000000000000 --- a/.changeset/selfish-starfishes-cry.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"miniflare": patch ---- - -fix: ensure that Origin header is rewritten as necessary - -The `wrangler dev` command puts the Worker under test behind a proxy server. -This proxy server should be transparent to the client and the Worker, which -means that the `Request` arriving at the Worker with the correct `url` property, -and `Host` and `Origin` headers. -Previously we fixed the `Host` header but missed the `Origin` header which is -only added to a request under certain circumstances, such as cross-origin requests. - -This change fixes the `Origin` header as well, so that it is rewritten, when it exists, -to use the `origin` of the `url` property. - -Fixes #4761 diff --git a/.changeset/shy-clocks-know.md b/.changeset/shy-clocks-know.md deleted file mode 100644 index 8e0deb24c58b..000000000000 --- a/.changeset/shy-clocks-know.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -"create-cloudflare": minor ---- - -Adds C3 support for external templates hosted in git repositories via the `--template ` option. - -The source may be specified as any of the following: - -- `user/repo` -- `git@github.com:user/repo` -- `https://github.com/user/repo` -- `user/repo/some-template` (subdirectories) -- `user/repo#canary` (branches) -- `user/repo#1234abcd` (commit hash) -- `bitbucket:user/repo` (BitBucket) -- `gitlab:user/repo` (GitLab) - -See the `degit` [docs](https://github.com/Rich-Harris/degit) for more details. - -At a minimum, templates must contain the following: - -- `package.json` -- `wrangler.toml` -- `src/` containing a worker script referenced from `wrangler.toml` - -See the [templates folder](https://github.com/cloudflare/workers-sdk/tree/main/templates) of this repo for more examples. diff --git a/.changeset/strange-bikes-run.md b/.changeset/strange-bikes-run.md deleted file mode 100644 index ebbdfd94df0c..000000000000 --- a/.changeset/strange-bikes-run.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -"create-cloudflare": patch ---- - -fix: correctly find the latest version of create-cloudflare - -When create-cloudflare starts up, it checks to see if the version being run -is the latest available on npm. - -Previously this check used `npm info` to look up the version. -But was prone to failing if that command returned additional unexpected output -such as warnings. - -Now we make a fetch request to the npm REST API directly for the latest version, -which does not have the problem of unexpected warnings. - -Since the same approach is used to compute the latest version of workerd, the -function to do this has been put into a helper. - -Fixes #4729 diff --git a/.changeset/tame-melons-boil.md b/.changeset/tame-melons-boil.md deleted file mode 100644 index 4d362fa4368a..000000000000 --- a/.changeset/tame-melons-boil.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"wrangler": minor ---- - -feature: adds support for configuring Sippy with Google Cloud Storage (GCS) provider. - -Sippy (https://developers.cloudflare.com/r2/data-migration/sippy/) now supports Google Cloud Storage. -This change updates the `wrangler r2 sippy` commands to take a provider (AWS or GCS) and appropriate configuration arguments. -If you don't specify `--provider` argument then the command will enter an interactive flow for the user to set the configuration. -Note that this is a breaking change from the previous behaviour where you could configure AWS as the provider without explictly specifying the `--provider` argument. -(This breaking change is allowed in a minor release because the Sippy feature and `wrangler r2 sippy` commands are marked as beta.) diff --git a/.changeset/tender-owls-wink.md b/.changeset/tender-owls-wink.md deleted file mode 100644 index a810d98ec5c4..000000000000 --- a/.changeset/tender-owls-wink.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -fix: Cloudchamber command shows json error message on load account if --json specified - -If the user specifies a json option, we should see a more detailed error on why `loadAccount` failed. diff --git a/.changeset/three-carpets-kick.md b/.changeset/three-carpets-kick.md deleted file mode 100644 index 1076cea2dea7..000000000000 --- a/.changeset/three-carpets-kick.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -fix: show up-to-date sources in DevTools when saving source files - -Previously, DevTools would never refresh source contents after opening a file, even if it was updated on-disk. This could cause issues with step-through debugging as breakpoints set in source files would map to incorrect locations in bundled Worker code. This change ensures DevTools' source cache is cleared on each reload, preventing outdated sources from being displayed. diff --git a/fixtures/dev-env/package.json b/fixtures/dev-env/package.json index fbf82384a0a6..2cf95197a8fe 100644 --- a/fixtures/dev-env/package.json +++ b/fixtures/dev-env/package.json @@ -16,7 +16,7 @@ "@types/ws": "^8.5.7", "@cloudflare/workers-tsconfig": "workspace:^", "get-port": "^7.0.0", - "miniflare": "3.20231218.3", + "miniflare": "3.20231218.4", "undici": "^5.28.2", "wrangler": "workspace:*", "ws": "^8.14.2" diff --git a/packages/create-cloudflare/CHANGELOG.md b/packages/create-cloudflare/CHANGELOG.md index 562072d8f1ed..f609bd6836fc 100644 --- a/packages/create-cloudflare/CHANGELOG.md +++ b/packages/create-cloudflare/CHANGELOG.md @@ -1,5 +1,65 @@ # create-cloudflare +## 2.10.0 + +### Minor Changes + +- [#4754](https://github.com/cloudflare/workers-sdk/pull/4754) [`06f85613`](https://github.com/cloudflare/workers-sdk/commit/06f85613228066ccb323c2818b443e9460b02c94) Thanks [@jculvey](https://github.com/jculvey)! - Adds C3 support for external templates hosted in git repositories via the `--template ` option. + + The source may be specified as any of the following: + + - `user/repo` + - `git@github.com:user/repo` + - `https://github.com/user/repo` + - `user/repo/some-template` (subdirectories) + - `user/repo#canary` (branches) + - `user/repo#1234abcd` (commit hash) + - `bitbucket:user/repo` (BitBucket) + - `gitlab:user/repo` (GitLab) + + See the `degit` [docs](https://github.com/Rich-Harris/degit) for more details. + + At a minimum, templates must contain the following: + + - `package.json` + - `wrangler.toml` + - `src/` containing a worker script referenced from `wrangler.toml` + + See the [templates folder](https://github.com/cloudflare/workers-sdk/tree/main/templates) of this repo for more examples. + +### Patch Changes + +- [#4828](https://github.com/cloudflare/workers-sdk/pull/4828) [`99bf5f86`](https://github.com/cloudflare/workers-sdk/commit/99bf5f8653bd026555cceffa61ee9120eb2c4645) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `gatsby` from `5.13.1` to `5.13.2` + +* [#4836](https://github.com/cloudflare/workers-sdk/pull/4836) [`6d7d00a8`](https://github.com/cloudflare/workers-sdk/commit/6d7d00a835152fc241781fdca8eda41a00f53a40) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `@angular/create` from `17.1.0` to `17.1.1` + +- [#4842](https://github.com/cloudflare/workers-sdk/pull/4842) [`9fb39e63`](https://github.com/cloudflare/workers-sdk/commit/9fb39e63506bdd28f29cf387543978ebf85263cd) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `create-qwik` from `1.4.0` to `1.4.1` + +* [#4843](https://github.com/cloudflare/workers-sdk/pull/4843) [`b3c5566c`](https://github.com/cloudflare/workers-sdk/commit/b3c5566c0988c0cdd4e285bfe5792baa4127af94) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `gatsby` from `5.13.2` to `5.13.3` + +- [#4834](https://github.com/cloudflare/workers-sdk/pull/4834) [`0123eef1`](https://github.com/cloudflare/workers-sdk/commit/0123eef14a071492354f46fb212d78f793e1bb14) Thanks [@jculvey](https://github.com/jculvey)! - Fixed an issue where commands were sometimes formatted with un-needed escape characters (ex. 'pages:\dev') + +* [#4754](https://github.com/cloudflare/workers-sdk/pull/4754) [`06f85613`](https://github.com/cloudflare/workers-sdk/commit/06f85613228066ccb323c2818b443e9460b02c94) Thanks [@jculvey](https://github.com/jculvey)! - C3: Fix a bug where the "Pre-existing Worker (from Dashboard)" option was hidden in the dialog but still selectable + +- [#4711](https://github.com/cloudflare/workers-sdk/pull/4711) [`fa91ff54`](https://github.com/cloudflare/workers-sdk/commit/fa91ff546ceb30207245518d4b38e6a416de9ed3) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - update the solidStart logic to work with their latest (beta-2) implementation + +* [#4771](https://github.com/cloudflare/workers-sdk/pull/4771) [`f4f38fc7`](https://github.com/cloudflare/workers-sdk/commit/f4f38fc7d58347b7e69eab013685798d90bb633a) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - fix: correctly find the latest version of create-cloudflare + + When create-cloudflare starts up, it checks to see if the version being run + is the latest available on npm. + + Previously this check used `npm info` to look up the version. + But was prone to failing if that command returned additional unexpected output + such as warnings. + + Now we make a fetch request to the npm REST API directly for the latest version, + which does not have the problem of unexpected warnings. + + Since the same approach is used to compute the latest version of workerd, the + function to do this has been put into a helper. + + Fixes #4729 + ## 2.9.3 ### Patch Changes diff --git a/packages/create-cloudflare/package.json b/packages/create-cloudflare/package.json index bcb8326a0155..dae99bcb974f 100644 --- a/packages/create-cloudflare/package.json +++ b/packages/create-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "create-cloudflare", - "version": "2.9.3", + "version": "2.10.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 877d8cd7d9ef..a43f6d47bac2 100644 --- a/packages/miniflare/CHANGELOG.md +++ b/packages/miniflare/CHANGELOG.md @@ -1,5 +1,23 @@ # miniflare +## 3.20231218.4 + +### Patch Changes + +- [#4812](https://github.com/cloudflare/workers-sdk/pull/4812) [`8166eefc`](https://github.com/cloudflare/workers-sdk/commit/8166eefc11ff3b5ce6ede41fe9d6224d945a2cde) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - fix: ensure that Origin header is rewritten as necessary + + The `wrangler dev` command puts the Worker under test behind a proxy server. + This proxy server should be transparent to the client and the Worker, which + means that the `Request` arriving at the Worker with the correct `url` property, + and `Host` and `Origin` headers. + Previously we fixed the `Host` header but missed the `Origin` header which is + only added to a request under certain circumstances, such as cross-origin requests. + + This change fixes the `Origin` header as well, so that it is rewritten, when it exists, + to use the `origin` of the `url` property. + + Fixes #4761 + ## 3.20231218.3 ### Patch Changes diff --git a/packages/miniflare/package.json b/packages/miniflare/package.json index 77268035072c..6f2b0d7452d8 100644 --- a/packages/miniflare/package.json +++ b/packages/miniflare/package.json @@ -1,6 +1,6 @@ { "name": "miniflare", - "version": "3.20231218.3", + "version": "3.20231218.4", "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 3062fb33d89d..a7b549f4d7fa 100644 --- a/packages/pages-shared/CHANGELOG.md +++ b/packages/pages-shared/CHANGELOG.md @@ -1,5 +1,12 @@ # @cloudflare/pages-shared +## 0.11.9 + +### Patch Changes + +- Updated dependencies [[`8166eefc`](https://github.com/cloudflare/workers-sdk/commit/8166eefc11ff3b5ce6ede41fe9d6224d945a2cde)]: + - miniflare@3.20231218.4 + ## 0.11.8 ### Patch Changes diff --git a/packages/pages-shared/package.json b/packages/pages-shared/package.json index 0814e6a2577b..7fa8d8556a85 100644 --- a/packages/pages-shared/package.json +++ b/packages/pages-shared/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/pages-shared", - "version": "0.11.8", + "version": "0.11.9", "repository": { "type": "git", "url": "https://github.com/cloudflare/workers-sdk.git", diff --git a/packages/wrangler/CHANGELOG.md b/packages/wrangler/CHANGELOG.md index 1b21b43e5373..db16022d1aff 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,48 @@ # wrangler +## 3.25.0 + +### Minor Changes + +- [#4815](https://github.com/cloudflare/workers-sdk/pull/4815) [`030360d6`](https://github.com/cloudflare/workers-sdk/commit/030360d6572ec9ec09f8bb9dfe6ec7ce198e394b) Thanks [@jonesphillip](https://github.com/jonesphillip)! - feature: adds support for configuring Sippy with Google Cloud Storage (GCS) provider. + + Sippy (https://developers.cloudflare.com/r2/data-migration/sippy/) now supports Google Cloud Storage. + This change updates the `wrangler r2 sippy` commands to take a provider (AWS or GCS) and appropriate configuration arguments. + If you don't specify `--provider` argument then the command will enter an interactive flow for the user to set the configuration. + Note that this is a breaking change from the previous behaviour where you could configure AWS as the provider without explictly specifying the `--provider` argument. + (This breaking change is allowed in a minor release because the Sippy feature and `wrangler r2 sippy` commands are marked as beta.) + +### Patch Changes + +- [#4656](https://github.com/cloudflare/workers-sdk/pull/4656) [`77b0bce3`](https://github.com/cloudflare/workers-sdk/commit/77b0bce3d9a4ca6c2246547d1c30757f2a97e01f) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - fix: ensure upstream_protocol is passed to the Worker + + In `wrangler dev` it is possible to set the `upstream_protocol`, + which is the protocol under which the User Worker believes it has been + requested, as recorded in the `request.url` that can be used for + forwarding on requests to the origin. + + Previously, it was not being passed to `wrangler dev` in local mode. + Instead it was always set to `http`. + + Note that setting `upstream_protocol` to `http` is not supported in + `wrangler dev` remote mode, which is the case since Wrangler v2.0. + + This setting now defaults to `https` in remote mode (since that is the only option), + and to the same as `local_protocol` in local mode. + + Fixes #4539 + +* [#4810](https://github.com/cloudflare/workers-sdk/pull/4810) [`6eb2b9d1`](https://github.com/cloudflare/workers-sdk/commit/6eb2b9d10e154e64aff5ad5eafd35d44592275eb) Thanks [@gabivlj](https://github.com/gabivlj)! - fix: Cloudchamber command shows json error message on load account if --json specified + + If the user specifies a json option, we should see a more detailed error on why `loadAccount` failed. + +- [#4820](https://github.com/cloudflare/workers-sdk/pull/4820) [`b01c1548`](https://github.com/cloudflare/workers-sdk/commit/b01c154889d9d10b2ccf0193f453f947479263fc) Thanks [@mrbbot](https://github.com/mrbbot)! - fix: show up-to-date sources in DevTools when saving source files + + Previously, DevTools would never refresh source contents after opening a file, even if it was updated on-disk. This could cause issues with step-through debugging as breakpoints set in source files would map to incorrect locations in bundled Worker code. This change ensures DevTools' source cache is cleared on each reload, preventing outdated sources from being displayed. + +- Updated dependencies [[`8166eefc`](https://github.com/cloudflare/workers-sdk/commit/8166eefc11ff3b5ce6ede41fe9d6224d945a2cde)]: + - miniflare@3.20231218.4 + ## 3.24.0 ### Minor Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index 48139b2c47f2..ca1bf3972010 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "3.24.0", + "version": "3.25.0", "description": "Command-line interface for all things Cloudflare Workers", "keywords": [ "wrangler", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ae88fa512af8..18c128dbac93 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -144,7 +144,7 @@ importers: specifier: ^7.0.0 version: 7.0.0 miniflare: - specifier: 3.20231218.3 + specifier: 3.20231218.4 version: link:../../packages/miniflare undici: specifier: ^5.28.2