(#2428) - fix args for remove() It turned out there were a lot of argument combinations that we weren't checking in the tests, which is probably why this one slipped through. In addition, I added a fix to make it so you can specify the rev in the options, and it'll use that if the _rev isn't defined in the document. This is not something I want to advertise in the docs (since the usage is complicated enough as it is), but I think it may help folks who are used to the CouchDB style where we think of the Pouch options as being equivalent to the Couch HTTP params.
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');