diff --git a/.changeset/afraid-lobsters-peel.md b/.changeset/afraid-lobsters-peel.md deleted file mode 100644 index 799ebc7ef212..000000000000 --- a/.changeset/afraid-lobsters-peel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -ci: move the Angular framework out of the C3 e2e test quarantine. diff --git a/.changeset/c3-frameworks-update-4242.md b/.changeset/c3-frameworks-update-4242.md deleted file mode 100644 index 1b1048c56952..000000000000 --- a/.changeset/c3-frameworks-update-4242.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `nuxi` from `3.9.0` to `3.9.1` diff --git a/.changeset/c3-frameworks-update-4275.md b/.changeset/c3-frameworks-update-4275.md deleted file mode 100644 index 1711cc335dfb..000000000000 --- a/.changeset/c3-frameworks-update-4275.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `create-astro` from `4.3.0` to `4.4.1` diff --git a/.changeset/c3-frameworks-update-4288.md b/.changeset/c3-frameworks-update-4288.md deleted file mode 100644 index 8d00a207f672..000000000000 --- a/.changeset/c3-frameworks-update-4288.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `create-qwik` from `1.2.14` to `1.2.15` diff --git a/.changeset/c3-frameworks-update-4313.md b/.changeset/c3-frameworks-update-4313.md deleted file mode 100644 index cadc3e211084..000000000000 --- a/.changeset/c3-frameworks-update-4313.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `gatsby` from `5.12.8` to `5.12.9` diff --git a/.changeset/c3-frameworks-update-4316.md b/.changeset/c3-frameworks-update-4316.md deleted file mode 100644 index 4b7448a140ea..000000000000 --- a/.changeset/c3-frameworks-update-4316.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `create-remix` from `2.1.0` to `2.2.0` diff --git a/.changeset/c3-frameworks-update-4317.md b/.changeset/c3-frameworks-update-4317.md deleted file mode 100644 index 70ca5a8b38c3..000000000000 --- a/.changeset/c3-frameworks-update-4317.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `create-docusaurus` from `2.4.3` to `3.0.0` diff --git a/.changeset/c3-frameworks-update-4334.md b/.changeset/c3-frameworks-update-4334.md deleted file mode 100644 index c895f5562776..000000000000 --- a/.changeset/c3-frameworks-update-4334.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `create-qwik` from `1.2.15` to `1.2.16` diff --git a/.changeset/c3-frameworks-update-4335.md b/.changeset/c3-frameworks-update-4335.md deleted file mode 100644 index 6083e89554fd..000000000000 --- a/.changeset/c3-frameworks-update-4335.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `create-solid` from `0.3.8` to `0.3.9` diff --git a/.changeset/c3-frameworks-update-4346.md b/.changeset/c3-frameworks-update-4346.md deleted file mode 100644 index 920577f89244..000000000000 --- a/.changeset/c3-frameworks-update-4346.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `create-qwik` from `1.2.16` to `1.2.17` diff --git a/.changeset/c3-frameworks-update-4431.md b/.changeset/c3-frameworks-update-4431.md deleted file mode 100644 index 52bb6e2e419b..000000000000 --- a/.changeset/c3-frameworks-update-4431.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `create-astro` from `4.4.1` to `4.5.1` diff --git a/.changeset/cold-bugs-kick.md b/.changeset/cold-bugs-kick.md deleted file mode 100644 index abcaead0d298..000000000000 --- a/.changeset/cold-bugs-kick.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cloudflare/pages-shared": minor ---- - -fix: remove extension name check when generating response - -Current regex logic to check whether a pathname is a file (has file extension) is causing trouble for some websites, and now \${pathname}/index.html is always checked before returning notFound(). diff --git a/.changeset/cyan-books-act.md b/.changeset/cyan-books-act.md deleted file mode 100644 index f811681b6fdd..000000000000 --- a/.changeset/cyan-books-act.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": minor ---- - -Feat(unstable_dev): Provide an option for unstable_dev to perform the check that prompts users to update wrangler, defaulting to false. This will prevent unstable_dev from sending a request to NPM on startup to determine whether it needs to be updated. diff --git a/.changeset/dirty-bobcats-eat.md b/.changeset/dirty-bobcats-eat.md deleted file mode 100644 index 4bc7f0c6d443..000000000000 --- a/.changeset/dirty-bobcats-eat.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"create-cloudflare": patch ---- - -Changes c3 to use `npx` for running framework creation tools when it is invoked with `yarn`. This is -needed since yarn can't `yarn create some-package@some-particular-version`. diff --git a/.changeset/forty-rice-smoke.md b/.changeset/forty-rice-smoke.md deleted file mode 100644 index eaa732c1a209..000000000000 --- a/.changeset/forty-rice-smoke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"miniflare": patch ---- - -fix: reject `Miniflare#ready` promise if `Miniflare#dispose()` called while waiting diff --git a/.changeset/funny-rice-prove.md b/.changeset/funny-rice-prove.md deleted file mode 100644 index df4d955989d4..000000000000 --- a/.changeset/funny-rice-prove.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"wrangler": minor ---- - -Simplify secret:bulk api via script settings - -Firing PUTs to the secret api in parallel has never been a great solution - each request independently needs to lock the script, so running in parallel is at best just as bad as running serially. - -Luckily, we have the script settings PATCH api now, which can update the settings for a script (including secret bindings) at once, which means we don't need any parallelization. However this api doesn't work with a partial list of bindings, so we have to fetch the current bindings and merge in with the new secrets before PATCHing. We can however just omit the value of the binding (i.e. only provide the name and type) which instructs the config service to inherit the existing value, which simplifies this as well. Note that we don't use the bindings in your current wrangler.toml, as you could be in a draft state, and it makes sense as a user that a bulk secrets update won't update anything else. Instead, we use script settings api again to fetch the current state of your bindings. - -This simplified implementation means the operation can only fail or succeed, rather than succeeding in updating some secrets but failing for others. In order to not introduce breaking changes for logging output, the language around "${x} secrets were updated" or "${x} secrets failed" is kept, even if it doesn't make much sense anymore. diff --git a/.changeset/gentle-news-laugh.md b/.changeset/gentle-news-laugh.md deleted file mode 100644 index d26cea94336a..000000000000 --- a/.changeset/gentle-news-laugh.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -Relax empty directory check. Directories containing certain common config files and/or files created by an ide will be exempt from the pre-flight check diff --git a/.changeset/green-days-prove.md b/.changeset/green-days-prove.md deleted file mode 100644 index 78903b9161f3..000000000000 --- a/.changeset/green-days-prove.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"miniflare": minor ---- - -Update to [latest `workerd@1.20231030.0`](https://github.com/cloudflare/workerd/releases/tag/v1.20231030.0) diff --git a/.changeset/hot-kiwis-raise.md b/.changeset/hot-kiwis-raise.md deleted file mode 100644 index 744c50e484c2..000000000000 --- a/.changeset/hot-kiwis-raise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -correct error message for unrecognized application type diff --git a/.changeset/loud-taxis-drop.md b/.changeset/loud-taxis-drop.md deleted file mode 100644 index c58866e13a50..000000000000 --- a/.changeset/loud-taxis-drop.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"miniflare": patch ---- - -fix: add `miniflare` `bin` entry - -Miniflare 3 doesn't include a CLI anymore, but should log a useful error stating this when running `npx miniflare`. We had a script for this, but it wasn't correctly hooked up. :facepalm: This change makes sure the required `bin` entry exists. diff --git a/.changeset/many-islands-roll.md b/.changeset/many-islands-roll.md deleted file mode 100644 index b95a5f12d673..000000000000 --- a/.changeset/many-islands-roll.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -test: fix C3 e2e tests for Angular diff --git a/.changeset/olive-queens-retire.md b/.changeset/olive-queens-retire.md deleted file mode 100644 index 7ef6563a5449..000000000000 --- a/.changeset/olive-queens-retire.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"create-cloudflare": patch ---- - -improve help message by adding more detailed descriptions about the various CLI options -also let the user know that more information is available in the Cloudflare docs diff --git a/.changeset/orange-lamps-happen.md b/.changeset/orange-lamps-happen.md deleted file mode 100644 index 07b76e56c993..000000000000 --- a/.changeset/orange-lamps-happen.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"wrangler": patch ---- - -This PR adds a fetch handler that uses `page`, assuming `result_info` provided by the endpoint contains `page`, `per_page`, and `total` - -This is needed as the existing `fetchListResult` handler for fetching potentially paginated results doesn't work for endpoints that don't implement `cursor`. - -Fixes #4349 diff --git a/.changeset/rude-chicken-raise.md b/.changeset/rude-chicken-raise.md deleted file mode 100644 index d1aa09c10387..000000000000 --- a/.changeset/rude-chicken-raise.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"miniflare": patch ---- - -fix: ensure `Mutex` doesn't report itself as drained if locked - -Previously, Miniflare's `Mutex` implementation would report itself as drained -if there were no waiters, regardless of the locked state. This bug meant that -if you called but didn't `await` `Miniflare#setOptions()`, future calls to -`Miniflare#dispatchFetch()` (or any other asynchronous `Miniflare` method) -wouldn't wait for the options update to apply and the runtime to restart before -sending requests. This change ensures we wait until the mutex is unlocked before -reporting it as drained. diff --git a/.changeset/rude-eagles-buy.md b/.changeset/rude-eagles-buy.md deleted file mode 100644 index 2b10921b4578..000000000000 --- a/.changeset/rude-eagles-buy.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -Improve the error message when a script isn't exported a Durable Object class - -Previously, wrangler would error with a message like `Uncaught TypeError: Class extends value undefined is not a constructor or null`. This improves that messaging to be more understandable to users. diff --git a/.changeset/shiny-rats-hide.md b/.changeset/shiny-rats-hide.md deleted file mode 100644 index f2cf1c2e1033..000000000000 --- a/.changeset/shiny-rats-hide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Change local dev server default ip to `*` instead of `0.0.0.0`. This will cause the dev server to listen on both ipv4 and ipv6 interfaces diff --git a/.changeset/shiny-worms-prove.md b/.changeset/shiny-worms-prove.md deleted file mode 100644 index 018b762e7bcc..000000000000 --- a/.changeset/shiny-worms-prove.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -Remove redundant polyfills from the Angular template diff --git a/.changeset/silver-goats-tickle.md b/.changeset/silver-goats-tickle.md deleted file mode 100644 index 91f605769b70..000000000000 --- a/.changeset/silver-goats-tickle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Support for hyperdrive bindings in local wrangler dev diff --git a/.changeset/small-gifts-smash.md b/.changeset/small-gifts-smash.md deleted file mode 100644 index ec071f8828dd..000000000000 --- a/.changeset/small-gifts-smash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"miniflare": patch ---- - -Only output ipv4 addresses when starting diff --git a/.changeset/spotty-bees-arrive.md b/.changeset/spotty-bees-arrive.md deleted file mode 100644 index 67fbdf80067f..000000000000 --- a/.changeset/spotty-bees-arrive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": minor ---- - -Update Angular template to use version 17 diff --git a/.changeset/swift-files-care.md b/.changeset/swift-files-care.md deleted file mode 100644 index f7c3175db742..000000000000 --- a/.changeset/swift-files-care.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Fixed issue with `tail` not using proxy diff --git a/.changeset/three-carpets-smile.md b/.changeset/three-carpets-smile.md deleted file mode 100644 index 63e4c7c51759..000000000000 --- a/.changeset/three-carpets-smile.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Allows uploads with both cron triggers and smart placement enabled diff --git a/.changeset/tricky-masks-accept.md b/.changeset/tricky-masks-accept.md deleted file mode 100644 index fe7d3b413208..000000000000 --- a/.changeset/tricky-masks-accept.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"miniflare": patch ---- - -fix: cleanup temporary directory after shutting down `workerd` - -Previously on exit, Miniflare would attempt to remove its temporary directory -before shutting down `workerd`. This could lead to `EBUSY` errors on Windows. -This change ensures we shutdown `workerd` before removing the directory. -Since we can only clean up on a best effort basis when exiting, it also catches -any errors thrown when removing the directory, in case the runtime doesn't -shutdown fast enough. diff --git a/.changeset/tricky-otters-rescue.md b/.changeset/tricky-otters-rescue.md deleted file mode 100644 index ad128018b30f..000000000000 --- a/.changeset/tricky-otters-rescue.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -"miniflare": minor ---- - -add `unsafeEvalBinding` option - -Add option to leverage the newly introduced [`UnsafeEval`](https://github.com/cloudflare/workerd/pull/1338) workerd binding API, -such API is used to evaluate javascript code at runtime via the provided `eval` and `newFunction` methods. - -The API, for security reasons (as per the [workers docs](https://developers.cloudflare.com/workers/runtime-apis/web-standards/#javascript-standards)), is not to be use in production but it is intended for local purposes only such as local testing. - -To use the binding you need to specify a string value for the `unsafeEvalBinding`, such will be the name of the `UnsafeEval` bindings that will be made available in the workerd runtime. - -For example the following code shows how to set the binding with the `UNSAFE_EVAL` name and evaluate the `1+1` string: - -```ts -const mf = new Miniflare({ - log, - modules: true, - script: ` - export default { - fetch(req, env, ctx) { - const two = env.UNSAFE_EVAL.eval('1+1'); - return new Response('two = ' + two); // returns 'two = 2' - } - } - `, - unsafeEvalBinding: "UNSAFE_EVAL", -}); -``` diff --git a/.changeset/warm-dryers-double.md b/.changeset/warm-dryers-double.md deleted file mode 100644 index b94c2876aac1..000000000000 --- a/.changeset/warm-dryers-double.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Change dev registry and inspector server to listen on 127.0.0.1 instead of all interfaces diff --git a/.changeset/wise-pears-fry.md b/.changeset/wise-pears-fry.md deleted file mode 100644 index 87dc188f6ece..000000000000 --- a/.changeset/wise-pears-fry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -fix: use a valid compatibility date for the scheduled worker ts template diff --git a/packages/create-cloudflare/CHANGELOG.md b/packages/create-cloudflare/CHANGELOG.md index 6da531265eb9..474a069a31bd 100644 --- a/packages/create-cloudflare/CHANGELOG.md +++ b/packages/create-cloudflare/CHANGELOG.md @@ -1,5 +1,51 @@ # create-cloudflare +## 2.7.0 + +### Minor Changes + +- [#4280](https://github.com/cloudflare/workers-sdk/pull/4280) [`a6cd9aff`](https://github.com/cloudflare/workers-sdk/commit/a6cd9aff92c636bdaa57f912868f328735e5686a) Thanks [@alan-agius4](https://github.com/alan-agius4)! - Update Angular template to use version 17 + +### Patch Changes + +- [#4399](https://github.com/cloudflare/workers-sdk/pull/4399) [`789491bd`](https://github.com/cloudflare/workers-sdk/commit/789491bd1e5fd4f138036020e1af274884a29da0) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - ci: move the Angular framework out of the C3 e2e test quarantine. + +* [#4242](https://github.com/cloudflare/workers-sdk/pull/4242) [`a1c9f43f`](https://github.com/cloudflare/workers-sdk/commit/a1c9f43f3e1f8ff1b781b9f524ebac82afce7563) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `nuxi` from `3.9.0` to `3.9.1` + +- [#4275](https://github.com/cloudflare/workers-sdk/pull/4275) [`e4aff81a`](https://github.com/cloudflare/workers-sdk/commit/e4aff81a1289ba52ee4fc40f5ee2ee34a9da690a) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `create-astro` from `4.3.0` to `4.4.1` + +* [#4288](https://github.com/cloudflare/workers-sdk/pull/4288) [`b7d91bb5`](https://github.com/cloudflare/workers-sdk/commit/b7d91bb58cb977b7e4f7667c086bed4c20afca94) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `create-qwik` from `1.2.14` to `1.2.15` + +- [#4313](https://github.com/cloudflare/workers-sdk/pull/4313) [`18612851`](https://github.com/cloudflare/workers-sdk/commit/18612851d6275f25be9faeed06bc2053d7b0d837) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `gatsby` from `5.12.8` to `5.12.9` + +* [#4316](https://github.com/cloudflare/workers-sdk/pull/4316) [`3caa7860`](https://github.com/cloudflare/workers-sdk/commit/3caa7860b790d1e2f8c5af392a16cde3bb31ee09) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `create-remix` from `2.1.0` to `2.2.0` + +- [#4317](https://github.com/cloudflare/workers-sdk/pull/4317) [`db8b5fe5`](https://github.com/cloudflare/workers-sdk/commit/db8b5fe51f0f75bdeb773cd161f190d653dff481) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `create-docusaurus` from `2.4.3` to `3.0.0` + +* [#4334](https://github.com/cloudflare/workers-sdk/pull/4334) [`bde0a1bd`](https://github.com/cloudflare/workers-sdk/commit/bde0a1bd190a63adc1782cc62292b9f1f31bca4f) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `create-qwik` from `1.2.15` to `1.2.16` + +- [#4335](https://github.com/cloudflare/workers-sdk/pull/4335) [`c1223c53`](https://github.com/cloudflare/workers-sdk/commit/c1223c53cd4824ab0346347746d43e3a27dfaed1) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `create-solid` from `0.3.8` to `0.3.9` + +* [#4346](https://github.com/cloudflare/workers-sdk/pull/4346) [`71eff285`](https://github.com/cloudflare/workers-sdk/commit/71eff285ec4a8f831fe1b9b8aa05d2b3a1921d04) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `create-qwik` from `1.2.16` to `1.2.17` + +- [#4431](https://github.com/cloudflare/workers-sdk/pull/4431) [`c0d70bf5`](https://github.com/cloudflare/workers-sdk/commit/c0d70bf55c7e358287b8eaff1ef5716744117efa) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `create-astro` from `4.4.1` to `4.5.1` + +* [#4311](https://github.com/cloudflare/workers-sdk/pull/4311) [`35be4594`](https://github.com/cloudflare/workers-sdk/commit/35be459486864cd4d6a7aea7d357ada04f17bb0d) Thanks [@jculvey](https://github.com/jculvey)! - Changes c3 to use `npx` for running framework creation tools when it is invoked with `yarn`. This is + needed since yarn can't `yarn create some-package@some-particular-version`. + +- [#4226](https://github.com/cloudflare/workers-sdk/pull/4226) [`5810f815`](https://github.com/cloudflare/workers-sdk/commit/5810f8150eb775663177a43266233abac19e9781) Thanks [@jculvey](https://github.com/jculvey)! - Relax empty directory check. Directories containing certain common config files and/or files created by an ide will be exempt from the pre-flight check + +* [#4249](https://github.com/cloudflare/workers-sdk/pull/4249) [`b18a2c0f`](https://github.com/cloudflare/workers-sdk/commit/b18a2c0f3b88b5ce986f8c134cfe6df4603b343d) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - correct error message for unrecognized application type + +- [#4403](https://github.com/cloudflare/workers-sdk/pull/4403) [`cb8ec90e`](https://github.com/cloudflare/workers-sdk/commit/cb8ec90e96a9fcf05ae0276258a9e19d656b9def) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - test: fix C3 e2e tests for Angular + +* [#4249](https://github.com/cloudflare/workers-sdk/pull/4249) [`b18a2c0f`](https://github.com/cloudflare/workers-sdk/commit/b18a2c0f3b88b5ce986f8c134cfe6df4603b343d) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - improve help message by adding more detailed descriptions about the various CLI options + also let the user know that more information is available in the Cloudflare docs + +- [#4339](https://github.com/cloudflare/workers-sdk/pull/4339) [`33bd75dc`](https://github.com/cloudflare/workers-sdk/commit/33bd75dc14695791d94deda36bb9f44c06d56c8e) Thanks [@alan-agius4](https://github.com/alan-agius4)! - Remove redundant polyfills from the Angular template + +* [#4279](https://github.com/cloudflare/workers-sdk/pull/4279) [`2526794f`](https://github.com/cloudflare/workers-sdk/commit/2526794f214e730f7f88a8146ef24f50c2caf8f6) Thanks [@dnasdw](https://github.com/dnasdw)! - fix: use a valid compatibility date for the scheduled worker ts template + ## 2.6.2 ### Patch Changes diff --git a/packages/create-cloudflare/package.json b/packages/create-cloudflare/package.json index 3ee9d336127e..4f5b7f60b167 100644 --- a/packages/create-cloudflare/package.json +++ b/packages/create-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "create-cloudflare", - "version": "2.6.2", + "version": "2.7.0", "description": "A CLI for creating and deploying new applications to Cloudflare.", "keywords": [ "cloudflare", diff --git a/packages/edge-preview-authenticated-proxy/package.json b/packages/edge-preview-authenticated-proxy/package.json index 17ed4eb0a93e..30f761f80f9f 100644 --- a/packages/edge-preview-authenticated-proxy/package.json +++ b/packages/edge-preview-authenticated-proxy/package.json @@ -7,7 +7,6 @@ "publish": "wrangler deploy", "start": "wrangler dev", "test": "vitest run", - "type:tests": "tsc -p ./tests/tsconfig.json", "check:type": "tsc" }, diff --git a/packages/miniflare/CHANGELOG.md b/packages/miniflare/CHANGELOG.md index c7377dafa577..bebec41b460b 100644 --- a/packages/miniflare/CHANGELOG.md +++ b/packages/miniflare/CHANGELOG.md @@ -1,5 +1,67 @@ # miniflare +## 3.20231030.0 + +### Minor Changes + +- [#4324](https://github.com/cloudflare/workers-sdk/pull/4324) [`16cc2e92`](https://github.com/cloudflare/workers-sdk/commit/16cc2e923733b3c583b5bf6c40384c52fea04991) Thanks [@penalosa](https://github.com/penalosa)! - Update to [latest `workerd@1.20231030.0`](https://github.com/cloudflare/workerd/releases/tag/v1.20231030.0) + +* [#4322](https://github.com/cloudflare/workers-sdk/pull/4322) [`8a25b7fb`](https://github.com/cloudflare/workers-sdk/commit/8a25b7fba94c8e9989412bc266ada307975f182d) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - add `unsafeEvalBinding` option + + Add option to leverage the newly introduced [`UnsafeEval`](https://github.com/cloudflare/workerd/pull/1338) workerd binding API, + such API is used to evaluate javascript code at runtime via the provided `eval` and `newFunction` methods. + + The API, for security reasons (as per the [workers docs](https://developers.cloudflare.com/workers/runtime-apis/web-standards/#javascript-standards)), is not to be use in production but it is intended for local purposes only such as local testing. + + To use the binding you need to specify a string value for the `unsafeEvalBinding`, such will be the name of the `UnsafeEval` bindings that will be made available in the workerd runtime. + + For example the following code shows how to set the binding with the `UNSAFE_EVAL` name and evaluate the `1+1` string: + + ```ts + const mf = new Miniflare({ + log, + modules: true, + script: ` + export default { + fetch(req, env, ctx) { + const two = env.UNSAFE_EVAL.eval('1+1'); + return new Response('two = ' + two); // returns 'two = 2' + } + } + `, + unsafeEvalBinding: "UNSAFE_EVAL", + }); + ``` + +### Patch Changes + +- [#4397](https://github.com/cloudflare/workers-sdk/pull/4397) [`4f8b3420`](https://github.com/cloudflare/workers-sdk/commit/4f8b3420f93197d331491f012ff6f4626411bfc5) Thanks [@mrbbot](https://github.com/mrbbot)! - fix: reject `Miniflare#ready` promise if `Miniflare#dispose()` called while waiting + +* [#4428](https://github.com/cloudflare/workers-sdk/pull/4428) [`3637d97a`](https://github.com/cloudflare/workers-sdk/commit/3637d97a99c9d5e8d0d2b5f3adaf4bd9993265f0) Thanks [@mrbbot](https://github.com/mrbbot)! - fix: add `miniflare` `bin` entry + + Miniflare 3 doesn't include a CLI anymore, but should log a useful error stating this when running `npx miniflare`. We had a script for this, but it wasn't correctly hooked up. :facepalm: This change makes sure the required `bin` entry exists. + +- [#4321](https://github.com/cloudflare/workers-sdk/pull/4321) [`29a59d4e`](https://github.com/cloudflare/workers-sdk/commit/29a59d4e72e3ae849474325c5c93252a3f84af0d) Thanks [@mrbbot](https://github.com/mrbbot)! - fix: ensure `Mutex` doesn't report itself as drained if locked + + Previously, Miniflare's `Mutex` implementation would report itself as drained + if there were no waiters, regardless of the locked state. This bug meant that + if you called but didn't `await` `Miniflare#setOptions()`, future calls to + `Miniflare#dispatchFetch()` (or any other asynchronous `Miniflare` method) + wouldn't wait for the options update to apply and the runtime to restart before + sending requests. This change ensures we wait until the mutex is unlocked before + reporting it as drained. + +* [#4307](https://github.com/cloudflare/workers-sdk/pull/4307) [`7fbe1937`](https://github.com/cloudflare/workers-sdk/commit/7fbe1937b311f36077c92814207bbb15ef3878d6) Thanks [@jspspike](https://github.com/jspspike)! - Only output ipv4 addresses when starting + +- [#4400](https://github.com/cloudflare/workers-sdk/pull/4400) [`76787861`](https://github.com/cloudflare/workers-sdk/commit/767878613eda535d125539a478d488d1a42feaa1) Thanks [@mrbbot](https://github.com/mrbbot)! - fix: cleanup temporary directory after shutting down `workerd` + + Previously on exit, Miniflare would attempt to remove its temporary directory + before shutting down `workerd`. This could lead to `EBUSY` errors on Windows. + This change ensures we shutdown `workerd` before removing the directory. + Since we can only clean up on a best effort basis when exiting, it also catches + any errors thrown when removing the directory, in case the runtime doesn't + shutdown fast enough. + ## Previous Releases For previous Miniflare 3 releases, refer to this GitHub releases page: https://github.com/cloudflare/miniflare/releases. diff --git a/packages/miniflare/package.json b/packages/miniflare/package.json index f7ca6b775d32..43d9ad1bb82b 100644 --- a/packages/miniflare/package.json +++ b/packages/miniflare/package.json @@ -1,6 +1,6 @@ { "name": "miniflare", - "version": "3.20231025.1", + "version": "3.20231030.0", "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 5db26a39d3ab..1eb8989a57cb 100644 --- a/packages/pages-shared/CHANGELOG.md +++ b/packages/pages-shared/CHANGELOG.md @@ -1,5 +1,18 @@ # @cloudflare/pages-shared +## 0.11.0 + +### Minor Changes + +- [#4051](https://github.com/cloudflare/workers-sdk/pull/4051) [`4578d647`](https://github.com/cloudflare/workers-sdk/commit/4578d647060de37a34b5f4aedbcf17b4e2d27382) Thanks [@taoky](https://github.com/taoky)! - fix: remove extension name check when generating response + + Current regex logic to check whether a pathname is a file (has file extension) is causing trouble for some websites, and now \${pathname}/index.html is always checked before returning notFound(). + +### Patch Changes + +- Updated dependencies [[`4f8b3420`](https://github.com/cloudflare/workers-sdk/commit/4f8b3420f93197d331491f012ff6f4626411bfc5), [`16cc2e92`](https://github.com/cloudflare/workers-sdk/commit/16cc2e923733b3c583b5bf6c40384c52fea04991), [`3637d97a`](https://github.com/cloudflare/workers-sdk/commit/3637d97a99c9d5e8d0d2b5f3adaf4bd9993265f0), [`29a59d4e`](https://github.com/cloudflare/workers-sdk/commit/29a59d4e72e3ae849474325c5c93252a3f84af0d), [`7fbe1937`](https://github.com/cloudflare/workers-sdk/commit/7fbe1937b311f36077c92814207bbb15ef3878d6), [`76787861`](https://github.com/cloudflare/workers-sdk/commit/767878613eda535d125539a478d488d1a42feaa1), [`8a25b7fb`](https://github.com/cloudflare/workers-sdk/commit/8a25b7fba94c8e9989412bc266ada307975f182d)]: + - miniflare@3.20231030.0 + ## 0.10.1 ### Patch Changes diff --git a/packages/pages-shared/package.json b/packages/pages-shared/package.json index a2db360d4bab..1f6601b2475c 100644 --- a/packages/pages-shared/package.json +++ b/packages/pages-shared/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/pages-shared", - "version": "0.10.1", + "version": "0.11.0", "repository": { "type": "git", "url": "https://github.com/cloudflare/workers-sdk.git", diff --git a/packages/wrangler/CHANGELOG.md b/packages/wrangler/CHANGELOG.md index db8257235a4c..dcd8709f45f6 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,44 @@ # wrangler +## 3.16.0 + +### Minor Changes + +- [#4347](https://github.com/cloudflare/workers-sdk/pull/4347) [`102e15f9`](https://github.com/cloudflare/workers-sdk/commit/102e15f9e735ff7506cfff457046137ee7b03c32) Thanks [@Skye-31](https://github.com/Skye-31)! - Feat(unstable_dev): Provide an option for unstable_dev to perform the check that prompts users to update wrangler, defaulting to false. This will prevent unstable_dev from sending a request to NPM on startup to determine whether it needs to be updated. + +* [#4179](https://github.com/cloudflare/workers-sdk/pull/4179) [`dd270d00`](https://github.com/cloudflare/workers-sdk/commit/dd270d0065159150ff318f2f06607ddecba6ee9b) Thanks [@matthewdavidrodgers](https://github.com/matthewdavidrodgers)! - Simplify secret:bulk api via script settings + + Firing PUTs to the secret api in parallel has never been a great solution - each request independently needs to lock the script, so running in parallel is at best just as bad as running serially. + + Luckily, we have the script settings PATCH api now, which can update the settings for a script (including secret bindings) at once, which means we don't need any parallelization. However this api doesn't work with a partial list of bindings, so we have to fetch the current bindings and merge in with the new secrets before PATCHing. We can however just omit the value of the binding (i.e. only provide the name and type) which instructs the config service to inherit the existing value, which simplifies this as well. Note that we don't use the bindings in your current wrangler.toml, as you could be in a draft state, and it makes sense as a user that a bulk secrets update won't update anything else. Instead, we use script settings api again to fetch the current state of your bindings. + + This simplified implementation means the operation can only fail or succeed, rather than succeeding in updating some secrets but failing for others. In order to not introduce breaking changes for logging output, the language around "${x} secrets were updated" or "${x} secrets failed" is kept, even if it doesn't make much sense anymore. + +### Patch Changes + +- [#4402](https://github.com/cloudflare/workers-sdk/pull/4402) [`baa76e77`](https://github.com/cloudflare/workers-sdk/commit/baa76e774038393fb6b491e2c371da53b8b2a676) Thanks [@rozenmd](https://github.com/rozenmd)! - This PR adds a fetch handler that uses `page`, assuming `result_info` provided by the endpoint contains `page`, `per_page`, and `total` + + This is needed as the existing `fetchListResult` handler for fetching potentially paginated results doesn't work for endpoints that don't implement `cursor`. + + Fixes #4349 + +* [#4337](https://github.com/cloudflare/workers-sdk/pull/4337) [`6c8f41f8`](https://github.com/cloudflare/workers-sdk/commit/6c8f41f8e76890d6027fd97eaf4e88dccb509fc8) Thanks [@Skye-31](https://github.com/Skye-31)! - Improve the error message when a script isn't exported a Durable Object class + + Previously, wrangler would error with a message like `Uncaught TypeError: Class extends value undefined is not a constructor or null`. This improves that messaging to be more understandable to users. + +- [#4307](https://github.com/cloudflare/workers-sdk/pull/4307) [`7fbe1937`](https://github.com/cloudflare/workers-sdk/commit/7fbe1937b311f36077c92814207bbb15ef3878d6) Thanks [@jspspike](https://github.com/jspspike)! - Change local dev server default ip to `*` instead of `0.0.0.0`. This will cause the dev server to listen on both ipv4 and ipv6 interfaces + +* [#4222](https://github.com/cloudflare/workers-sdk/pull/4222) [`f867e01c`](https://github.com/cloudflare/workers-sdk/commit/f867e01ca2967a11a8d5eda32da42941383753a8) Thanks [@tmthecoder](https://github.com/tmthecoder)! - Support for hyperdrive bindings in local wrangler dev + +- [#4149](https://github.com/cloudflare/workers-sdk/pull/4149) [`7e05f38e`](https://github.com/cloudflare/workers-sdk/commit/7e05f38e04e40125c9c5352b7ff1c95616c1baf0) Thanks [@jspspike](https://github.com/jspspike)! - Fixed issue with `tail` not using proxy + +* [#4219](https://github.com/cloudflare/workers-sdk/pull/4219) [`0453b447`](https://github.com/cloudflare/workers-sdk/commit/0453b447251cc670310be6a2067c84074f6a515b) Thanks [@maxwellpeterson](https://github.com/maxwellpeterson)! - Allows uploads with both cron triggers and smart placement enabled + +- [#4437](https://github.com/cloudflare/workers-sdk/pull/4437) [`05b1bbd2`](https://github.com/cloudflare/workers-sdk/commit/05b1bbd2f5b8e60268e30c276067c3a3ae1239cf) Thanks [@jspspike](https://github.com/jspspike)! - Change dev registry and inspector server to listen on 127.0.0.1 instead of all interfaces + +- Updated dependencies [[`4f8b3420`](https://github.com/cloudflare/workers-sdk/commit/4f8b3420f93197d331491f012ff6f4626411bfc5), [`16cc2e92`](https://github.com/cloudflare/workers-sdk/commit/16cc2e923733b3c583b5bf6c40384c52fea04991), [`3637d97a`](https://github.com/cloudflare/workers-sdk/commit/3637d97a99c9d5e8d0d2b5f3adaf4bd9993265f0), [`29a59d4e`](https://github.com/cloudflare/workers-sdk/commit/29a59d4e72e3ae849474325c5c93252a3f84af0d), [`7fbe1937`](https://github.com/cloudflare/workers-sdk/commit/7fbe1937b311f36077c92814207bbb15ef3878d6), [`76787861`](https://github.com/cloudflare/workers-sdk/commit/767878613eda535d125539a478d488d1a42feaa1), [`8a25b7fb`](https://github.com/cloudflare/workers-sdk/commit/8a25b7fba94c8e9989412bc266ada307975f182d)]: + - miniflare@3.20231030.0 + ## 3.15.0 ### Minor Changes @@ -958,7 +997,7 @@ const url = new URL(req.url); const name = url.searchParams.get("name"); return new Response("Hello, " + name); - } + }, }; ``` @@ -1636,7 +1675,7 @@ rozenmd@cflaptop test1 % npx wrangler d1 execute test --command="select * from c ```js worker = await unstable_dev("src/index.js", { - experimental: { disableExperimentalWarning: true } + experimental: { disableExperimentalWarning: true }, }); ``` @@ -2144,7 +2183,7 @@ rozenmd@cflaptop test1 % npx wrangler d1 execute test --command="select * from c ```js await unstable_dev("src/index.ts", { - local: false + local: false, }); ``` @@ -2787,7 +2826,7 @@ rozenmd@cflaptop test1 % npx wrangler d1 execute test --command="select * from c export default { fetch(req, env) { return env.Bee.fetch(req); - } + }, }; ``` @@ -2803,7 +2842,7 @@ rozenmd@cflaptop test1 % npx wrangler d1 execute test --command="select * from c export default { fetch(req, env) { return new Response("Hello World"); - } + }, }; ``` @@ -3784,7 +3823,7 @@ And in your worker, you can call it like so: export default { fetch(req, env, ctx) { return env.MYWORKER.fetch(new Request("http://domain/some-path")); - } + }, }; ``` diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index b370e166f847..3957528b1708 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "3.15.0", + "version": "3.16.0", "description": "Command-line interface for all things Cloudflare Workers", "keywords": [ "wrangler",