@depup/cloudflare__vite-plugin 1.59.0-depup.0 → 1.60.0-depup.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/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/cloudflare__vite-plugin
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [@cloudflare/vite-plugin](https://www.npmjs.com/package/@cloudflare/vite-plugin) @ 1.59.0 |
17
- | Processed | 2026-09-24 |
16
+ | Original | [@cloudflare/vite-plugin](https://www.npmjs.com/package/@cloudflare/vite-plugin) @ 1.60.0 |
17
+ | Processed | 2026-09-25 |
18
18
  | Smoke test | failed |
19
19
  | Deps updated | 2 |
20
20
 
@@ -22,7 +22,7 @@ npm install @depup/cloudflare__vite-plugin
22
22
 
23
23
  | Dependency | From | To |
24
24
  |------------|------|-----|
25
- | workerd | 1.20260921.1 | ^1.20260924.1 |
25
+ | workerd | 1.20260923.1 | ^1.20260924.1 |
26
26
  | ws | 8.21.0 | ^8.21.3 |
27
27
 
28
28
  ---
package/changes.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "bumped": {
3
3
  "workerd": {
4
- "from": "1.20260921.1",
4
+ "from": "1.20260923.1",
5
5
  "to": "^1.20260924.1"
6
6
  },
7
7
  "ws": {
@@ -9,6 +9,6 @@
9
9
  "to": "^8.21.3"
10
10
  }
11
11
  },
12
- "timestamp": "2026-09-24T16:09:49.509Z",
12
+ "timestamp": "2026-09-25T00:33:08.946Z",
13
13
  "totalUpdated": 2
14
14
  }
@@ -1,6 +1,6 @@
1
1
  import { Pipeline, PipelineRecord } from "cloudflare:pipelines";
2
2
 
3
- //#region ../config/dist/public-fVh2BrM5.d.mts
3
+ //#region ../config/dist/public-DpGZXvA6.d.mts
4
4
 
5
5
  //#region src/exports.d.ts
6
6
  /**
@@ -106,6 +106,37 @@ interface WorkerEntrypointExportOptions {
106
106
  interface WorkerEntrypointExport extends WorkerEntrypointExportOptions {
107
107
  type: "worker";
108
108
  }
109
+ interface WorkflowExportOptions {
110
+ /**
111
+ * The name of the Workflow. It identifies the Workflow's instances and must
112
+ * be unique within the account.
113
+ */
114
+ name: string;
115
+ limits?: {
116
+ /** Maximum number of steps a single Workflow instance may run. */
117
+ steps?: number;
118
+ };
119
+ concurrency?: {
120
+ /** Maximum number of Workflow instances that can run concurrently. */
121
+ limit?: number;
122
+ };
123
+ /** Cron schedule(s) that automatically trigger Workflow instances. */
124
+ schedules?: string | string[];
125
+ /**
126
+ * Default retention for instances of this Workflow, applied when an instance
127
+ * does not set its own retention. Accepts milliseconds or a duration string
128
+ * such as `"3 days"`.
129
+ */
130
+ default_retention?: {
131
+ /** How long to retain instances that completed successfully or were terminated. */
132
+ success_retention?: number | string;
133
+ /** How long to retain errored instances. */
134
+ error_retention?: number | string;
135
+ };
136
+ }
137
+ interface WorkflowExport extends WorkflowExportOptions {
138
+ type: "workflow";
139
+ }
109
140
  /**
110
141
  * Configuration for named exports declared by the Worker. Each entry's
111
142
  * key is the exported class name; the value configures the export.
@@ -140,6 +171,14 @@ interface Exports {
140
171
  durableObject(options: DurableObjectExportOptions): DurableObjectExports;
141
172
  /** Declares a WorkerEntrypoint export defined by this Worker. */
142
173
  worker(options?: WorkerEntrypointExportOptions): WorkerEntrypointExport;
