Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

feat: Use async await #18

Merged
merged 2 commits into from
Jul 10, 2019
Merged

feat: Use async await #18

merged 2 commits into from
Jul 10, 2019

Conversation

achingbrain
Copy link
Member

This follows on from #9 (not sure why it's a PR from @alanshaw's personal account instead of a branch here 🤷‍♂) but fixes the merge conflicts and updates the deps.

@achingbrain
Copy link
Member Author

@jacobheun @vasco-santos any comments on this or can it be merged?

@vasco-santos
Copy link
Member

I will have a look now @achingbrain

Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM!

Two observations:

@achingbrain can you add to the commit message the BREAKING CHANGE, or @dignifiedquire please add it before squash and merge.

There are several errors coming from libp2p-crypto, which should have a code. However, as this PR is for migrating to async await, we should do those changes in a next PR, but maybe we should create an issue for tracking this?

@achingbrain
Copy link
Member Author

It's probably easy enough to just add a BREAKING CHANGE message when squashing & merging?

@vasco-santos
Copy link
Member

@achingbrain I agree. Just pointed out to not be forgotten 😄

@achingbrain
Copy link
Member Author

@dignifiedquire any comments or can this be merged & released?

@dignifiedquire
Copy link
Member

looks good to me

@achingbrain
Copy link
Member Author

@dignifiedquire great! Could you merge & do a release please? I think only you and @daviddias have publish rights for this module on npm.

Alan Shaw and others added 2 commits July 10, 2019 10:52
This PR changes this module to remove callbacks and use async/await. The API is unchanged aside from the obvious removal of the `callback` parameter.

depends on `multihashing-async` PR TODO

refs ipfs/js-ipfs#1670

License: MIT
Signed-off-by: Alan Shaw <[email protected]>
@jacobheun jacobheun merged commit 1974eb9 into master Jul 10, 2019
@jacobheun jacobheun deleted the feat/async-await branch July 10, 2019 10:36
@jacobheun
Copy link
Contributor

0.4.0 is released with breaking change commit note. 🚢

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants