@vercel/build-utils 6.8.2 → 7.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ([#10369](https://github.com/vercel/vercel/pull/10369))
8
+
9
+ ## 6.8.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Fix `getPrefixedEnvVars()` to handle `VERCEL_BRANCH_URL` ([#10315](https://github.com/vercel/vercel/pull/10315))
14
+
3
15
  ## 6.8.2
4
16
 
5
17
  ### Patch Changes
@@ -9,7 +9,12 @@ exports.getPrefixedEnvVars = void 0;
9
9
  */
10
10
  function getPrefixedEnvVars({ envPrefix, envs, }) {
11
11
  const vercelSystemEnvPrefix = 'VERCEL_';
12
- const allowed = ['VERCEL_URL', 'VERCEL_ENV', 'VERCEL_REGION'];
12
+ const allowed = [
13
+ 'VERCEL_URL',
14
+ 'VERCEL_ENV',
15
+ 'VERCEL_REGION',
16
+ 'VERCEL_BRANCH_URL',
17
+ ];
13
18
  const newEnvs = {};
14
19
  if (envPrefix && envs.VERCEL_URL) {
15
20
  Object.keys(envs)
package/dist/index.js CHANGED
@@ -29574,7 +29574,12 @@ exports.getPrefixedEnvVars = void 0;
29574
29574
  */
29575
29575
  function getPrefixedEnvVars({ envPrefix, envs, }) {
29576
29576
  const vercelSystemEnvPrefix = 'VERCEL_';
29577
- const allowed = ['VERCEL_URL', 'VERCEL_ENV', 'VERCEL_REGION'];
29577
+ const allowed = [
29578
+ 'VERCEL_URL',
29579
+ 'VERCEL_ENV',
29580
+ 'VERCEL_REGION',
29581
+ 'VERCEL_BRANCH_URL',
29582
+ ];
29578
29583
  const newEnvs = {};
29579
29584
  if (envPrefix && envs.VERCEL_URL) {
29580
29585
  Object.keys(envs)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "6.8.2",
3
+ "version": "7.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",
@@ -26,7 +26,7 @@
26
26
  "@types/node-fetch": "^2.1.6",
27
27
  "@types/semver": "6.0.0",
28
28
  "@types/yazl": "2.4.2",
29
- "@vercel/error-utils": "1.0.10",
29
+ "@vercel/error-utils": "2.0.0",
30
30
  "@vercel/ncc": "0.24.0",
31
31
  "aggregate-error": "3.0.1",
32
32
  "async-retry": "1.2.3",
@@ -38,6 +38,7 @@
38
38
  "glob": "8.0.3",
39
39
  "ignore": "4.0.6",
40
40
  "into-stream": "5.0.0",
41
+ "jest-junit": "16.0.0",
41
42
  "js-yaml": "3.13.1",
42
43
  "minimatch": "3.1.2",
43
44
  "multistream": "2.1.1",
@@ -48,7 +49,7 @@
48
49
  },
49
50
  "scripts": {
50
51
  "build": "node build",
51
- "test": "jest --env node --verbose --runInBand --bail",
52
+ "test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
52
53
  "test-unit": "pnpm test test/unit.*test.*",
53
54
  "test-e2e": "pnpm test test/integration.test.ts"
54
55
  }