hoodiehq / hoodie-client

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

Update @hoodie/account-client to the latest version 🚀 #131

Closed greenkeeper[bot] closed 7 years ago

greenkeeper[bot] commented 7 years ago

Version 6.0.0 of @hoodie/account-client just got published.

Dependency @hoodie/account-client
Current Version 5.1.1
Type dependency

The version 6.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/account-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 v6.0.0

<a name"6.0.0">

6.0.0 (2017-03-09)

Features

Breaking Changes

account.ready has been removed. All APIs are now asynchronous, no setup is needed any longer

(22d8c159)
*
account.fetch() and account.profile.fetch() have been removed. Use account.get() and account.profile.get() instead

(e5c1af20)
*
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

(188300a2)
*
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

(99d080ef)
*
account.hasInvalidSession() has been removed. Use account.get(session.invalid) instead.

(0a998f7d)
*
account.isSignedIn() has been removed. Use account.get(session) instead.

(c2a87220)

Commits

The new version differs by 27 commits .

  • 22d8c15 breaking: remove account.ready
  • 1c7c6b4 test: remove account.ready
  • 0e48cba docs(README): remove account.ready
  • e5c1af2 breaking: remove account.fetch() and account.profile.fetch()
  • 616e227 test: remove account.fetch()
  • eeefd83 docs(README): remove account.fetch() and account.profile.fetch()
  • 188300a feat: async account.get()
  • a75c728 test: async account.profile.get()
  • 715ed3e docs(README): async account.profile.get()
  • 6c2be7f docs(README): async account.get()
  • 99d080e feat: async account.get()
  • 3e91525 test: async account.get()
  • 0a998f7 breaking: remove account.hasInvalidSession()
  • 6a811dd test: remove account.hasInvalidSession() API
  • 59515bd docs(README): remove account.hasInvalidSession()

There are 27 commits in total. 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:

gr2m commented 7 years ago

closing in favor of #126