github opennextjs/opennextjs-cloudflare @opennextjs/cloudflare@1.19.6

6 hours ago

Patch Changes

  • #1246 5d2014f Thanks @vicb! - fix: do not log expected expected D1 errors

    The populateCache command 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 01babce Thanks @tahmid-23! - fix: drop streaming wasm calls in Turbopack runtime

    Turbopack replaces wasm imports using WebAssembly.compileStreaming and
    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 loadWebAssembly and
    loadWebAssemblyModule, using the synchronous WebAssembly.instantiate
    and redirecting to loadWasmChunkFn.

  • #1243 1c815de Thanks @tahmid-23! - fix: detect object-valued conditions

    The 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.

Don't miss a new opennextjs-cloudflare release

NewReleases is sending notifications on new releases.