Skip to content

Commit 7e18e57

Browse files
authored
feat(check-node): export NodeRelease class (#3959)
This can be useful, for example in projen templates, to automatically test fo all "supported" Node releases without having ot modify every single repository. This can serve as a central point of truth for what releases of node are supported by the Constructs ecosystem via jsii. --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
1 parent 800ed0a commit 7e18e57

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/@jsii/check-node/src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class NodeRelease {
3232
supportedRange: '^12.7.0',
3333
}),
3434

35-
// Currently active releases
35+
// Currently active releases (as of last edit to this file...)
3636
new NodeRelease(14, {
3737
endOfLife: new Date('2023-04-30'),
3838
supportedRange: '^14.6.0',
@@ -46,9 +46,9 @@ export class NodeRelease {
4646
supportedRange: '^17.3.0',
4747
}),
4848
new NodeRelease(18, { endOfLife: new Date('2025-04-30') }),
49+
new NodeRelease(19, { endOfLife: new Date('2023-06-01') }),
4950

5051
// Future (planned releases)
51-
new NodeRelease(19, { endOfLife: new Date('2023-06-01') }),
5252
new NodeRelease(20, { endOfLife: new Date('2026-04-30'), untested: true }),
5353
];
5454

packages/@jsii/check-node/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { version } from 'process';
44

55
import { NodeRelease } from './constants';
66

7+
export { NodeRelease } from './constants';
8+
79
/**
810
* Checks the current process' node runtime version against the release support
911
* matrix, and issues a warning to STDERR if the current version is not fully

0 commit comments

Comments
 (0)