hoodiehq / pouchdb-hoodie-api

:dog: Hoodie-like API for PouchDB
https://hoodiehq.github.io/pouchdb-hoodie-api
Apache License 2.0
44 stars 11 forks source link

.withIdPrefix(prefix) #124

Closed gr2m closed 7 years ago

gr2m commented 7 years ago

closes https://github.com/hoodiehq/discussion/issues/106

This PR includes a breaking change:

separate methods like require(pouchdb-hoodie-api/add) can no longer be required directly

The reason for that is that all the methods now also accept a prefix argument which by default is null. That way we don’t need to implement each method twice, once for store.add, and once for store.withIdPrefix('test/').add