diff --git a/.changeset/dependabot-update-11908.md b/.changeset/dependabot-update-11908.md deleted file mode 100644 index 08933c07ab49..000000000000 --- a/.changeset/dependabot-update-11908.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"miniflare": patch -"wrangler": patch ---- - -chore: update dependencies of "miniflare", "wrangler" - -The following dependency versions have been updated: - -| Dependency | From | To | -| ---------- | ------------ | ------------ | -| workerd | 1.20260111.0 | 1.20260114.0 | diff --git a/.changeset/friendly-connection-timeout.md b/.changeset/friendly-connection-timeout.md deleted file mode 100644 index ef7b617e09af..000000000000 --- a/.changeset/friendly-connection-timeout.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"wrangler": patch ---- - -Show helpful messages for errors outside of Wrangler's control. This prevents unnecessary Sentry reports. - -Errors now handled with user-friendly messages: - -- Connection timeouts to Cloudflare's API (`UND_ERR_CONNECT_TIMEOUT`) - typically due to slow networks or connectivity issues -- File system permission errors (`EPERM`, `EACCES`) - caused by insufficient permissions, locked files, or antivirus software -- DNS resolution failures (`ENOTFOUND`) - caused by network connectivity issues or DNS configuration problems diff --git a/.changeset/major-snails-post.md b/.changeset/major-snails-post.md deleted file mode 100644 index 785a16759b0a..000000000000 --- a/.changeset/major-snails-post.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -"@cloudflare/vite-plugin": minor ---- - -Add support for child environments. - -This is to support React Server Components via [@vitejs/plugin-rsc](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc) and frameworks that build on top of it. A `childEnvironments` option is now added to the plugin config to enable using multiple environments within a single Worker. The parent environment can import modules from a child environment in order to access a separate module graph. For a typical RSC use case, the plugin might be configured as in the following example: - -```ts -export default defineConfig({ - plugins: [ - cloudflare({ - viteEnvironment: { - name: "rsc", - childEnvironments: ["ssr"], - }, - }), - ], -}); -``` diff --git a/.changeset/native-dgram-module.md b/.changeset/native-dgram-module.md deleted file mode 100644 index cabe228ce651..000000000000 --- a/.changeset/native-dgram-module.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cloudflare/unenv-preset": minor ---- - -Add support for native `node:dgram` module when the `enable_nodejs_dgram_module` compatibility flag is enabled. This feature is currently experimental and requires both the `enable_nodejs_dgram_module` and `experimental` compatibility flags to be set. diff --git a/.changeset/native-stream-wrap-module.md b/.changeset/native-stream-wrap-module.md deleted file mode 100644 index 6b28766c717e..000000000000 --- a/.changeset/native-stream-wrap-module.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cloudflare/unenv-preset": minor ---- - -Add support for native `node:_stream_wrap` module when the `enable_nodejs_stream_wrap_module` compatibility flag is enabled. This feature is currently experimental and requires `nodejs_compat`, `experimental`, and `enable_nodejs_stream_wrap_module` compatibility flags to be set. diff --git a/.changeset/original-hostname-header.md b/.changeset/original-hostname-header.md deleted file mode 100644 index 7e3a6c65400c..000000000000 --- a/.changeset/original-hostname-header.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -"miniflare": minor ---- - -Add `MF-Original-Hostname` header when using the `upstream` option - -When using the `upstream` option in Miniflare, the `Host` header is rewritten to match the upstream server, which means the original hostname is lost. This change adds a new `MF-Original-Hostname` header that preserves the original hostname from the incoming request. - -This allows Workers to access the original hostname when proxying requests through an upstream server: - -```js -export default { - async fetch(request) { - const originalHostname = request.headers.get("MF-Original-Hostname"); - // originalHostname contains the hostname before it was rewritten - }, -}; -``` diff --git a/.changeset/stupid-pants-push.md b/.changeset/stupid-pants-push.md deleted file mode 100644 index c90e42c3f746..000000000000 --- a/.changeset/stupid-pants-push.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"@cloudflare/vite-plugin": patch -"@cloudflare/vitest-pool-workers": patch -"@cloudflare/kv-asset-handler": patch -"miniflare": patch ---- - -Bundle more third-party dependencies to reduce supply chain risk - -Previously, several small utility packages were listed as runtime dependencies and -installed separately. These are now bundled directly into the published packages, -reducing the number of external dependencies users need to trust. - -Bundled dependencies: - -- **miniflare**: `acorn`, `acorn-walk`, `exit-hook`, `glob-to-regexp`, `stoppable` -- **kv-asset-handler**: `mime` -- **vite-plugin-cloudflare**: `@remix-run/node-fetch-server`, `defu`, `get-port`, `picocolors`, `tinyglobby` -- **vitest-pool-workers**: `birpc`, `devalue`, `get-port`, `semver` diff --git a/.changeset/ten-pants-wash.md b/.changeset/ten-pants-wash.md deleted file mode 100644 index 4d06f6ba2bfc..000000000000 --- a/.changeset/ten-pants-wash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Improve the error message for `wrangler secret put` when using Worker versions or gradual deployments. `wrangler versions secret put` should be used instead, or ensure to deploy the latest version before using `wrangler secret put`. `wrangler secret put` alone will add the new secret to the latest version (possibly undeployed) and immediately deploy that which is usually not intended. diff --git a/packages/kv-asset-handler/CHANGELOG.md b/packages/kv-asset-handler/CHANGELOG.md index 003b4ac8ebab..10744aea1a77 100644 --- a/packages/kv-asset-handler/CHANGELOG.md +++ b/packages/kv-asset-handler/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## 0.4.2 + +### Patch Changes + +- [#11898](https://github.com/cloudflare/workers-sdk/pull/11898) [`c17e971`](https://github.com/cloudflare/workers-sdk/commit/c17e971af01a9bcead0aca409666e29417f4636a) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - Bundle more third-party dependencies to reduce supply chain risk + + Previously, several small utility packages were listed as runtime dependencies and + installed separately. These are now bundled directly into the published packages, + reducing the number of external dependencies users need to trust. + + Bundled dependencies: + + - **miniflare**: `acorn`, `acorn-walk`, `exit-hook`, `glob-to-regexp`, `stoppable` + - **kv-asset-handler**: `mime` + - **vite-plugin-cloudflare**: `@remix-run/node-fetch-server`, `defu`, `get-port`, `picocolors`, `tinyglobby` + - **vitest-pool-workers**: `birpc`, `devalue`, `get-port`, `semver` + ## 0.4.1 ### Patch Changes diff --git a/packages/kv-asset-handler/package.json b/packages/kv-asset-handler/package.json index 65dd871a1509..4a75998e31ee 100644 --- a/packages/kv-asset-handler/package.json +++ b/packages/kv-asset-handler/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/kv-asset-handler", - "version": "0.4.1", + "version": "0.4.2", "description": "Routes requests to KV assets", "keywords": [ "kv", diff --git a/packages/miniflare/CHANGELOG.md b/packages/miniflare/CHANGELOG.md index 2dbfd8a7fd2a..acfc84dd7c67 100644 --- a/packages/miniflare/CHANGELOG.md +++ b/packages/miniflare/CHANGELOG.md @@ -1,5 +1,47 @@ # miniflare +## 4.20260114.0 + +### Minor Changes + +- [#11883](https://github.com/cloudflare/workers-sdk/pull/11883) [`4714ca1`](https://github.com/cloudflare/workers-sdk/commit/4714ca12c1f24c7e3553d3bfd2812a833a07826c) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Add `MF-Original-Hostname` header when using the `upstream` option + + When using the `upstream` option in Miniflare, the `Host` header is rewritten to match the upstream server, which means the original hostname is lost. This change adds a new `MF-Original-Hostname` header that preserves the original hostname from the incoming request. + + This allows Workers to access the original hostname when proxying requests through an upstream server: + + ```js + export default { + async fetch(request) { + const originalHostname = request.headers.get("MF-Original-Hostname"); + // originalHostname contains the hostname before it was rewritten + }, + }; + ``` + +### Patch Changes + +- [#11908](https://github.com/cloudflare/workers-sdk/pull/11908) [`e78186d`](https://github.com/cloudflare/workers-sdk/commit/e78186dae926c0ae1ab387aaa6cb8ba53bed9992) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: update dependencies of "miniflare", "wrangler" + + The following dependency versions have been updated: + + | Dependency | From | To | + | ---------- | ------------ | ------------ | + | workerd | 1.20260111.0 | 1.20260114.0 | + +- [#11898](https://github.com/cloudflare/workers-sdk/pull/11898) [`c17e971`](https://github.com/cloudflare/workers-sdk/commit/c17e971af01a9bcead0aca409666e29417f4636a) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - Bundle more third-party dependencies to reduce supply chain risk + + Previously, several small utility packages were listed as runtime dependencies and + installed separately. These are now bundled directly into the published packages, + reducing the number of external dependencies users need to trust. + + Bundled dependencies: + + - **miniflare**: `acorn`, `acorn-walk`, `exit-hook`, `glob-to-regexp`, `stoppable` + - **kv-asset-handler**: `mime` + - **vite-plugin-cloudflare**: `@remix-run/node-fetch-server`, `defu`, `get-port`, `picocolors`, `tinyglobby` + - **vitest-pool-workers**: `birpc`, `devalue`, `get-port`, `semver` + ## 4.20260111.0 ### Patch Changes diff --git a/packages/miniflare/package.json b/packages/miniflare/package.json index 788b9b406c35..7d103c42818c 100644 --- a/packages/miniflare/package.json +++ b/packages/miniflare/package.json @@ -1,6 +1,6 @@ { "name": "miniflare", - "version": "4.20260111.0", + "version": "4.20260114.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 53be1b5b613b..9e0f19331710 100644 --- a/packages/pages-shared/CHANGELOG.md +++ b/packages/pages-shared/CHANGELOG.md @@ -1,5 +1,12 @@ # @cloudflare/pages-shared +## 0.13.99 + +### Patch Changes + +- Updated dependencies [[`e78186d`](https://github.com/cloudflare/workers-sdk/commit/e78186dae926c0ae1ab387aaa6cb8ba53bed9992), [`4714ca1`](https://github.com/cloudflare/workers-sdk/commit/4714ca12c1f24c7e3553d3bfd2812a833a07826c), [`c17e971`](https://github.com/cloudflare/workers-sdk/commit/c17e971af01a9bcead0aca409666e29417f4636a)]: + - miniflare@4.20260114.0 + ## 0.13.98 ### Patch Changes diff --git a/packages/pages-shared/package.json b/packages/pages-shared/package.json index 1554e9e1f381..63b84512d353 100644 --- a/packages/pages-shared/package.json +++ b/packages/pages-shared/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/pages-shared", - "version": "0.13.98", + "version": "0.13.99", "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 d3756789c9e6..c92b3990fd3c 100644 --- a/packages/unenv-preset/CHANGELOG.md +++ b/packages/unenv-preset/CHANGELOG.md @@ -1,5 +1,13 @@ # @cloudflare/unenv-preset +## 2.10.0 + +### Minor Changes + +- [#11701](https://github.com/cloudflare/workers-sdk/pull/11701) [`fec8f5b`](https://github.com/cloudflare/workers-sdk/commit/fec8f5b82e0bb64400bbfcced302748dbe9a3062) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - Add support for native `node:dgram` module when the `enable_nodejs_dgram_module` compatibility flag is enabled. This feature is currently experimental and requires both the `enable_nodejs_dgram_module` and `experimental` compatibility flags to be set. + +- [#11799](https://github.com/cloudflare/workers-sdk/pull/11799) [`d39777f`](https://github.com/cloudflare/workers-sdk/commit/d39777f1e354e8f3abd02164e76c2501e47e713f) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - Add support for native `node:_stream_wrap` module when the `enable_nodejs_stream_wrap_module` compatibility flag is enabled. This feature is currently experimental and requires `nodejs_compat`, `experimental`, and `enable_nodejs_stream_wrap_module` compatibility flags to be set. + ## 2.9.0 ### Minor Changes diff --git a/packages/unenv-preset/package.json b/packages/unenv-preset/package.json index 3026e120273e..83da1888fee2 100644 --- a/packages/unenv-preset/package.json +++ b/packages/unenv-preset/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/unenv-preset", - "version": "2.9.0", + "version": "2.10.0", "description": "cloudflare preset for unenv", "keywords": [ "cloudflare", diff --git a/packages/vite-plugin-cloudflare/CHANGELOG.md b/packages/vite-plugin-cloudflare/CHANGELOG.md index 475df456094a..4afc74dd9705 100644 --- a/packages/vite-plugin-cloudflare/CHANGELOG.md +++ b/packages/vite-plugin-cloudflare/CHANGELOG.md @@ -1,5 +1,46 @@ # @cloudflare/vite-plugin +## 1.21.0 + +### Minor Changes + +- [#11879](https://github.com/cloudflare/workers-sdk/pull/11879) [`5c8ff05`](https://github.com/cloudflare/workers-sdk/commit/5c8ff05079d71810fb1546f3dc788cc44ee00e22) Thanks [@jamesopstad](https://github.com/jamesopstad)! - Add support for child environments. + + This is to support React Server Components via [@vitejs/plugin-rsc](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc) and frameworks that build on top of it. A `childEnvironments` option is now added to the plugin config to enable using multiple environments within a single Worker. The parent environment can import modules from a child environment in order to access a separate module graph. For a typical RSC use case, the plugin might be configured as in the following example: + + ```ts + export default defineConfig({ + plugins: [ + cloudflare({ + viteEnvironment: { + name: "rsc", + childEnvironments: ["ssr"], + }, + }), + ], + }); + ``` + +### Patch Changes + +- [#11898](https://github.com/cloudflare/workers-sdk/pull/11898) [`c17e971`](https://github.com/cloudflare/workers-sdk/commit/c17e971af01a9bcead0aca409666e29417f4636a) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - Bundle more third-party dependencies to reduce supply chain risk + + Previously, several small utility packages were listed as runtime dependencies and + installed separately. These are now bundled directly into the published packages, + reducing the number of external dependencies users need to trust. + + Bundled dependencies: + + - **miniflare**: `acorn`, `acorn-walk`, `exit-hook`, `glob-to-regexp`, `stoppable` + - **kv-asset-handler**: `mime` + - **vite-plugin-cloudflare**: `@remix-run/node-fetch-server`, `defu`, `get-port`, `picocolors`, `tinyglobby` + - **vitest-pool-workers**: `birpc`, `devalue`, `get-port`, `semver` + +- Updated dependencies [[`e78186d`](https://github.com/cloudflare/workers-sdk/commit/e78186dae926c0ae1ab387aaa6cb8ba53bed9992), [`fe4faa3`](https://github.com/cloudflare/workers-sdk/commit/fe4faa306609514863fa770bac1dba5ff618f4be), [`fec8f5b`](https://github.com/cloudflare/workers-sdk/commit/fec8f5b82e0bb64400bbfcced302748dbe9a3062), [`d39777f`](https://github.com/cloudflare/workers-sdk/commit/d39777f1e354e8f3abd02164e76c2501e47e713f), [`4714ca1`](https://github.com/cloudflare/workers-sdk/commit/4714ca12c1f24c7e3553d3bfd2812a833a07826c), [`c17e971`](https://github.com/cloudflare/workers-sdk/commit/c17e971af01a9bcead0aca409666e29417f4636a), [`695b043`](https://github.com/cloudflare/workers-sdk/commit/695b043b4ddc99bf9a3fe93cc7daa8347b29ccb3)]: + - miniflare@4.20260114.0 + - wrangler@4.59.2 + - @cloudflare/unenv-preset@2.10.0 + ## 1.20.3 ### Patch Changes diff --git a/packages/vite-plugin-cloudflare/package.json b/packages/vite-plugin-cloudflare/package.json index cf6861ed58d7..3b9dd67de711 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.20.3", + "version": "1.21.0", "description": "Cloudflare plugin for Vite", "keywords": [ "cloudflare", diff --git a/packages/vitest-pool-workers/CHANGELOG.md b/packages/vitest-pool-workers/CHANGELOG.md index 8587ddadab31..dc1850926118 100644 --- a/packages/vitest-pool-workers/CHANGELOG.md +++ b/packages/vitest-pool-workers/CHANGELOG.md @@ -1,5 +1,26 @@ # @cloudflare/vitest-pool-workers +## 0.12.4 + +### Patch Changes + +- [#11898](https://github.com/cloudflare/workers-sdk/pull/11898) [`c17e971`](https://github.com/cloudflare/workers-sdk/commit/c17e971af01a9bcead0aca409666e29417f4636a) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - Bundle more third-party dependencies to reduce supply chain risk + + Previously, several small utility packages were listed as runtime dependencies and + installed separately. These are now bundled directly into the published packages, + reducing the number of external dependencies users need to trust. + + Bundled dependencies: + + - **miniflare**: `acorn`, `acorn-walk`, `exit-hook`, `glob-to-regexp`, `stoppable` + - **kv-asset-handler**: `mime` + - **vite-plugin-cloudflare**: `@remix-run/node-fetch-server`, `defu`, `get-port`, `picocolors`, `tinyglobby` + - **vitest-pool-workers**: `birpc`, `devalue`, `get-port`, `semver` + +- Updated dependencies [[`e78186d`](https://github.com/cloudflare/workers-sdk/commit/e78186dae926c0ae1ab387aaa6cb8ba53bed9992), [`fe4faa3`](https://github.com/cloudflare/workers-sdk/commit/fe4faa306609514863fa770bac1dba5ff618f4be), [`4714ca1`](https://github.com/cloudflare/workers-sdk/commit/4714ca12c1f24c7e3553d3bfd2812a833a07826c), [`c17e971`](https://github.com/cloudflare/workers-sdk/commit/c17e971af01a9bcead0aca409666e29417f4636a), [`695b043`](https://github.com/cloudflare/workers-sdk/commit/695b043b4ddc99bf9a3fe93cc7daa8347b29ccb3)]: + - miniflare@4.20260114.0 + - wrangler@4.59.2 + ## 0.12.3 ### Patch Changes diff --git a/packages/vitest-pool-workers/package.json b/packages/vitest-pool-workers/package.json index ac8f8d7f97f5..b128dc42028b 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.12.3", + "version": "0.12.4", "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 4f0ab79a8cae..0147137fb9a3 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,32 @@ # wrangler +## 4.59.2 + +### Patch Changes + +- [#11908](https://github.com/cloudflare/workers-sdk/pull/11908) [`e78186d`](https://github.com/cloudflare/workers-sdk/commit/e78186dae926c0ae1ab387aaa6cb8ba53bed9992) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: update dependencies of "miniflare", "wrangler" + + The following dependency versions have been updated: + + | Dependency | From | To | + | ---------- | ------------ | ------------ | + | workerd | 1.20260111.0 | 1.20260114.0 | + +- [#11880](https://github.com/cloudflare/workers-sdk/pull/11880) [`fe4faa3`](https://github.com/cloudflare/workers-sdk/commit/fe4faa306609514863fa770bac1dba5ff618f4be) Thanks [@penalosa](https://github.com/penalosa)! - Show helpful messages for errors outside of Wrangler's control. This prevents unnecessary Sentry reports. + + Errors now handled with user-friendly messages: + + - Connection timeouts to Cloudflare's API (`UND_ERR_CONNECT_TIMEOUT`) - typically due to slow networks or connectivity issues + - File system permission errors (`EPERM`, `EACCES`) - caused by insufficient permissions, locked files, or antivirus software + - DNS resolution failures (`ENOTFOUND`) - caused by network connectivity issues or DNS configuration problems + +- [#11882](https://github.com/cloudflare/workers-sdk/pull/11882) [`695b043`](https://github.com/cloudflare/workers-sdk/commit/695b043b4ddc99bf9a3fe93cc7daa8347b29ccb3) Thanks [@GregBrimble](https://github.com/GregBrimble)! - Improve the error message for `wrangler secret put` when using Worker versions or gradual deployments. `wrangler versions secret put` should be used instead, or ensure to deploy the latest version before using `wrangler secret put`. `wrangler secret put` alone will add the new secret to the latest version (possibly undeployed) and immediately deploy that which is usually not intended. + +- Updated dependencies [[`e78186d`](https://github.com/cloudflare/workers-sdk/commit/e78186dae926c0ae1ab387aaa6cb8ba53bed9992), [`fec8f5b`](https://github.com/cloudflare/workers-sdk/commit/fec8f5b82e0bb64400bbfcced302748dbe9a3062), [`d39777f`](https://github.com/cloudflare/workers-sdk/commit/d39777f1e354e8f3abd02164e76c2501e47e713f), [`4714ca1`](https://github.com/cloudflare/workers-sdk/commit/4714ca12c1f24c7e3553d3bfd2812a833a07826c), [`c17e971`](https://github.com/cloudflare/workers-sdk/commit/c17e971af01a9bcead0aca409666e29417f4636a)]: + - miniflare@4.20260114.0 + - @cloudflare/unenv-preset@2.10.0 + - @cloudflare/kv-asset-handler@0.4.2 + ## 4.59.1 ### Patch Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index d61fa755493a..8499235a8473 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "4.59.1", + "version": "4.59.2", "description": "Command-line interface for all things Cloudflare Workers", "keywords": [ "wrangler",