From dbc7e28e330b248f2d14c120a7337a4688ca2215 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 2 Apr 2026 11:47:49 +0000 Subject: [PATCH] Version Packages --- .changeset/add-ai-search-type-generation.md | 27 ------ .changeset/add-cli-gitignore-helpers.md | 7 -- .changeset/dependabot-update-13155.md | 12 --- .changeset/dependabot-update-13162.md | 12 --- .../deprecate-supportedCompatibilityDate.md | 7 -- .changeset/fix-multiworker-build-errors.md | 7 -- .../fix-remote-proxy-error-propagation.md | 5 - .../fix-sourcemap-comment-syntax-error.md | 7 -- .changeset/four-planes-attend.md | 7 -- .changeset/headful-browser-rendering.md | 19 ---- .changeset/old-chefs-pull.md | 7 -- .changeset/polish-vite-plugin-installation.md | 7 -- .changeset/remove-formatCompatibilityDate.md | 7 -- ...remove-getLocalWorkerdCompatibilityDate.md | 7 -- .changeset/source-phase-miniflare.md | 7 -- .changeset/two-baboons-wink.md | 5 - .changeset/use-today-date-for-compat.md | 8 -- .changeset/vite-plugin-compat-date-today.md | 7 -- .../vitest-pool-workers-structured-logs.md | 7 -- .changeset/vpc-networks-binding.md | 18 ---- .changeset/workers-utils-get-todays-date.md | 7 -- packages/cli/CHANGELOG.md | 8 ++ packages/cli/package.json | 2 +- packages/create-cloudflare/CHANGELOG.md | 8 ++ packages/create-cloudflare/package.json | 2 +- packages/miniflare/CHANGELOG.md | 56 +++++++++++ packages/miniflare/package.json | 2 +- packages/pages-shared/CHANGELOG.md | 7 ++ packages/pages-shared/package.json | 2 +- packages/vite-plugin-cloudflare/CHANGELOG.md | 33 +++++++ packages/vite-plugin-cloudflare/package.json | 2 +- packages/vitest-pool-workers/CHANGELOG.md | 12 +++ packages/vitest-pool-workers/package.json | 2 +- packages/workers-utils/CHANGELOG.md | 42 ++++++++ packages/workers-utils/package.json | 2 +- packages/wrangler/CHANGELOG.md | 97 +++++++++++++++++++ packages/wrangler/package.json | 2 +- 37 files changed, 271 insertions(+), 205 deletions(-) delete mode 100644 .changeset/add-ai-search-type-generation.md delete mode 100644 .changeset/add-cli-gitignore-helpers.md delete mode 100644 .changeset/dependabot-update-13155.md delete mode 100644 .changeset/dependabot-update-13162.md delete mode 100644 .changeset/deprecate-supportedCompatibilityDate.md delete mode 100644 .changeset/fix-multiworker-build-errors.md delete mode 100644 .changeset/fix-remote-proxy-error-propagation.md delete mode 100644 .changeset/fix-sourcemap-comment-syntax-error.md delete mode 100644 .changeset/four-planes-attend.md delete mode 100644 .changeset/headful-browser-rendering.md delete mode 100644 .changeset/old-chefs-pull.md delete mode 100644 .changeset/polish-vite-plugin-installation.md delete mode 100644 .changeset/remove-formatCompatibilityDate.md delete mode 100644 .changeset/remove-getLocalWorkerdCompatibilityDate.md delete mode 100644 .changeset/source-phase-miniflare.md delete mode 100644 .changeset/two-baboons-wink.md delete mode 100644 .changeset/use-today-date-for-compat.md delete mode 100644 .changeset/vite-plugin-compat-date-today.md delete mode 100644 .changeset/vitest-pool-workers-structured-logs.md delete mode 100644 .changeset/vpc-networks-binding.md delete mode 100644 .changeset/workers-utils-get-todays-date.md diff --git a/.changeset/add-ai-search-type-generation.md b/.changeset/add-ai-search-type-generation.md deleted file mode 100644 index 30c793a88d..0000000000 --- a/.changeset/add-ai-search-type-generation.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -"wrangler": minor ---- - -Add type generation for AI Search bindings - -Running `wrangler types` now generates `AiSearchNamespace` and `AiSearchInstance` types for `ai_search_namespaces` and `ai_search` config bindings respectively. Both simple and per-environment modes are supported. - -```jsonc -// wrangler.json -{ - "ai_search_namespaces": [ - { "binding": "AI_SEARCH", "namespace": "production" }, - ], - "ai_search": [ - { "binding": "BLOG_SEARCH", "instance_name": "cloudflare-blog" }, - ], -} -``` - -```typescript -// Generated by `wrangler types` -interface Env { - AI_SEARCH: AiSearchNamespace; - BLOG_SEARCH: AiSearchInstance; -} -``` diff --git a/.changeset/add-cli-gitignore-helpers.md b/.changeset/add-cli-gitignore-helpers.md deleted file mode 100644 index 702f4b0e43..0000000000 --- a/.changeset/add-cli-gitignore-helpers.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cloudflare/cli": minor ---- - -Add gitignore helpers for appending Wrangler-related entries - -New `maybeAppendWranglerToGitIgnore` and `maybeAppendWranglerToGitIgnoreLikeFile` functions that automatically append Wrangler-related entries (`.wrangler`, `.dev.vars*`, `.env*`, and their negated example patterns) to `.gitignore` or similar ignore files. Existing entries are detected and skipped to avoid duplicates. diff --git a/.changeset/dependabot-update-13155.md b/.changeset/dependabot-update-13155.md deleted file mode 100644 index 49e0e6696c..0000000000 --- a/.changeset/dependabot-update-13155.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"miniflare": patch -"wrangler": patch ---- - -Update dependencies of "miniflare", "wrangler" - -The following dependency versions have been updated: - -| Dependency | From | To | -| ---------- | ------------ | ------------ | -| workerd | 1.20260329.1 | 1.20260331.1 | diff --git a/.changeset/dependabot-update-13162.md b/.changeset/dependabot-update-13162.md deleted file mode 100644 index fdc25d0551..0000000000 --- a/.changeset/dependabot-update-13162.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"miniflare": patch -"wrangler": patch ---- - -Update dependencies of "miniflare", "wrangler" - -The following dependency versions have been updated: - -| Dependency | From | To | -| ---------- | ------------ | ------------ | -| workerd | 1.20260331.1 | 1.20260401.1 | diff --git a/.changeset/deprecate-supportedCompatibilityDate.md b/.changeset/deprecate-supportedCompatibilityDate.md deleted file mode 100644 index 27546633d4..0000000000 --- a/.changeset/deprecate-supportedCompatibilityDate.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"miniflare": minor ---- - -Deprecate `supportedCompatibilityDate` export - -The `supportedCompatibilityDate` export is now deprecated. Instead of relying on the workerd-derived compatibility date, callers should just use today's date directly, e.g. `new Date().toISOString().slice(0, 10)`. diff --git a/.changeset/fix-multiworker-build-errors.md b/.changeset/fix-multiworker-build-errors.md deleted file mode 100644 index e5cfcf09ea..0000000000 --- a/.changeset/fix-multiworker-build-errors.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -Display build errors for auxiliary workers in multi-worker mode - -Previously, when running `wrangler dev` with multiple `-c` config flags (multi-worker mode), build errors from auxiliary/secondary workers were only logged at debug level, causing Wrangler to silently hang. Build errors from all workers are now displayed at error level so you can see what went wrong and fix it. diff --git a/.changeset/fix-remote-proxy-error-propagation.md b/.changeset/fix-remote-proxy-error-propagation.md deleted file mode 100644 index 916a66fd75..0000000000 --- a/.changeset/fix-remote-proxy-error-propagation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Fix remote proxy worker not catching errors thrown by bindings during `wrangler dev` diff --git a/.changeset/fix-sourcemap-comment-syntax-error.md b/.changeset/fix-sourcemap-comment-syntax-error.md deleted file mode 100644 index 69c7a2c6ff..0000000000 --- a/.changeset/fix-sourcemap-comment-syntax-error.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cloudflare/vite-plugin": patch ---- - -Fix SyntaxError when SSR-transformed module ends with a single-line comment - -When module code ends with a `//` comment (e.g. `//# sourceMappingURL=...` preserved by vite-plus), the closing `}` of the async wrapper in `runInlinedModule` was absorbed into the comment, causing `SyntaxError: Unexpected end of input`. Adding a newline before the closing brace prevents this. diff --git a/.changeset/four-planes-attend.md b/.changeset/four-planes-attend.md deleted file mode 100644 index f1f6013d2c..0000000000 --- a/.changeset/four-planes-attend.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -Fix source phase imports in bundled and non-bundled Workers - -Wrangler now preserves `import source` syntax when it runs esbuild, including module format detection and bundled deploy output. This fixes both `--no-bundle` and bundled deployments for Workers that import WebAssembly using source phase imports. diff --git a/.changeset/headful-browser-rendering.md b/.changeset/headful-browser-rendering.md deleted file mode 100644 index 0e596900ce..0000000000 --- a/.changeset/headful-browser-rendering.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"wrangler": minor -"miniflare": minor -"@cloudflare/vite-plugin": minor -"@cloudflare/workers-utils": minor ---- - -Add experimental headful browser rendering support for local development - -> **Experimental:** This feature may be removed or changed without notice. - -When developing locally with the Browser Rendering API, you can enable headful (visible) mode via the `X_BROWSER_HEADFUL` environment variable to see the browser while debugging: - -```sh -X_BROWSER_HEADFUL=true wrangler dev -X_BROWSER_HEADFUL=true vite dev -``` - -**Note:** when using `@cloudflare/playwright`, two Chrome windows may appear — the initial blank page and the one created by `browser.newPage()`. This is expected behavior due to how Playwright handles browser contexts via CDP. diff --git a/.changeset/old-chefs-pull.md b/.changeset/old-chefs-pull.md deleted file mode 100644 index fdeecc2e68..0000000000 --- a/.changeset/old-chefs-pull.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -fix: Sort D1 migration files to ensure consistent chronological ordering - -`wrangler d1 migrations list` and `wrangler d1 migrations apply` previously returned migration files in an order dependent on the filesystem, which could vary across operating systems. Migration filenames are now sorted alphabetically before being returned, ensuring consistent chronological ordering. diff --git a/.changeset/polish-vite-plugin-installation.md b/.changeset/polish-vite-plugin-installation.md deleted file mode 100644 index 23960a8eb9..0000000000 --- a/.changeset/polish-vite-plugin-installation.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -Polish Cloudflare Vite plugin installation during autoconfig - -Projects using Vite 6.0.x were rejected by auto-configuration because the minimum supported version was set to 6.1.0 (the `@cloudflare/vite-plugin` peer dependency). The minimum version check is now 6.0.0, and when a project has Vite in the [6.0.0, 6.1.0) range, auto-configuration will automatically upgrade it to the latest 6.x before installing `@cloudflare/vite-plugin`. diff --git a/.changeset/remove-formatCompatibilityDate.md b/.changeset/remove-formatCompatibilityDate.md deleted file mode 100644 index 86336fe930..0000000000 --- a/.changeset/remove-formatCompatibilityDate.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cloudflare/workers-utils": minor ---- - -Remove `formatCompatibilityDate` from the package's public exports - -This utility has been removed from the public API. Callers should use `getTodaysCompatDate()` from `@cloudflare/workers-utils` instead. diff --git a/.changeset/remove-getLocalWorkerdCompatibilityDate.md b/.changeset/remove-getLocalWorkerdCompatibilityDate.md deleted file mode 100644 index 0bbff3ad64..0000000000 --- a/.changeset/remove-getLocalWorkerdCompatibilityDate.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cloudflare/workers-utils": minor ---- - -Remove `getLocalWorkerdCompatibilityDate` from the package - -This utility has been removed because its implementation besides being unreliable is no longer needed. Callers should now use today's date as the compatibility date directly, e.g. via `getTodaysCompatDate()` from `@cloudflare/workers-utils`. diff --git a/.changeset/source-phase-miniflare.md b/.changeset/source-phase-miniflare.md deleted file mode 100644 index d7a199d15d..0000000000 --- a/.changeset/source-phase-miniflare.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"miniflare": patch ---- - -Fix source phase imports parsing in Miniflare - -Miniflare now uses the `acorn-import-phases` plugin to parse `import source` syntax when analyzing module dependencies. This fixes `ERR_MODULE_PARSE` errors when running Workers that use source phase imports for WebAssembly modules in local development. diff --git a/.changeset/two-baboons-wink.md b/.changeset/two-baboons-wink.md deleted file mode 100644 index 5f995532c0..0000000000 --- a/.changeset/two-baboons-wink.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cloudflare/vite-plugin": patch ---- - -Normalize the return value of `getAssetsDirectory()` with `vite.normalizePath()` to ensure `assets.directory` in the output `wrangler.json` always uses forward slashes diff --git a/.changeset/use-today-date-for-compat.md b/.changeset/use-today-date-for-compat.md deleted file mode 100644 index 3513823e46..0000000000 --- a/.changeset/use-today-date-for-compat.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"create-cloudflare": patch -"wrangler": patch ---- - -Use today's date as the default compatibility date - -Previously, when generating a compatibility date for new projects or when no compatibility date was configured, the date was resolved by loading the locally installed `workerd` package via `miniflare`. This approach was unreliable in some package manager environments (notably `pnpm`). The logic now simply uses today's date instead, which is always correct and works reliably across all environments. diff --git a/.changeset/vite-plugin-compat-date-today.md b/.changeset/vite-plugin-compat-date-today.md deleted file mode 100644 index 5148227c2e..0000000000 --- a/.changeset/vite-plugin-compat-date-today.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cloudflare/vite-plugin": minor ---- - -Update `getLocalWorkerdCompatibilityDate` to return today's date - -The re-exported `getLocalWorkerdCompatibilityDate` function from `@cloudflare/vite-plugin` previously resolved the workerd compatibility date by traversing the local `miniflare` installation, which was unreliable in some package manager setups. It now simply returns today's date. The function is also marked as deprecated — callers should just use today's date instead, for example like so: `new Date().toISOString().slice(0, 10)` diff --git a/.changeset/vitest-pool-workers-structured-logs.md b/.changeset/vitest-pool-workers-structured-logs.md deleted file mode 100644 index 1c3f1c4648..0000000000 --- a/.changeset/vitest-pool-workers-structured-logs.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cloudflare/vitest-pool-workers": patch ---- - -Use miniflare's `handleStructuredLogs` option instead of `handleRuntimeStdio` for processing workerd output - -Previously, `vitest-pool-workers` manually processed raw stdout/stderr streams from the workerd runtime via `handleRuntimeStdio`, with its own filtering of known noisy messages (e.g. LLVM symbolizer warnings). This switches to miniflare's `handleStructuredLogs` option, which parses workerd's structured JSON log output and automatically filters known unhelpful messages. This aligns with how both `wrangler` and `vite-plugin-cloudflare` handle workerd logs. diff --git a/.changeset/vpc-networks-binding.md b/.changeset/vpc-networks-binding.md deleted file mode 100644 index 22f4165271..0000000000 --- a/.changeset/vpc-networks-binding.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -"wrangler": minor -"miniflare": minor -"@cloudflare/workers-utils": minor ---- - -Add `vpc_networks` binding support for routing Worker traffic through a Cloudflare Tunnel or network. - -```jsonc -{ - "vpc_networks": [ - // Route through a specific Cloudflare Tunnel - { "binding": "MY_FIRST_VPC", "tunnel_id": "" }, - // Route through the Cloudflare One mesh network - { "binding": "MY_SECOND_VPC", "network_id": "cf1:network" }, - ], -} -``` diff --git a/.changeset/workers-utils-get-todays-date.md b/.changeset/workers-utils-get-todays-date.md deleted file mode 100644 index e33897f6c7..0000000000 --- a/.changeset/workers-utils-get-todays-date.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cloudflare/workers-utils": minor ---- - -Add `getTodaysCompatDate()` utility function - -Returns today's date as a `YYYY-MM-DD` string. diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index cd6012a44b..7c6c55d836 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,13 @@ # @cloudflare/cli +## 1.4.0 + +### Minor Changes + +- [#13144](https://github.com/cloudflare/workers-sdk/pull/13144) [`db60b94`](https://github.com/cloudflare/workers-sdk/commit/db60b94d9620e7608df3e98876d5df4fde952ecf) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Add gitignore helpers for appending Wrangler-related entries + + New `maybeAppendWranglerToGitIgnore` and `maybeAppendWranglerToGitIgnoreLikeFile` functions that automatically append Wrangler-related entries (`.wrangler`, `.dev.vars*`, `.env*`, and their negated example patterns) to `.gitignore` or similar ignore files. Existing entries are detected and skipped to avoid duplicates. + ## 1.3.0 ### Minor Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index e2a03d20ed..65296e6869 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/cli", - "version": "1.3.0", + "version": "1.4.0", "private": true, "description": "An SDK to build workers-sdk CLIs", "keywords": [ diff --git a/packages/create-cloudflare/CHANGELOG.md b/packages/create-cloudflare/CHANGELOG.md index 4e99150c78..2eef561afb 100644 --- a/packages/create-cloudflare/CHANGELOG.md +++ b/packages/create-cloudflare/CHANGELOG.md @@ -1,5 +1,13 @@ # create-cloudflare +## 2.66.2 + +### Patch Changes + +- [#13051](https://github.com/cloudflare/workers-sdk/pull/13051) [`d5bffde`](https://github.com/cloudflare/workers-sdk/commit/d5bffdef00618f1d441837a725779d35b176911e) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Use today's date as the default compatibility date + + Previously, when generating a compatibility date for new projects or when no compatibility date was configured, the date was resolved by loading the locally installed `workerd` package via `miniflare`. This approach was unreliable in some package manager environments (notably `pnpm`). The logic now simply uses today's date instead, which is always correct and works reliably across all environments. + ## 2.66.1 ### Patch Changes diff --git a/packages/create-cloudflare/package.json b/packages/create-cloudflare/package.json index e6412f53e3..5055d7a15f 100644 --- a/packages/create-cloudflare/package.json +++ b/packages/create-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "create-cloudflare", - "version": "2.66.1", + "version": "2.66.2", "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 9a3688821b..2993e27481 100644 --- a/packages/miniflare/CHANGELOG.md +++ b/packages/miniflare/CHANGELOG.md @@ -1,5 +1,61 @@ # miniflare +## 4.20260401.0 + +### Minor Changes + +- [#13051](https://github.com/cloudflare/workers-sdk/pull/13051) [`d5bffde`](https://github.com/cloudflare/workers-sdk/commit/d5bffdef00618f1d441837a725779d35b176911e) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Deprecate `supportedCompatibilityDate` export + + The `supportedCompatibilityDate` export is now deprecated. Instead of relying on the workerd-derived compatibility date, callers should just use today's date directly, e.g. `new Date().toISOString().slice(0, 10)`. + +- [#13011](https://github.com/cloudflare/workers-sdk/pull/13011) [`b9b7e9d`](https://github.com/cloudflare/workers-sdk/commit/b9b7e9d9feec8491f53d144a4fd239cfb66fcd41) Thanks [@ruifigueira](https://github.com/ruifigueira)! - Add experimental headful browser rendering support for local development + + > **Experimental:** This feature may be removed or changed without notice. + + When developing locally with the Browser Rendering API, you can enable headful (visible) mode via the `X_BROWSER_HEADFUL` environment variable to see the browser while debugging: + + ```sh + X_BROWSER_HEADFUL=true wrangler dev + X_BROWSER_HEADFUL=true vite dev + ``` + + **Note:** when using `@cloudflare/playwright`, two Chrome windows may appear — the initial blank page and the one created by `browser.newPage()`. This is expected behavior due to how Playwright handles browser contexts via CDP. + +- [#12992](https://github.com/cloudflare/workers-sdk/pull/12992) [`48d83ca`](https://github.com/cloudflare/workers-sdk/commit/48d83ca334e5f668e2d0faaa7a9401e4e1f68a87) Thanks [@RiscadoA](https://github.com/RiscadoA)! - Add `vpc_networks` binding support for routing Worker traffic through a Cloudflare Tunnel or network. + + ```jsonc + { + "vpc_networks": [ + // Route through a specific Cloudflare Tunnel + { "binding": "MY_FIRST_VPC", "tunnel_id": "" }, + // Route through the Cloudflare One mesh network + { "binding": "MY_SECOND_VPC", "network_id": "cf1:network" } + ] + } + ``` + +### Patch Changes + +- [#13155](https://github.com/cloudflare/workers-sdk/pull/13155) [`5d29055`](https://github.com/cloudflare/workers-sdk/commit/5d29055edf482bd51c3728b26594b5e4ac54f0a9) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update dependencies of "miniflare", "wrangler" + + The following dependency versions have been updated: + + | Dependency | From | To | + | ---------- | ------------ | ------------ | + | workerd | 1.20260329.1 | 1.20260331.1 | + +- [#13162](https://github.com/cloudflare/workers-sdk/pull/13162) [`fb67a18`](https://github.com/cloudflare/workers-sdk/commit/fb67a18aa2b4a34c292737591e6d5a3401f8d742) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update dependencies of "miniflare", "wrangler" + + The following dependency versions have been updated: + + | Dependency | From | To | + | ---------- | ------------ | ------------ | + | workerd | 1.20260331.1 | 1.20260401.1 | + +- [#13238](https://github.com/cloudflare/workers-sdk/pull/13238) [`b2f53ea`](https://github.com/cloudflare/workers-sdk/commit/b2f53eaab314eaf395860525b4c0baf28dfd5fad) Thanks [@guybedford](https://github.com/guybedford)! - Fix source phase imports parsing in Miniflare + + Miniflare now uses the `acorn-import-phases` plugin to parse `import source` syntax when analyzing module dependencies. This fixes `ERR_MODULE_PARSE` errors when running Workers that use source phase imports for WebAssembly modules in local development. + ## 4.20260329.0 ### Minor Changes diff --git a/packages/miniflare/package.json b/packages/miniflare/package.json index ea2c83db6e..f48b235751 100644 --- a/packages/miniflare/package.json +++ b/packages/miniflare/package.json @@ -1,6 +1,6 @@ { "name": "miniflare", - "version": "4.20260329.0", + "version": "4.20260401.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 22f997519b..1e479ddffd 100644 --- a/packages/pages-shared/CHANGELOG.md +++ b/packages/pages-shared/CHANGELOG.md @@ -1,5 +1,12 @@ # @cloudflare/pages-shared +## 0.13.121 + +### Patch Changes + +- Updated dependencies [[`5d29055`](https://github.com/cloudflare/workers-sdk/commit/5d29055edf482bd51c3728b26594b5e4ac54f0a9), [`fb67a18`](https://github.com/cloudflare/workers-sdk/commit/fb67a18aa2b4a34c292737591e6d5a3401f8d742), [`d5bffde`](https://github.com/cloudflare/workers-sdk/commit/d5bffdef00618f1d441837a725779d35b176911e), [`b9b7e9d`](https://github.com/cloudflare/workers-sdk/commit/b9b7e9d9feec8491f53d144a4fd239cfb66fcd41), [`b2f53ea`](https://github.com/cloudflare/workers-sdk/commit/b2f53eaab314eaf395860525b4c0baf28dfd5fad), [`48d83ca`](https://github.com/cloudflare/workers-sdk/commit/48d83ca334e5f668e2d0faaa7a9401e4e1f68a87)]: + - miniflare@4.20260401.0 + ## 0.13.120 ### Patch Changes diff --git a/packages/pages-shared/package.json b/packages/pages-shared/package.json index 968ab5a4af..9f1c4c539c 100644 --- a/packages/pages-shared/package.json +++ b/packages/pages-shared/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/pages-shared", - "version": "0.13.120", + "version": "0.13.121", "repository": { "type": "git", "url": "https://github.com/cloudflare/workers-sdk.git", diff --git a/packages/vite-plugin-cloudflare/CHANGELOG.md b/packages/vite-plugin-cloudflare/CHANGELOG.md index 2f0db8a903..87a42cd0e4 100644 --- a/packages/vite-plugin-cloudflare/CHANGELOG.md +++ b/packages/vite-plugin-cloudflare/CHANGELOG.md @@ -1,5 +1,38 @@ # @cloudflare/vite-plugin +## 1.31.0 + +### Minor Changes + +- [#13011](https://github.com/cloudflare/workers-sdk/pull/13011) [`b9b7e9d`](https://github.com/cloudflare/workers-sdk/commit/b9b7e9d9feec8491f53d144a4fd239cfb66fcd41) Thanks [@ruifigueira](https://github.com/ruifigueira)! - Add experimental headful browser rendering support for local development + + > **Experimental:** This feature may be removed or changed without notice. + + When developing locally with the Browser Rendering API, you can enable headful (visible) mode via the `X_BROWSER_HEADFUL` environment variable to see the browser while debugging: + + ```sh + X_BROWSER_HEADFUL=true wrangler dev + X_BROWSER_HEADFUL=true vite dev + ``` + + **Note:** when using `@cloudflare/playwright`, two Chrome windows may appear — the initial blank page and the one created by `browser.newPage()`. This is expected behavior due to how Playwright handles browser contexts via CDP. + +- [#13051](https://github.com/cloudflare/workers-sdk/pull/13051) [`d5bffde`](https://github.com/cloudflare/workers-sdk/commit/d5bffdef00618f1d441837a725779d35b176911e) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Update `getLocalWorkerdCompatibilityDate` to return today's date + + The re-exported `getLocalWorkerdCompatibilityDate` function from `@cloudflare/vite-plugin` previously resolved the workerd compatibility date by traversing the local `miniflare` installation, which was unreliable in some package manager setups. It now simply returns today's date. The function is also marked as deprecated — callers should just use today's date instead, for example like so: `new Date().toISOString().slice(0, 10)` + +### Patch Changes + +- [#13125](https://github.com/cloudflare/workers-sdk/pull/13125) [`f76652c`](https://github.com/cloudflare/workers-sdk/commit/f76652c09453090c7b40da7d916929ec45f3ca8d) Thanks [@kayluhb](https://github.com/kayluhb)! - Fix SyntaxError when SSR-transformed module ends with a single-line comment + + When module code ends with a `//` comment (e.g. `//# sourceMappingURL=...` preserved by vite-plus), the closing `}` of the async wrapper in `runInlinedModule` was absorbed into the comment, causing `SyntaxError: Unexpected end of input`. Adding a newline before the closing brace prevents this. + +- [#13188](https://github.com/cloudflare/workers-sdk/pull/13188) [`110002c`](https://github.com/cloudflare/workers-sdk/commit/110002ce0d227a0b411d7749365ea5057a216d67) Thanks [@shulaoda](https://github.com/shulaoda)! - Normalize the return value of `getAssetsDirectory()` with `vite.normalizePath()` to ensure `assets.directory` in the output `wrangler.json` always uses forward slashes + +- Updated dependencies [[`9c4035b`](https://github.com/cloudflare/workers-sdk/commit/9c4035b6e48418d9bccf9791354f54a083af5108), [`5d29055`](https://github.com/cloudflare/workers-sdk/commit/5d29055edf482bd51c3728b26594b5e4ac54f0a9), [`fb67a18`](https://github.com/cloudflare/workers-sdk/commit/fb67a18aa2b4a34c292737591e6d5a3401f8d742), [`d5bffde`](https://github.com/cloudflare/workers-sdk/commit/d5bffdef00618f1d441837a725779d35b176911e), [`ab44870`](https://github.com/cloudflare/workers-sdk/commit/ab448708ba725b74927aff4d6e3f1f97dc9c2135), [`48d83ca`](https://github.com/cloudflare/workers-sdk/commit/48d83ca334e5f668e2d0faaa7a9401e4e1f68a87), [`b2f53ea`](https://github.com/cloudflare/workers-sdk/commit/b2f53eaab314eaf395860525b4c0baf28dfd5fad), [`b9b7e9d`](https://github.com/cloudflare/workers-sdk/commit/b9b7e9d9feec8491f53d144a4fd239cfb66fcd41), [`14e72eb`](https://github.com/cloudflare/workers-sdk/commit/14e72eb523a5a2dd6b7d332d81148e46cfae16d7), [`4dc94fd`](https://github.com/cloudflare/workers-sdk/commit/4dc94fd5209d17663fac32ac99f7f20d17f1f07f), [`b2f53ea`](https://github.com/cloudflare/workers-sdk/commit/b2f53eaab314eaf395860525b4c0baf28dfd5fad), [`d5bffde`](https://github.com/cloudflare/workers-sdk/commit/d5bffdef00618f1d441837a725779d35b176911e), [`48d83ca`](https://github.com/cloudflare/workers-sdk/commit/48d83ca334e5f668e2d0faaa7a9401e4e1f68a87)]: + - wrangler@4.80.0 + - miniflare@4.20260401.0 + ## 1.30.3 ### Patch Changes diff --git a/packages/vite-plugin-cloudflare/package.json b/packages/vite-plugin-cloudflare/package.json index 57169e7592..eb799114a4 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.30.3", + "version": "1.31.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 8a5ecf8728..555226b6e4 100644 --- a/packages/vitest-pool-workers/CHANGELOG.md +++ b/packages/vitest-pool-workers/CHANGELOG.md @@ -1,5 +1,17 @@ # @cloudflare/vitest-pool-workers +## 0.14.1 + +### Patch Changes + +- [#13131](https://github.com/cloudflare/workers-sdk/pull/13131) [`65acf66`](https://github.com/cloudflare/workers-sdk/commit/65acf6658efde6eb7ad28f858fef9e656db80385) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Use miniflare's `handleStructuredLogs` option instead of `handleRuntimeStdio` for processing workerd output + + Previously, `vitest-pool-workers` manually processed raw stdout/stderr streams from the workerd runtime via `handleRuntimeStdio`, with its own filtering of known noisy messages (e.g. LLVM symbolizer warnings). This switches to miniflare's `handleStructuredLogs` option, which parses workerd's structured JSON log output and automatically filters known unhelpful messages. This aligns with how both `wrangler` and `vite-plugin-cloudflare` handle workerd logs. + +- Updated dependencies [[`9c4035b`](https://github.com/cloudflare/workers-sdk/commit/9c4035b6e48418d9bccf9791354f54a083af5108), [`5d29055`](https://github.com/cloudflare/workers-sdk/commit/5d29055edf482bd51c3728b26594b5e4ac54f0a9), [`fb67a18`](https://github.com/cloudflare/workers-sdk/commit/fb67a18aa2b4a34c292737591e6d5a3401f8d742), [`d5bffde`](https://github.com/cloudflare/workers-sdk/commit/d5bffdef00618f1d441837a725779d35b176911e), [`ab44870`](https://github.com/cloudflare/workers-sdk/commit/ab448708ba725b74927aff4d6e3f1f97dc9c2135), [`48d83ca`](https://github.com/cloudflare/workers-sdk/commit/48d83ca334e5f668e2d0faaa7a9401e4e1f68a87), [`b2f53ea`](https://github.com/cloudflare/workers-sdk/commit/b2f53eaab314eaf395860525b4c0baf28dfd5fad), [`b9b7e9d`](https://github.com/cloudflare/workers-sdk/commit/b9b7e9d9feec8491f53d144a4fd239cfb66fcd41), [`14e72eb`](https://github.com/cloudflare/workers-sdk/commit/14e72eb523a5a2dd6b7d332d81148e46cfae16d7), [`4dc94fd`](https://github.com/cloudflare/workers-sdk/commit/4dc94fd5209d17663fac32ac99f7f20d17f1f07f), [`b2f53ea`](https://github.com/cloudflare/workers-sdk/commit/b2f53eaab314eaf395860525b4c0baf28dfd5fad), [`d5bffde`](https://github.com/cloudflare/workers-sdk/commit/d5bffdef00618f1d441837a725779d35b176911e), [`48d83ca`](https://github.com/cloudflare/workers-sdk/commit/48d83ca334e5f668e2d0faaa7a9401e4e1f68a87)]: + - wrangler@4.80.0 + - miniflare@4.20260401.0 + ## 0.14.0 ### Minor Changes diff --git a/packages/vitest-pool-workers/package.json b/packages/vitest-pool-workers/package.json index 99b5ea185f..bf58d6e864 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.14.0", + "version": "0.14.1", "description": "Workers Vitest integration for writing Vitest unit and integration tests that run inside the Workers runtime", "keywords": [ "cloudflare", diff --git a/packages/workers-utils/CHANGELOG.md b/packages/workers-utils/CHANGELOG.md index 50560cf528..c198c5f62c 100644 --- a/packages/workers-utils/CHANGELOG.md +++ b/packages/workers-utils/CHANGELOG.md @@ -1,5 +1,47 @@ # @cloudflare/workers-utils +## 0.15.0 + +### Minor Changes + +- [#13011](https://github.com/cloudflare/workers-sdk/pull/13011) [`b9b7e9d`](https://github.com/cloudflare/workers-sdk/commit/b9b7e9d9feec8491f53d144a4fd239cfb66fcd41) Thanks [@ruifigueira](https://github.com/ruifigueira)! - Add experimental headful browser rendering support for local development + + > **Experimental:** This feature may be removed or changed without notice. + + When developing locally with the Browser Rendering API, you can enable headful (visible) mode via the `X_BROWSER_HEADFUL` environment variable to see the browser while debugging: + + ```sh + X_BROWSER_HEADFUL=true wrangler dev + X_BROWSER_HEADFUL=true vite dev + ``` + + **Note:** when using `@cloudflare/playwright`, two Chrome windows may appear — the initial blank page and the one created by `browser.newPage()`. This is expected behavior due to how Playwright handles browser contexts via CDP. + +- [#13051](https://github.com/cloudflare/workers-sdk/pull/13051) [`d5bffde`](https://github.com/cloudflare/workers-sdk/commit/d5bffdef00618f1d441837a725779d35b176911e) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Remove `formatCompatibilityDate` from the package's public exports + + This utility has been removed from the public API. Callers should use `getTodaysCompatDate()` from `@cloudflare/workers-utils` instead. + +- [#13051](https://github.com/cloudflare/workers-sdk/pull/13051) [`d5bffde`](https://github.com/cloudflare/workers-sdk/commit/d5bffdef00618f1d441837a725779d35b176911e) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Remove `getLocalWorkerdCompatibilityDate` from the package + + This utility has been removed because its implementation besides being unreliable is no longer needed. Callers should now use today's date as the compatibility date directly, e.g. via `getTodaysCompatDate()` from `@cloudflare/workers-utils`. + +- [#12992](https://github.com/cloudflare/workers-sdk/pull/12992) [`48d83ca`](https://github.com/cloudflare/workers-sdk/commit/48d83ca334e5f668e2d0faaa7a9401e4e1f68a87) Thanks [@RiscadoA](https://github.com/RiscadoA)! - Add `vpc_networks` binding support for routing Worker traffic through a Cloudflare Tunnel or network. + + ```jsonc + { + "vpc_networks": [ + // Route through a specific Cloudflare Tunnel + { "binding": "MY_FIRST_VPC", "tunnel_id": "" }, + // Route through the Cloudflare One mesh network + { "binding": "MY_SECOND_VPC", "network_id": "cf1:network" } + ] + } + ``` + +- [#13051](https://github.com/cloudflare/workers-sdk/pull/13051) [`d5bffde`](https://github.com/cloudflare/workers-sdk/commit/d5bffdef00618f1d441837a725779d35b176911e) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Add `getTodaysCompatDate()` utility function + + Returns today's date as a `YYYY-MM-DD` string. + ## 0.14.0 ### Minor Changes diff --git a/packages/workers-utils/package.json b/packages/workers-utils/package.json index 4155ef0638..3e50f448a4 100644 --- a/packages/workers-utils/package.json +++ b/packages/workers-utils/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/workers-utils", - "version": "0.14.0", + "version": "0.15.0", "private": true, "description": "Utility package for common Worker operations", "homepage": "https://github.com/cloudflare/workers-sdk#readme", diff --git a/packages/wrangler/CHANGELOG.md b/packages/wrangler/CHANGELOG.md index 88bce70fdc..9e38477e3c 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,102 @@ # wrangler +## 4.80.0 + +### Minor Changes + +- [#13151](https://github.com/cloudflare/workers-sdk/pull/13151) [`9c4035b`](https://github.com/cloudflare/workers-sdk/commit/9c4035b6e48418d9bccf9791354f54a083af5108) Thanks [@G4brym](https://github.com/G4brym)! - Add type generation for AI Search bindings + + Running `wrangler types` now generates `AiSearchNamespace` and `AiSearchInstance` types for `ai_search_namespaces` and `ai_search` config bindings respectively. Both simple and per-environment modes are supported. + + ```jsonc + // wrangler.json + { + "ai_search_namespaces": [ + { "binding": "AI_SEARCH", "namespace": "production" } + ], + "ai_search": [ + { "binding": "BLOG_SEARCH", "instance_name": "cloudflare-blog" } + ] + } + ``` + + ```typescript + // Generated by `wrangler types` + interface Env { + AI_SEARCH: AiSearchNamespace; + BLOG_SEARCH: AiSearchInstance; + } + ``` + +- [#13011](https://github.com/cloudflare/workers-sdk/pull/13011) [`b9b7e9d`](https://github.com/cloudflare/workers-sdk/commit/b9b7e9d9feec8491f53d144a4fd239cfb66fcd41) Thanks [@ruifigueira](https://github.com/ruifigueira)! - Add experimental headful browser rendering support for local development + + > **Experimental:** This feature may be removed or changed without notice. + + When developing locally with the Browser Rendering API, you can enable headful (visible) mode via the `X_BROWSER_HEADFUL` environment variable to see the browser while debugging: + + ```sh + X_BROWSER_HEADFUL=true wrangler dev + X_BROWSER_HEADFUL=true vite dev + ``` + + **Note:** when using `@cloudflare/playwright`, two Chrome windows may appear — the initial blank page and the one created by `browser.newPage()`. This is expected behavior due to how Playwright handles browser contexts via CDP. + +- [#12992](https://github.com/cloudflare/workers-sdk/pull/12992) [`48d83ca`](https://github.com/cloudflare/workers-sdk/commit/48d83ca334e5f668e2d0faaa7a9401e4e1f68a87) Thanks [@RiscadoA](https://github.com/RiscadoA)! - Add `vpc_networks` binding support for routing Worker traffic through a Cloudflare Tunnel or network. + + ```jsonc + { + "vpc_networks": [ + // Route through a specific Cloudflare Tunnel + { "binding": "MY_FIRST_VPC", "tunnel_id": "" }, + // Route through the Cloudflare One mesh network + { "binding": "MY_SECOND_VPC", "network_id": "cf1:network" } + ] + } + ``` + +### Patch Changes + +- [#13155](https://github.com/cloudflare/workers-sdk/pull/13155) [`5d29055`](https://github.com/cloudflare/workers-sdk/commit/5d29055edf482bd51c3728b26594b5e4ac54f0a9) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update dependencies of "miniflare", "wrangler" + + The following dependency versions have been updated: + + | Dependency | From | To | + | ---------- | ------------ | ------------ | + | workerd | 1.20260329.1 | 1.20260331.1 | + +- [#13162](https://github.com/cloudflare/workers-sdk/pull/13162) [`fb67a18`](https://github.com/cloudflare/workers-sdk/commit/fb67a18aa2b4a34c292737591e6d5a3401f8d742) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update dependencies of "miniflare", "wrangler" + + The following dependency versions have been updated: + + | Dependency | From | To | + | ---------- | ------------ | ------------ | + | workerd | 1.20260331.1 | 1.20260401.1 | + +- [#13136](https://github.com/cloudflare/workers-sdk/pull/13136) [`ab44870`](https://github.com/cloudflare/workers-sdk/commit/ab448708ba725b74927aff4d6e3f1f97dc9c2135) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - Display build errors for auxiliary workers in multi-worker mode + + Previously, when running `wrangler dev` with multiple `-c` config flags (multi-worker mode), build errors from auxiliary/secondary workers were only logged at debug level, causing Wrangler to silently hang. Build errors from all workers are now displayed at error level so you can see what went wrong and fix it. + +- [#12992](https://github.com/cloudflare/workers-sdk/pull/12992) [`48d83ca`](https://github.com/cloudflare/workers-sdk/commit/48d83ca334e5f668e2d0faaa7a9401e4e1f68a87) Thanks [@RiscadoA](https://github.com/RiscadoA)! - Fix remote proxy worker not catching errors thrown by bindings during `wrangler dev` + +- [#13238](https://github.com/cloudflare/workers-sdk/pull/13238) [`b2f53ea`](https://github.com/cloudflare/workers-sdk/commit/b2f53eaab314eaf395860525b4c0baf28dfd5fad) Thanks [@guybedford](https://github.com/guybedford)! - Fix source phase imports in bundled and non-bundled Workers + + Wrangler now preserves `import source` syntax when it runs esbuild, including module format detection and bundled deploy output. This fixes both `--no-bundle` and bundled deployments for Workers that import WebAssembly using source phase imports. + +- [#10126](https://github.com/cloudflare/workers-sdk/pull/10126) [`14e72eb`](https://github.com/cloudflare/workers-sdk/commit/14e72eb523a5a2dd6b7d332d81148e46cfae16d7) Thanks [@nekoze1210](https://github.com/nekoze1210)! - fix: Sort D1 migration files to ensure consistent chronological ordering + + `wrangler d1 migrations list` and `wrangler d1 migrations apply` previously returned migration files in an order dependent on the filesystem, which could vary across operating systems. Migration filenames are now sorted alphabetically before being returned, ensuring consistent chronological ordering. + +- [#13150](https://github.com/cloudflare/workers-sdk/pull/13150) [`4dc94fd`](https://github.com/cloudflare/workers-sdk/commit/4dc94fd5209d17663fac32ac99f7f20d17f1f07f) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Polish Cloudflare Vite plugin installation during autoconfig + + Projects using Vite 6.0.x were rejected by auto-configuration because the minimum supported version was set to 6.1.0 (the `@cloudflare/vite-plugin` peer dependency). The minimum version check is now 6.0.0, and when a project has Vite in the [6.0.0, 6.1.0) range, auto-configuration will automatically upgrade it to the latest 6.x before installing `@cloudflare/vite-plugin`. + +- [#13051](https://github.com/cloudflare/workers-sdk/pull/13051) [`d5bffde`](https://github.com/cloudflare/workers-sdk/commit/d5bffdef00618f1d441837a725779d35b176911e) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Use today's date as the default compatibility date + + Previously, when generating a compatibility date for new projects or when no compatibility date was configured, the date was resolved by loading the locally installed `workerd` package via `miniflare`. This approach was unreliable in some package manager environments (notably `pnpm`). The logic now simply uses today's date instead, which is always correct and works reliably across all environments. + +- Updated dependencies [[`5d29055`](https://github.com/cloudflare/workers-sdk/commit/5d29055edf482bd51c3728b26594b5e4ac54f0a9), [`fb67a18`](https://github.com/cloudflare/workers-sdk/commit/fb67a18aa2b4a34c292737591e6d5a3401f8d742), [`d5bffde`](https://github.com/cloudflare/workers-sdk/commit/d5bffdef00618f1d441837a725779d35b176911e), [`b9b7e9d`](https://github.com/cloudflare/workers-sdk/commit/b9b7e9d9feec8491f53d144a4fd239cfb66fcd41), [`b2f53ea`](https://github.com/cloudflare/workers-sdk/commit/b2f53eaab314eaf395860525b4c0baf28dfd5fad), [`48d83ca`](https://github.com/cloudflare/workers-sdk/commit/48d83ca334e5f668e2d0faaa7a9401e4e1f68a87)]: + - miniflare@4.20260401.0 + ## 4.79.0 ### Minor Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index fe69e0e82b..4e836a2fbe 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "4.79.0", + "version": "4.80.0", "description": "Command-line interface for all things Cloudflare Workers", "keywords": [ "assembly",