Compare commits

..

3 Commits

Author SHA1 Message Date
6641a5b0b4 chore: release version v0.1.6 2019-12-02 16:09:12 +01:00
34372e07ce chore: update contributors 2019-12-02 16:09:12 +01:00
d5dd256a21 fix: multicodec topology disconnect with peer param (#12) 2019-12-02 16:06:26 +01:00
4 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,13 @@
<a name="0.1.6"></a>
## [0.1.6](https://github.com/libp2p/js-interfaces/compare/v0.1.5...v0.1.6) (2019-12-02)
### Bug Fixes
* multicodec topology disconnect with peer param ([#12](https://github.com/libp2p/js-interfaces/issues/12)) ([d5dd256](https://github.com/libp2p/js-interfaces/commit/d5dd256))
<a name="0.1.5"></a>
## [0.1.5](https://github.com/libp2p/js-interfaces/compare/v0.1.4...v0.1.5) (2019-11-15)

View File

@ -1,6 +1,6 @@
{
"name": "libp2p-interfaces",
"version": "0.1.5",
"version": "0.1.6",
"description": "Interfaces for JS Libp2p",
"main": "src/index.js",
"files": [

View File

@ -77,9 +77,7 @@ class MulticodecTopology extends Topology {
// Not supporting the protocol anymore?
if (existingPeer && hasProtocol.length === 0) {
this._onDisconnect({
peerInfo
})
this._onDisconnect(peerInfo)
}
// New to protocol support

View File

@ -86,6 +86,7 @@ module.exports = (test) => {
expect(topology.peers.size).to.eql(1)
expect(topology._onDisconnect.callCount).to.equal(1)
expect(topology._onDisconnect.calledWith(peer2)).to.equal(true)
})
})
}