Skip to content

Commit

Permalink
feat(node-versions): added v21 now that it is the current version
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Nov 14, 2023
1 parent facc33b commit b38b61c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/node-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function determineLtsNodeMajorVersions({withinRange} = {}) {
}

export function determineSupportedNodeMajorVersions({withinRange} = {}) {
return [14, 16, 18, 20].filter(majorVersion => {
return [14, 16, 18, 20, 21].filter(majorVersion => {
if (!withinRange) return true;

return semver.satisfies(`${majorVersion}.0.0`, withinRange);
Expand Down
2 changes: 1 addition & 1 deletion src/node-versions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('node-versions', () => {

describe('supported major versions', () => {
it('should list the major versions of node', async () => {
expect(determineSupportedNodeMajorVersions()).toEqual([14, 16, 18, 20]);
expect(determineSupportedNodeMajorVersions()).toEqual([14, 16, 18, 20, 21]);
});

it('should filter the list of supported versions by the provided semver range', async () => {
Expand Down

0 comments on commit b38b61c

Please sign in to comment.