-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert from callbacks to async #19
Conversation
a3c7cfe
to
3329f36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the PR @dirkmc !
Left a few comments in the review.
Besides that, can you rebase this PR, as we are not using Jenkins CI anymore and I just added the travis config? Also, add a BREAKING CHANGE
message in the commit body please.
c14c5d9
to
03ec3d3
Compare
Thanks @vasco-santos, I followed your suggestions with one small exception that I replied to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All in all, this looks good! Added 3 minor details / suggestions!
ff5ed4e
to
c85a1b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks @dirkmc
The CI is failing as a result of the peer-id
being installed through branch uses promises. As a consequence, js-ipfs
uses this version as well (but it needs to use the callback version for now). So, once peer-id
is released with a breaking change and we install its version here, everything should be fine.
@dirkmc can you update this PR? I think all the dependencies are now ready |
BREAKING CHANGE: All places in the API that used callbacks are now replaced with async/await
6e659b3
to
1cb0063
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
BREAKING CHANGE: This change replaces callbacks with async / await
Needs the following PRs: