@vercel/build-utils 13.2.9 → 13.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 13.2.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Add 'go' as a valid runtimeLanguage option for Lambda functions ([#14624](https://github.com/vercel/vercel/pull/14624))
8
+
3
9
  ## 13.2.9
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -24336,7 +24336,10 @@ var Lambda = class {
24336
24336
  );
24337
24337
  }
24338
24338
  if (runtimeLanguage !== void 0) {
24339
- (0, import_assert4.default)(runtimeLanguage === "rust", '"runtimeLanguage" must be "rust"');
24339
+ (0, import_assert4.default)(
24340
+ runtimeLanguage === "rust" || runtimeLanguage === "go",
24341
+ '"runtimeLanguage" is invalid. Valid options: "rust", "go"'
24342
+ );
24340
24343
  }
24341
24344
  if ("experimentalAllowBundling" in opts && opts.experimentalAllowBundling !== void 0) {
24342
24345
  (0, import_assert4.default)(
package/dist/lambda.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import type { Config, Env, Files, FunctionFramework, TriggerEvent } from './types';
3
3
  export type { TriggerEvent };
4
4
  export type LambdaOptions = LambdaOptionsWithFiles | LambdaOptionsWithZipBuffer;
5
- export type LambdaExecutableRuntimeLanguages = 'rust';
5
+ export type LambdaExecutableRuntimeLanguages = 'rust' | 'go';
6
6
  export type LambdaArchitecture = 'x86_64' | 'arm64';
7
7
  export interface LambdaOptionsBase {
8
8
  handler: string;
package/dist/lambda.js CHANGED
@@ -93,7 +93,10 @@ class Lambda {
93
93
  );
94
94
  }
95
95
  if (runtimeLanguage !== void 0) {
96
- (0, import_assert.default)(runtimeLanguage === "rust", '"runtimeLanguage" must be "rust"');
96
+ (0, import_assert.default)(
97
+ runtimeLanguage === "rust" || runtimeLanguage === "go",
98
+ '"runtimeLanguage" is invalid. Valid options: "rust", "go"'
99
+ );
97
100
  }
98
101
  if ("experimentalAllowBundling" in opts && opts.experimentalAllowBundling !== void 0) {
99
102
  (0, import_assert.default)(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "13.2.9",
3
+ "version": "13.2.10",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",