Skip to content

Commit

Permalink
breaking: remove account.ready
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

`account.ready` has been removed. All APIs are now asynchronous, no setup is needed any longer
  • Loading branch information
gr2m committed Mar 9, 2017
1 parent 1c7c6b4 commit 22d8c15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ function Account (options) {
one: events.one.bind(null, state),
off: events.off.bind(null, state),
hook: state.hook.api,
validate: require('./lib/validate').bind(null, state),
ready: state.ready.then(function () { return api })
validate: require('./lib/validate').bind(null, state)
}

return api
Expand Down
3 changes: 1 addition & 2 deletions utils/get-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ function getState (options) {
url: options.url,
validate: options.validate || function () {},
cache: cache,
setup: setup,
ready: setup
setup: setup
}

return state
Expand Down

0 comments on commit 22d8c15

Please sign in to comment.