You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0.25 is already in the imminent js-ipfs 0.35 release. If you're using js-ipfs, you'll get these changes immediately if you upgrade there!
☎️ Auto Dial
Libp2p will now auto dial to discovered peers by default. This can be disabled in configuration if you need to do any specialized dialing. Discovered peers will only be dialed if we are under our min peers threshold, which is configured for the Connection Manager. You can read more about Peer Discovery and Auto Dial here.
✂️ Better Connection Management
The Libp2p Switch was doing a bad job of letting the Connection Manager know just how many connections there were. This resulted in the Connection Manager thinking there were far fewer connections than there actually were. This has been fixed, and now the Connection Manager is back to keeping your router safe from the connection plague.
📔 Blacklisting Undialable Nodes
Libp2p will now blacklist nodes that aren't dialable. The blacklisting includes an exponential backoff with a random jitter. This along with auto dial, help to ensure libp2p is spending its connection resources wisely. You can see the configuration options in the libp2p-switch readme.
🔢 Dial Queues
Libp2p Switch now has better queuing for dials! Previously, the only limiting of dials were done per peer. Now, all dials will enter a global queue so that we can better manage connection attempts. The current default limit is 100 parallel dials, but you can configure this to your needs. If a peer is already connected, any calls to .dial() or .dialProtocol() skip the line and will be executed immediately. Any dials done as a result of Auto Dial will take a back seat.
⚖️ Smaller than ever
Since the 0.24 release, libp2p has dropped some weight. The bundle size is now ~42% smaller!
🏗 API Changes
Auto Dial is enabled by default. Applications that previously dialed on peer discovery should either stop doing so, or turn off Auto Dial. We recommend using Auto Dial if you're not customizing your dialing logic when peers are discovered.
The DHT no longer lives under EXPERIMENTAL in the config. It is enabled directly in it's own config options. Check out the Peer and Content Routing example to see how to configure a basic Libp2p node with the DHT on.
Pubsub now supports unsubscribe all. Check out interface-js-ipfs-core docs if you want to be able to unsubscribe all listeners for a topic.
Take a snapshot between of everyone that has contributed to this release (including its subdeps in IPFS, libp2p, IPLD and multiformats) using name-your-contributors. Generate a nice markdown list with this script
The best place to ask your questions about libp2p, how it works and what you can do with it is at discuss.libp2p.io. We are also available at the #libp2p channel on Freenode.
The text was updated successfully, but these errors were encountered:
🔦 Highlights
0.25 is already in the imminent js-ipfs 0.35 release. If you're using js-ipfs, you'll get these changes immediately if you upgrade there!
☎️ Auto Dial
Libp2p will now auto dial to discovered peers by default. This can be disabled in configuration if you need to do any specialized dialing. Discovered peers will only be dialed if we are under our min peers threshold, which is configured for the Connection Manager. You can read more about Peer Discovery and Auto Dial here.
✂️ Better Connection Management
The Libp2p Switch was doing a bad job of letting the Connection Manager know just how many connections there were. This resulted in the Connection Manager thinking there were far fewer connections than there actually were. This has been fixed, and now the Connection Manager is back to keeping your router safe from the connection plague.
📔 Blacklisting Undialable Nodes
Libp2p will now blacklist nodes that aren't dialable. The blacklisting includes an exponential backoff with a random jitter. This along with auto dial, help to ensure libp2p is spending its connection resources wisely. You can see the configuration options in the libp2p-switch readme.
🔢 Dial Queues
Libp2p Switch now has better queuing for dials! Previously, the only limiting of dials were done per peer. Now, all dials will enter a global queue so that we can better manage connection attempts. The current default limit is 100 parallel dials, but you can configure this to your needs. If a peer is already connected, any calls to
.dial()
or.dialProtocol()
skip the line and will be executed immediately. Any dials done as a result of Auto Dial will take a back seat.⚖️ Smaller than ever
Since the 0.24 release, libp2p has dropped some weight. The bundle size is now ~42% smaller!
🏗 API Changes
✅ Release Checklist
name-your-contributors
. Generate a nice markdown list with this script❤️ Huge thank you to everyone that made this release possible
In alphabetical order, here are all the humans that contributed to the release:
🙌🏽 Want to contribute?
Would you like to contribute to the libp2p project and don't know how? Well, there are a few places you can get started:
help wanted
label at the Ready column in our waffle board - https://waffle.io/libp2p/js-libp2p?label=help%20wantedThe best place to ask your questions about libp2p, how it works and what you can do with it is at discuss.libp2p.io. We are also available at the #libp2p channel on Freenode.
The text was updated successfully, but these errors were encountered: