From ef1c59072cac9d41656721e66d4155ef3872cf2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sat, 18 Nov 2017 13:52:31 -0500 Subject: [PATCH] Deprecate support of Node v4 in preparation of The Lounge v3 --- src/command-line/index.js | 7 ++++++- src/server.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/command-line/index.js b/src/command-line/index.js index f5c1d57a..44170481 100644 --- a/src/command-line/index.js +++ b/src/command-line/index.js @@ -7,13 +7,18 @@ const colors = require("colors/safe"); const Helper = require("../helper"); const Utils = require("./utils"); +if (require("semver").lt(process.version, "6.0.0")) { + log.warn(`Support of Node.js v4 is ${colors.bold("deprecated")} and will be removed in The Lounge v3.`); + log.warn("Please upgrade to Node.js v6 or more recent."); +} + program.version(Helper.getVersion(), "-v, --version") .option("--home ", `${colors.bold("[DEPRECATED]")} Use the ${colors.green("LOUNGE_HOME")} environment variable instead.`) .on("--help", Utils.extraHelp) .parseOptions(process.argv); if (program.home) { - log.warn(`${colors.green("--home")} is ${colors.bold("deprecated")} and will be removed in a future version.`); + log.warn(`${colors.green("--home")} is ${colors.bold("deprecated")} and will be removed in The Lounge v3.`); log.warn(`Use the ${colors.green("LOUNGE_HOME")} environment variable instead.`); } diff --git a/src/server.js b/src/server.js index d300ab77..2c4c4345 100644 --- a/src/server.js +++ b/src/server.js @@ -30,7 +30,7 @@ var manager = null; module.exports = function() { log.info(`The Lounge ${colors.green(Helper.getVersion())} \ -(node ${colors.green(process.versions.node)} on ${colors.green(process.platform)} ${process.arch})`); +(Node.js ${colors.green(process.versions.node)} on ${colors.green(process.platform)} ${process.arch})`); log.info(`Configuration file: ${colors.green(Helper.CONFIG_PATH)}`); if (!fs.existsSync("public/js/bundle.js")) {