174
+ /**
175
+ * Declares a Workflow defined by this Worker. The export's key must name a
176
+ * class that extends `WorkflowEntrypoint`.
177
+ *
178
+ * For more information about Workflows, see the documentation at
179
+ * https://developers.cloudflare.com/workflows/
180
+ */
181
+ workflow(options: WorkflowExportOptions): WorkflowExport;
143
182
  }
144
183
  /**
145
184
  * Exports builder for configuring Worker exports.
@@ -161,6 +200,7 @@ interface Exports {
161
200
  * OldName: exports.durableObject({ state: "renamed", renamedTo: "NewName" }),
162
201
  * Outgoing: exports.durableObject({ state: "transferred", transferredTo: "target-worker" }),
163
202
  * Incoming: exports.durableObject({ state: "expecting-transfer", storage: "sqlite", transferFrom: "source-worker" }),
203
+ * MyWorkflow: exports.workflow({ name: "my-workflow", limits: { steps: 100 }, schedules: "0 * * * *" }),
164
204
  * },
165
205
  * });
166
206
  *
@@ -457,22 +497,31 @@ interface EmailTriggerOptions {
457
497
  interface EmailTrigger extends EmailTriggerOptions {
458
498
  type: "email";
459
499
  }
460
- interface ConnectTriggerOptions {
461
- /** The transport protocol to listen for. */
462
- protocol: "tcp";
500
+ interface ConnectTriggerOptionsBase {
463
501
  /** The port to listen on. */
464
502
  port: number;
465
503
  /** The address to bind to. Defaults to `127.0.0.1`. */
466
504
  address?: string;
467
505
  }
506
+ type TcpConnectTriggerOptions = ConnectTriggerOptionsBase & {
507
+ protocol: "tcp";
508
+ };
509
+ type UdpConnectTriggerOptions = ConnectTriggerOptionsBase & {
510
+ protocol: "udp";
511
+ /** The idle timeout in milliseconds after which a peer flow is closed. */
512
+ idleTimeoutMs?: number;
513
+ /** The maximum number of pending datagram bytes per peer flow. */
514
+ maxPendingBytes?: number;
515
+ };
516
+ type ConnectTriggerOptions = TcpConnectTriggerOptions | UdpConnectTriggerOptions;
468
517
  /**
469
518
  * Connect trigger — invokes this Worker's `connect(socket, env, ctx)`
470
519
  * handler for raw socket connections received on the configured
471
520
  * protocol/port.
472
521
  */
473
- interface ConnectTrigger extends ConnectTriggerOptions {
522
+ type ConnectTrigger = ConnectTriggerOptions & {
474
523
  type: "connect";
475
- }
524
+ };
476
525
  /**
477
526
  * Event triggers — fetch routes, queue consumers, cron schedules, Email
478
527
  * Routing addresses, and raw sockets — that invoke this Worker.
@@ -570,9 +619,10 @@ type Trigger = ConnectTrigger | EmailTrigger | FetchTrigger | QueueConsumerTrigg
570
619
  /**
571
620
  * Union of all export definitions accepted in `exports`. Worker entries
572
621
  * configure WorkerEntrypoint exports. Durable Object entries configure live
573
- * classes and tombstone lifecycle operations.
622
+ * classes and tombstone lifecycle operations. Workflow entries declare the
623
+ * Workflows defined by the Worker.
574
624
  */
575
- type Export = DurableObjectCreatedExport | DurableObjectDeletedExport | DurableObjectRenamedExport | DurableObjectTransferredExport | DurableObjectExpectingTransferExport | WorkerEntrypointExport;
625
+ type Export = DurableObjectCreatedExport | DurableObjectDeletedExport | DurableObjectRenamedExport | DurableObjectTransferredExport | DurableObjectExpectingTransferExport | WorkerEntrypointExport | WorkflowExport;
576
626
  /** An image source accepted in an authored Container configuration. */
