Created
August 11, 2018 19:23
-
-
Save johnrees/29661dc1c832b8655a1d256ca33e2c22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const jsondiff = require("json0-ot-diff"); | |
var diff = jsondiff( | |
{ | |
name: "something", | |
more: { | |
a: "hello world" | |
}, | |
haha: [1, 2, 3] | |
}, | |
{ | |
name: "another thing", | |
more: { | |
a: "hello world", | |
b: "haha" | |
}, | |
haha: [2, 3, 1] | |
} | |
); | |
console.log(diff); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/mobxjs/mobx-state-tree/blob/master/packages/mobx-state-tree/src/core/json-patch.ts
https://github.com/share/sharedb
https://github.com/Palindrom/JSON-Patch-OT
https://github.com/ottypes/json0
https://transform.now.sh/json-to-mobx-state-tree
https://github.com/mobxjs/mobx-state-tree
https://spectrum.chat/thread/6fb5fcd3-3ed4-4592-802b-d386a1fd01c3