@vercel/build-utils
Advanced tools
Comparing version 7.7.1 to 7.8.0
# @vercel/build-utils | ||
## 7.8.0 | ||
### Minor Changes | ||
- Remove `VERCEL_ENABLE_NPM_DEFAULT` env var check ([#11242](https://github.com/vercel/vercel/pull/11242)) | ||
### Patch Changes | ||
- Rename variants to flags and remove legacy flags ([#11121](https://github.com/vercel/vercel/pull/11121)) | ||
## 7.7.1 | ||
@@ -4,0 +14,0 @@ |
@@ -250,7 +250,3 @@ "use strict"; | ||
} else { | ||
if (process.env.VERCEL_ENABLE_NPM_DEFAULT === "1") { | ||
cliType = "npm"; | ||
} else { | ||
cliType = "yarn"; | ||
} | ||
cliType = "npm"; | ||
} | ||
@@ -257,0 +253,0 @@ const packageJsonPath = pkgJsonPath || void 0; |
@@ -388,10 +388,2 @@ /// <reference types="node" /> | ||
} | ||
/** | ||
* @deprecated Replaced by Variants. Remove once fully replaced. | ||
*/ | ||
export interface Flag { | ||
key: string; | ||
defaultValue?: unknown; | ||
metadata: Record<string, unknown>; | ||
} | ||
/** The framework which created the function */ | ||
@@ -419,5 +411,5 @@ export interface FunctionFramework { | ||
}; | ||
/** @deprecated Replaced by Variants. Remove once fully replaced. */ | ||
flags?: Flag[]; | ||
variants?: Record<string, VariantDefinition>; | ||
flags?: { | ||
definitions: FlagDefinitions; | ||
}; | ||
} | ||
@@ -438,15 +430,16 @@ export type BuildResultV2 = BuildResultV2Typical | BuildResultBuildOutput; | ||
*/ | ||
type VariantJSONArray = ReadonlyArray<VariantJSONValue>; | ||
type VariantJSONValue = string | boolean | number | null | VariantJSONArray | { | ||
[key: string]: VariantJSONValue; | ||
type FlagJSONArray = ReadonlyArray<FlagJSONValue>; | ||
type FlagJSONValue = string | boolean | number | null | FlagJSONArray | { | ||
[key: string]: FlagJSONValue; | ||
}; | ||
type VariantOption = { | ||
value: VariantJSONValue; | ||
type FlagOption = { | ||
value: FlagJSONValue; | ||
label?: string; | ||
}; | ||
export interface VariantDefinition { | ||
options?: VariantOption[]; | ||
export interface FlagDefinition { | ||
options?: FlagOption[]; | ||
origin?: string; | ||
description?: string; | ||
} | ||
export type FlagDefinitions = Record<string, FlagDefinition>; | ||
export {}; |
{ | ||
"name": "@vercel/build-utils", | ||
"version": "7.7.1", | ||
"version": "7.8.0", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
22
1202915
27104