@vercel/build-utils 13.14.0 → 13.14.1

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,13 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 13.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Restore `finalizeLambda()` to return `zipPath: null` for the default in-memory path, preserving the existing caller-facing result contract while keeping custom ZIP strategies supported. ([#15887](https://github.com/vercel/vercel/pull/15887))
8
+
9
+ - feat(node): filter non-entrypoint Node.js files in `/api` directory ([#15873](https://github.com/vercel/vercel/pull/15873))
10
+
3
11
  ## 13.14.0
4
12
 
5
13
  ### Minor Changes
@@ -53,8 +53,8 @@ export interface FinalizeLambdaParams {
53
53
  export interface FinalizeLambdaResult {
54
54
  /** The zip as a Buffer, or null when a custom createZip returns a disk path. */
55
55
  buffer: Buffer | null;
56
- /** Path to zip on disk (set by custom createZip), undefined for in-memory. */
57
- zipPath?: string;
56
+ /** Path to zip on disk (set by custom createZip), null for in-memory. */
57
+ zipPath: string | null;
58
58
  /** SHA-256 hex digest. */
59
59
  digest: string;
60
60
  /** Compressed size in bytes. */
@@ -105,7 +105,7 @@ async function finalizeLambda(params) {
105
105
  lambda.supportsResponseStreaming = streamingResult.supportsStreaming;
106
106
  return {
107
107
  buffer: zipResult.buffer,
108
- zipPath: zipResult.zipPath,
108
+ zipPath: zipResult.zipPath ?? null,
109
109
  digest: zipResult.digest,
110
110
  size: zipResult.size,
111
111
  uncompressedBytes,
package/dist/index.d.ts CHANGED
@@ -36,6 +36,7 @@ export { defaultCachePathGlob } from './default-cache-path-glob';
36
36
  export { generateNodeBuilderFunctions } from './generate-node-builder-functions';
37
37
  export { BACKEND_FRAMEWORKS, BACKEND_BUILDERS, UNIFIED_BACKEND_BUILDER, BackendFramework, isBackendFramework, isNodeBackendFramework, isBackendBuilder, isExperimentalBackendsEnabled, isExperimentalBackendsWithoutIntrospectionEnabled, shouldUseExperimentalBackends, PYTHON_FRAMEWORKS, PythonFramework, isPythonFramework, } from './framework-helpers';
38
38
  export * from './python';
39
+ export * from './node-entrypoint';
39
40
  export { getEncryptedEnv, type EncryptedEnvFile, } from './process-serverless/get-encrypted-env-file';
40
41
  export { getLambdaEnvironment } from './process-serverless/get-lambda-environment';
41
42
  export { getLambdaPreloadScripts, type BytecodeCachingOptions, } from './process-serverless/get-lambda-preload-scripts';