-
Notifications
You must be signed in to change notification settings - Fork 54
fix!: update to esm only export #236
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!: update to esm only export #236
Conversation
- Updates all deps to `@libp2p/*` versions - Updates config to output ESM - Makes the `GossipSub` class implement the `PubSub` interface so it can be used with `libp2p@next` - Removes the `libp2p` constructor arg as the components are injected by `libp2p` at runtime - Swaps protobufjs for protons BREAKING CHANGE: the output of this module is now ESM-only
|
Some thoughts:
Before: After:
|
2ef4a72 to
07c130b
Compare
73aa152 to
f4069a5
Compare
5ba0934 to
903d698
Compare
504de2e to
38c2811
Compare
Also, if we do not send a message to a peer, remove them from the recipients list
38c2811 to
6d0afe9
Compare
|
Once ESM-only lands, we can rename directories to be consistent with other libp2p repos. The reason we had source (typescript) files under |
@libp2p/*versionsMessage, signing, etc) in@libp2p/interfacesinstead of redefining themGossipSubclass implement thePubSubinterface so it can be used withlibp2p@next(e.g. instead of extending PubSubBaseProtocol)libp2pconstructor arg as the components are injected bylibp2pat runtimeBREAKING CHANGE: the output of this module is now ESM-only