@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 +16 -0
- package/dist/fs/run-user-scripts.js +1 -5
- package/dist/index.js +2 -6
- package/dist/schemas.js +1 -1
- package/dist/types.d.ts +11 -18
- package/package.json +1 -1
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
|
-
|
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
|
-
|
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:
|
22510
|
+
maximum: 3009
|
22515
22511
|
},
|
22516
22512
|
maxDuration: {
|
22517
22513
|
type: "number",
|
package/dist/schemas.js
CHANGED
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
|
-
|
419
|
-
|
420
|
-
|
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
|
437
|
-
type
|
438
|
-
[key: string]:
|
428
|
+
type FlagJSONArray = ReadonlyArray<FlagJSONValue>;
|
429
|
+
type FlagJSONValue = string | boolean | number | null | FlagJSONArray | {
|
430
|
+
[key: string]: FlagJSONValue;
|
439
431
|
};
|
440
|
-
type
|
441
|
-
value:
|
432
|
+
type FlagOption = {
|
433
|
+
value: FlagJSONValue;
|
442
434
|
label?: string;
|
443
435
|
};
|
444
|
-
export interface
|
445
|
-
options?:
|
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 {};
|