@vercel/build-utils 5.0.1 → 5.0.4
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/edge-function.d.ts +7 -0
- package/dist/edge-function.js +1 -0
- package/dist/fs/node-version.js +2 -3
- package/dist/index.js +2236 -10
- package/package.json +3 -3
package/dist/edge-function.d.ts
CHANGED
@@ -26,5 +26,12 @@ export declare class EdgeFunction {
|
|
26
26
|
* assigned to the edge function.
|
27
27
|
*/
|
28
28
|
envVarsInUse?: string[];
|
29
|
+
/**
|
30
|
+
* Extra binary files to be included in the edge function
|
31
|
+
*/
|
32
|
+
assets?: {
|
33
|
+
name: string;
|
34
|
+
path: string;
|
35
|
+
}[];
|
29
36
|
constructor(params: Omit<EdgeFunction, 'type'>);
|
30
37
|
}
|
package/dist/edge-function.js
CHANGED
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
|
}
|