Skip to content

Commit 633d68a

Browse files
authored
feat: updated webrtc implementation (#519)
* feat: update webrtc implementation * chore: update deps
1 parent f6a7993 commit 633d68a

File tree

3 files changed

+20
-21
lines changed

3 files changed

+20
-21
lines changed

package.json

+18-19
Original file line numberDiff line numberDiff line change
@@ -27,42 +27,41 @@
2727
},
2828
"type": "module",
2929
"dependencies": {
30-
"@thaunknown/simple-peer": "^9.12.1",
31-
"@thaunknown/simple-websocket": "^9.1.0",
30+
"@thaunknown/simple-peer": "^10.0.6",
31+
"@thaunknown/simple-websocket": "^9.1.1",
3232
"bencode": "^4.0.0",
33-
"bittorrent-peerid": "^1.3.3",
33+
"bittorrent-peerid": "^1.3.6",
3434
"chrome-dgram": "^3.0.6",
35-
"clone": "^2.0.0",
35+
"clone": "^2.1.2",
3636
"compact2string": "^1.4.1",
37-
"cross-fetch-ponyfill": "^1.0.1",
38-
"debug": "^4.1.1",
39-
"ip": "^1.1.5",
37+
"cross-fetch-ponyfill": "^1.0.3",
38+
"debug": "^4.3.4",
39+
"ip": "^2.0.1",
4040
"lru": "^3.1.0",
41-
"minimist": "^1.2.5",
41+
"minimist": "^1.2.8",
4242
"once": "^1.4.0",
4343
"queue-microtask": "^1.2.3",
4444
"random-iterate": "^1.0.1",
4545
"run-parallel": "^1.2.0",
4646
"run-series": "^1.1.9",
47-
"socks": "^2.0.0",
48-
"string2compact": "^2.0.0",
49-
"uint8-util": "^2.1.9",
47+
"socks": "^2.8.3",
48+
"string2compact": "^2.0.1",
49+
"uint8-util": "^2.2.5",
5050
"unordered-array-remove": "^1.0.2",
51-
"ws": "^8.0.0"
51+
"ws": "^8.17.0"
5252
},
5353
"devDependencies": {
5454
"@mapbox/node-pre-gyp": "1.0.11",
5555
"@webtorrent/semantic-release-config": "1.0.10",
5656
"magnet-uri": "7.0.5",
57-
"semantic-release": "21.1.2",
5857
"standard": "*",
5958
"tape": "5.7.5",
60-
"undici": "^5.27.0",
61-
"webtorrent-fixtures": "2.0.2",
62-
"wrtc": "0.4.7"
59+
"undici": "^6.16.1",
60+
"webrtc-polyfill": "^1.1.5",
61+
"webtorrent-fixtures": "2.0.2"
6362
},
6463
"engines": {
65-
"node": ">=12.20.0"
64+
"node": ">=16.0.0"
6665
},
6766
"exports": {
6867
"import": "./index.js"
@@ -80,8 +79,8 @@
8079
"license": "MIT",
8180
"main": "index.js",
8281
"optionalDependencies": {
83-
"bufferutil": "^4.0.3",
84-
"utf-8-validate": "^5.0.5"
82+
"bufferutil": "^4.0.8",
83+
"utf-8-validate": "^6.0.4"
8584
},
8685
"repository": {
8786
"type": "git",

test/evict.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Client from '../index.js'
22
import common from './common.js'
33
import test from 'tape'
4-
import wrtc from 'wrtc'
4+
import wrtc from 'webrtc-polyfill'
55

66
const infoHash = '4cb67059ed6bd08362da625b3ae77f6f4a075705'
77
const peerId = Buffer.from('01234567890123456789')

test/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Client from '../index.js'
22
import common from './common.js'
33
import test from 'tape'
4-
import wrtc from 'wrtc'
4+
import wrtc from 'webrtc-polyfill'
55

66
const infoHash = '4cb67059ed6bd08362da625b3ae77f6f4a075705'
77
const peerId = Buffer.from('01234567890123456789')

0 commit comments

Comments
 (0)