Skip to content

Commit

Permalink
chore(package): @hoodie/store-server-api 2.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 [[email protected]](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`)
  • Loading branch information
gr2m committed Mar 8, 2017
1 parent eb2e71c commit 7b2b04e
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,32 +29,32 @@
},
"homepage": "https://github.com/hoodiehq/hoodie-store-server#readme",
"devDependencies": {
"coveralls": "^2.11.6",
"coveralls": "^2.12.0",
"greenkeeper-postpublish": "^1.0.0",
"hapi": "^15.0.1",
"hapi": "^16.1.0",
"memdown": "^1.1.2",
"nock": "^9.0.0",
"nyc": "^8.1.0",
"pouchdb-adapter-http": "^6.0.7",
"pouchdb-adapter-memory": "^6.0.7",
"pouchdb-core": "^6.0.7",
"pouchdb-replication": "^6.0.7",
"proxyquire": "^1.7.10",
"nock": "^9.0.9",
"nyc": "^10.1.2",
"pouchdb-adapter-http": "^6.1.2",
"pouchdb-adapter-memory": "^6.1.2",
"pouchdb-core": "^6.1.2",
"pouchdb-replication": "^6.1.2",
"proxyquire": "^1.7.11",
"semantic-release": "^6.0.3",
"standard": "^8.0.0",
"tap": "^8.0.0"
"standard": "^9.0.1",
"tap": "^10.3.0"
},
"dependencies": {
"@gr2m/hapi-to-express": "1.2.1-includes-6",
"@hoodie/store-server-api": "^1.0.0",
"@hoodie/store-server-api": "^2.0.0",
"boom": "^4.0.0",
"express": "^4.13.4",
"express-pouchdb": "^2.0.0",
"express": "^4.15.2",
"express-pouchdb": "^2.3.6",
"h2o2": "^5.0.0",
"lodash": "^4.13.1",
"lodash": "^4.17.4",
"mkdirp": "^0.5.1",
"pouchdb-hoodie-api": "^1.6.2",
"request": "^2.69.0",
"pouchdb-hoodie-api": "^2.0.0",
"request": "^2.80.0",
"to-id": "^1.0.5"
},
"publishConfig": {
Expand Down

0 comments on commit 7b2b04e

Please sign in to comment.