From b0ac9d64dd8c93d70e9155de0ba57d45e8c7d039 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Mon, 4 Sep 2023 14:58:33 +0200 Subject: [PATCH] Drop EOL Node 14 --- package.json | 2 +- packages/node_modules/node-red/lib/red.js | 2 +- packages/node_modules/node-red/package.json | 2 +- packages/node_modules/node-red/red.js | 2 +- .../registry/lib/resources/nodesDir2/theme-plugin2/package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4be1d843d..659508960 100644 --- a/package.json +++ b/package.json @@ -122,6 +122,6 @@ "supertest": "6.3.3" }, "engines": { - "node": ">=14" + "node": ">=16" } } diff --git a/packages/node_modules/node-red/lib/red.js b/packages/node_modules/node-red/lib/red.js index a61adf1c2..f2c878412 100644 --- a/packages/node_modules/node-red/lib/red.js +++ b/packages/node_modules/node-red/lib/red.js @@ -33,7 +33,7 @@ if (NODE_MAJOR_VERSION > 14) { function checkVersion(userSettings) { var semver = require('semver'); - if (!semver.satisfies(process.version,">=14.0.0")) { + if (!semver.satisfies(process.version,">=16.0.0")) { // TODO: in the future, make this a hard error. // var e = new Error("Unsupported version of Node.js"); // e.code = "unsupported_version"; diff --git a/packages/node_modules/node-red/package.json b/packages/node_modules/node-red/package.json index e4f8eb103..7d4150645 100644 --- a/packages/node_modules/node-red/package.json +++ b/packages/node_modules/node-red/package.json @@ -47,6 +47,6 @@ "bcrypt": "5.1.0" }, "engines": { - "node": ">=14" + "node": ">=16" } } diff --git a/packages/node_modules/node-red/red.js b/packages/node_modules/node-red/red.js index 254a9b55b..ad992e4d1 100755 --- a/packages/node_modules/node-red/red.js +++ b/packages/node_modules/node-red/red.js @@ -346,7 +346,7 @@ httpsPromise.then(function(startupHttps) { } catch(err) { if (err.code == "unsupported_version") { console.log("Unsupported version of Node.js:",process.version); - console.log("Node-RED requires Node.js v8.9.0 or later"); + console.log("Node-RED requires Node.js v16 or later"); } else { console.log("Failed to start server:"); if (err.stack) { diff --git a/test/unit/@node-red/registry/lib/resources/nodesDir2/theme-plugin2/package.json b/test/unit/@node-red/registry/lib/resources/nodesDir2/theme-plugin2/package.json index b8608c175..2361d4bde 100644 --- a/test/unit/@node-red/registry/lib/resources/nodesDir2/theme-plugin2/package.json +++ b/test/unit/@node-red/registry/lib/resources/nodesDir2/theme-plugin2/package.json @@ -19,6 +19,6 @@ } }, "engines": { - "node": ">=12.x" + "node": ">=16" } }