From 7b2b04e5857545a36f59e8170a8d62de91e1485d Mon Sep 17 00:00:00 2001 From: Gregor Date: Tue, 7 Mar 2017 20:43:46 -0800 Subject: [PATCH] chore(package): @hoodie/store-server-api 2.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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`) --- package.json | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index b6408d0..0a7af66 100644 --- a/package.json +++ b/package.json @@ -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": {