@vercel/build-utils 14.12.0 → 14.13.0
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/dist/types.d.ts
CHANGED
|
@@ -769,12 +769,23 @@ export interface FunctionFramework {
|
|
|
769
769
|
slug: string;
|
|
770
770
|
version?: string;
|
|
771
771
|
}
|
|
772
|
+
export interface AfterCacheCondition {
|
|
773
|
+
type: 'request.header' | 'cache.response.header';
|
|
774
|
+
key: string;
|
|
775
|
+
value?: HasField[number]['value'];
|
|
776
|
+
}
|
|
777
|
+
export interface AfterCacheBypassRule {
|
|
778
|
+
name?: string;
|
|
779
|
+
hasAll: AfterCacheCondition[];
|
|
780
|
+
}
|
|
772
781
|
/**
|
|
773
782
|
* When a Builder implements `version: 2`, the `build()` function is expected
|
|
774
783
|
* to return this type.
|
|
775
784
|
*/
|
|
776
785
|
export interface BuildResultV2Typical {
|
|
777
786
|
routes?: any[];
|
|
787
|
+
/** Bypass cached responses when every condition in any rule matches. */
|
|
788
|
+
afterCacheBypass?: AfterCacheBypassRule[];
|
|
778
789
|
images?: Images;
|
|
779
790
|
output: {
|
|
780
791
|
[key: string]: File | Lambda | Prerender | EdgeFunction | ContainerImage;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/build-utils",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.13.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.js",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"vitest": "4.1.10",
|
|
53
53
|
"typescript": "4.9.5",
|
|
54
54
|
"yazl": "2.5.1",
|
|
55
|
-
"@vercel/
|
|
56
|
-
"@vercel/
|
|
55
|
+
"@vercel/routing-utils": "6.6.0",
|
|
56
|
+
"@vercel/error-utils": "2.2.1"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "node build.mjs",
|