mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Drop support for EoL NodeJS versions, default to 22
Signed-off-by: Ingo Reitz <9l@9lo.re>
This commit is contained in:
@@ -16,7 +16,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x, 16.x, 20, lts/*]
|
||||
node-version: [20, 22, lts/*]
|
||||
mongodb-version: [4.4, 5.0, 6.0]
|
||||
|
||||
steps:
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM node:16.16.0-alpine
|
||||
FROM node:22-alpine
|
||||
|
||||
LABEL maintainer="Nightscout Contributors"
|
||||
|
||||
|
||||
@@ -38,9 +38,8 @@ function boot (env, language) {
|
||||
|
||||
const isLTS = process.release.lts ? true : false;
|
||||
|
||||
if (isLTS || (semver.satisfies(nodeVersion, '^20.0.0') || semver.satisfies(nodeVersion, '^18.0.0') || semver.satisfies(nodeVersion, '^16.0.0') || semver.satisfies(nodeVersion, '^14.0.0'))) {
|
||||
//Latest Node 14 LTS and Node 16 LTS are recommended and supported.
|
||||
//Require at least Node 14 without known security issues
|
||||
if (isLTS && (semver.satisfies(nodeVersion, '>=20.x'))) {
|
||||
//NodeJS 20 is supported until April 2026
|
||||
console.debug('Node LTS version ' + nodeVersion + ' is supported');
|
||||
next();
|
||||
return;
|
||||
|
||||
+2
-2
@@ -65,8 +65,8 @@
|
||||
}
|
||||
},
|
||||
"engines": {
|
||||
"node": "^16.x || ^14.x",
|
||||
"npm": "^6.x"
|
||||
"node": "^22.x || ^20.x",
|
||||
"npm": ">=10.x"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.18.10",
|
||||
|
||||
Reference in New Issue
Block a user