hoodiehq / hoodie-client

:dog: Client API for the Hoodie server
Apache License 2.0
34 stars 25 forks source link

Update @hoodie/store-client to the latest version 🚀 #125

Closed greenkeeper[bot] closed 7 years ago

greenkeeper[bot] commented 7 years ago

Version 8.0.0 of @hoodie/store-client just got published.

Dependency @hoodie/store-client
Current Version 7.0.1
Type dependency

The version 8.0.0 is not covered by your current version range.

Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.

I recommend you look into these changes and try to get onto the latest version of @hoodie/store-client. Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.


Release Notes v8.0.0

<a name"8.0.0">

8.0.0 (2017-03-04)

Features

Breaking Changes

  • 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. hoodiehq/pouchdb-hoodie-api@1958c42

  • 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.

  • 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

  • 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)

(852393e8)

Commits

The new version differs by 3 commits .

  • 852393e feat: pouchdb-hoodie-api@2.0.0
  • 5d00030 test: adaptions for pouchdb-hoodie-api@2.0.0
  • fc6f742 docs(README): replace store(scope) with store.withIdPrefix(prefix)

See the full diff.

Not sure how things should work exactly? There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html) and of course you may always [ask my humans](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper Bot :palm_tree:

greenkeeper[bot] commented 7 years ago

Version 8.0.1 just got published.

Update to this version instead 🚀

Release Notes v8.0.1

<a name"8.0.1">

8.0.1 (2017-03-04)

Bug Fixes

  • .withIdPrefix() after .reset() (3f0ccc4b)
Commits

The new version differs by 2 commits .

  • 3f0ccc4 fix: .withIdPrefix() after .reset()
  • bed1ca6 test: .withIdPrefix() after .reset()

See the full diff.

gr2m commented 7 years ago

closing in favor of #126