@vercel/build-utils 13.17.0 → 13.17.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,11 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 13.17.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Align deserialize logic with existing callers. ([#16002](https://github.com/vercel/vercel/pull/16002))
8
+
3
9
  ## 13.17.0
4
10
 
5
11
  ### Minor Changes
@@ -54,6 +54,7 @@ async function prerenderToBuildOutputFile(params) {
54
54
  }
55
55
  const CRLF = "\r\n";
56
56
  const MULTIPART_HEADER = "multipart/x-nextjs-extended-payload";
57
+ const boundary = (0, import_crypto.randomBytes)(8).toString("hex");
57
58
  function getExtendedPayload({
58
59
  initialHeaders,
59
60
  fallback
@@ -61,7 +62,6 @@ function getExtendedPayload({
61
62
  if (!initialHeaders || !Object.entries(initialHeaders).length) {
62
63
  return { initialHeaders: void 0, fallback, extendedBody: void 0 };
63
64
  }
64
- const boundary = (0, import_crypto.randomBytes)(8).toString("hex");
65
65
  return {
66
66
  initialHeaders: {
67
67
  ...fallback ? {} : { "x-vercel-empty-fallback": "true" },
@@ -18,8 +18,8 @@ type FilesMapProp = {
18
18
  * Type for the `.vc-config.json` file of a serialized
19
19
  * `ServerlessFunction` instance.
20
20
  */
21
- export type SerializedLambda = Properties<Omit<Lambda, 'files' | 'zipBuffer'>> & FilesMapProp;
22
- export type SerializedNodejsLambda = Properties<Omit<NodejsLambda, 'files' | 'zipBuffer'>> & FilesMapProp;
21
+ export type SerializedLambda<T extends Lambda = Lambda> = Properties<Omit<T, 'files' | 'zipBuffer'>> & FilesMapProp;
22
+ export type SerializedNodejsLambda<T extends NodejsLambda = NodejsLambda> = Properties<Omit<T, 'files' | 'zipBuffer'>> & FilesMapProp;
23
23
  export type SerializedFileFsRef = Properties<FileFsRef>;
24
24
  export type SerializedPrerender = Properties<Omit<Prerender, 'lambda' | 'fallback'>> & {
25
25
  fallback: SerializedFileFsRef | null;
package/dist/index.js CHANGED
@@ -33263,6 +33263,7 @@ async function prerenderToBuildOutputFile(params) {
33263
33263
  }
33264
33264
  var CRLF = "\r\n";
33265
33265
  var MULTIPART_HEADER = "multipart/x-nextjs-extended-payload";
33266
+ var boundary = (0, import_crypto2.randomBytes)(8).toString("hex");
33266
33267
  function getExtendedPayload({
33267
33268
  initialHeaders,
33268
33269
  fallback
@@ -33270,7 +33271,6 @@ function getExtendedPayload({
33270
33271
  if (!initialHeaders || !Object.entries(initialHeaders).length) {
33271
33272
  return { initialHeaders: void 0, fallback, extendedBody: void 0 };
33272
33273
  }
33273
- const boundary = (0, import_crypto2.randomBytes)(8).toString("hex");
33274
33274
  return {
33275
33275
  initialHeaders: {
33276
33276
  ...fallback ? {} : { "x-vercel-empty-fallback": "true" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "13.17.0",
3
+ "version": "13.17.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",