diff --git a/.changeset/bump-opennextjs-aws.md b/.changeset/bump-opennextjs-aws.md deleted file mode 100644 index 389d1f76f..000000000 --- a/.changeset/bump-opennextjs-aws.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -bump `@opennextjs/aws` to 3.10.2 - -See details at diff --git a/.changeset/five-gifts-hope.md b/.changeset/five-gifts-hope.md deleted file mode 100644 index e4e1cf7e9..000000000 --- a/.changeset/five-gifts-hope.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -Fix Turbopack external module resolution by dynamically discovering external imports at build time. - -When packages are listed in `serverExternalPackages`, Turbopack externalizes them via `externalImport()` which uses dynamic `await import(id)`. The bundler (ESBuild) can't statically analyze `import(id)` with a variable, so these modules aren't included in the worker bundle. - -This patch: - -- Discovers hashed Turbopack external module mappings from `.next/node_modules/` symlinks (e.g. `shiki-43d062b67f27bbdc` → `shiki`) -- Scans traced chunk files for bare external imports (e.g. `externalImport("shiki")`) and subpath imports (e.g. `shiki/engine/javascript`) -- Generates explicit `switch/case` entries so the bundler can statically resolve and include these modules diff --git a/.changeset/fix-peerdeps-next-range.md b/.changeset/fix-peerdeps-next-range.md deleted file mode 100644 index ff323d396..000000000 --- a/.changeset/fix-peerdeps-next-range.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -fix: exclude unsupported Next.js 16 releases from peer dependencies. - -The previous range allowed Next.js 16.0.0 through 16.2.2 without a peer dependency warning because `>=16.2.3` was already covered by `>=15.5.15`. - -The range now explicitly supports Next.js 15.5.15 and above in the 15.x line, and Next.js 16.2.3 and above in the 16.x line. diff --git a/.changeset/green-zebras-know.md b/.changeset/green-zebras-know.md deleted file mode 100644 index e6583c1bc..000000000 --- a/.changeset/green-zebras-know.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -fix: reuse sharded tag data when filling the regional cache. - -The sharded tag cache miss path already reads tag data from the Durable Object before answering the request. Reuse that fetched data when populating the regional cache so a shard miss does not immediately trigger a second identical Durable Object read. diff --git a/.changeset/red-yaks-go.md b/.changeset/red-yaks-go.md deleted file mode 100644 index 68266d58a..000000000 --- a/.changeset/red-yaks-go.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -fix: regression where getEnvFromPlatformProxy received wrong options type - -This fixes a regression introduced in [32ba91a](https://github.com/opennextjs/opennextjs-cloudflare/commit/32ba91a6d3fa6b9a8b2cd5a8c973c3b3eb1108f0) where `getEnvFromPlatformProxy` call sites passed `OpenNextConfig` even though the function expects Wrangler `GetPlatformProxyOptions`. - -The fix restores the pre-[32ba91a](https://github.com/opennextjs/opennextjs-cloudflare/commit/32ba91a6d3fa6b9a8b2cd5a8c973c3b3eb1108f0) argument shape by passing `{ configPath, environment }` from CLI arguments, so env resolution follows the selected Wrangler config/environment. diff --git a/packages/cloudflare/CHANGELOG.md b/packages/cloudflare/CHANGELOG.md index 6ba02341b..bdf21d2fc 100644 --- a/packages/cloudflare/CHANGELOG.md +++ b/packages/cloudflare/CHANGELOG.md @@ -1,5 +1,39 @@ # @opennextjs/cloudflare +## 1.19.2 + +### Patch Changes + +- [#1207](https://github.com/opennextjs/opennextjs-cloudflare/pull/1207) [`0958726`](https://github.com/opennextjs/opennextjs-cloudflare/commit/0958726939d59e4a5c5a3062190278ffdfde38f5) Thanks [@edmundhung](https://github.com/edmundhung)! - bump `@opennextjs/aws` to 3.10.2 + + See details at + +- [#1139](https://github.com/opennextjs/opennextjs-cloudflare/pull/1139) [`79b01b8`](https://github.com/opennextjs/opennextjs-cloudflare/commit/79b01b84fd92191517b7a11516c04208f9d474a6) Thanks [@james-elicx](https://github.com/james-elicx)! - Fix Turbopack external module resolution by dynamically discovering external imports at build time. + + When packages are listed in `serverExternalPackages`, Turbopack externalizes them via `externalImport()` which uses dynamic `await import(id)`. The bundler (ESBuild) can't statically analyze `import(id)` with a variable, so these modules aren't included in the worker bundle. + + This patch: + + - Discovers hashed Turbopack external module mappings from `.next/node_modules/` symlinks (e.g. `shiki-43d062b67f27bbdc` → `shiki`) + - Scans traced chunk files for bare external imports (e.g. `externalImport("shiki")`) and subpath imports (e.g. `shiki/engine/javascript`) + - Generates explicit `switch/case` entries so the bundler can statically resolve and include these modules + +- [#1203](https://github.com/opennextjs/opennextjs-cloudflare/pull/1203) [`6f02d12`](https://github.com/opennextjs/opennextjs-cloudflare/commit/6f02d12a75a78410711cc0d9db13ab0d41ed903a) Thanks [@314systems](https://github.com/314systems)! - fix: exclude unsupported Next.js 16 releases from peer dependencies. + + The previous range allowed Next.js 16.0.0 through 16.2.2 without a peer dependency warning because `>=16.2.3` was already covered by `>=15.5.15`. + + The range now explicitly supports Next.js 15.5.15 and above in the 15.x line, and Next.js 16.2.3 and above in the 16.x line. + +- [#1200](https://github.com/opennextjs/opennextjs-cloudflare/pull/1200) [`7820ad0`](https://github.com/opennextjs/opennextjs-cloudflare/commit/7820ad0a0e5f57aba0580f3cabfdd0caa75cc9bb) Thanks [@NathanDrake2406](https://github.com/NathanDrake2406)! - fix: reuse sharded tag data when filling the regional cache. + + The sharded tag cache miss path already reads tag data from the Durable Object before answering the request. Reuse that fetched data when populating the regional cache so a shard miss does not immediately trigger a second identical Durable Object read. + +- [#1206](https://github.com/opennextjs/opennextjs-cloudflare/pull/1206) [`585795d`](https://github.com/opennextjs/opennextjs-cloudflare/commit/585795dbe20fe20d8662addbf9b7be64d82e3184) Thanks [@314systems](https://github.com/314systems)! - fix: regression where getEnvFromPlatformProxy received wrong options type + + This fixes a regression introduced in [32ba91a](https://github.com/opennextjs/opennextjs-cloudflare/commit/32ba91a6d3fa6b9a8b2cd5a8c973c3b3eb1108f0) where `getEnvFromPlatformProxy` call sites passed `OpenNextConfig` even though the function expects Wrangler `GetPlatformProxyOptions`. + + The fix restores the pre-[32ba91a](https://github.com/opennextjs/opennextjs-cloudflare/commit/32ba91a6d3fa6b9a8b2cd5a8c973c3b3eb1108f0) argument shape by passing `{ configPath, environment }` from CLI arguments, so env resolution follows the selected Wrangler config/environment. + ## 1.19.1 ### Patch Changes diff --git a/packages/cloudflare/package.json b/packages/cloudflare/package.json index a5bfad0e2..0a23a0d7f 100644 --- a/packages/cloudflare/package.json +++ b/packages/cloudflare/package.json @@ -1,7 +1,7 @@ { "name": "@opennextjs/cloudflare", "description": "Cloudflare builder for next apps", - "version": "1.19.1", + "version": "1.19.2", "type": "module", "scripts": { "clean": "rimraf dist",