mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Relax Node version constraints to >=16.x
- Change engines.node from '^22.x || ^20.x' to '>=16.x' - Change engines.npm from '>=10.x' to '>=8.x' - Update runtime checkNodeVersion to allow Node 16+ - Creates overlap with previous release (^16.x || ^14.x) This allows users on Node 16/18 to upgrade smoothly while recommending Node 20 or 22 LTS for best support. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -38,14 +38,19 @@ function boot (env, language) {
|
||||
|
||||
const isLTS = process.release.lts ? true : false;
|
||||
|
||||
if (isLTS && (semver.satisfies(nodeVersion, '>=20.x'))) {
|
||||
//NodeJS 20 is supported until April 2026
|
||||
// Node 16+ is supported (overlap with previous release)
|
||||
// Recommended: Node 20 LTS (until April 2026) or Node 22 LTS (until April 2027)
|
||||
if (semver.satisfies(nodeVersion, '>=16.x')) {
|
||||
if (isLTS) {
|
||||
console.debug('Node LTS version ' + nodeVersion + ' is supported');
|
||||
} else {
|
||||
console.debug('Node version ' + nodeVersion + ' is supported (current release)');
|
||||
}
|
||||
next();
|
||||
return;
|
||||
}
|
||||
|
||||
console.log( 'ERROR: Node version ' + nodeVersion + ' is not supported. Please use a secure LTS version or upgrade your Node');
|
||||
console.log( 'ERROR: Node version ' + nodeVersion + ' is not supported. Please use Node 16 or later.');
|
||||
process.exit(1);
|
||||
|
||||
}
|
||||
|
||||
Generated
+1925
-40
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -65,8 +65,8 @@
|
||||
}
|
||||
},
|
||||
"engines": {
|
||||
"node": "^22.x || ^20.x",
|
||||
"npm": ">=10.x"
|
||||
"node": ">=16.x",
|
||||
"npm": ">=8.x"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.18.10",
|
||||
|
||||
Reference in New Issue
Block a user