From 03464525f345c2b4fb23241263bb703902ccc9e0 Mon Sep 17 00:00:00 2001 From: Pedro Teixeira Date: Fri, 6 Apr 2018 10:46:55 +0100 Subject: [PATCH 1/5] hooking up libp2p-connection-manager --- package.json | 1 + src/index.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/package.json b/package.json index 2257b01549..f9df61708a 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "homepage": "https://github.com/libp2p/js-libp2p", "dependencies": { "async": "^2.6.0", + "libp2p-connection-manager": "^0.1.0", "libp2p-floodsub": "^0.15.0", "libp2p-ping": "~0.8.0", "libp2p-switch": "~0.39.2", diff --git a/src/index.js b/src/index.js index bdddea1d77..bbc2342b81 100644 --- a/src/index.js +++ b/src/index.js @@ -11,6 +11,7 @@ const PeerBook = require('peer-book') const Switch = require('libp2p-switch') const Ping = require('libp2p-ping') const WebSockets = require('libp2p-websockets') +const ConnectionManager = require('libp2p-connection-manager') const peerRouting = require('./peer-routing') const contentRouting = require('./content-routing') @@ -37,6 +38,7 @@ class Node extends EventEmitter { this.switch = new Switch(this.peerInfo, this.peerBook, _options.switch) this.stats = this.switch.stats + this.connectionManager = new ConnectionManager(this, _options.connectionManager) // Attach stream multiplexers if (this.modules.connection && this.modules.connection.muxer) { From ba49c7327cfcd6c05b00dd59f9ed27631ca68b81 Mon Sep 17 00:00:00 2001 From: Pedro Teixeira Date: Mon, 30 Apr 2018 15:36:35 +0100 Subject: [PATCH 2/5] update connection-manager version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f9df61708a..078a19b086 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "homepage": "https://github.com/libp2p/js-libp2p", "dependencies": { "async": "^2.6.0", - "libp2p-connection-manager": "^0.1.0", + "libp2p-connection-manager": "~0.0.2", "libp2p-floodsub": "^0.15.0", "libp2p-ping": "~0.8.0", "libp2p-switch": "~0.39.2", From d4e57213810c714b288d2af31b431a401fed0f3c Mon Sep 17 00:00:00 2001 From: David Dias Date: Sun, 6 May 2018 15:48:57 +0200 Subject: [PATCH 3/5] chore: update deps --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 078a19b086..ce56b775ea 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "pull-goodbye": "0.0.2", "pull-serializer": "~0.3.2", "pull-stream": "^3.6.7", - "sinon": "^5.0.1", + "sinon": "^5.0.4", "wrtc": "0.1.4" }, "contributors": [ From f915c25f0b6ae637228eba36b3e66bdb17e56e91 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Wed, 20 Jun 2018 09:56:25 +0100 Subject: [PATCH 4/5] chore: upgrade to latest libp2p-switch License: MIT Signed-off-by: Alan Shaw --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ce56b775ea..14cbe093f1 100644 --- a/package.json +++ b/package.json @@ -41,12 +41,12 @@ "libp2p-connection-manager": "~0.0.2", "libp2p-floodsub": "^0.15.0", "libp2p-ping": "~0.8.0", - "libp2p-switch": "~0.39.2", + "libp2p-switch": "~0.40.4", + "libp2p-websockets": "^0.12.0", "mafmt": "^6.0.0", "multiaddr": "^5.0.0", "peer-book": "~0.7.0", "peer-id": "~0.10.7", - "libp2p-websockets": "^0.12.0", "peer-info": "~0.14.1" }, "devDependencies": { From 97a9bbf844142bec5d77122e46676481b390718d Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Wed, 20 Jun 2018 10:30:48 +0100 Subject: [PATCH 5/5] fix: pin wrtc until #194 is resolved https://github.com/libp2p/js-libp2p/issues/194 License: MIT Signed-off-by: Alan Shaw --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 45de86bb29..d47dafe873 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "pull-serializer": "~0.3.2", "pull-stream": "^3.6.8", "sinon": "^5.0.7", - "wrtc": "~0.1.4" + "wrtc": "0.1.1" }, "contributors": [ "Chris Bratlien ",