Immutable recoverable-state captures over plain data — captureSnapshot deep-clones and deep-freezes a state object, restoreSnapshot deep-assigns a snapshot back into live mutable state, interpolateSnapshots schema-aware lerps numeric leaves between two sn
Immutable recoverable-state captures over plain data — captureSnapshot deep-clones and deep-freezes a state object, restoreSnapshot deep-assigns a snapshot back into live mutable state, interpolateSnapshots schema-aware lerps numeric leaves between two snapshots, and snapshotsEqual deep-compares; the primitive under save/undo/netcode/replay, deps log + math only
Install
npm install @flighthq/snapshot
Import the supported application-facing API from @flighthq/snapshot. The @flighthq/snapshot/contract export is the wider package-to-package contract used to compose Flight itself.
This package is part of the locked-version Flight SDK graph. Applications may instead install and import @flighthq/sdk when package-level tree shaking is sufficient.
Immutable recoverable-state captures over plain data — captureSnapshot deep-clones and deep-freezes a state object, restoreSnapshot deep-assigns a snapshot back into live mutable state, interpolateSnapshots schema-aware lerps numeric leaves between two sn