@vercel/client 18.4.8 → 18.5.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +19 -1
  2. package/package.json +4 -4
package/dist/types.d.ts CHANGED
@@ -138,6 +138,24 @@ export type VercelConfigSchedule = Omit<Schedule, 'target'> & {
138
138
  entrypoint: string;
139
139
  };
140
140
  };
141
+ /**
142
+ * Flat `vercel.json` schedule. Config validation normalizes it to
143
+ * `VercelConfigSchedule`.
144
+ */
145
+ export type VercelConfigFlatSchedule = {
146
+ name: string;
147
+ schedule: string;
148
+ timezone?: string;
149
+ jitter?: number;
150
+ } & ({
151
+ path: string;
152
+ } | {
153
+ function: string;
154
+ } | {
155
+ topic: string;
156
+ } | {
157
+ entrypoint: string;
158
+ });
141
159
  export declare const fileNameSymbol: unique symbol;
142
160
  export interface VercelConfig {
143
161
  [fileNameSymbol]?: string;
@@ -170,7 +188,7 @@ export interface VercelConfig {
170
188
  outputDirectory?: string | null;
171
189
  images?: Images;
172
190
  crons?: Cron[];
173
- schedules?: VercelConfigSchedule[];
191
+ schedules?: (VercelConfigSchedule | VercelConfigFlatSchedule)[];
174
192
  bunVersion?: string;
175
193
  proxy?: ProxyConfig;
176
194
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/client",
3
- "version": "18.4.8",
3
+ "version": "18.5.0",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "homepage": "https://vercel.com",
@@ -37,9 +37,9 @@
37
37
  "querystring": "^0.2.0",
38
38
  "sleep-promise": "8.0.1",
39
39
  "tar-fs": "1.16.3",
40
- "@vercel/build-utils": "14.13.2",
41
- "@vercel/routing-utils": "6.6.0",
42
- "@vercel/error-utils": "2.2.1"
40
+ "@vercel/build-utils": "14.14.0",
41
+ "@vercel/error-utils": "2.2.1",
42
+ "@vercel/routing-utils": "6.6.0"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "node ../../utils/build.mjs",