From 892b848911adb09673a99d6332db0ab8be3ac2da Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 29 Oct 2021 09:29:51 -0500 Subject: [PATCH 1/4] chore(deps): update dependency semantic-release to v18 (#399) Co-authored-by: Renovate Bot --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eb387f27..f615bff0 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "devDependencies": { "@webtorrent/semantic-release-config": "1.0.7", "magnet-uri": "6.2.0", - "semantic-release": "17.4.7", + "semantic-release": "18.0.0", "standard": "*", "tape": "5.3.1", "webtorrent-fixtures": "1.7.5", From 8222ccd1d61b09b5cd9f36958f0171ba06e7fae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Fri, 29 Oct 2021 16:36:47 +0200 Subject: [PATCH 2/4] style: use object shorthand for properties (#400) --- lib/client/http-tracker.js | 2 +- lib/client/udp-tracker.js | 2 +- lib/client/websocket-tracker.js | 2 +- test/client.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/client/http-tracker.js b/lib/client/http-tracker.js index 604c6823..6fcea8d7 100644 --- a/lib/client/http-tracker.js +++ b/lib/client/http-tracker.js @@ -125,7 +125,7 @@ class HTTPTracker extends Tracker { let request = get.concat({ url: parsedUrl.toString(), - agent: agent, + agent, timeout: common.REQUEST_TIMEOUT, headers: { 'user-agent': this.client._userAgent || '' diff --git a/lib/client/udp-tracker.js b/lib/client/udp-tracker.js index 79f777c4..65d97e40 100644 --- a/lib/client/udp-tracker.js +++ b/lib/client/udp-tracker.js @@ -258,7 +258,7 @@ class UDPTracker extends Tracker { function send (message, proxyInfo) { if (proxyInfo) { - const pack = Socks.createUDPFrame({ host: hostname, port: port }, message) + const pack = Socks.createUDPFrame({ host: hostname, port }, message) socket.send(pack, 0, pack.length, proxyInfo.port, proxyInfo.host) } else { socket.send(message, 0, message.length, port, hostname) diff --git a/lib/client/websocket-tracker.js b/lib/client/websocket-tracker.js index 480f7ded..1573cfd2 100644 --- a/lib/client/websocket-tracker.js +++ b/lib/client/websocket-tracker.js @@ -186,7 +186,7 @@ class WebSocketTracker extends Tracker { agent = new Socks.Agent(clone(this.client._proxyOpts.socksProxy), (parsedUrl.protocol === 'wss:')) } } - this.socket = socketPool[this.announceUrl] = new Socket({ url: this.announceUrl, agent: agent }) + this.socket = socketPool[this.announceUrl] = new Socket({ url: this.announceUrl, agent }) this.socket.consumers = 1 this.socket.once('connect', this._onSocketConnectBound) } diff --git a/test/client.js b/test/client.js index 8afab8b5..4ad16f85 100644 --- a/test/client.js +++ b/test/client.js @@ -582,7 +582,7 @@ function testClientStartHttpAgent (t, serverType) { infoHash: fixtures.leaves.parsedTorrent.infoHash, announce: announceUrl, peerId: peerId1, - port: port, + port, wrtc: {}, proxyOpts: { httpAgent: agent From dc6f7966844216c39491d6623dd412d5ca65d4c4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 29 Oct 2021 09:37:52 -0500 Subject: [PATCH 3/4] fix(deps): update dependency clone to v2 (#393) Co-authored-by: Renovate Bot --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f615bff0..3b3775eb 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "bittorrent-peerid": "^1.3.3", "bn.js": "^5.2.0", "chrome-dgram": "^3.0.6", - "clone": "^1.0.2", + "clone": "^2.0.0", "compact2string": "^1.4.1", "debug": "^4.1.1", "ip": "^1.1.5", From c761671345c9874ba512fdaa654f852002507500 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 29 Oct 2021 14:38:41 +0000 Subject: [PATCH 4/4] chore(release): 9.18.3 ## [9.18.3](https://github.com/webtorrent/bittorrent-tracker/compare/v9.18.2...v9.18.3) (2021-10-29) ### Bug Fixes * **deps:** update dependency clone to v2 ([#393](https://github.com/webtorrent/bittorrent-tracker/issues/393)) ([dc6f796](https://github.com/webtorrent/bittorrent-tracker/commit/dc6f7966844216c39491d6623dd412d5ca65d4c4)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69e62a38..b5f55ecc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [9.18.3](https://github.com/webtorrent/bittorrent-tracker/compare/v9.18.2...v9.18.3) (2021-10-29) + + +### Bug Fixes + +* **deps:** update dependency clone to v2 ([#393](https://github.com/webtorrent/bittorrent-tracker/issues/393)) ([dc6f796](https://github.com/webtorrent/bittorrent-tracker/commit/dc6f7966844216c39491d6623dd412d5ca65d4c4)) + ## [9.18.2](https://github.com/webtorrent/bittorrent-tracker/compare/v9.18.1...v9.18.2) (2021-09-02) diff --git a/package.json b/package.json index 3b3775eb..63cc9e52 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bittorrent-tracker", "description": "Simple, robust, BitTorrent tracker (client & server) implementation", - "version": "9.18.2", + "version": "9.18.3", "author": { "name": "WebTorrent LLC", "email": "feross@webtorrent.io",