@vercel/build-utils 5.0.1-canary.0 → 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.
@@ -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
  }
@@ -12,6 +12,7 @@ class EdgeFunction {
12
12
  this.entrypoint = params.entrypoint;
13
13
  this.files = params.files;
14
14
  this.envVarsInUse = params.envVarsInUse;
15
+ this.assets = params.assets;
15
16
  }
16
17
  }
17
18
  exports.EdgeFunction = EdgeFunction;
@@ -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)} ${upstreamProvider}`,
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} is deprecated. Deployments created on or after ${d} will fail to build. ${getHint(isAuto)} ${upstreamProvider}`);
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
@@ -27935,6 +27935,7 @@ class EdgeFunction {
27935
27935
  this.entrypoint = params.entrypoint;
27936
27936
  this.files = params.files;
27937
27937
  this.envVarsInUse = params.envVarsInUse;
27938
+ this.assets = params.assets;
27938
27939
  }
27939
27940
  }
27940
27941
  exports.EdgeFunction = EdgeFunction;
@@ -28458,7 +28459,6 @@ function getHint(isAuto = false) {
28458
28459
  ? `Please set Node.js Version to ${range} in your Project Settings to use Node.js ${major}.`
28459
28460
  : `Please set "engines": { "node": "${range}" } in your \`package.json\` file to use Node.js ${major}.`;
28460
28461
  }
28461
- const upstreamProvider = 'This change is the result of a decision made by an upstream infrastructure provider (AWS).';
28462
28462
  function getLatestNodeVersion() {
28463
28463
  return allOptions[0];
28464
28464
  }
@@ -28490,13 +28490,13 @@ async function getSupportedNodeVersion(engineRange, isAuto = false) {
28490
28490
  throw new errors_1.NowBuildError({
28491
28491
  code: 'BUILD_UTILS_NODE_VERSION_DISCONTINUED',
28492
28492
  link: 'http://vercel.link/node-version',
28493
- message: `${intro} ${getHint(isAuto)} ${upstreamProvider}`,
28493
+ message: `${intro} ${getHint(isAuto)}`,
28494
28494
  });
28495
28495
  }
28496
28496
  debug_1.default(`Selected Node.js ${selection.range}`);
28497
28497
  if (selection.discontinueDate) {
28498
28498
  const d = selection.discontinueDate.toISOString().split('T')[0];
28499
- console.warn(`Error: Node.js version ${selection.range} is deprecated. Deployments created on or after ${d} will fail to build. ${getHint(isAuto)} ${upstreamProvider}`);
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)}`);
28500
28500
  }
28501
28501
  return selection;
28502
28502
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "5.0.1-canary.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": "3c48b40b43e3357c4c06bfe05e1192b1434b691f"
52
+ "gitHead": "bef1aec76609ae661f084dcc391edd66f891f0b4"
53
53
  }