streamich / json-joy

JSON CRDT, JSON CRDT Patch, JSON Patch+, JSON Predicate, JSON Pointer, JSON Expression, JSON Type
https://jsonjoy.com/libs/json-joy-js
Apache License 2.0
741 stars 14 forks source link

inversePatches for undo #495

Open macmillen opened 9 months ago

macmillen commented 9 months ago

It would be useful to get inversePatches when applying changes to the json model to be able to implement an undo / redo functionality.

Immer.js also provides this functionality: https://immerjs.github.io/immer/patches