Skip to content

Commit

Permalink
chore(package): @hoodie/store-server 3.0.0
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

The store instance which `server.plugins.store.api.open(dbName)` resolves to
has several breaking changes via [pouchdb-hoodie-api@2.0.0](https://github.com/hoodiehq/pouchdb-hoodie-api/releases/tag/v2.0.0)

- Before, change events (incl. add, update, remove) have only been triggered
  when using the custom APIs like `.add()` or `.update()`. Now they get always
  triggered, including for changes replicated into the database.

- the order of when the methods’ promises resolve and the events get triggered
  cannot be guaranteed as we rely on PouchDB’s `.changes()`. We would love to
  enforce promises to resolve after changes get emitted, but the required
  complexity to do that is not worth it.

- We no longer map PouchDB’s ._id property to .id, instead we pass trough docs
  from PouchDB 1:1. Also the timestamps are now all namespaced with
  `.hoodie` (`doc.createdAt` becomes `doc.hoodie.createdAt`)

Unless you use the `server.plugins.store.api.open(name)` API you are not affected by any of this.
  • Loading branch information
gr2m committed Mar 8, 2017
1 parent 4bd174f commit c23f252
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,32 @@
},
"homepage": "https://github.com/hoodiehq/hoodie-server#readme",
"devDependencies": {
"coveralls": "^2.11.12",
"coveralls": "^2.12.0",
"hapi": "^16.0.2",
"memdown": "^1.2.0",
"nock": "^9.0.2",
"nyc": "^10.0.0",
"pouchdb-adapter-memory": "^6.0.7",
"pouchdb-core": "^6.0.7",
"proxyquire": "^1.7.10",
"nock": "^9.0.9",
"nyc": "^10.1.2",
"pouchdb-adapter-memory": "^6.1.2",
"pouchdb-core": "^6.1.2",
"proxyquire": "^1.7.11",
"semantic-release": "^6.3.0",
"simple-mock": "^0.7.0",
"standard": "^8.5.0",
"tap": "^8.0.0"
"standard": "^9.0.1",
"tap": "^10.3.0"
},
"dependencies": {
"@hoodie/account-server": "^6.0.4",
"@hoodie/store-server": "^2.0.2",
"async": "^2.0.1",
"@hoodie/account-server": "^6.1.0",
"@hoodie/store-server": "^3.0.0",
"async": "^2.1.5",
"boom": "^4.2.0",
"h2o2": "^5.1.0",
"inert": "^4.0.1",
"jsonfile": "^2.3.1",
"lodash": "^4.14.1",
"pouchdb-admins": "^1.0.3",
"pouchdb-doc-api": "^1.0.0",
"pouchdb-doc-api": "^1.0.1",
"randomstring": "^1.1.5",
"request": "^2.74.0",
"request": "^2.80.0",
"strip-url-auth": "^1.0.1",
"vision": "^4.1.0"
}
Expand Down

0 comments on commit c23f252

Please sign in to comment.