date | permalink | title | description | author | tags | |
---|---|---|---|---|---|---|
2018-11-16 |
/55-js-libp2p-0-24/ |
js-libp2p 0.24.0 released |
Jacob Heun |
|
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>js-libp2p v0.24.0 is here #libp2p #JS! We’ve added support for custom routers, turned relay on by default and threw in some extra goodies and improvements. Highlights are here: https://t.co/4UHH80rOfp
— Jacob Heun (@jacobheun) November 16, 2018
Libp2p will now support custom content and peer routers, which will enable users to better customize their DHT experience. The new release allows for using the new Delegated Peer Routing and Delegated Content Routing modules to leverage an external node's DHT instead of or in conjunction with their own. This enables nodes in more resource restricted environments to use an external DHT instead of running their own, which can be very resource intensive.
In an effort to improve default connectivity, circuit relay is now enabled by default. Hop is still disabled by default to prevent relaying traffic for other nodes out of the box, as this is expensive for the node. By enabling circuit relay by default, nodes will now be able to accept and dial to other circuit relay nodes. This improves a nodes default ability to communicate in isolated environments.
Libp2p is now a state machine. When starting and stopping the node you can now listen for the stop
and start
events. Libp2p also exposes a new method, dialFSM
, which calls back with a Connection State Machine. This gives users the ability to listen to more events on individual connections. You can find out more about these events in libp2p-switch readme.
- Added method
dialFSM(peer, protocol, callback)
which allows users to hook into more connection level activity. You can read more about it in the readme. - Libp2p now emits
start
andstop
events on node start and stop respectively.- Callbacks for
.start()
and.stop()
are now optional. You can instead listen to theerror
,start
, andstop
events.
- Callbacks for
Would you like to contribute to the libp2p project and don't know how? Well, there are a few places you can get started:
- Check the issues with the
help wanted
label at the Ready column in our waffle board - https://waffle.io/libp2p/js-libp2p?label=help%20wanted - Join an IPFS All Hands, introduce yourself and let us know where you would like to contribute - https://github.com/ipfs/team-mgmt#weekly-ipfs-all-hands
- Hack with IPFS and show us what you made! The All Hands call is also the perfect venue for demos, join in and show us what you built
- Join the discussion at http://discuss.ipfs.tech/ and help users finding their answers.
- Join the ⚡️ⒿⓈ Core Dev Team Weekly Sync 🙌🏽 and be part of the Sprint action!
The best place to ask your questions about libp2p, how it works and what you can do with it is at discuss.ipfs.tech. We are also available at the #libp2p channel on Freenode.
That's all for now!