json0-ot-diff
json0-ot-diff copied to clipboard
Finds differences between two JSON object and generates operational transformation (OT) operations for transforming the first object into the second according to the JSON0 OT Type.
It occurred to me that the JSON1 support in this library could be enhanced such that it generates invertible JSON1 ops. This could be done by invoking [makeInvertible](https://github.com/ottypes/json1/blob/244839c0517a08702df887a4fea87a0ab14c88cb/lib/json1.ts#L1401). This enhancement...
Hello, thanks for this useful library! I'd like to report a bug that I encountered while using it. ``` json0diff(['Hello'], ['🤗Hello🤗'], DiffMatchPatch, json1, textUnicode); // Outputs => [0,{"es":["🤗",6,"🤗"]}] ``` When...
Prettier
When working with this codebase, there are different formatting conventions in different files (e.g. tabs in [tests.js](https://github.com/kbadk/json0-ot-diff/blob/master/tests.js) and spaces in [index.test.js](https://github.com/kbadk/json0-ot-diff/blob/master/test/index.test.js). Having worked with [Prettier](https://prettier.io/) in most of my projects,...
Hey @kbadk, The issue I am having is with [lines 87-90](https://github.com/kbadk/json0-ot-diff/blob/master/index.js#L87). The code works fine for every other scenario I've tested, however when trying to apply inverted operations it simply...
Every item has an uuid, like ```js [{ id: 1 }, { id: 2 }, { id: 3 } ] ``` if move item idx.3 to idx.2 ,then looks like:...