Skip to content

Commit 6bd9626

Browse files
Version Packages
1 parent 01babce commit 6bd9626

4 files changed

Lines changed: 31 additions & 33 deletions

File tree

.changeset/fuzzy-areas-clap.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

.changeset/stupid-ways-rush.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/cloudflare/CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# @opennextjs/cloudflare
22

3+
## 1.19.6
4+
5+
### Patch Changes
6+
7+
- [#1244](https://github.com/opennextjs/opennextjs-cloudflare/pull/1244) [`01babce`](https://github.com/opennextjs/opennextjs-cloudflare/commit/01babce15c28d7a81797d6fbaebe281e930b92f5) Thanks [@tahmid-23](https://github.com/tahmid-23)! - fix: drop streaming wasm calls in Turbopack runtime
8+
9+
Turbopack replaces wasm imports using `WebAssembly.compileStreaming` and
10+
`WebAssembly.instantiateStreaming`. These functions are not available in
11+
the workerd runtime.
12+
13+
We add a helper `loadWasmChunkFn`. This is a generated switch statement
14+
that contains an import for each wasm chunk. We use static strings for
15+
all imports to ensure that all necessary wasm chunks will be detected
16+
and bundled for the final build.
17+
18+
The Turbopack patcher replaces the invocations in `loadWebAssembly` and
19+
`loadWebAssemblyModule`, using the synchronous `WebAssembly.instantiate`
20+
and redirecting to `loadWasmChunkFn`.
21+
22+
- [#1243](https://github.com/opennextjs/opennextjs-cloudflare/pull/1243) [`1c815de`](https://github.com/opennextjs/opennextjs-cloudflare/commit/1c815de96abbabbd4e5ff81ab299f2b4f3aa77db) Thanks [@tahmid-23](https://github.com/tahmid-23)! - fix: detect object-valued conditions
23+
24+
The pre-existing build condition transform logic had subtle errors:
25+
26+
- failed to recognize object conditions
27+
(e.g. "workerd": { "import": ..., "require": ... })
28+
- sibling pruning only applied to strings, not objects
29+
30+
Now, we fully support object conditions. Furthermore, we prune siblings,
31+
unless its subtree also contains the build condition.
32+
333
## 1.19.5
434

535
### Patch Changes

packages/cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@opennextjs/cloudflare",
33
"description": "Cloudflare builder for next apps",
4-
"version": "1.19.5",
4+
"version": "1.19.6",
55
"type": "module",
66
"scripts": {
77
"clean": "rimraf dist",

0 commit comments

Comments
 (0)