Hello!
|
hidden [bool] ShouldIncludeVersion([SemVer]$Version) { |
|
if ($Version.Major -lt 8) { |
|
return $false |
|
} |
|
|
|
# For Node.JS, we should include all LTS versions (all even-numbered releases) |
|
# https://nodejs.org/en/about/releases/ |
|
return $Version.Major % 2 -eq 0 |
|
} |
This logic has been right, but I think it will need to be updated before Node.js 27 is released
From this article, here's the relevant quote (emphasis mine):
As of October 2026:
- One major release per year (April), with LTS promotion in October.
- Every release becomes LTS. No more odd/even distinction - Node.js 27 will become LTS.
Given that, I think the logic ought to be something like:
if major version is less than 8
false
else if major version is less than 27
true if it's even, false if it's odd
else
true
end
WDYT?
Thanks!
Hello!
versions-package-tools/get-new-tool-versions/parsers/node-parser.psm1
Lines 21 to 29 in 16b7940
This logic has been right, but I think it will need to be updated before Node.js 27 is released
From this article, here's the relevant quote (emphasis mine):
Given that, I think the logic ought to be something like:
WDYT?
Thanks!