1.1.5 • Published 5 years ago
immutable-crdt v1.1.5
CRDT library for immutable apps. Here's a simple:
import {Document} from "immutable-crdt";
let person = {
firstName: "a",
lastName: "b"
};
const doc2 = Document.initialize(person);
const doc = Document.initialize(person);
const mutations = doc.updateState({...person, firstName: "blah", lastName: "blah"});
doc2.applyMutations(mutations);
console.log(doc2.getState()); // { firstName: "blah", lastName: "blah" }
TODOS:
- remove ID check
- history
- cache mutations that
- snapshotting state for performance
- benchmark testing
- persistence
- conflict resolution
- pubnub examples
- prevent applied mutations from being
Caveats:
- Diffing method doesn't work for certain scenarios such as
incrementing
1.1.5
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.18
5 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago