Skip to content

Commit 93b4139

Browse files
committed
BREAKING: drop Node 8 support
1 parent 770d57c commit 93b4139

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

client.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const once = require('once')
55
const parallel = require('run-parallel')
66
const Peer = require('simple-peer')
77
const uniq = require('uniq')
8-
const URL = require('url').URL
98

109
const common = require('./lib/common')
1110
const HTTPTracker = require('./lib/client/http-tracker') // empty object in browser

lib/client/udp-tracker.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const compact2string = require('compact2string')
55
const debug = require('debug')('bittorrent-tracker:udp-tracker')
66
const dgram = require('dgram')
77
const randombytes = require('randombytes')
8-
const URL = require('url').URL
98

109
const common = require('../common')
1110
const Tracker = require('./tracker')

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@
4949
"tape": "^4.0.0",
5050
"webtorrent-fixtures": "^1.3.0"
5151
},
52-
"optionalDependencies": {
53-
"bufferutil": "^4.0.0",
54-
"utf-8-validate": "^5.0.1"
52+
"engines": {
53+
"node": ">=10"
5554
},
5655
"keywords": [
5756
"bittorrent",
@@ -65,12 +64,16 @@
6564
],
6665
"license": "MIT",
6766
"main": "index.js",
67+
"optionalDependencies": {
68+
"bufferutil": "^4.0.0",
69+
"utf-8-validate": "^5.0.1"
70+
},
6871
"repository": {
6972
"type": "git",
7073
"url": "git://github.com/webtorrent/bittorrent-tracker.git"
7174
},
7275
"scripts": {
73-
"update-authors": "./tools/update-authors.sh",
74-
"test": "standard && tape test/*.js"
76+
"test": "standard && tape test/*.js",
77+
"update-authors": "./tools/update-authors.sh"
7578
}
7679
}

0 commit comments

Comments
 (0)