@vercel/build-utils
Advanced tools
Comparing version 2.8.1-canary.0 to 2.8.1-canary.1
import { NodeVersion } from '../types'; | ||
export declare function getLatestNodeVersion(): NodeVersion; | ||
export declare function getLatestNodeVersion(): { | ||
readonly major: 14; | ||
readonly range: "14.x"; | ||
readonly runtime: "nodejs14.x"; | ||
}; | ||
export declare function getDiscontinuedNodeVersions(): NodeVersion[]; | ||
export declare function getSupportedNodeVersion(engineRange?: string, isAuto?: boolean): Promise<NodeVersion>; |
@@ -12,5 +12,11 @@ "use strict"; | ||
const allOptions = [ | ||
{ major: 14, range: '14.x', runtime: 'nodejs14.x' }, | ||
{ major: 12, range: '12.x', runtime: 'nodejs12.x' }, | ||
{ major: 10, range: '10.x', runtime: 'nodejs10.x' }, | ||
{ | ||
major: 10, | ||
range: '10.x', | ||
runtime: 'nodejs10.x', | ||
discontinueDate: new Date('2021-03-30'), | ||
}, | ||
{ | ||
major: 8, | ||
@@ -22,5 +28,5 @@ range: '8.10.x', | ||
]; | ||
const pleaseSet = 'Please set "engines": { "node": "' + | ||
const pleaseSet = 'Please change your Project Settings or set "engines": { "node": "' + | ||
getLatestNodeVersion().range + | ||
'" } in your `package.json` file to upgrade to Node.js ' + | ||
'" } in your `package.json` file to use Node.js ' + | ||
getLatestNodeVersion().major + | ||
@@ -27,0 +33,0 @@ '.'; |
{ | ||
"name": "@vercel/build-utils", | ||
"version": "2.8.1-canary.0", | ||
"version": "2.8.1-canary.1", | ||
"license": "MIT", | ||
@@ -53,3 +53,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "e09ceca95ddfb64c7704d8753147bc05f7c7657c" | ||
"gitHead": "196433ec9d462407eee54f2908415918f8f6fb8f" | ||
} |
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
1272946
30210