@vercel/build-utils 7.7.0 → 7.8.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,21 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 7.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Remove `VERCEL_ENABLE_NPM_DEFAULT` env var check ([#11242](https://github.com/vercel/vercel/pull/11242))
8
+
9
+ ### Patch Changes
10
+
11
+ - Rename variants to flags and remove legacy flags ([#11121](https://github.com/vercel/vercel/pull/11121))
12
+
13
+ ## 7.7.1
14
+
15
+ ### Patch Changes
16
+
17
+ - [build-utils] increase max memory limit ([#11209](https://github.com/vercel/vercel/pull/11209))
18
+
3
19
  ## 7.7.0
4
20
 
5
21
  ### Minor Changes
@@ -247,11 +247,7 @@ async function scanParentDirs(destPath, readPackageJson = false) {
247
247
  lockfilePath = bunLockPath;
248
248
  lockfileVersion = 0;
249
249
  } else {
250
- if (process.env.VERCEL_ENABLE_NPM_DEFAULT === "1") {
251
- cliType = "npm";
252
- } else {
253
- cliType = "yarn";
254
- }
250
+ cliType = "npm";
255
251
  }
256
252
  const packageJsonPath = pkgJsonPath || void 0;
257
253
  return {
package/dist/index.js CHANGED
@@ -21966,11 +21966,7 @@ async function scanParentDirs(destPath, readPackageJson = false) {
21966
21966
  lockfilePath = bunLockPath;
21967
21967
  lockfileVersion = 0;
21968
21968
  } else {
21969
- if (process.env.VERCEL_ENABLE_NPM_DEFAULT === "1") {
21970
- cliType = "npm";
21971
- } else {
21972
- cliType = "yarn";
21973
- }
21969
+ cliType = "npm";
21974
21970
  }
21975
21971
  const packageJsonPath = pkgJsonPath || void 0;
21976
21972
  return {
@@ -22511,7 +22507,7 @@ var functionsSchema = {
22511
22507
  },
22512
22508
  memory: {
22513
22509
  minimum: 128,
22514
- maximum: 3008
22510
+ maximum: 3009
22515
22511
  },
22516
22512
  maxDuration: {
22517
22513
  type: "number",
package/dist/schemas.js CHANGED
@@ -38,7 +38,7 @@ const functionsSchema = {
38
38
  },
39
39
  memory: {
40
40
  minimum: 128,
41
- maximum: 3008
41
+ maximum: 3009
42
42
  },
43
43
  maxDuration: {
44
44
  type: "number",
package/dist/types.d.ts CHANGED
@@ -385,14 +385,6 @@ export interface Cron {
385
385
  path: string;
386
386
  schedule: string;
387
387
  }
388
- /**
389
- * @deprecated Replaced by Variants. Remove once fully replaced.
390
- */
391
- export interface Flag {
392
- key: string;
393
- defaultValue?: unknown;
394
- metadata: Record<string, unknown>;
395
- }
396
388
  /** The framework which created the function */
397
389
  export interface FunctionFramework {
398
390
  slug: string;
@@ -415,9 +407,9 @@ export interface BuildResultV2Typical {
415
407
  framework?: {
416
408
  version: string;
417
409
  };
418
- /** @deprecated Replaced by Variants. Remove once fully replaced. */
419
- flags?: Flag[];
420
- variants?: Record<string, VariantDefinition>;
410
+ flags?: {
411
+ definitions: FlagDefinitions;
412
+ };
421
413
  }
422
414
  export type BuildResultV2 = BuildResultV2Typical | BuildResultBuildOutput;
423
415
  export interface BuildResultV3 {
@@ -433,17 +425,18 @@ export type StartDevServer = (options: StartDevServerOptions) => Promise<StartDe
433
425
  * TODO: The following types will eventually be exported by a more
434
426
  * relevant package.
435
427
  */
436
- type VariantJSONArray = ReadonlyArray<VariantJSONValue>;
437
- type VariantJSONValue = string | boolean | number | null | VariantJSONArray | {
438
- [key: string]: VariantJSONValue;
428
+ type FlagJSONArray = ReadonlyArray<FlagJSONValue>;
429
+ type FlagJSONValue = string | boolean | number | null | FlagJSONArray | {
430
+ [key: string]: FlagJSONValue;
439
431
  };
440
- type VariantOption = {
441
- value: VariantJSONValue;
432
+ type FlagOption = {
433
+ value: FlagJSONValue;
442
434
  label?: string;
443
435
  };
444
- export interface VariantDefinition {
445
- options?: VariantOption[];
436
+ export interface FlagDefinition {
437
+ options?: FlagOption[];
446
438
  origin?: string;
447
439
  description?: string;
448
440
  }
441
+ export type FlagDefinitions = Record<string, FlagDefinition>;
449
442
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "7.7.0",
3
+ "version": "7.8.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",