BREAKING: drop Node 8 support

This commit is contained in:
Feross Aboukhadijeh 2019-08-05 14:54:20 -07:00
parent 770d57c549
commit 93b41391a9
3 changed files with 8 additions and 7 deletions

View File

@ -5,7 +5,6 @@ const once = require('once')
const parallel = require('run-parallel') const parallel = require('run-parallel')
const Peer = require('simple-peer') const Peer = require('simple-peer')
const uniq = require('uniq') const uniq = require('uniq')
const URL = require('url').URL
const common = require('./lib/common') const common = require('./lib/common')
const HTTPTracker = require('./lib/client/http-tracker') // empty object in browser const HTTPTracker = require('./lib/client/http-tracker') // empty object in browser

View File

@ -5,7 +5,6 @@ const compact2string = require('compact2string')
const debug = require('debug')('bittorrent-tracker:udp-tracker') const debug = require('debug')('bittorrent-tracker:udp-tracker')
const dgram = require('dgram') const dgram = require('dgram')
const randombytes = require('randombytes') const randombytes = require('randombytes')
const URL = require('url').URL
const common = require('../common') const common = require('../common')
const Tracker = require('./tracker') const Tracker = require('./tracker')

View File

@ -49,9 +49,8 @@
"tape": "^4.0.0", "tape": "^4.0.0",
"webtorrent-fixtures": "^1.3.0" "webtorrent-fixtures": "^1.3.0"
}, },
"optionalDependencies": { "engines": {
"bufferutil": "^4.0.0", "node": ">=10"
"utf-8-validate": "^5.0.1"
}, },
"keywords": [ "keywords": [
"bittorrent", "bittorrent",
@ -65,12 +64,16 @@
], ],
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "index.js",
"optionalDependencies": {
"bufferutil": "^4.0.0",
"utf-8-validate": "^5.0.1"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/webtorrent/bittorrent-tracker.git" "url": "git://github.com/webtorrent/bittorrent-tracker.git"
}, },
"scripts": { "scripts": {
"update-authors": "./tools/update-authors.sh", "test": "standard && tape test/*.js",
"test": "standard && tape test/*.js" "update-authors": "./tools/update-authors.sh"
} }
} }