@flighthq/command
v0.6.0
Published
Undo/redo command history — commands are plain kind-tagged data (property set, add/remove/reorder child, composite) whose execute/undo/merge are free functions registered per kind in a keyed table and resolved at dispatch, with a stack tracking applied/re
Readme
@flighthq/command
Undo/redo command history — commands are plain kind-tagged data (property set, add/remove/reorder child, composite) whose execute/undo/merge are free functions registered per kind in a keyed table and resolved at dispatch, with a stack tracking applied/redoable entries, per-kind merge coalescing for drag sequences, nestable transaction brackets that fold many commands into one entry, an optional maxSize cap, and an opt-in onChange signal; no closures on the stack, so entries stay inspectable data
Install
npm install @flighthq/commandImport the supported application-facing API from @flighthq/command. The @flighthq/command/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.
