@vercel/client 18.7.0 → 18.8.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 +3 -26
  2. package/package.json +3 -3
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Builder, BuilderFunctions, Images, ProjectSettings, Cron, Schedule, ExperimentalServices, ExperimentalServiceGroups, ExperimentalServicesV2, Services, Daemons } from '@vercel/build-utils';
1
+ import type { Builder, BuilderFunctions, Images, ProjectSettings, Cron, VercelJsonSchedule, ExperimentalServices, ExperimentalServiceGroups, ExperimentalServicesV2, Services, Daemons } from '@vercel/build-utils';
2
2
  import type { Header, Route, Redirect, Rewrite } from '@vercel/routing-utils';
3
3
  export type { DeploymentEventType } from './utils';
4
4
  /**
@@ -133,30 +133,7 @@ export interface DeploymentGithubData {
133
133
  silent: boolean;
134
134
  autoJobCancelation: boolean;
135
135
  }
136
- export type VercelConfigSchedule = Omit<Schedule, 'target'> & {
137
- target: Schedule['target'] | {
138
- entrypoint: string;
139
- };
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
- requestMethod?: 'GET' | 'POST';
153
- } | {
154
- function: string;
155
- } | {
156
- topic: string;
157
- } | {
158
- entrypoint: string;
159
- });
136
+ export type VercelConfigSchedule = VercelJsonSchedule;
160
137
  export declare const fileNameSymbol: unique symbol;
161
138
  export interface VercelConfig {
162
139
  [fileNameSymbol]?: string;
@@ -189,7 +166,7 @@ export interface VercelConfig {
189
166
  outputDirectory?: string | null;
190
167
  images?: Images;
191
168
  crons?: Cron[];
192
- schedules?: (VercelConfigSchedule | VercelConfigFlatSchedule)[];
169
+ schedules?: VercelConfigSchedule[];
193
170
  bunVersion?: string;
194
171
  proxy?: ProxyConfig;
195
172
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/client",
3
- "version": "18.7.0",
3
+ "version": "18.8.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.18.0",
41
40
  "@vercel/error-utils": "2.2.1",
42
- "@vercel/routing-utils": "6.6.0"
41
+ "@vercel/routing-utils": "6.6.0",
42
+ "@vercel/build-utils": "14.19.0"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "node ../../utils/build.mjs",