@vercel/build-utils 13.6.1 → 13.6.2

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.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - add partialFallback flag to prerender output ([#14703](https://github.com/vercel/vercel/pull/14703))
8
+
3
9
  ## 13.6.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -22777,7 +22777,8 @@ var Prerender = class {
22777
22777
  experimentalBypassFor,
22778
22778
  experimentalStreamingLambdaPath,
22779
22779
  chain,
22780
- exposeErrBody
22780
+ exposeErrBody,
22781
+ partialFallback
22781
22782
  }) {
22782
22783
  this.type = "Prerender";
22783
22784
  this.expiration = expiration;
@@ -22909,6 +22910,13 @@ var Prerender = class {
22909
22910
  `The \`exposeErrBody\` argument for \`Prerender\` must be a boolean.`
22910
22911
  );
22911
22912
  }
22913
+ if (partialFallback === true) {
22914
+ this.partialFallback = true;
22915
+ } else if (typeof partialFallback !== "boolean" && typeof partialFallback !== "undefined") {
22916
+ throw new Error(
22917
+ `The \`partialFallback\` argument for \`Prerender\` must be a boolean.`
22918
+ );
22919
+ }
22912
22920
  }
22913
22921
  };
22914
22922
 
@@ -17,6 +17,7 @@ interface PrerenderOptions {
17
17
  experimentalStreamingLambdaPath?: string;
18
18
  chain?: Chain;
19
19
  exposeErrBody?: boolean;
20
+ partialFallback?: boolean;
20
21
  }
21
22
  export declare class Prerender {
22
23
  type: 'Prerender';
@@ -45,6 +46,7 @@ export declare class Prerender {
45
46
  experimentalStreamingLambdaPath?: string;
46
47
  chain?: Chain;
47
48
  exposeErrBody?: boolean;
48
- constructor({ expiration, staleExpiration, lambda, fallback, group, bypassToken, allowQuery, allowHeader, initialHeaders, initialStatus, passQuery, sourcePath, experimentalBypassFor, experimentalStreamingLambdaPath, chain, exposeErrBody, }: PrerenderOptions);
49
+ partialFallback?: boolean;
50
+ constructor({ expiration, staleExpiration, lambda, fallback, group, bypassToken, allowQuery, allowHeader, initialHeaders, initialStatus, passQuery, sourcePath, experimentalBypassFor, experimentalStreamingLambdaPath, chain, exposeErrBody, partialFallback, }: PrerenderOptions);
49
51
  }
50
52
  export {};
package/dist/prerender.js CHANGED
@@ -38,7 +38,8 @@ class Prerender {
38
38
  experimentalBypassFor,
39
39
  experimentalStreamingLambdaPath,
40
40
  chain,
41
- exposeErrBody
41
+ exposeErrBody,
42
+ partialFallback
42
43
  }) {
43
44
  this.type = "Prerender";
44
45
  this.expiration = expiration;
@@ -170,6 +171,13 @@ class Prerender {
170
171
  `The \`exposeErrBody\` argument for \`Prerender\` must be a boolean.`
171
172
  );
172
173
  }
174
+ if (partialFallback === true) {
175
+ this.partialFallback = true;
176
+ } else if (typeof partialFallback !== "boolean" && typeof partialFallback !== "undefined") {
177
+ throw new Error(
178
+ `The \`partialFallback\` argument for \`Prerender\` must be a boolean.`
179
+ );
180
+ }
173
181
  }
174
182
  }
175
183
  // Annotate the CommonJS export names for ESM import in node:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "13.6.1",
3
+ "version": "13.6.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",
@@ -51,7 +51,7 @@
51
51
  "vitest": "2.0.1",
52
52
  "json5": "2.2.3",
53
53
  "@vercel/error-utils": "2.0.3",
54
- "@vercel/routing-utils": "6.0.0"
54
+ "@vercel/routing-utils": "6.0.1"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "node build.mjs",