Closed robert-cronin closed 4 years ago
Hello @robert-cronin
Thanks for reporting this. However, in the context of https://github.com/libp2p/js-peer-info/pull/92 we are going to deprecate this module in the next release of js-libp2p
.
Briefly, Libp2p will now include all peer-info
data per peer in its PeerStore and connection management API will allow libp2p users to check if a peer is connected. This way, we will not need this module anymore.
With the above in mind, we will not work on fixing this here.
okay thank you, I will take a look at PeerStore
FYI: it is on the 0.28.x
branch in js-libp2p
: https://github.com/libp2p/js-libp2p/tree/0.28.x/src/peer-store
The return type for
isConnected
is set as boolean where it should be set toMultiaddr
https://github.com/libp2p/js-peer-info/blob/1b1784610fd7f19712384de14334b46ec0774445/src/index.d.ts#L48