@jsii/check-node 1.79.0 → 1.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +4 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -19,10 +19,13 @@ function checkNode(envPrefix = 'JSII') {
|
|
|
19
19
|
const { nodeRelease, knownBroken } = constants_1.NodeRelease.forThisRuntime();
|
|
20
20
|
const defaultCallToAction = 'Should you encounter odd runtime issues, please try using one of the supported release before filing a bug report.';
|
|
21
21
|
if (nodeRelease === null || nodeRelease === void 0 ? void 0 : nodeRelease.endOfLife) {
|
|
22
|
+
const silenceVariable = `${envPrefix}_SILENCE_WARNING_END_OF_LIFE_NODE_VERSION`;
|
|
23
|
+
const acknowledgeNodeEol = 'Node14 is now end of life (EOL) as of April 30, 2023. Support of EOL runtimes are only guaranteed for 30 days after EOL. By silencing this warning you acknowledge that you are using an EOL version of Node and will upgrade to a supported version as soon as possible.';
|
|
22
24
|
const qualifier = nodeRelease.endOfLifeDate
|
|
23
25
|
? ` on ${nodeRelease.endOfLifeDate.toISOString().slice(0, 10)}`
|
|
24
26
|
: '';
|
|
25
|
-
|
|
27
|
+
if (!(process.env[silenceVariable] === acknowledgeNodeEol))
|
|
28
|
+
veryVisibleMessage(chalk_1.bgRed.white.bold, `Node ${nodeRelease.majorVersion} has reached end-of-life${qualifier} and is not supported.`, `Please upgrade to a supported node version as soon as possible.`);
|
|
26
29
|
}
|
|
27
30
|
else if (knownBroken) {
|
|
28
31
|
const silenceVariable = `${envPrefix}_SILENCE_WARNING_KNOWN_BROKEN_NODE_VERSION`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsii/check-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.81.0",
|
|
4
4
|
"description": "Checks for supported node versions",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -37,6 +37,6 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"chalk": "^4.1.2",
|
|
40
|
-
"semver": "^7.
|
|
40
|
+
"semver": "^7.5.0"
|
|
41
41
|
}
|
|
42
42
|
}
|