Ran
|
Files
17
|
Run time
1s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
<a href="https://github.com/hoodiehq/hoodie/commit/<a class=hub.com/hoodiehq/hoodie/commit/fce2bf2f06d6c60d4f0e20947cf0d3cc1c6c7f7c">fce2bf2f0<a href="https://github.com/hoodiehq/hoodie/commit/fce2bf2f06d6c60d4f0e20947cf0d3cc1c6c7f7c">">breaking(package): @hoodie/client@10 BREAKING CHANGE: For `hoodie.store`: - 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. https://github.com/hoodiehq/pouchdb-hoodie-api/commit/</a><a class="double-link" href="https://github.com/hoodiehq/hoodie/commit/<a class="double-link" href="https://github.com/hoodiehq/hoodie/commit/1958c425b7a9dc859434bdf2c057ac538db03f95">1958c425b</a>">1958c425b</a><a href="https://github.com/hoodiehq/hoodie/commit/fce2bf2f06d6c60d4f0e20947cf0d3cc1c6c7f7c"> - 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`) For `hoodie.account`: * `account.ready` has been removed. All APIs are now asynchronous, no setup is needed any longer * `account.fetch()` and `account.profile.fetch()` have been removed. Use `account.get()` and `acc* `account.fetch()` and `account.profile.fetch()` have been removed. Use `account.get()` and `acc* `account.fetch()` and `account.profile.fetch()` have been removed. Use `account.get()` and `acc* `account.fetch()` and `account.profile.fetch()` have been removedrequest * `account.fetch()` and `account.p... (continued)
87 of 89 branches covered (97.75%)
260 of 262 relevant lines covered (99.24%)
6.29 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|