diff --git a/.changeset/c3-frameworks-update-5011.md b/.changeset/c3-frameworks-update-5011.md deleted file mode 100644 index 112266ad60d7..000000000000 --- a/.changeset/c3-frameworks-update-5011.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -chore: Bumped `create-qwik` from `1.4.4` to `1.4.5` diff --git a/.changeset/gentle-mayflies-shout.md b/.changeset/gentle-mayflies-shout.md deleted file mode 100644 index 894d46019bb6..000000000000 --- a/.changeset/gentle-mayflies-shout.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"miniflare": patch ---- - -fix: allow relative `scriptPath`/`modulesRoot`s to break out of current working directory - -Previously, Miniflare would resolve relative `scriptPath`s against `moduleRoot` multiple times resulting in incorrect paths and module names. This would lead to `can't use ".." to break out of starting directory` `workerd` errors. This change ensures Miniflare uses `scriptPath` as is, and only resolves it relative to `modulesRoot` when computing module names. Note this bug didn't affect service workers. This allows you to reference a modules `scriptPath` outside the working directory with something like: - -```js -const mf = new Miniflare({ - modules: true, - modulesRoot: "..", - scriptPath: "../worker.mjs", -}); -``` - -Fixes #4721 diff --git a/.changeset/khaki-feet-exist.md b/.changeset/khaki-feet-exist.md deleted file mode 100644 index 6589068d026a..000000000000 --- a/.changeset/khaki-feet-exist.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -feature: allow hyperdrive users to set local connection string as environment variable - -Wrangler dev now supports the HYPERDRIVE_LOCAL_CONNECTION_STRING environmental variable for connecting to a local database instance when testing Hyperdrive in local development. This environmental variable takes precedence over the localConnectionString set in wrangler.toml. diff --git a/.changeset/slimy-apples-reply.md b/.changeset/slimy-apples-reply.md deleted file mode 100644 index e6c48c686e68..000000000000 --- a/.changeset/slimy-apples-reply.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"create-cloudflare": minor ---- - -feature: Add `getBindingsProxy` support to `nuxt` template via `nitro-cloudflare-dev` module. - -The `nuxt` template now uses the default dev command from `create-nuxt` instead of using `wrangler paves dev` on build output in order to improve the developer workflow. `nitro-cloudflare-dev` is a nitro module that leverages `getBindingsProxy` and allows bindings to work in nitro commands. diff --git a/.changeset/spotty-suns-learn.md b/.changeset/spotty-suns-learn.md deleted file mode 100644 index b21469801d23..000000000000 --- a/.changeset/spotty-suns-learn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -feature: Add an empty `wrangler.toml` file to qwik and nuxt templates. diff --git a/.changeset/ten-jars-play.md b/.changeset/ten-jars-play.md deleted file mode 100644 index 873eedff9aa3..000000000000 --- a/.changeset/ten-jars-play.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"create-cloudflare": patch ---- - -fix: make sure not to wrongly ask users if they want to use typescript - -currently if a CLI invoked by C3 asks the user if they want to use -typescript and the user opted out of it, C3 could actually again offer -typescript to the user afterwords, make sure that this does not happen diff --git a/.changeset/warm-weeks-stare.md b/.changeset/warm-weeks-stare.md deleted file mode 100644 index 2640877e528e..000000000000 --- a/.changeset/warm-weeks-stare.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"create-cloudflare": patch ---- - -chore: update qwik template to use `getPlatformProxy` - -update the C3 Qwik template to use the `getPlatformProxy` utility instead of the deprecated `getBindingsProxy` one diff --git a/fixtures/dev-env/package.json b/fixtures/dev-env/package.json index 41c1b6a77acb..9a98ebbac555 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.20240129.2", + "miniflare": "3.20240129.3", "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 acc2f04bf598..f7c0635c38a5 100644 --- a/packages/create-cloudflare/CHANGELOG.md +++ b/packages/create-cloudflare/CHANGELOG.md @@ -1,5 +1,29 @@ # create-cloudflare +## 2.12.0 + +### Minor Changes + +- [#4996](https://github.com/cloudflare/workers-sdk/pull/4996) [`246512c8`](https://github.com/cloudflare/workers-sdk/commit/246512c8e34fa218b1d52d3a52cd6aa348fdf563) Thanks [@jculvey](https://github.com/jculvey)! - feature: Add `getBindingsProxy` support to `nuxt` template via `nitro-cloudflare-dev` module. + + The `nuxt` template now uses the default dev command from `create-nuxt` instead of using `wrangler paves dev` on build output in order to improve the developer workflow. `nitro-cloudflare-dev` is a nitro module that leverages `getBindingsProxy` and allows bindings to work in nitro commands. + +### Patch Changes + +- [#5011](https://github.com/cloudflare/workers-sdk/pull/5011) [`89482d44`](https://github.com/cloudflare/workers-sdk/commit/89482d4475780c3cd3efbbd004c6b4f85c8daf53) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: Bumped `create-qwik` from `1.4.4` to `1.4.5` + +* [#4996](https://github.com/cloudflare/workers-sdk/pull/4996) [`246512c8`](https://github.com/cloudflare/workers-sdk/commit/246512c8e34fa218b1d52d3a52cd6aa348fdf563) Thanks [@jculvey](https://github.com/jculvey)! - feature: Add an empty `wrangler.toml` file to qwik and nuxt templates. + +- [#4999](https://github.com/cloudflare/workers-sdk/pull/4999) [`ce6d4bc4`](https://github.com/cloudflare/workers-sdk/commit/ce6d4bc4753625d2aaf1b832bbb47fc50b24a98b) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - fix: make sure not to wrongly ask users if they want to use typescript + + currently if a CLI invoked by C3 asks the user if they want to use + typescript and the user opted out of it, C3 could actually again offer + typescript to the user afterwords, make sure that this does not happen + +* [#5010](https://github.com/cloudflare/workers-sdk/pull/5010) [`9f787042`](https://github.com/cloudflare/workers-sdk/commit/9f787042fc6894f5f1ebdc99e0ae10afbe6bdae6) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - chore: update qwik template to use `getPlatformProxy` + + update the C3 Qwik template to use the `getPlatformProxy` utility instead of the deprecated `getBindingsProxy` one + ## 2.11.3 ### Patch Changes diff --git a/packages/create-cloudflare/package.json b/packages/create-cloudflare/package.json index bf66a0153fe9..7b3e564a01f7 100644 --- a/packages/create-cloudflare/package.json +++ b/packages/create-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "create-cloudflare", - "version": "2.11.3", + "version": "2.12.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 0f763dc93698..cba9cac17aad 100644 --- a/packages/miniflare/CHANGELOG.md +++ b/packages/miniflare/CHANGELOG.md @@ -1,5 +1,23 @@ # miniflare +## 3.20240129.3 + +### Patch Changes + +- [#4954](https://github.com/cloudflare/workers-sdk/pull/4954) [`7723ac17`](https://github.com/cloudflare/workers-sdk/commit/7723ac17906f894afe9af2152437726ac09a6290) Thanks [@mrbbot](https://github.com/mrbbot)! - fix: allow relative `scriptPath`/`modulesRoot`s to break out of current working directory + + Previously, Miniflare would resolve relative `scriptPath`s against `moduleRoot` multiple times resulting in incorrect paths and module names. This would lead to `can't use ".." to break out of starting directory` `workerd` errors. This change ensures Miniflare uses `scriptPath` as is, and only resolves it relative to `modulesRoot` when computing module names. Note this bug didn't affect service workers. This allows you to reference a modules `scriptPath` outside the working directory with something like: + + ```js + const mf = new Miniflare({ + modules: true, + modulesRoot: "..", + scriptPath: "../worker.mjs", + }); + ``` + + Fixes #4721 + ## 3.20240129.2 ### Patch Changes diff --git a/packages/miniflare/package.json b/packages/miniflare/package.json index fee44cb2f1ef..6a6d30fd5cf0 100644 --- a/packages/miniflare/package.json +++ b/packages/miniflare/package.json @@ -1,6 +1,6 @@ { "name": "miniflare", - "version": "3.20240129.2", + "version": "3.20240129.3", "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 5e4a99433b60..60e26f937946 100644 --- a/packages/pages-shared/CHANGELOG.md +++ b/packages/pages-shared/CHANGELOG.md @@ -1,5 +1,12 @@ # @cloudflare/pages-shared +## 0.11.13 + +### Patch Changes + +- Updated dependencies [[`7723ac17`](https://github.com/cloudflare/workers-sdk/commit/7723ac17906f894afe9af2152437726ac09a6290)]: + - miniflare@3.20240129.3 + ## 0.11.12 ### Patch Changes diff --git a/packages/pages-shared/package.json b/packages/pages-shared/package.json index 747aad63cde2..af8f95ef273d 100644 --- a/packages/pages-shared/package.json +++ b/packages/pages-shared/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/pages-shared", - "version": "0.11.12", + "version": "0.11.13", "repository": { "type": "git", "url": "https://github.com/cloudflare/workers-sdk.git", diff --git a/packages/wrangler/CHANGELOG.md b/packages/wrangler/CHANGELOG.md index 84bf195d613e..4b02bf7a5e99 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,16 @@ # wrangler +## 3.28.3 + +### Patch Changes + +- [#4900](https://github.com/cloudflare/workers-sdk/pull/4900) [`3389f2e9`](https://github.com/cloudflare/workers-sdk/commit/3389f2e9daa27f89c2dc35c2ccd4da4ec54db683) Thanks [@OilyLime](https://github.com/OilyLime)! - feature: allow hyperdrive users to set local connection string as environment variable + + Wrangler dev now supports the HYPERDRIVE_LOCAL_CONNECTION_STRING environmental variable for connecting to a local database instance when testing Hyperdrive in local development. This environmental variable takes precedence over the localConnectionString set in wrangler.toml. + +- Updated dependencies [[`7723ac17`](https://github.com/cloudflare/workers-sdk/commit/7723ac17906f894afe9af2152437726ac09a6290)]: + - miniflare@3.20240129.3 + ## 3.28.2 ### Patch Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index a9bacffafeec..7d2a92f00580 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "3.28.2", + "version": "3.28.3", "description": "Command-line interface for all things Cloudflare Workers", "keywords": [ "wrangler", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 891044df4fa5..479ed2d2e949 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.20240129.2 + specifier: 3.20240129.3 version: link:../../packages/miniflare undici: specifier: ^5.28.2