mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-07-10 14:21:33 +00:00
Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
409e7a8e1f | |||
52938e9f39 | |||
32941a807a | |||
32d34d3b83 | |||
074b8af09d | |||
4117bd7552 | |||
db3f6dbb06 | |||
3808c365b1 | |||
19528ef15e | |||
bb0c9905ed | |||
141920cd14 |
20
CHANGELOG.md
20
CHANGELOG.md
@ -1,3 +1,23 @@
|
||||
<a name="0.20.2"></a>
|
||||
## [0.20.2](https://github.com/libp2p/js-libp2p/compare/v0.20.1...v0.20.2) (2018-04-10)
|
||||
|
||||
|
||||
|
||||
<a name="0.20.1"></a>
|
||||
## [0.20.1](https://github.com/libp2p/js-libp2p/compare/v0.20.0...v0.20.1) (2018-04-10)
|
||||
|
||||
|
||||
|
||||
<a name="0.20.0"></a>
|
||||
# [0.20.0](https://github.com/libp2p/js-libp2p/compare/v0.19.2...v0.20.0) (2018-04-06)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* use class-is for type checks ([bb0c990](https://github.com/libp2p/js-libp2p/commit/bb0c990))
|
||||
|
||||
|
||||
|
||||
<a name="0.19.2"></a>
|
||||
## [0.19.2](https://github.com/libp2p/js-libp2p/compare/v0.19.0...v0.19.2) (2018-03-28)
|
||||
|
||||
|
45
package.json
45
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "libp2p",
|
||||
"version": "0.19.2",
|
||||
"version": "0.20.2",
|
||||
"description": "JavaScript base class for libp2p bundles",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
@ -38,14 +38,15 @@
|
||||
"homepage": "https://github.com/libp2p/js-libp2p",
|
||||
"dependencies": {
|
||||
"async": "^2.6.0",
|
||||
"libp2p-floodsub": "^0.14.1",
|
||||
"libp2p-ping": "~0.6.1",
|
||||
"libp2p-switch": "~0.37.3",
|
||||
"mafmt": "^4.0.0",
|
||||
"multiaddr": "^3.1.0",
|
||||
"peer-book": "~0.5.4",
|
||||
"peer-id": "~0.10.6",
|
||||
"peer-info": "~0.11.6"
|
||||
"libp2p-floodsub": "^0.15.0",
|
||||
"libp2p-ping": "~0.7.0",
|
||||
"libp2p-switch": "~0.39.0",
|
||||
"mafmt": "^6.0.0",
|
||||
"multiaddr": "^4.0.0",
|
||||
"peer-book": "~0.7.0",
|
||||
"peer-id": "~0.10.7",
|
||||
"libp2p-websockets": "^0.11.0",
|
||||
"peer-info": "~0.14.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"aegir": "^13.0.6",
|
||||
@ -53,17 +54,16 @@
|
||||
"cids": "~0.5.3",
|
||||
"dirty-chai": "^2.0.1",
|
||||
"electron-webrtc": "~0.3.0",
|
||||
"libp2p-circuit": "~0.1.5",
|
||||
"libp2p-kad-dht": "~0.9.0",
|
||||
"libp2p-mdns": "~0.9.2",
|
||||
"libp2p-mplex": "~0.6.0",
|
||||
"libp2p-railing": "~0.7.1",
|
||||
"libp2p-secio": "~0.9.4",
|
||||
"libp2p-spdy": "~0.11.0",
|
||||
"libp2p-tcp": "~0.11.6",
|
||||
"libp2p-webrtc-star": "~0.13.4",
|
||||
"libp2p-websockets": "~0.10.5",
|
||||
"libp2p-websocket-star": "~0.7.7",
|
||||
"libp2p-circuit": "~0.2.0",
|
||||
"libp2p-kad-dht": "~0.10.0",
|
||||
"libp2p-mdns": "~0.11.0",
|
||||
"libp2p-mplex": "~0.7.0",
|
||||
"libp2p-railing": "~0.8.0",
|
||||
"libp2p-secio": "~0.10.0",
|
||||
"libp2p-spdy": "~0.12.1",
|
||||
"libp2p-tcp": "~0.12.0",
|
||||
"libp2p-webrtc-star": "~0.14.0",
|
||||
"libp2p-websocket-star": "~0.8.0",
|
||||
"libp2p-websocket-star-rendezvous": "~0.2.3",
|
||||
"lodash.times": "^4.3.2",
|
||||
"pre-commit": "^1.2.2",
|
||||
@ -71,14 +71,15 @@
|
||||
"pull-serializer": "~0.3.2",
|
||||
"pull-stream": "^3.6.7",
|
||||
"safe-buffer": "^5.1.1",
|
||||
"sinon": "^4.4.10",
|
||||
"wrtc": "0.0.67"
|
||||
"sinon": "^4.5.0",
|
||||
"wrtc": "0.1.1"
|
||||
},
|
||||
"contributors": [
|
||||
"Chris Bratlien <chrisbratlien@gmail.com>",
|
||||
"Chris Dostert <chrisdostert@users.noreply.github.com>",
|
||||
"Daijiro Wachi <daijiro.wachi@gmail.com>",
|
||||
"David Dias <daviddias.p@gmail.com>",
|
||||
"Diogo Silva <fsdiogo@gmail.com>",
|
||||
"Dmitriy Ryajov <dryajov@gmail.com>",
|
||||
"Elven <mon.samuel@qq.com>",
|
||||
"Friedel Ziegelmayer <dignifiedquire@gmail.com>",
|
||||
|
@ -10,6 +10,7 @@ const series = require('async/series')
|
||||
const PeerBook = require('peer-book')
|
||||
const Switch = require('libp2p-switch')
|
||||
const Ping = require('libp2p-ping')
|
||||
const WebSockets = require('libp2p-websockets')
|
||||
|
||||
const peerRouting = require('./peer-routing')
|
||||
const contentRouting = require('./content-routing')
|
||||
@ -129,8 +130,7 @@ class Node extends EventEmitter {
|
||||
if (transport.filter(multiaddrs).length > 0) {
|
||||
this.switch.transport.add(
|
||||
transport.tag || transport.constructor.name, transport)
|
||||
} else if (transport.constructor &&
|
||||
transport.constructor.name === 'WebSockets') {
|
||||
} else if (WebSockets.isWebSockets(transport)) {
|
||||
// TODO find a cleaner way to signal that a transport is always
|
||||
// used for dialing, even if no listener
|
||||
ws = transport
|
||||
|
Reference in New Issue
Block a user