Skip to content

Commit

Permalink
allow running any version of LTS
Browse files Browse the repository at this point in the history
Given node 18 and 20, allow running on any LTS version of node.
We can block out bad versions if needed.
  • Loading branch information
bewest committed Oct 12, 2023
1 parent ea56b79 commit 3893eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server/bootevent.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function boot (env, language) {

const isLTS = process.release.lts ? true : false;

if (isLTS && (semver.satisfies(nodeVersion, '^16.0.0') || semver.satisfies(nodeVersion, '^14.0.0'))) {
if (isLTS || (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
console.debug('Node LTS version ' + nodeVersion + ' is supported');
Expand Down

0 comments on commit 3893eb4

Please sign in to comment.