577
627
  type ContainerImage = {
578
628
  /** The path to a Dockerfile. */
@@ -1005,13 +1055,16 @@ interface WorkerConfig {
1005
1055
  * Configuration for named exports declared by the Worker. Each entry's
1006
1056
  * key is the exported class name; the value configures the export.
1007
1057
  *
1008
- * Only one export kind is currently supported:
1009
- *
1010
1058
  * - Construct entries with `exports.durableObject(...)`.
1011
1059
  * - Declares Durable Object classes exported from this Worker.
1012
1060
  * For more information about Durable Objects, see the documentation at
1013
1061
  * https://developers.cloudflare.com/workers/learning/using-durable-objects.
1014
1062
  * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects.
1063
+ *
1064
+ * - Construct entries with `exports.workflow(...)`.
1065
+ * - Declares Workflows defined by this Worker.
1066
+ * For more information about Workflows, see the documentation at
1067
+ * https://developers.cloudflare.com/workflows/.
1015
1068
  */
1016
1069
  exports?: Record<string, Export>;
1017
1070
  }
@@ -1777,5 +1830,5 @@ interface Bindings {
1777
1830
  declare const bindings: Bindings;
1778
1831
  //#endregion
1779
1832
  //#endregion
1780
- export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, ArtifactsBinding, AssetsBinding, BindingDevOptions, Bindings, BrowserBinding, CloudflareConfig, ConfigContext, ConnectTrigger, ContainerConfig, ContainerDefinition, D1Binding, DispatchNamespaceBinding, DurableObjectBinding, DurableObjectCreatedExport, DurableObjectDeletedExport, DurableObjectExpectingTransferExport, DurableObjectRenamedExport, DurableObjectTransferredExport, EmailTrigger, Exports, FetchTrigger, FlagshipBinding, HyperdriveBinding, ImagesBinding$1 as ImagesBinding, InferDurableNamespaces, InferEnv, InferMainModule, JsonBinding, KvBinding, LogfwdrBinding, MediaBinding$1 as MediaBinding, MtlsCertificateBinding, PipelineBinding, QueueBinding, QueueConsumerTrigger, R2Binding, RateLimitBinding, ScheduledTrigger, SecretBinding, SecretsStoreSecretBinding, SendEmailBinding, Settings, StreamBinding$1 as StreamBinding, TextBinding, Triggers, TypedAiBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, UnsafeBinding, UnwrapConfig, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WorkerBinding, WorkerConfig, WorkerDefinition, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerLoaderBinding, WorkerReference, WorkflowBinding, bindings, defineConfig, defineContainer, defineWorker, exports, triggers };
1833
+ export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, ArtifactsBinding, AssetsBinding, BindingDevOptions, Bindings, BrowserBinding, CloudflareConfig, ConfigContext, ConnectTrigger, ContainerConfig, ContainerDefinition, D1Binding, DispatchNamespaceBinding, DurableObjectBinding, DurableObjectCreatedExport, DurableObjectDeletedExport, DurableObjectExpectingTransferExport, DurableObjectRenamedExport, DurableObjectTransferredExport, EmailTrigger, Exports, FetchTrigger, FlagshipBinding, HyperdriveBinding, ImagesBinding$1 as ImagesBinding, InferDurableNamespaces, InferEnv, InferMainModule, JsonBinding, KvBinding, LogfwdrBinding, MediaBinding$1 as MediaBinding, MtlsCertificateBinding, PipelineBinding, QueueBinding, QueueConsumerTrigger, R2Binding, RateLimitBinding, ScheduledTrigger, SecretBinding, SecretsStoreSecretBinding, SendEmailBinding, Settings, StreamBinding$1 as StreamBinding, TextBinding, Triggers, TypedAiBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, UnsafeBinding, UnwrapConfig, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WorkerBinding, WorkerConfig, WorkerDefinition, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerLoaderBinding, WorkerReference, WorkflowBinding, WorkflowExport, WorkflowExportOptions, bindings, defineConfig, defineContainer, defineWorker, exports, triggers };
1781
1834
  //# sourceMappingURL=experimental-config.d.mts.map