Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 3.92 KB

036-js-libp2p-0.24.md

File metadata and controls

48 lines (32 loc) · 3.92 KB
date permalink title description author tags
2018-11-16
/55-js-libp2p-0-24/
js-libp2p 0.24.0 released
Jacob Heun
libp2p

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
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

🔦 Highlights

🚦 Custom Content/Peer Routing Support

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.

🔌 Relay enabled by default

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.

🤖 State Machine

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.

🏗 API Changes

  • 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 and stop events on node start and stop respectively.
    • Callbacks for .start() and .stop() are now optional. You can instead listen to the error, start, and stop events.

🙌🏽 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:

⁉️ Do you have questions?

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!