Releases: hoodiehq/hoodie-store-client
Releases · hoodiehq/hoodie-store-client
v6.0.2
v6.0.1
v6.0.0
<a name"6.0.0">
6.0.0 (2016-11-29)
Features
options.PouchDB
(removed as dependency) (e7d040bd)
Breaking Changes
-
@hoodie/store-client
used to depend onpouchdb
. It has now been
removed and replaced by the newPouchDB
option:var PouchDB = require('pouchdb-core') .plugin(require('pouchdb-replication')) .plugin(require('pouchdb-adapter-memory')) .plugin(require('pouchdb-adapter-http')) var Store = require('@hoodie/store-client') var db = new Store('db', { PouchDB: PouchDB, remote: 'http://localhost:5984/db-remote' })
-
options.ajax
has been removed. It was passed trough to
pouchdb-hoodie-sync
where it is used to dynamically set theajax
PouchDB option.
For Hoodie, we used that to change theAuthorization
header
based on user’s session. But instead of passing in an ajax
function to return the ajax setting dynamically, we will now
set a getter foroptions.ajax.headers.authorization
that will
return the right session ID dynamically. This will simplify the
implementation
(e7d040bd)