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.2.5 to 7.3.0

6

CHANGELOG.md
# @vercel/build-utils
## 7.3.0
### Minor Changes
- [cli] add `--deprecated` option to `vc project ls` command ([#10919](https://github.com/vercel/vercel/pull/10919))
## 7.2.5

@@ -4,0 +10,0 @@

71

dist/fs/node-version.d.ts
import { NodeVersion } from '../types';
export type NodeVersionMajor = ReturnType<typeof getOptions>[number]['major'];
declare function getOptions(): readonly [{
readonly major: 20;
readonly range: "20.x";
readonly runtime: "nodejs20.x";
}, {
readonly major: 18;
readonly range: "18.x";
readonly runtime: "nodejs18.x";
}, {
readonly major: 16;
readonly range: "16.x";
readonly runtime: "nodejs16.x";
readonly discontinueDate: Date;
}, {
readonly major: 14;
readonly range: "14.x";
readonly runtime: "nodejs14.x";
readonly discontinueDate: Date;
}, {
readonly major: 12;
readonly range: "12.x";
readonly runtime: "nodejs12.x";
readonly discontinueDate: Date;
}, {
readonly major: 10;
readonly range: "10.x";
readonly runtime: "nodejs10.x";
readonly discontinueDate: Date;
}, {
readonly major: 8;
readonly range: "8.10.x";
readonly runtime: "nodejs8.10";
readonly discontinueDate: Date;
}];
export declare const NODE_VERSIONS: NodeVersion[];
declare function getOptions(): NodeVersion[];
export declare function getAvailableNodeVersions(): NodeVersionMajor[];
export declare function getLatestNodeVersion(availableVersions?: NodeVersionMajor[]): {
readonly major: 20;
readonly range: "20.x";
readonly runtime: "nodejs20.x";
} | {
readonly major: 18;
readonly range: "18.x";
readonly runtime: "nodejs18.x";
} | {
readonly major: 16;
readonly range: "16.x";
readonly runtime: "nodejs16.x";
readonly discontinueDate: Date;
} | {
readonly major: 14;
readonly range: "14.x";
readonly runtime: "nodejs14.x";
readonly discontinueDate: Date;
} | {
readonly major: 12;
readonly range: "12.x";
readonly runtime: "nodejs12.x";
readonly discontinueDate: Date;
} | {
readonly major: 10;
readonly range: "10.x";
readonly runtime: "nodejs10.x";
readonly discontinueDate: Date;
} | {
readonly major: 8;
readonly range: "8.10.x";
readonly runtime: "nodejs8.10";
readonly discontinueDate: Date;
};
export declare function getLatestNodeVersion(availableVersions?: NodeVersionMajor[]): NodeVersion;
export declare function getDiscontinuedNodeVersions(): NodeVersion[];
export declare function getSupportedNodeVersion(engineRange: string | undefined, isAuto?: boolean, availableVersions?: NodeVersionMajor[]): Promise<NodeVersion>;
export {};

@@ -31,2 +31,3 @@ "use strict";

__export(node_version_exports, {
NODE_VERSIONS: () => NODE_VERSIONS,
getAvailableNodeVersions: () => getAvailableNodeVersions,

@@ -42,38 +43,38 @@ getDiscontinuedNodeVersions: () => getDiscontinuedNodeVersions,

var import_debug = __toESM(require("../debug"));
const NODE_VERSIONS = [
{ major: 20, range: "20.x", runtime: "nodejs20.x" },
{ major: 18, range: "18.x", runtime: "nodejs18.x" },
{
major: 16,
range: "16.x",
runtime: "nodejs16.x",
discontinueDate: /* @__PURE__ */ new Date("2024-02-06")
},
{
major: 14,
range: "14.x",
runtime: "nodejs14.x",
discontinueDate: /* @__PURE__ */ new Date("2023-08-15")
},
{
major: 12,
range: "12.x",
runtime: "nodejs12.x",
discontinueDate: /* @__PURE__ */ new Date("2022-10-03")
},
{
major: 10,
range: "10.x",
runtime: "nodejs10.x",
discontinueDate: /* @__PURE__ */ new Date("2021-04-20")
},
{
major: 8,
range: "8.10.x",
runtime: "nodejs8.10",
discontinueDate: /* @__PURE__ */ new Date("2020-01-06")
}
];
function getOptions() {
const options = [
{ major: 20, range: "20.x", runtime: "nodejs20.x" },
{ major: 18, range: "18.x", runtime: "nodejs18.x" },
{
major: 16,
range: "16.x",
runtime: "nodejs16.x",
discontinueDate: /* @__PURE__ */ new Date("2024-02-06")
},
{
major: 14,
range: "14.x",
runtime: "nodejs14.x",
discontinueDate: /* @__PURE__ */ new Date("2023-08-15")
},
{
major: 12,
range: "12.x",
runtime: "nodejs12.x",
discontinueDate: /* @__PURE__ */ new Date("2022-10-03")
},
{
major: 10,
range: "10.x",
runtime: "nodejs10.x",
discontinueDate: /* @__PURE__ */ new Date("2021-04-20")
},
{
major: 8,
range: "8.10.x",
runtime: "nodejs8.10",
discontinueDate: /* @__PURE__ */ new Date("2020-01-06")
}
];
return options;
return NODE_VERSIONS;
}

@@ -156,2 +157,3 @@ function isNodeVersionAvailable(version) {

0 && (module.exports = {
NODE_VERSIONS,
getAvailableNodeVersions,

@@ -158,0 +160,0 @@ getDiscontinuedNodeVersions,

@@ -77,3 +77,3 @@ /// <reference types="node" />

export declare function getSpawnOptions(meta: Meta, nodeVersion: NodeVersion): SpawnOptions;
export declare function getNodeVersion(destPath: string, nodeVersionFallback?: string | undefined, config?: Config, meta?: Meta, availableVersions?: (20 | 10 | 16 | 18 | 14 | 12 | 8)[]): Promise<NodeVersion>;
export declare function getNodeVersion(destPath: string, nodeVersionFallback?: string | undefined, config?: Config, meta?: Meta, availableVersions?: number[]): Promise<NodeVersion>;
export declare function scanParentDirs(destPath: string, readPackageJson?: boolean): Promise<ScanParentDirsResult>;

@@ -80,0 +80,0 @@ export declare function walkParentDirs({ base, start, filename, }: WalkParentDirsProps): Promise<string | null>;

@@ -29,1 +29,2 @@ import FileBlob from './file-blob';

export * from './errors';
export { NODE_VERSIONS } from './fs/node-version';
{
"name": "@vercel/build-utils",
"version": "7.2.5",
"version": "7.3.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