@@ -4,18 +4,14 @@ import nodevu from '@nodevu/core';
4
4
5
5
// Gets the appropriate release status for each major release
6
6
const getNodeReleaseStatus = ( now , support ) => {
7
- const { endOfLife, maintenanceStart , ltsStart, currentStart } = support ;
7
+ const { endOfLife, ltsStart, currentStart } = support ;
8
8
9
- if ( endOfLife && now > new Date ( endOfLife ) ) {
9
+ if ( endOfLife && now >= new Date ( endOfLife ) ) {
10
10
return 'End-of-life' ;
11
11
}
12
12
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' ;
19
15
}
20
16
21
17
if ( currentStart && now >= new Date ( currentStart ) ) {
@@ -58,7 +54,7 @@ const generateReleaseData = () => {
58
54
version : latestVersion . semver . raw ,
59
55
versionWithPrefix : `v${ latestVersion . semver . raw } ` ,
60
56
codename : major . support . codename || '' ,
61
- isLts : status === 'Active LTS' || status === 'Maintenance LTS',
57
+ isLts : status === 'LTS' ,
62
58
npm : latestVersion . dependencies . npm || '' ,
63
59
v8 : latestVersion . dependencies . v8 || '' ,
64
60
releaseDate : latestVersion . releaseDate || '' ,
0 commit comments