| commit | 8bdfa3cff639c9694c08c61fae7fd07f4e041d1b | [log] [tgz] |
|---|---|---|
| author | Nolan Lawson <nolan.lawson@gmail.com> | Sat Dec 06 21:06:31 2014 -0500 |
| committer | Nolan Lawson <nolan.lawson@gmail.com> | Sat Dec 13 15:15:41 2014 -0500 |
| tree | 2dc669cf5e4d5a399161206c0898709c28058169 | |
| parent | c50c6a9b47fc0952cf948a224759d81734f79e85 [diff] |
(#3136) - fix changes() when earlier winning seq In the previous version of the changes() algorithm, we were assuming that the winning seq was later than all non-winning seqs, which isn't necessarily the case when you've got conflicts. This fixes that.
PouchDB was written to help web developers build applications that work as well offline as well as they do online, applications save data locally so the user can use all the features of an app even while offline and synchronise the data between clients so they have up to date data wherever they go.
PouchDB is a free open source project, written in Javascript by these wonderful contributors and inspired by Apache CouchDB.
To get started using PouchDB check out our Documentation and the API Documentation.
If you want to get involved then check out the contributing guide
var db = new PouchDB('dbname'); db.put({ _id: 'dave@gmail.com', name: 'David', age: 66 }); db.changes().on('change', function() { console.log('Ch-Ch-Changes'); }); db.replicate.to('http://example.com/mydb');