Function applyDeltaChangeset

Apply a changeset to reconstruct document state.

baseState must be the exact checkpoint data used when the changeset was created. Returns the full document state as Uint8Array.

Handles all changeset formats transparently:

  • v3 (bsdiff), v2 (XOR diff), v1 (gzip full snapshot)
  • Parameters

    • baseState: Uint8Array
    • changeset: Uint8Array

    Returns Promise<Uint8Array<ArrayBufferLike>>