Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@vercel/build-utils

Package Overview
Dependencies
Maintainers
3
Versions
429
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
13.22.0
to
13.22.1
+6
-0
CHANGELOG.md
# @vercel/build-utils
## 13.22.1
### Patch Changes
- f0d7d32: Disable response streaming for lambdas with `awsLambdaHandler` set inside `getLambdaSupportsStreaming`. This closes a gap where non-Node builders (e.g. `@vercel/redwood`) constructed `NodejsLambda` with `awsLambdaHandler` but no explicit `supportsResponseStreaming`, causing `finalizeLambda` to silently flip streaming on for AWS custom handlers. With the gate now enforced centrally in `finalizeLambda`, the equivalent `@vercel/node` build-time check from #16266 is consolidated away — all builders go through the same gate.
## 13.22.0

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

+12
-3
interface LambdaLike {
awsLambdaHandler?: string;
handler: string;

@@ -15,7 +16,15 @@ launcherType?: string;

/**
* Determines if a Lambda should have streaming enabled. If
* `forceStreamingRuntime` is true, streaming is always enabled. If the
* setting is defined it will be honored. Enabled by default for Node.js.
* Determines if a Lambda should have streaming enabled.
*
* AWS custom handlers cannot stream — the handler contract returns a
* response object, not a stream — so they always resolve to `false`,
* even when `forceStreamingRuntime` is set. This mirrors
* `deserializeLambda`, which also refuses to force streaming on lambdas
* with an `awsLambdaHandler` set.
*
* Otherwise: if `forceStreamingRuntime` is true, streaming is always
* enabled. If the setting is defined it will be honored. Enabled by
* default for Node.js.
*/
export declare function getLambdaSupportsStreaming(lambda: LambdaLike, forceStreamingRuntime: boolean): Promise<SupportsStreamingResult>;
export {};
+3
-0

@@ -25,2 +25,5 @@ "use strict";

async function getLambdaSupportsStreaming(lambda, forceStreamingRuntime) {
if (lambda.awsLambdaHandler) {
return { supportsStreaming: false };
}
if (forceStreamingRuntime) {

@@ -27,0 +30,0 @@ return { supportsStreaming: true };

{
"name": "@vercel/build-utils",
"version": "13.22.0",
"version": "13.22.1",
"license": "Apache-2.0",

@@ -56,4 +56,4 @@ "main": "./dist/index.js",

"yazl": "2.5.1",
"@vercel/routing-utils": "6.2.0",
"@vercel/error-utils": "2.1.0"
"@vercel/error-utils": "2.1.0",
"@vercel/routing-utils": "6.2.0"
},

@@ -60,0 +60,0 @@ "scripts": {

Sorry, the diff of this file is too big to display