@vercel/build-utils 15.0.0 → 15.0.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 +12 -0
- package/dist/daemons.d.ts +20 -0
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @vercel/build-utils
|
|
2
2
|
|
|
3
|
+
## 15.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2f0edaf: Report the runtime preset for services without a framework.
|
|
8
|
+
|
|
9
|
+
## 15.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 1a379a3: Support `livenessProbe` in `vercel.json#daemons`.
|
|
14
|
+
|
|
3
15
|
## 15.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
package/dist/daemons.d.ts
CHANGED
|
@@ -8,6 +8,24 @@ export interface DaemonResources {
|
|
|
8
8
|
memory: '1Gi' | '2Gi' | '4Gi' | '8Gi';
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
+
/** A Kubernetes-style HTTP liveness probe. */
|
|
12
|
+
export interface DaemonLivenessProbe {
|
|
13
|
+
httpGet: {
|
|
14
|
+
path?: string;
|
|
15
|
+
port: number;
|
|
16
|
+
host?: string;
|
|
17
|
+
scheme?: 'HTTP' | 'HTTPS';
|
|
18
|
+
httpHeaders?: Array<{
|
|
19
|
+
name: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
initialDelaySeconds?: number;
|
|
24
|
+
periodSeconds?: number;
|
|
25
|
+
timeoutSeconds?: number;
|
|
26
|
+
successThreshold?: number;
|
|
27
|
+
failureThreshold?: number;
|
|
28
|
+
}
|
|
11
29
|
/** A `vercel.json#daemons` entry. */
|
|
12
30
|
export interface DaemonConfig {
|
|
13
31
|
root: string;
|
|
@@ -18,6 +36,7 @@ export interface DaemonConfig {
|
|
|
18
36
|
replicas?: DaemonInstances;
|
|
19
37
|
resources?: DaemonResources;
|
|
20
38
|
terminationGracePeriodSeconds?: number;
|
|
39
|
+
livenessProbe?: DaemonLivenessProbe;
|
|
21
40
|
/** Bindings to services in the same deployment. */
|
|
22
41
|
bindings?: Array<Required<ServiceBinding>>;
|
|
23
42
|
}
|
|
@@ -37,6 +56,7 @@ export interface DaemonOutput {
|
|
|
37
56
|
instances: DaemonInstances;
|
|
38
57
|
resources?: DaemonResources;
|
|
39
58
|
terminationGracePeriodSeconds?: number;
|
|
59
|
+
livenessProbe?: DaemonLivenessProbe;
|
|
40
60
|
bindings?: Array<Required<ServiceBinding>>;
|
|
41
61
|
}
|
|
42
62
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -53,6 +53,6 @@ export { isNodeEntrypoint } from './node-entrypoint';
|
|
|
53
53
|
export * from './service-path-utils';
|
|
54
54
|
export * from './schedule-path-utils';
|
|
55
55
|
export * from './schedules';
|
|
56
|
-
export { DAEMON_NAME_PATTERN, getDaemonImageRepository, getDaemonNames, type DaemonConfig, type DaemonOutput, type DaemonInstances, type DaemonReplicas, type DaemonResources, type Daemons, } from './daemons';
|
|
56
|
+
export { DAEMON_NAME_PATTERN, getDaemonImageRepository, getDaemonNames, type DaemonConfig, type DaemonOutput, type DaemonInstances, type DaemonLivenessProbe, type DaemonReplicas, type DaemonResources, type Daemons, } from './daemons';
|
|
57
57
|
export { streamToDigestAsync, sha256, type FileDigest, } from './fs/stream-to-digest-async';
|
|
58
58
|
export { EMPTY_DISCOVERY, NAVIGATION_ACCEPT_RE, promoteStaticFiles, staticBundleExclusions, staticDirectoryRedirects, staticFallbackRoutes, staticShadowRoutes, type ShadowRoute, type StaticBundleExclusions, type StaticFallback, type StaticDiscovery, type StaticMount, type StaticPromotionOptions, type StaticPromotionResult, } from './static-files';
|
package/dist/types.d.ts
CHANGED
|
@@ -172,6 +172,12 @@ export interface BuildOptions {
|
|
|
172
172
|
/** Cron schedule expression(s) (e.g., "0 0 * * *"). Only present for cron services. */
|
|
173
173
|
schedule?: string | string[];
|
|
174
174
|
};
|
|
175
|
+
/** Values to report in diagnostics output. Does not affect the build. */
|
|
176
|
+
diagnosticsValues?: DiagnosticsValues;
|
|
177
|
+
}
|
|
178
|
+
export interface DiagnosticsValues {
|
|
179
|
+
/** Framework slug to report (e.g. "fastapi"). */
|
|
180
|
+
framework?: string;
|
|
175
181
|
}
|
|
176
182
|
export interface PrepareCacheOptions {
|
|
177
183
|
/**
|