@vercel/build-utils 14.21.3 → 14.23.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/CHANGELOG.md +22 -0
- package/dist/daemon-static-publishing.js +7 -1
- package/dist/daemons.d.ts +4 -0
- package/dist/index.js +5 -5
- package/dist/schedules.d.ts +20 -15
- package/dist/schedules.js +22 -27
- package/dist/schemas.d.ts +8 -0
- package/dist/schemas.js +4 -0
- package/dist/types.d.ts +24 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @vercel/build-utils
|
|
2
2
|
|
|
3
|
+
## 14.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d39dd61: Require `name` for `schedules` entries in `vercel.json` and Build Output `config.json`. Schedules without a `name` no longer get a derived default name, and `getScheduleName` and `defaultScheduleName` are removed from `@vercel/build-utils`.
|
|
8
|
+
- 5aa1b58: `schedules` in `vercel.json` can now be an object keyed by schedule name, like `"schedules": { "nightly": { "schedule": "0 0 * * *", "path": "/api/cron" } }`. `vercel build` writes `schedules` to Build Output `config.json` in the format it was given, and builders can return it from `getDevManifest`. The array of named schedules still works but is deprecated, and `vercel build` and `vercel dev` warn when it's used.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 9abaa6d: Accept service bindings on daemons in `vercel.json`.
|
|
13
|
+
- 179d4ab: Fix `ENOENT` build failures when daemons are deployed alongside a zero-config server app that has no `public/` directory.
|
|
14
|
+
|
|
15
|
+
## 14.22.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- a2e9f5d: Add `functions[glob].installCommand`. For matching `@vercel/node` functions, an empty string skips the dependency install and a non-empty value runs instead of the default install. Builds warn when the property matches functions of other runtimes, which ignore it.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- a19979c: Use Vercel Flags project activation metadata to detect when to embed flag definitions, including builds without installed SDK packages. Preserve explicit embedding overrides and existing SDK detection for projects without activation metadata.
|
|
24
|
+
|
|
3
25
|
## 14.21.3
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -36,7 +36,13 @@ async function createDaemonStaticFileFilter({
|
|
|
36
36
|
if (!context || Object.keys(context.daemons).length === 0)
|
|
37
37
|
return async () => true;
|
|
38
38
|
const publish = (0, import_path.resolve)(publishPath);
|
|
39
|
-
const realPublish = await (0, import_promises.realpath)(publish)
|
|
39
|
+
const realPublish = await (0, import_promises.realpath)(publish).catch(
|
|
40
|
+
(error) => {
|
|
41
|
+
if (error.code === "ENOENT")
|
|
42
|
+
return publish;
|
|
43
|
+
throw error;
|
|
44
|
+
}
|
|
45
|
+
);
|
|
40
46
|
const daemons = await Promise.all(
|
|
41
47
|
Object.entries(context.daemons).map(async ([name, daemon]) => {
|
|
42
48
|
const root = (0, import_path.resolve)(context.projectRoot, daemon.root);
|
package/dist/daemons.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ServiceBinding } from './types';
|
|
1
2
|
/** Instance counts by region. */
|
|
2
3
|
export type DaemonInstances = Record<string, number>;
|
|
3
4
|
/** @deprecated Use `DaemonInstances`. */
|
|
@@ -17,6 +18,8 @@ export interface DaemonConfig {
|
|
|
17
18
|
replicas?: DaemonInstances;
|
|
18
19
|
resources?: DaemonResources;
|
|
19
20
|
terminationGracePeriodSeconds?: number;
|
|
21
|
+
/** Bindings to services in the same deployment. */
|
|
22
|
+
bindings?: Array<Required<ServiceBinding>>;
|
|
20
23
|
}
|
|
21
24
|
/**
|
|
22
25
|
* Valid daemon names: service names, minus separator runs that aren't valid
|
|
@@ -34,6 +37,7 @@ export interface DaemonOutput {
|
|
|
34
37
|
instances: DaemonInstances;
|
|
35
38
|
resources?: DaemonResources;
|
|
36
39
|
terminationGracePeriodSeconds?: number;
|
|
40
|
+
bindings?: Array<Required<ServiceBinding>>;
|
|
37
41
|
}
|
|
38
42
|
/**
|
|
39
43
|
* Names of the daemons in `vercel.json#daemons`. Safe on unvalidated config,
|