local-first-web / state

A Redux-based state container for local-first software, offering seamless synchronization using Automerge CRDTs. (Formerly known as 🐟 Cevitxe).
187 stars 10 forks source link

MongoDB storage adapter #59

Closed HerbCaudill closed 4 years ago

HerbCaudill commented 4 years ago

Adds a new package, cevitxe-storage-mongodb. This is the second implementation of the cevitxe-storage-abstract storage adapter interface, after cevitxe-storage-indexeddb.

This required some tweaks to the interface: changes and snapshots are now methods instead of properties. They're implemented as generators, rather than returning the db's iterator directly, which gives us more flexibility in dealing with different db implementations.

To verify: