-
Notifications
You must be signed in to change notification settings - Fork 445
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
fix: throw if no conn encryption module provided #665
Conversation
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
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!
Since the `v0.28.1` point release, libp2p now requires a connection enryption module to be passed in config, otherwise it throws. See: libp2p/js-libp2p#665
*cough* *cough* breaking change *cough* *cough* |
Since the `v0.28.1` patch release, libp2p requires a connection encryption module to be passed in config, otherwise it throws. See: libp2p/js-libp2p#665
You're right, this is an api change. While this shouldn't break production applications as it is required for libp2p to function properly, it can break testing environments for people. I'll do a revert commit for this and move this to an 0.29 branch. |
This reverts commit c038550.
This reverts commit c038550.
Reverted in v0.28.2 |
…)" This reapplies commit b621fbd.
Branch 0.29.x has been created for the next minor release. The change has been reapplied for that branch. |
…)" This reapplies commit b621fbd.
…)" This reapplies commit b621fbd.
…)" This reapplies commit b621fbd.
…)" This reapplies commit b621fbd.
…)" This reapplies commit b621fbd.
…)" This reapplies commit b621fbd.
Since the `v0.28.1` patch release, libp2p requires a connection encryption module to be passed in config, otherwise it throws. See: libp2p/js-libp2p#665
The main focus of this PR is throwing an error if a connEncryption module is not provided.
With that in mind, it also improves the configuration docs visibility from the
Libp2p.create
API doc, as well as that transports and connEncryption modules are required.It also changes the peerDiscovery example to use the discovery module tag and be coherent with the docs.
Fixes #664