Patch Changes
-
#1246
5d2014fThanks @vicb! - fix: do not log expected expected D1 errorsThe
populateCachecommand adds columns to the D1 tag cache for SWR support.
This is required for older deployments made before those column were added.
SQLite errors when the columns exist and we should not log those errors. -
#1244
01babceThanks @tahmid-23! - fix: drop streaming wasm calls in Turbopack runtimeTurbopack replaces wasm imports using
WebAssembly.compileStreamingand
WebAssembly.instantiateStreaming. These functions are not available in
the workerd runtime.We add a helper
loadWasmChunkFn. This is a generated switch statement
that contains an import for each wasm chunk. We use static strings for
all imports to ensure that all necessary wasm chunks will be detected
and bundled for the final build.The Turbopack patcher replaces the invocations in
loadWebAssemblyand
loadWebAssemblyModule, using the synchronousWebAssembly.instantiate
and redirecting toloadWasmChunkFn. -
#1243
1c815deThanks @tahmid-23! - fix: detect object-valued conditionsThe pre-existing build condition transform logic had subtle errors:
- failed to recognize object conditions
(e.g. "workerd": { "import": ..., "require": ... }) - sibling pruning only applied to strings, not objects
Now, we fully support object conditions. Furthermore, we prune siblings,
unless its subtree also contains the build condition. - failed to recognize object conditions