peer-base / js-delta-crdts

Delta State-based CRDTs in Javascript
192 stars 16 forks source link

Add updateAt to RGA #6

Closed satazor closed 5 years ago

satazor commented 5 years ago

Would it be possible to add updateAt(pos, value) mutation to the RGA?

I'm using removeAt(pos) + insertAt(pos, value) to update values but it isn't an atomic operation and it causes a item to be removed momentarily. The use case is for the todo-dapp I'm building but it's common enough to consider adding for other use-cases as well.

pgte commented 5 years ago

Landed in v0.2.5