mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
docs(chord): introduce delta operations upfront
This commit is contained in:
parent
9af45be821
commit
b99964b246
1 changed files with 4 additions and 0 deletions
|
|
@ -3,6 +3,10 @@
|
|||
Chord Delta synchronizes one mutable JSON value from an authoritative producer
|
||||
to an ordered replica. It is available from `@earendil-works/chord/delta`.
|
||||
|
||||
A change is represented by an `Op`: a small JSON tuple that replaces the root,
|
||||
sets or deletes a value, updates a string, or splices an array. `flush()` returns
|
||||
`Op[]`; `apply()` replays those operations on a replica.
|
||||
|
||||
```ts
|
||||
import { apply, track } from "@earendil-works/chord/delta";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue