From 5a94727d7940019782a4db9ad2dd120638eeed65 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Wed, 4 Sep 2019 21:44:20 +0300 Subject: [PATCH] Bump minimum node version to v10 --- .travis.yml | 3 +-- README.md | 2 +- package.json | 2 +- src/plugins/irc-events/link.js | 12 ------------ 4 files changed, 3 insertions(+), 16 deletions(-) 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 524eceae..dabdbb5a 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,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 942a3812..8b0dac89 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;