@vercel/build-utils
Advanced tools
Comparing version 7.0.0 to 7.1.0
# @vercel/build-utils | ||
## 7.1.0 | ||
### Minor Changes | ||
- Support serverless function architecture ([#10392](https://github.com/vercel/vercel/pull/10392)) | ||
## 7.0.0 | ||
@@ -4,0 +10,0 @@ |
@@ -7,5 +7,7 @@ /// <reference types="node" /> | ||
export type LambdaOptions = LambdaOptionsWithFiles | LambdaOptionsWithZipBuffer; | ||
export type LambdaArchitecture = 'x86_64' | 'arm64'; | ||
export interface LambdaOptionsBase { | ||
handler: string; | ||
runtime: string; | ||
architecture?: LambdaArchitecture; | ||
memory?: number; | ||
@@ -53,2 +55,3 @@ maxDuration?: number; | ||
runtime: string; | ||
architecture?: LambdaArchitecture; | ||
memory?: number; | ||
@@ -55,0 +58,0 @@ maxDuration?: number; |
@@ -16,3 +16,3 @@ "use strict"; | ||
constructor(opts) { | ||
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, supportsResponseStreaming, experimentalResponseStreaming, operationType, framework, } = opts; | ||
const { handler, runtime, maxDuration, architecture, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, supportsResponseStreaming, experimentalResponseStreaming, operationType, framework, } = opts; | ||
if ('files' in opts) { | ||
@@ -27,2 +27,5 @@ (0, assert_1.default)(typeof opts.files === 'object', '"files" must be an object'); | ||
(0, assert_1.default)(typeof environment === 'object', '"environment" is not an object'); | ||
if (architecture !== undefined) { | ||
(0, assert_1.default)(architecture === 'x86_64' || architecture === 'arm64', '"architecture" must be either "x86_64" or "arm64"'); | ||
} | ||
if (memory !== undefined) { | ||
@@ -60,2 +63,3 @@ (0, assert_1.default)(typeof memory === 'number', '"memory" is not a number'); | ||
this.runtime = runtime; | ||
this.architecture = architecture; | ||
this.memory = memory; | ||
@@ -62,0 +66,0 @@ this.maxDuration = maxDuration; |
{ | ||
"name": "@vercel/build-utils", | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"license": "Apache-2.0", | ||
@@ -29,3 +29,3 @@ "main": "./dist/index.js", | ||
"@types/yazl": "2.4.2", | ||
"@vercel/error-utils": "2.0.0", | ||
"@vercel/error-utils": "2.0.1", | ||
"@vercel/ncc": "0.24.0", | ||
@@ -32,0 +32,0 @@ "aggregate-error": "3.0.1", |
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
1244515
29324