diff --git a/.travis.yml b/.travis.yml index 57223dd7..09673dd4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,9 +24,8 @@ matrix: - name: "Production build" env: BUILD_ENV=production - # Next node version and minimum supported node version + # Next node version - node_js: 11 # EOL: June 2019 - - node_js: 8.10.0 # EOL: December 2019 (test exact LTS version) cache: yarn diff --git a/README.md b/README.md index 16b8a71a..3305f438 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ The Lounge is the official and community-managed fork of [Shout](https://github. ## Installation and usage -The Lounge requires [Node.js](https://nodejs.org/) v8 or more recent. +The Lounge requires latest [Node.js](https://nodejs.org/) LTS version or more recent. [Yarn package manager](https://yarnpkg.com/) is also recommended. If you want to install with npm, `--unsafe-perm` is required for a correct install. diff --git a/package.json b/package.json index 350f6dcf..5c80c6b2 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ ], "license": "MIT", "engines": { - "node": ">=8.10.0" + "node": ">=10.16.3" }, "dependencies": { "bcryptjs": "2.4.3", diff --git a/src/plugins/irc-events/link.js b/src/plugins/irc-events/link.js index 14b45f32..90122945 100644 --- a/src/plugins/irc-events/link.js +++ b/src/plugins/irc-events/link.js @@ -12,18 +12,6 @@ const currentFetchPromises = new Map(); const imageTypeRegex = /^image\/.+/; const mediaTypeRegex = /^(audio|video)\/.+/; -// Fix ECDH curve client compatibility in Node v8/v9 -// This is fixed in Node 10, but The Lounge supports LTS versions -// https://github.com/nodejs/node/issues/16196 -// https://github.com/nodejs/node/pull/16853 -// https://github.com/nodejs/node/pull/15206 -const tls = require("tls"); -const semver = require("semver"); - -if (semver.gte(process.version, "8.6.0") && tls.DEFAULT_ECDH_CURVE === "prime256v1") { - tls.DEFAULT_ECDH_CURVE = "auto"; -} - module.exports = function(client, chan, msg) { if (!Helper.config.prefetch) { return;