diff --git a/.changeset/afraid-sloths-begin.md b/.changeset/afraid-sloths-begin.md deleted file mode 100644 index 7ae1a7e4605c..000000000000 --- a/.changeset/afraid-sloths-begin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Improve potential errors thrown by `startRemoteProxySession` by including more information diff --git a/.changeset/all-kiwis-create.md b/.changeset/all-kiwis-create.md deleted file mode 100644 index 749ddec93aeb..000000000000 --- a/.changeset/all-kiwis-create.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"wrangler": minor ---- - -Config `preview_urls` defaults to `workers_dev` value. - -Originally, we were defaulting config.preview_urls to `true`, but we -were accidentally enabling Preview URLs for users that only had -config.workers_dev=false. - -Then, we set the default value of config.preview_urls to `false`, but we -were accidentally disabling Preview URLs for users that only had -config.workers_dev=true. - -Rather than defaulting config.preview_urls to `true` or `false`, we -default to the resolved value of config.workers_dev. Should result in a -clearer user experience. diff --git a/.changeset/big-goats-rescue.md b/.changeset/big-goats-rescue.md deleted file mode 100644 index 6525f0d2ffdd..000000000000 --- a/.changeset/big-goats-rescue.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": minor ---- - -Fixes generation of 'name' in Python uv.lock template diff --git a/.changeset/c3-frameworks-update-10948.md b/.changeset/c3-frameworks-update-10948.md deleted file mode 100644 index 3183a1a70d0a..000000000000 --- a/.changeset/c3-frameworks-update-10948.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"create-cloudflare": patch ---- - -chore: update dependencies of "create-cloudflare" package - -The following dependency versions have been updated: - -| Dependency | From | To | -| ----------- | ------ | ------ | -| create-qwik | 1.16.1 | 1.17.0 | diff --git a/.changeset/c3-frameworks-update-10949.md b/.changeset/c3-frameworks-update-10949.md deleted file mode 100644 index f9509b01c92c..000000000000 --- a/.changeset/c3-frameworks-update-10949.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"create-cloudflare": patch ---- - -chore: update dependencies of "create-cloudflare" package - -The following dependency versions have been updated: - -| Dependency | From | To | -| --------------- | ------ | ------ | -| @angular/create | 20.3.4 | 20.3.6 | diff --git a/.changeset/c3-frameworks-update-10950.md b/.changeset/c3-frameworks-update-10950.md deleted file mode 100644 index 24a03184ef78..000000000000 --- a/.changeset/c3-frameworks-update-10950.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"create-cloudflare": patch ---- - -chore: update dependencies of "create-cloudflare" package - -The following dependency versions have been updated: - -| Dependency | From | To | -| ---------- | ----- | ----- | -| sv | 0.9.7 | 0.9.8 | diff --git a/.changeset/c3-frameworks-update-10951.md b/.changeset/c3-frameworks-update-10951.md deleted file mode 100644 index 3c61cb357af3..000000000000 --- a/.changeset/c3-frameworks-update-10951.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"create-cloudflare": patch ---- - -chore: update dependencies of "create-cloudflare" package - -The following dependency versions have been updated: - -| Dependency | From | To | -| ---------- | ------ | ------ | -| nuxi | 3.28.0 | 3.29.3 | diff --git a/.changeset/c3-frameworks-update-10952.md b/.changeset/c3-frameworks-update-10952.md deleted file mode 100644 index 9416b0d441b5..000000000000 --- a/.changeset/c3-frameworks-update-10952.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"create-cloudflare": patch ---- - -chore: update dependencies of "create-cloudflare" package - -The following dependency versions have been updated: - -| Dependency | From | To | -| ------------------- | ----- | ----- | -| create-react-router | 7.9.3 | 7.9.4 | diff --git a/.changeset/common-beans-wink.md b/.changeset/common-beans-wink.md deleted file mode 100644 index 7e132111fa4a..000000000000 --- a/.changeset/common-beans-wink.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Fix `observability.logs.persist` being flagged as an unexpected field during the wrangler config file validation diff --git a/.changeset/common-colts-clap.md b/.changeset/common-colts-clap.md deleted file mode 100644 index 33912c0dd895..000000000000 --- a/.changeset/common-colts-clap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": minor ---- - -Statically replace the value of `process.env.NODE_ENV` with `development` for development builds and `production` for production builds if it is not set. Else, use the given value. This ensures that libraries, such as React, that branch code based on `process.env.NODE_ENV` can be properly tree shaken. diff --git a/.changeset/cruel-shirts-eat.md b/.changeset/cruel-shirts-eat.md deleted file mode 100644 index 84b32c8ffccc..000000000000 --- a/.changeset/cruel-shirts-eat.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cloudflare/vite-plugin": patch ---- - -Add request cancellation support - -Workers running on Vite can now listen to the abort event with `request.signal` to perform tasks when the request is canceled by the client. For more information, see the [Request](https://developers.cloudflare.com/workers/runtime-apis/request) documentation. diff --git a/.changeset/dependabot-update-10963.md b/.changeset/dependabot-update-10963.md deleted file mode 100644 index f67efebc20bb..000000000000 --- a/.changeset/dependabot-update-10963.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"miniflare": patch ---- - -chore: update dependencies of "miniflare" package - -The following dependency versions have been updated: - -| Dependency | From | To | -| ---------- | ------------ | ------------ | -| workerd | 1.20251008.0 | 1.20251011.0 | diff --git a/.changeset/eight-onions-care.md b/.changeset/eight-onions-care.md deleted file mode 100644 index f1db604f515d..000000000000 --- a/.changeset/eight-onions-care.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -Fix git commit failures when global pre-commit hooks are configured. When initializing projects, create-cloudflare now uses git commit --no-verify to bypass any globally configured git hooks that might fail and block project initialization. diff --git a/.changeset/fancy-comics-clap.md b/.changeset/fancy-comics-clap.md deleted file mode 100644 index da484912f8e3..000000000000 --- a/.changeset/fancy-comics-clap.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"wrangler": minor ---- - -Add params type to Workflow type generation. E.g. - -```ts -interface Env { - MY_WORKFLOW: Workflow< - Parameters[0]["payload"] - >; -} -``` diff --git a/.changeset/fancy-spoons-chew.md b/.changeset/fancy-spoons-chew.md deleted file mode 100644 index 5342a2257e25..000000000000 --- a/.changeset/fancy-spoons-chew.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Update logs handling to use the new `handleStructuredLogs` miniflare option diff --git a/.changeset/fine-ends-create.md b/.changeset/fine-ends-create.md deleted file mode 100644 index 67ca3df2c072..000000000000 --- a/.changeset/fine-ends-create.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -When either WRANGLER_OUTPUT_FILE_PATH or WRANGLER_OUTPUT_FILE_DIRECTORY are set -in the environment, then command failures will append a line to the output file -encoding the error code and message, if present. diff --git a/.changeset/five-worms-cut.md b/.changeset/five-worms-cut.md deleted file mode 100644 index 0f66994e175a..000000000000 --- a/.changeset/five-worms-cut.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cloudflare/containers-shared": patch ---- - -Correctly handle image names that contain a slash diff --git a/.changeset/free-wombats-invent.md b/.changeset/free-wombats-invent.md deleted file mode 100644 index 63d20ff8a7dd..000000000000 --- a/.changeset/free-wombats-invent.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -fix: cleanup any running containers again on wrangler dev exit diff --git a/.changeset/gentle-teams-cut.md b/.changeset/gentle-teams-cut.md deleted file mode 100644 index aee3579640a0..000000000000 --- a/.changeset/gentle-teams-cut.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"miniflare": minor -"wrangler": minor ---- - -Add media binding support diff --git a/.changeset/green-dancers-sin.md b/.changeset/green-dancers-sin.md deleted file mode 100644 index 3e2cc0372bcf..000000000000 --- a/.changeset/green-dancers-sin.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -"@cloudflare/containers-shared": patch -"wrangler": patch ---- - -always load container image into local store during build - - -BuildKit supports different [build drivers](https://docs.docker.com/build/builders/drivers/). When using the more modern `docker-container` driver (which is now the default on some systems, e.g. a standard Docker installation on Fedora Linux), it will not automatically load the built image into the local image store. Since wrangler expects the image to be there (e.g. when calling `getImageRepoTags`), it will thus fail, e.g.: - -``` -⎔ Preparing container image(s)... -[+] Building 0.3s (8/8) FINISHED docker-container:default - -[...] - -WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load - -✘ [ERROR] failed inspecting image locally: Error response from daemon: failed to find image cloudflare-dev/sandbox:f86e40e4: docker.io/cloudflare-dev/sandbox:f86e40e4: No such image - -``` - -Explicitly setting the `--load` flag (equivalent to `-o type=docker`) during the build fixes this and should make the build a bit more portable without requiring users to change their default build driver configuration. diff --git a/.changeset/honest-worms-repeat.md b/.changeset/honest-worms-repeat.md deleted file mode 100644 index 5550df712214..000000000000 --- a/.changeset/honest-worms-repeat.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cloudflare/unenv-preset": patch ---- - -Use the native `node:cluster` module when available. - -It is enabled when the `enable_nodejs_cluster_module` compatibility flag is set. diff --git a/.changeset/pretty-paths-stare.md b/.changeset/pretty-paths-stare.md deleted file mode 100644 index 04c85ab9adcd..000000000000 --- a/.changeset/pretty-paths-stare.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cloudflare/vite-plugin": patch ---- - -Ensure that logs are printed at the correct log level - -The changes here ensure that logs generated by Workers are printed accordingly to the `logLevel` the user defines (either in their Vite config file or via the `--logLevel` CLI flag) diff --git a/.changeset/sad-mirrors-mix.md b/.changeset/sad-mirrors-mix.md deleted file mode 100644 index 5ecf7f6e18e8..000000000000 --- a/.changeset/sad-mirrors-mix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Make Workflows instances list command cursor based diff --git a/.changeset/salty-plums-worry.md b/.changeset/salty-plums-worry.md deleted file mode 100644 index 54044ecfcc69..000000000000 --- a/.changeset/salty-plums-worry.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cloudflare/vite-plugin": patch ---- - -fix: track server restart in module scope - -When using `@cloudflare/vite-plugin` with React Router, miniflare might be disposed during restart. This change makes sure to track when the dev server restart in module scope to avoid unexpected behavior. diff --git a/.changeset/silver-pears-wait.md b/.changeset/silver-pears-wait.md deleted file mode 100644 index 53dc7afd663c..000000000000 --- a/.changeset/silver-pears-wait.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -improve the diffing representation for `wrangler deploy` (run under `--x-remote-diff-check`) diff --git a/.changeset/slick-meals-grab.md b/.changeset/slick-meals-grab.md deleted file mode 100644 index d87496c6b03f..000000000000 --- a/.changeset/slick-meals-grab.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": minor ---- - -fixed creating index.js with wrong extension when Vue project is created with JavaScript diff --git a/.changeset/spicy-moose-march.md b/.changeset/spicy-moose-march.md deleted file mode 100644 index ddfa23f44a15..000000000000 --- a/.changeset/spicy-moose-march.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": minor ---- - -Python templates' package.json scripts now use pywrangler diff --git a/.changeset/stupid-ads-enter.md b/.changeset/stupid-ads-enter.md deleted file mode 100644 index 46a0888dd12a..000000000000 --- a/.changeset/stupid-ads-enter.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"miniflare": minor ---- - -Add `handleStructuredLogs` option that allows consumers of the workerd structured logs to print such logs without additional boilerplate diff --git a/packages/containers-shared/CHANGELOG.md b/packages/containers-shared/CHANGELOG.md index 07f4917e3714..ddd19044e605 100644 --- a/packages/containers-shared/CHANGELOG.md +++ b/packages/containers-shared/CHANGELOG.md @@ -1,5 +1,29 @@ # @cloudflare/containers-shared +## 0.2.13 + +### Patch Changes + +- [#11007](https://github.com/cloudflare/workers-sdk/pull/11007) [`cf16deb`](https://github.com/cloudflare/workers-sdk/commit/cf16debb668a1ffb69cba9171048c5a295dde6c6) Thanks [@gpanders](https://github.com/gpanders)! - Correctly handle image names that contain a slash + +- [#11000](https://github.com/cloudflare/workers-sdk/pull/11000) [`a6de9db`](https://github.com/cloudflare/workers-sdk/commit/a6de9db65185ba40e8a7fcecc5d9e79287c04d2f) Thanks [@jonboulle](https://github.com/jonboulle)! - always load container image into local store during build + + BuildKit supports different [build drivers](https://docs.docker.com/build/builders/drivers/). When using the more modern `docker-container` driver (which is now the default on some systems, e.g. a standard Docker installation on Fedora Linux), it will not automatically load the built image into the local image store. Since wrangler expects the image to be there (e.g. when calling `getImageRepoTags`), it will thus fail, e.g.: + + ``` + ⎔ Preparing container image(s)... + [+] Building 0.3s (8/8) FINISHED docker-container:default + + [...] + + WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load + + ✘ [ERROR] failed inspecting image locally: Error response from daemon: failed to find image cloudflare-dev/sandbox:f86e40e4: docker.io/cloudflare-dev/sandbox:f86e40e4: No such image + + ``` + + Explicitly setting the `--load` flag (equivalent to `-o type=docker`) during the build fixes this and should make the build a bit more portable without requiring users to change their default build driver configuration. + ## 0.2.12 ### Patch Changes diff --git a/packages/containers-shared/package.json b/packages/containers-shared/package.json index 1894831a5f1e..43103dcb8308 100644 --- a/packages/containers-shared/package.json +++ b/packages/containers-shared/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/containers-shared", - "version": "0.2.12", + "version": "0.2.13", "private": true, "description": "Package that contains shared container functionality for Cloudflare Workers SDK.", "homepage": "https://github.com/cloudflare/workers-sdk/tree/main/packages/containers-shared#readme", diff --git a/packages/create-cloudflare/CHANGELOG.md b/packages/create-cloudflare/CHANGELOG.md index 0beb00a36756..534a82a0f7a1 100644 --- a/packages/create-cloudflare/CHANGELOG.md +++ b/packages/create-cloudflare/CHANGELOG.md @@ -1,5 +1,59 @@ # create-cloudflare +## 2.53.0 + +### Minor Changes + +- [#10989](https://github.com/cloudflare/workers-sdk/pull/10989) [`da37501`](https://github.com/cloudflare/workers-sdk/commit/da37501a6375c599a4deeac9a5d1445aca1bdf6c) Thanks [@dom96](https://github.com/dom96)! - Fixes generation of 'name' in Python uv.lock template + +- [#10943](https://github.com/cloudflare/workers-sdk/pull/10943) [`9d843fe`](https://github.com/cloudflare/workers-sdk/commit/9d843fe1f6a329f43d54e95fb15d9d9546efa600) Thanks [@valfz](https://github.com/valfz)! - fixed creating index.js with wrong extension when Vue project is created with JavaScript + +- [#10990](https://github.com/cloudflare/workers-sdk/pull/10990) [`c07036b`](https://github.com/cloudflare/workers-sdk/commit/c07036b7740dbeb9d48d71221755d71374725b46) Thanks [@dom96](https://github.com/dom96)! - Python templates' package.json scripts now use pywrangler + +### Patch Changes + +- [#10948](https://github.com/cloudflare/workers-sdk/pull/10948) [`04c5dc7`](https://github.com/cloudflare/workers-sdk/commit/04c5dc7b611bea475eb82a9d683011a76a52f6b7) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: update dependencies of "create-cloudflare" package + + The following dependency versions have been updated: + + | Dependency | From | To | + | ----------- | ------ | ------ | + | create-qwik | 1.16.1 | 1.17.0 | + +- [#10949](https://github.com/cloudflare/workers-sdk/pull/10949) [`44dc255`](https://github.com/cloudflare/workers-sdk/commit/44dc25554fe1b2f3bd1b18f76753190e93e533a3) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: update dependencies of "create-cloudflare" package + + The following dependency versions have been updated: + + | Dependency | From | To | + | --------------- | ------ | ------ | + | @angular/create | 20.3.4 | 20.3.6 | + +- [#10950](https://github.com/cloudflare/workers-sdk/pull/10950) [`39dbb39`](https://github.com/cloudflare/workers-sdk/commit/39dbb397ef07f629018a8bbd0f9b33831445c6ca) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: update dependencies of "create-cloudflare" package + + The following dependency versions have been updated: + + | Dependency | From | To | + | ---------- | ----- | ----- | + | sv | 0.9.7 | 0.9.8 | + +- [#10951](https://github.com/cloudflare/workers-sdk/pull/10951) [`46c31e1`](https://github.com/cloudflare/workers-sdk/commit/46c31e18e17f21a019e65beb58b482020290d24c) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: update dependencies of "create-cloudflare" package + + The following dependency versions have been updated: + + | Dependency | From | To | + | ---------- | ------ | ------ | + | nuxi | 3.28.0 | 3.29.3 | + +- [#10952](https://github.com/cloudflare/workers-sdk/pull/10952) [`dcda100`](https://github.com/cloudflare/workers-sdk/commit/dcda100ccdf703cd5b002f3b48da64dfdd6fd5c9) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: update dependencies of "create-cloudflare" package + + The following dependency versions have been updated: + + | Dependency | From | To | + | ------------------- | ----- | ----- | + | create-react-router | 7.9.3 | 7.9.4 | + +- [#10914](https://github.com/cloudflare/workers-sdk/pull/10914) [`890a606`](https://github.com/cloudflare/workers-sdk/commit/890a606a196e62e1f56f3982e71c3d97246b9a34) Thanks [@devin-ai-integration](https://github.com/apps/devin-ai-integration)! - Fix git commit failures when global pre-commit hooks are configured. When initializing projects, create-cloudflare now uses git commit --no-verify to bypass any globally configured git hooks that might fail and block project initialization. + ## 2.52.3 ### Patch Changes diff --git a/packages/create-cloudflare/package.json b/packages/create-cloudflare/package.json index a38ee4c3b8ff..81251620bbe3 100644 --- a/packages/create-cloudflare/package.json +++ b/packages/create-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "create-cloudflare", - "version": "2.52.3", + "version": "2.53.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 31bc55e846e3..bfa4fc71f55c 100644 --- a/packages/miniflare/CHANGELOG.md +++ b/packages/miniflare/CHANGELOG.md @@ -1,5 +1,23 @@ # miniflare +## 4.20251011.0 + +### Minor Changes + +- [#10867](https://github.com/cloudflare/workers-sdk/pull/10867) [`dd5f769`](https://github.com/cloudflare/workers-sdk/commit/dd5f769104e65241ef6af00a2e37ea9ba2b9114f) Thanks [@austin-mc](https://github.com/austin-mc)! - Add media binding support + +- [#10768](https://github.com/cloudflare/workers-sdk/pull/10768) [`8211bc9`](https://github.com/cloudflare/workers-sdk/commit/8211bc90f83ccabb0385b03b2349269b8d8ff9e9) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Add `handleStructuredLogs` option that allows consumers of the workerd structured logs to print such logs without additional boilerplate + +### Patch Changes + +- [#10963](https://github.com/cloudflare/workers-sdk/pull/10963) [`36d7054`](https://github.com/cloudflare/workers-sdk/commit/36d70543eade502d1803f3c14ae4cd728ceac6af) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: update dependencies of "miniflare" package + + The following dependency versions have been updated: + + | Dependency | From | To | + | ---------- | ------------ | ------------ | + | workerd | 1.20251008.0 | 1.20251011.0 | + ## 4.20251008.0 ### Patch Changes diff --git a/packages/miniflare/package.json b/packages/miniflare/package.json index 1a8bdff3498d..a6b3dcd9b21a 100644 --- a/packages/miniflare/package.json +++ b/packages/miniflare/package.json @@ -1,6 +1,6 @@ { "name": "miniflare", - "version": "4.20251008.0", + "version": "4.20251011.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 1eb47f014ec3..42e546680e20 100644 --- a/packages/pages-shared/CHANGELOG.md +++ b/packages/pages-shared/CHANGELOG.md @@ -1,5 +1,12 @@ # @cloudflare/pages-shared +## 0.13.80 + +### Patch Changes + +- Updated dependencies [[`36d7054`](https://github.com/cloudflare/workers-sdk/commit/36d70543eade502d1803f3c14ae4cd728ceac6af), [`dd5f769`](https://github.com/cloudflare/workers-sdk/commit/dd5f769104e65241ef6af00a2e37ea9ba2b9114f), [`8211bc9`](https://github.com/cloudflare/workers-sdk/commit/8211bc90f83ccabb0385b03b2349269b8d8ff9e9)]: + - miniflare@4.20251011.0 + ## 0.13.79 ### Patch Changes diff --git a/packages/pages-shared/package.json b/packages/pages-shared/package.json index fa0eaa722ea1..8f9bd3c33661 100644 --- a/packages/pages-shared/package.json +++ b/packages/pages-shared/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/pages-shared", - "version": "0.13.79", + "version": "0.13.80", "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 index fc953a80f909..77ebc36488de 100644 --- a/packages/unenv-preset/CHANGELOG.md +++ b/packages/unenv-preset/CHANGELOG.md @@ -1,5 +1,13 @@ # @cloudflare/unenv-preset +## 2.7.8 + +### Patch Changes + +- [#10954](https://github.com/cloudflare/workers-sdk/pull/10954) [`ee7d710`](https://github.com/cloudflare/workers-sdk/commit/ee7d71075aad422e7ef267ea0e87e2e300aadc67) Thanks [@vicb](https://github.com/vicb)! - Use the native `node:cluster` module when available. + + It is enabled when the `enable_nodejs_cluster_module` compatibility flag is set. + ## 2.7.7 ### Patch Changes diff --git a/packages/unenv-preset/package.json b/packages/unenv-preset/package.json index 0132f0710e17..1a502d881226 100644 --- a/packages/unenv-preset/package.json +++ b/packages/unenv-preset/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/unenv-preset", - "version": "2.7.7", + "version": "2.7.8", "description": "cloudflare preset for unenv", "keywords": [ "cloudflare", diff --git a/packages/vite-plugin-cloudflare/CHANGELOG.md b/packages/vite-plugin-cloudflare/CHANGELOG.md index f26a32b89f27..ad8c962808e4 100644 --- a/packages/vite-plugin-cloudflare/CHANGELOG.md +++ b/packages/vite-plugin-cloudflare/CHANGELOG.md @@ -1,5 +1,26 @@ # @cloudflare/vite-plugin +## 1.13.14 + +### Patch Changes + +- [#10707](https://github.com/cloudflare/workers-sdk/pull/10707) [`092c999`](https://github.com/cloudflare/workers-sdk/commit/092c999d57ac6d833244e3bbb066f4a5260ce2e5) Thanks [@edmundhung](https://github.com/edmundhung)! - Add request cancellation support + + Workers running on Vite can now listen to the abort event with `request.signal` to perform tasks when the request is canceled by the client. For more information, see the [Request](https://developers.cloudflare.com/workers/runtime-apis/request) documentation. + +- [#10768](https://github.com/cloudflare/workers-sdk/pull/10768) [`8211bc9`](https://github.com/cloudflare/workers-sdk/commit/8211bc90f83ccabb0385b03b2349269b8d8ff9e9) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Ensure that logs are printed at the correct log level + + The changes here ensure that logs generated by Workers are printed accordingly to the `logLevel` the user defines (either in their Vite config file or via the `--logLevel` CLI flag) + +- [#10899](https://github.com/cloudflare/workers-sdk/pull/10899) [`e2809b5`](https://github.com/cloudflare/workers-sdk/commit/e2809b59524f6d9e3c5d185f43ad3cd5448ccacb) Thanks [@edmundhung](https://github.com/edmundhung)! - fix: track server restart in module scope + + When using `@cloudflare/vite-plugin` with React Router, miniflare might be disposed during restart. This change makes sure to track when the dev server restart in module scope to avoid unexpected behavior. + +- Updated dependencies [[`5124818`](https://github.com/cloudflare/workers-sdk/commit/512481809fe59ba9208509ab443872ad4605b6ce), [`d4b4c90`](https://github.com/cloudflare/workers-sdk/commit/d4b4c90ec2e48bcc128f105337979c1d51af6642), [`6643bd4`](https://github.com/cloudflare/workers-sdk/commit/6643bd41a082f04778739b93a872cb49f52ac201), [`1a2bbf8`](https://github.com/cloudflare/workers-sdk/commit/1a2bbf893833f68398becf12d3bdd62a2dca6ac9), [`36d7054`](https://github.com/cloudflare/workers-sdk/commit/36d70543eade502d1803f3c14ae4cd728ceac6af), [`0ee1a68`](https://github.com/cloudflare/workers-sdk/commit/0ee1a6897d2e7670b39373efcb9a9f82713f8ff4), [`8211bc9`](https://github.com/cloudflare/workers-sdk/commit/8211bc90f83ccabb0385b03b2349269b8d8ff9e9), [`3bb034f`](https://github.com/cloudflare/workers-sdk/commit/3bb034f775da86eed07ad5ef1cdcaf0d1687d281), [`43503c7`](https://github.com/cloudflare/workers-sdk/commit/43503c764fb55f4ffe0308c92adc808c9add3fb8), [`dd5f769`](https://github.com/cloudflare/workers-sdk/commit/dd5f769104e65241ef6af00a2e37ea9ba2b9114f), [`a6de9db`](https://github.com/cloudflare/workers-sdk/commit/a6de9db65185ba40e8a7fcecc5d9e79287c04d2f), [`ee7d710`](https://github.com/cloudflare/workers-sdk/commit/ee7d71075aad422e7ef267ea0e87e2e300aadc67), [`d39c8b5`](https://github.com/cloudflare/workers-sdk/commit/d39c8b5a26c2572cd07fd138fabc96e740babc1c), [`7d0417b`](https://github.com/cloudflare/workers-sdk/commit/7d0417ba707e27f930569673e34b6206b6232d18), [`8211bc9`](https://github.com/cloudflare/workers-sdk/commit/8211bc90f83ccabb0385b03b2349269b8d8ff9e9)]: + - wrangler@4.44.0 + - miniflare@4.20251011.0 + - @cloudflare/unenv-preset@2.7.8 + ## 1.13.13 ### Patch Changes diff --git a/packages/vite-plugin-cloudflare/package.json b/packages/vite-plugin-cloudflare/package.json index c50b0c928ee4..159940337909 100644 --- a/packages/vite-plugin-cloudflare/package.json +++ b/packages/vite-plugin-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/vite-plugin", - "version": "1.13.13", + "version": "1.13.14", "description": "Cloudflare plugin for Vite", "keywords": [ "cloudflare", diff --git a/packages/vitest-pool-workers/CHANGELOG.md b/packages/vitest-pool-workers/CHANGELOG.md index f0eb693f496e..86cf104d44e0 100644 --- a/packages/vitest-pool-workers/CHANGELOG.md +++ b/packages/vitest-pool-workers/CHANGELOG.md @@ -1,5 +1,13 @@ # @cloudflare/vitest-pool-workers +## 0.9.14 + +### Patch Changes + +- Updated dependencies [[`5124818`](https://github.com/cloudflare/workers-sdk/commit/512481809fe59ba9208509ab443872ad4605b6ce), [`d4b4c90`](https://github.com/cloudflare/workers-sdk/commit/d4b4c90ec2e48bcc128f105337979c1d51af6642), [`6643bd4`](https://github.com/cloudflare/workers-sdk/commit/6643bd41a082f04778739b93a872cb49f52ac201), [`1a2bbf8`](https://github.com/cloudflare/workers-sdk/commit/1a2bbf893833f68398becf12d3bdd62a2dca6ac9), [`36d7054`](https://github.com/cloudflare/workers-sdk/commit/36d70543eade502d1803f3c14ae4cd728ceac6af), [`0ee1a68`](https://github.com/cloudflare/workers-sdk/commit/0ee1a6897d2e7670b39373efcb9a9f82713f8ff4), [`8211bc9`](https://github.com/cloudflare/workers-sdk/commit/8211bc90f83ccabb0385b03b2349269b8d8ff9e9), [`3bb034f`](https://github.com/cloudflare/workers-sdk/commit/3bb034f775da86eed07ad5ef1cdcaf0d1687d281), [`43503c7`](https://github.com/cloudflare/workers-sdk/commit/43503c764fb55f4ffe0308c92adc808c9add3fb8), [`dd5f769`](https://github.com/cloudflare/workers-sdk/commit/dd5f769104e65241ef6af00a2e37ea9ba2b9114f), [`a6de9db`](https://github.com/cloudflare/workers-sdk/commit/a6de9db65185ba40e8a7fcecc5d9e79287c04d2f), [`d39c8b5`](https://github.com/cloudflare/workers-sdk/commit/d39c8b5a26c2572cd07fd138fabc96e740babc1c), [`7d0417b`](https://github.com/cloudflare/workers-sdk/commit/7d0417ba707e27f930569673e34b6206b6232d18), [`8211bc9`](https://github.com/cloudflare/workers-sdk/commit/8211bc90f83ccabb0385b03b2349269b8d8ff9e9)]: + - wrangler@4.44.0 + - miniflare@4.20251011.0 + ## 0.9.13 ### Patch Changes diff --git a/packages/vitest-pool-workers/package.json b/packages/vitest-pool-workers/package.json index 7f4ec83bbf71..4963e2db3596 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.9.13", + "version": "0.9.14", "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 d4ed7fdfab27..b57e370bcb4a 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,77 @@ # wrangler +## 4.44.0 + +### Minor Changes + +- [#10939](https://github.com/cloudflare/workers-sdk/pull/10939) [`d4b4c90`](https://github.com/cloudflare/workers-sdk/commit/d4b4c90ec2e48bcc128f105337979c1d51af6642) Thanks [@danielrs](https://github.com/danielrs)! - Config `preview_urls` defaults to `workers_dev` value. + + Originally, we were defaulting config.preview_urls to `true`, but we + were accidentally enabling Preview URLs for users that only had + config.workers_dev=false. + + Then, we set the default value of config.preview_urls to `false`, but we + were accidentally disabling Preview URLs for users that only had + config.workers_dev=true. + + Rather than defaulting config.preview_urls to `true` or `false`, we + default to the resolved value of config.workers_dev. Should result in a + clearer user experience. + +- [#11027](https://github.com/cloudflare/workers-sdk/pull/11027) [`1a2bbf8`](https://github.com/cloudflare/workers-sdk/commit/1a2bbf893833f68398becf12d3bdd62a2dca6ac9) Thanks [@jamesopstad](https://github.com/jamesopstad)! - Statically replace the value of `process.env.NODE_ENV` with `development` for development builds and `production` for production builds if it is not set. Else, use the given value. This ensures that libraries, such as React, that branch code based on `process.env.NODE_ENV` can be properly tree shaken. + +- [#9705](https://github.com/cloudflare/workers-sdk/pull/9705) [`0ee1a68`](https://github.com/cloudflare/workers-sdk/commit/0ee1a6897d2e7670b39373efcb9a9f82713f8ff4) Thanks [@hiendv](https://github.com/hiendv)! - Add params type to Workflow type generation. E.g. + + ```ts + interface Env { + MY_WORKFLOW: Workflow< + Parameters[0]["payload"] + >; + } + ``` + +- [#10867](https://github.com/cloudflare/workers-sdk/pull/10867) [`dd5f769`](https://github.com/cloudflare/workers-sdk/commit/dd5f769104e65241ef6af00a2e37ea9ba2b9114f) Thanks [@austin-mc](https://github.com/austin-mc)! - Add media binding support + +### Patch Changes + +- [#11018](https://github.com/cloudflare/workers-sdk/pull/11018) [`5124818`](https://github.com/cloudflare/workers-sdk/commit/512481809fe59ba9208509ab443872ad4605b6ce) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Improve potential errors thrown by `startRemoteProxySession` by including more information + +- [#11019](https://github.com/cloudflare/workers-sdk/pull/11019) [`6643bd4`](https://github.com/cloudflare/workers-sdk/commit/6643bd41a082f04778739b93a872cb49f52ac201) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Fix `observability.logs.persist` being flagged as an unexpected field during the wrangler config file validation + +- [#10768](https://github.com/cloudflare/workers-sdk/pull/10768) [`8211bc9`](https://github.com/cloudflare/workers-sdk/commit/8211bc90f83ccabb0385b03b2349269b8d8ff9e9) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Update logs handling to use the new `handleStructuredLogs` miniflare option + +- [#10997](https://github.com/cloudflare/workers-sdk/pull/10997) [`3bb034f`](https://github.com/cloudflare/workers-sdk/commit/3bb034f775da86eed07ad5ef1cdcaf0d1687d281) Thanks [@nikitassharma](https://github.com/nikitassharma)! - When either WRANGLER_OUTPUT_FILE_PATH or WRANGLER_OUTPUT_FILE_DIRECTORY are set + in the environment, then command failures will append a line to the output file + encoding the error code and message, if present. + +- [#10986](https://github.com/cloudflare/workers-sdk/pull/10986) [`43503c7`](https://github.com/cloudflare/workers-sdk/commit/43503c764fb55f4ffe0308c92adc808c9add3fb8) Thanks [@emily-shen](https://github.com/emily-shen)! - fix: cleanup any running containers again on wrangler dev exit + +- [#11000](https://github.com/cloudflare/workers-sdk/pull/11000) [`a6de9db`](https://github.com/cloudflare/workers-sdk/commit/a6de9db65185ba40e8a7fcecc5d9e79287c04d2f) Thanks [@jonboulle](https://github.com/jonboulle)! - always load container image into local store during build + + BuildKit supports different [build drivers](https://docs.docker.com/build/builders/drivers/). When using the more modern `docker-container` driver (which is now the default on some systems, e.g. a standard Docker installation on Fedora Linux), it will not automatically load the built image into the local image store. Since wrangler expects the image to be there (e.g. when calling `getImageRepoTags`), it will thus fail, e.g.: + + ``` + ⎔ Preparing container image(s)... + [+] Building 0.3s (8/8) FINISHED docker-container:default + + [...] + + WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load + + ✘ [ERROR] failed inspecting image locally: Error response from daemon: failed to find image cloudflare-dev/sandbox:f86e40e4: docker.io/cloudflare-dev/sandbox:f86e40e4: No such image + + ``` + + Explicitly setting the `--load` flag (equivalent to `-o type=docker`) during the build fixes this and should make the build a bit more portable without requiring users to change their default build driver configuration. + +- [#10994](https://github.com/cloudflare/workers-sdk/pull/10994) [`d39c8b5`](https://github.com/cloudflare/workers-sdk/commit/d39c8b5a26c2572cd07fd138fabc96e740babc1c) Thanks [@pombosilva](https://github.com/pombosilva)! - Make Workflows instances list command cursor based + +- [#10892](https://github.com/cloudflare/workers-sdk/pull/10892) [`7d0417b`](https://github.com/cloudflare/workers-sdk/commit/7d0417ba707e27f930569673e34b6206b6232d18) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - improve the diffing representation for `wrangler deploy` (run under `--x-remote-diff-check`) + +- Updated dependencies [[`36d7054`](https://github.com/cloudflare/workers-sdk/commit/36d70543eade502d1803f3c14ae4cd728ceac6af), [`dd5f769`](https://github.com/cloudflare/workers-sdk/commit/dd5f769104e65241ef6af00a2e37ea9ba2b9114f), [`ee7d710`](https://github.com/cloudflare/workers-sdk/commit/ee7d71075aad422e7ef267ea0e87e2e300aadc67), [`8211bc9`](https://github.com/cloudflare/workers-sdk/commit/8211bc90f83ccabb0385b03b2349269b8d8ff9e9)]: + - miniflare@4.20251011.0 + - @cloudflare/unenv-preset@2.7.8 + ## 4.43.0 ### Minor Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index 7e23c2574b3c..6b81b1557c9b 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "4.43.0", + "version": "4.44.0", "description": "Command-line interface for all things Cloudflare Workers", "keywords": [ "wrangler",