Socket
Socket
Sign inDemoInstall

@vercel/build-utils

Package Overview
Dependencies
Maintainers
9
Versions
311
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/build-utils - npm Package Compare versions

Comparing version 7.7.1 to 7.8.0

10

CHANGELOG.md
# @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 @@

6

dist/fs/run-user-scripts.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc