@vercel/build-utils 14.7.0 → 14.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 14.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a652a99: Propagate top-level `schedules` from vercel.json into the Build Output API `config.json` during `vercel build`, and validate the property against the schedules schema
8
+
3
9
  ## 14.7.0
4
10
 
5
11
  ### Minor Changes
package/dist/types.d.ts CHANGED
@@ -565,6 +565,27 @@ export interface Cron {
565
565
  path: string;
566
566
  schedule: string;
567
567
  }
568
+ export interface ScheduleExpression {
569
+ /** Cron expression describing when the schedule fires (REQUIRED) */
570
+ cron: string;
571
+ /** Maximum random delay applied to each firing, e.g. "5m" (OPTIONAL) */
572
+ jitter?: string;
573
+ }
574
+ export type ScheduleTarget = {
575
+ /** Build output path of the function to invoke, e.g. "api/cron" */
576
+ function: string;
577
+ } | {
578
+ /** Name of the queue topic to publish to */
579
+ topic: string;
580
+ };
581
+ export interface Schedule {
582
+ /** Unique name of the schedule within the deployment (REQUIRED) */
583
+ name: string;
584
+ expression: ScheduleExpression;
585
+ target: ScheduleTarget;
586
+ /** Payload delivered with each firing (OPTIONAL) */
587
+ payload?: unknown;
588
+ }
568
589
  export interface ServiceQueueTopic {
569
590
  topic: string;
570
591
  retryAfterSeconds?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "14.7.0",
3
+ "version": "14.8.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",