Skip to content

Releases: hoodiehq/hoodie

v28.2.0

13 Jun 12:17
Compare
Choose a tag to compare

<a name"28.2.0">

28.2.0 (2017-06-13)

Features

v28.1.5

09 Jun 10:28
Compare
Choose a tag to compare

<a name"28.1.5">

28.1.5 (2017-06-09)

Bug Fixes

  • package: security update - hapi@16.4.1 (c4d97521)

v28.1.4

08 Jun 10:02
Compare
Choose a tag to compare

<a name"28.1.4">

28.1.4 (2017-06-08)

Bug Fixes

  • client: pass options.client to Hoodie client constructor (18f00507)

v28.1.3

04 Jun 18:38
Compare
Choose a tag to compare

<a name"28.1.3">

28.1.3 (2017-06-04)

Bug Fixes

  • setup: windows compatibility for postinstall setup (770619e3)

v28.1.2

03 Jun 18:30
Compare
Choose a tag to compare

<a name"28.1.2">

28.1.2 (2017-06-03)

Bug Fixes

  • support npm@5’s --save default for postinstall script (#760) (79dde6b8)

v28.1.1

25 May 18:41
Compare
Choose a tag to compare

<a name"28.1.1">

28.1.1 (2017-05-25)

Bug Fixes

  • package: update yargs to version 7.0.1 (432bb7fb)

v28.1.0

15 Mar 17:21
Compare
Choose a tag to compare

<a name"28.1.0">

28.1.0 (2017-03-15)

Features

  • dbUrlUsername and dbUrlPassword options (b8483235)

v28.0.0

09 Mar 09:37
Compare
Choose a tag to compare

28.0.0 (2017-03-09)

Breaking Changes

Client

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

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 account.profile.get() instead

  • account.profile.get() returns a promise now. It also sends a request to the server requesting the current user’s profile properties unless options.local is set to true

  • account.get() returns a promise now. It also sends a request to the server requested the current user’s account properties unless one of the following conditions is true

    1. User is signed out
    2. Only id and or session properties are requested
    3. options.local is set to true
  • account.hasInvalidSession() has been removed. Use account.get(session) instead (check of session.invalid)

  • account.isSignedIn() has been removed. Use account.get(session) instead.

Server

The store instance which server.plugins.store.api.open(dbName) resolves to
has several breaking changes via pouchdb-hoodie-api@2.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.

(ba5301f2)

v27.2.0

27 Feb 08:40
Compare
Choose a tag to compare

<a name"27.2.0">

27.2.0 (2017-02-27)

Features

  • add a small note on powershell docs setup to CONTRIBUTING.md (62fe6276)

v27.1.5

22 Feb 08:14
Compare
Choose a tag to compare

<a name"27.1.5">

27.1.5 (2017-02-22)

Bug Fixes