@@ -4,18 +4,14 @@ import nodevu from '@nodevu/core';
44
55// Gets the appropriate release status for each major release
66const getNodeReleaseStatus = ( now , support ) => {
7- const { endOfLife, maintenanceStart , ltsStart, currentStart } = support ;
7+ const { endOfLife, ltsStart, currentStart } = support ;
88
9- if ( endOfLife && now > new Date ( endOfLife ) ) {
9+ if ( endOfLife && now >= new Date ( endOfLife ) ) {
1010 return 'End-of-life' ;
1111 }
1212
13- if ( maintenanceStart && now > new Date ( maintenanceStart ) ) {
14- return ltsStart ? 'Maintenance LTS' : 'Maintenance' ;
15- }
16-
17- if ( ltsStart && now > new Date ( ltsStart ) ) {
18- return 'Active LTS' ;
13+ if ( ltsStart && now >= new Date ( ltsStart ) ) {
14+ return 'LTS' ;
1915 }
2016
2117 if ( currentStart && now >= new Date ( currentStart ) ) {
@@ -58,7 +54,7 @@ const generateReleaseData = () => {
5854 version : latestVersion . semver . raw ,
5955 versionWithPrefix : `v${ latestVersion . semver . raw } ` ,
6056 codename : major . support . codename || '' ,
61- isLts : status === 'Active LTS' || status === 'Maintenance LTS',
57+ isLts : status === 'LTS' ,
6258 npm : latestVersion . dependencies . npm || '' ,
6359 v8 : latestVersion . dependencies . v8 || '' ,
6460 releaseDate : latestVersion . releaseDate || '' ,
0 commit comments