@vercel/build-utils 5.0.2 → 5.0.3
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/dist/fs/node-version.js +2 -3
- package/dist/index.js +2 -3
- package/package.json +2 -2
package/dist/fs/node-version.js
CHANGED
@@ -35,7 +35,6 @@ function getHint(isAuto = false) {
|
|
35
35
|
? `Please set Node.js Version to ${range} in your Project Settings to use Node.js ${major}.`
|
36
36
|
: `Please set "engines": { "node": "${range}" } in your \`package.json\` file to use Node.js ${major}.`;
|
37
37
|
}
|
38
|
-
const upstreamProvider = 'This change is the result of a decision made by an upstream infrastructure provider (AWS).';
|
39
38
|
function getLatestNodeVersion() {
|
40
39
|
return allOptions[0];
|
41
40
|
}
|
@@ -67,13 +66,13 @@ async function getSupportedNodeVersion(engineRange, isAuto = false) {
|
|
67
66
|
throw new errors_1.NowBuildError({
|
68
67
|
code: 'BUILD_UTILS_NODE_VERSION_DISCONTINUED',
|
69
68
|
link: 'http://vercel.link/node-version',
|
70
|
-
message: `${intro} ${getHint(isAuto)}
|
69
|
+
message: `${intro} ${getHint(isAuto)}`,
|
71
70
|
});
|
72
71
|
}
|
73
72
|
debug_1.default(`Selected Node.js ${selection.range}`);
|
74
73
|
if (selection.discontinueDate) {
|
75
74
|
const d = selection.discontinueDate.toISOString().split('T')[0];
|
76
|
-
console.warn(`Error: Node.js version ${selection.range}
|
75
|
+
console.warn(`Error: Node.js version ${selection.range} has reached End-of-Life. Deployments created on or after ${d} will fail to build. ${getHint(isAuto)}`);
|
77
76
|
}
|
78
77
|
return selection;
|
79
78
|
}
|
package/dist/index.js
CHANGED
@@ -28459,7 +28459,6 @@ function getHint(isAuto = false) {
|
|
28459
28459
|
? `Please set Node.js Version to ${range} in your Project Settings to use Node.js ${major}.`
|
28460
28460
|
: `Please set "engines": { "node": "${range}" } in your \`package.json\` file to use Node.js ${major}.`;
|
28461
28461
|
}
|
28462
|
-
const upstreamProvider = 'This change is the result of a decision made by an upstream infrastructure provider (AWS).';
|
28463
28462
|
function getLatestNodeVersion() {
|
28464
28463
|
return allOptions[0];
|
28465
28464
|
}
|
@@ -28491,13 +28490,13 @@ async function getSupportedNodeVersion(engineRange, isAuto = false) {
|
|
28491
28490
|
throw new errors_1.NowBuildError({
|
28492
28491
|
code: 'BUILD_UTILS_NODE_VERSION_DISCONTINUED',
|
28493
28492
|
link: 'http://vercel.link/node-version',
|
28494
|
-
message: `${intro} ${getHint(isAuto)}
|
28493
|
+
message: `${intro} ${getHint(isAuto)}`,
|
28495
28494
|
});
|
28496
28495
|
}
|
28497
28496
|
debug_1.default(`Selected Node.js ${selection.range}`);
|
28498
28497
|
if (selection.discontinueDate) {
|
28499
28498
|
const d = selection.discontinueDate.toISOString().split('T')[0];
|
28500
|
-
console.warn(`Error: Node.js version ${selection.range}
|
28499
|
+
console.warn(`Error: Node.js version ${selection.range} has reached End-of-Life. Deployments created on or after ${d} will fail to build. ${getHint(isAuto)}`);
|
28501
28500
|
}
|
28502
28501
|
return selection;
|
28503
28502
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/build-utils",
|
3
|
-
"version": "5.0.
|
3
|
+
"version": "5.0.3",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"types": "./dist/index.d.js",
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"typescript": "4.3.4",
|
50
50
|
"yazl": "2.5.1"
|
51
51
|
},
|
52
|
-
"gitHead": "
|
52
|
+
"gitHead": "bef1aec76609ae661f084dcc391edd66f891f0b4"
|
53
53
|
}
|