Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

feat: callbacks -> async / await #112

Merged
merged 33 commits into from
Sep 16, 2019
Merged

feat: callbacks -> async / await #112

merged 33 commits into from
Sep 16, 2019

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Sep 8, 2019

Branched from #102

TODO:

dirkmc and others added 23 commits April 4, 2019 09:12
BREAKING CHANGE: All places in the API that used callbacks are now replaced with async/await
* feat: support listen on array

* chore: fix missing deps

* chore: update interface version

* docs: update readme for array listen

* test: use port 0

* docs: add some more jsdocs

* chore: fix travis support for ip6 on linux

* refactor: clean up some code
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
The docs for this module are just terrible.

License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Jacob Heun <[email protected]>
License: MIT
Signed-off-by: Jacob Heun <[email protected]>
Alan Shaw and others added 6 commits September 13, 2019 19:23
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Jacob Heun <[email protected]>
License: MIT
Signed-off-by: Jacob Heun <[email protected]>
License: MIT
Signed-off-by: Jacob Heun <[email protected]>
License: MIT
Signed-off-by: Jacob Heun <[email protected]>
License: MIT
Signed-off-by: Jacob Heun <[email protected]>
License: MIT
Signed-off-by: Jacob Heun <[email protected]>
Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

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

This looks good!

I fixed the flakey tests in the interface-transport module and bumped the version for that. I also simplified the track connection event listeners and added some jsdocs.

License: MIT
Signed-off-by: Jacob Heun <[email protected]>
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.

LGTM!

@jacobheun jacobheun merged commit cf7d1b8 into master Sep 16, 2019
@jacobheun jacobheun deleted the feat/async-await2 branch September 16, 2019 15:19
* @param {Upgrader} options.upgrader
*/
constructor ({ upgrader }) {
assert(upgrader, 'An upgrader must be provided. See https://github.com/libp2p/interface-transport#upgrader.')
Copy link
Member

Choose a reason for hiding this comment

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

The readme example has this class instantiable without any options.

Copy link
Contributor

Choose a reason for hiding this comment

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

Doing a PR shortly for another thing, I will include that there.

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