@depup/cloudflare__vite-plugin 1.60.2-depup.3 → 1.61.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,7 +13,7 @@ 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.60.2 |
16
+ | Original | [@cloudflare/vite-plugin](https://www.npmjs.com/package/@cloudflare/vite-plugin) @ 1.61.0 |
17
17
  | Processed | 2026-09-27 |
18
18
  | Smoke test | failed |
19
19
  | Deps updated | 2 |
@@ -22,7 +22,7 @@ npm install @depup/cloudflare__vite-plugin
22
22
 
23
23
  | Dependency | From | To |
24
24
  |------------|------|-----|
25
- | workerd | 1.20260925.1 | ^1.20260927.1 |
25
+ | workerd | 1.20260926.1 | ^1.20260927.1 |
26
26
  | ws | 8.21.0 | ^8.22.0 |
27
27
 
28
28
  ---
package/changes.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "bumped": {
3
3
  "workerd": {
4
- "from": "1.20260925.1",
4
+ "from": "1.20260926.1",
5
5
  "to": "^1.20260927.1"
6
6
  },
7
7
  "ws": {
@@ -9,6 +9,6 @@
9
9
  "to": "^8.22.0"
10
10
  }
11
11
  },
12
- "timestamp": "2026-09-27T03:19:14.293Z",
12
+ "timestamp": "2026-09-27T16:09:02.730Z",
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-X5O6jFLp.d.mts
3
+ //#region ../config/dist/public-DA8eKvPJ.d.mts
4
4
 
5
5
  //#region src/exports.d.ts
6
6
  /**
@@ -611,7 +611,7 @@ interface CloudflareConfig extends Settings {
611
611
  /**
612
612
  * Union of all binding definitions accepted in `env`.
613
613
  */
614
- type Binding = AgentMemoryBinding | AiBinding | AiSearchBinding | AiSearchNamespaceBinding | AnalyticsEngineDatasetBinding | ArtifactsBinding | AssetsBinding | BrowserBinding | D1Binding | DispatchNamespaceBinding | DurableObjectBinding | FlagshipBinding | HyperdriveBinding | ImagesBinding$1 | JsonBinding | KvBinding | LogfwdrBinding | MediaBinding$1 | MtlsCertificateBinding | PipelineBinding | QueueBinding | R2Binding | RateLimitBinding | SecretBinding | SecretsStoreSecretBinding | SendEmailBinding | StreamBinding$1 | TextBinding | UnsafeBinding | VectorizeBinding | VersionMetadataBinding | VpcNetworkBinding | VpcServiceBinding | WorkerBinding | WorkerLoaderBinding;
614
+ type Binding = AgentMemoryBinding | AiBinding | AiSearchBinding | AiSearchNamespaceBinding | AnalyticsEngineDatasetBinding | ArtifactsBinding | AssetsBinding | BrowserBinding | D1Binding | DispatchNamespaceBinding | DurableObjectBinding | FlagshipBinding | HyperdriveBinding | ImagesBinding$1 | JsonBinding | KvBinding | LogfwdrBinding | MediaBinding$1 | MtlsCertificateBinding | PipelineBinding | QueueBinding | R2Binding | RateLimitBinding | SecretBinding | SecretsStoreSecretBinding | SendEmailBinding | StreamBinding$1 | TextBinding | UnsafeBinding | VectorizeBinding | VersionMetadataBinding | VpcNetworkBinding | VpcServiceBinding | WorkerBinding | WorkerLoaderBinding | WorkflowBinding;
615
615
  /**
616
616
  * Union of all trigger definitions accepted in `triggers`.
617
617
  */
@@ -1087,6 +1087,11 @@ interface ConfigContext {
1087
1087
  * another context before they are used.
1088
1088
  */
1089
1089
  type ConfigInput<T$1> = T$1 | Promise<T$1> | ((ctx: ConfigContext) => T$1 | Promise<T$1>);
1090
+ /** Recursively apply declared config properties without expanding open records. */
1091
+ type ContextualProperties<TInput extends object, TConfig> = TInput extends readonly unknown[] ? TConfig extends readonly (infer TElement)[] ? { [K in keyof TInput]: ContextualConfig<TInput[K], TElement> } : TConfig : string extends keyof TConfig ? TConfig : { [K in keyof TConfig]: K extends keyof TInput ? ContextualConfig<TInput[K], TConfig[K]> : TConfig[K] };
1092
+ type ContextualConfig<TInput, TConfig> = TInput extends Promise<infer TValue> ? Promise<ContextualConfig<TValue, TConfig>> : TInput extends ((ctx: ConfigContext) => infer TResult) ? (ctx: ConfigContext) => ContextualConfig<TResult, TConfig> : TConfig extends unknown ? TInput extends TConfig ? TInput & (TInput extends object ? ContextualProperties<TInput, TConfig> : TConfig) : never : never;
1093
+ /** Create a type-safe identity helper for a configuration value or factory. */
1094
+
1090
1095
  type ContainerDefinition<T$1 extends ContainerConfig = ContainerConfig> = ConfigInput<T$1>;
1091
1096
  type WorkerDefinition<T$1 extends WorkerConfig = WorkerConfig> = ConfigInput<T$1>;
1092
1097
  /** A Worker name, value, promise, or context-aware factory. */
@@ -1106,7 +1111,7 @@ type WorkerReference = string | WorkerDefinition;
1106
1111
  * });
1107
1112
  * ```
1108
1113
  */
1109
- declare const defineConfig: <const TInput extends ConfigInput<CloudflareConfig>>(config: TInput) => TInput;
1114
+ declare const defineConfig: <const TInput extends ConfigInput<CloudflareConfig>>(config: TInput & ContextualConfig<TInput, CloudflareConfig>) => TInput;
1110
1115
  /**
1111
1116
  * Define a Container.
1112
1117
  *
@@ -1120,7 +1125,7 @@ declare const defineConfig: <const TInput extends ConfigInput<CloudflareConfig>>
1120
1125
  * });
1121
1126
  * ```
1122
1127
  */
1123
- declare const defineContainer: <const TInput extends ConfigInput<ContainerConfig>>(config: TInput) => TInput;
1128
+ declare const defineContainer: <const TInput extends ConfigInput<ContainerConfig>>(config: TInput & ContextualConfig<TInput, ContainerConfig>) => TInput;
1124
1129
  /**
1125
1130
  * Define a Worker.
1126
1131
  *
@@ -1134,7 +1139,7 @@ declare const defineContainer: <const TInput extends ConfigInput<ContainerConfig
1134
1139
  * });
1135
1140
  * ```
1136
1141
  */
1137
- declare const defineWorker: <const TInput extends ConfigInput<WorkerConfig>>(config: TInput) => TInput;
1142
+ declare const defineWorker: <const TInput extends ConfigInput<WorkerConfig>>(config: TInput & ContextualConfig<TInput, WorkerConfig>) => TInput;
1138
1143
  //#endregion
1139
1144
  //#region src/utils.d.ts
1140
1145
  /**
@@ -1648,15 +1653,17 @@ interface WorkerLoaderBinding {
1648
1653
  type: "worker-loader";
1649
1654
  }
1650
1655
  interface WorkflowBindingOptions<TWorker$1 extends WorkerReference = WorkerReference, TExportName$1 extends WorkflowExportName<TWorker$1> = WorkflowExportName<TWorker$1>> {
1656
+ /** The name of the Workflow. */
1657
+ name: string;
1651
1658
  /** The name or config of the Worker that defines the Workflow. */
1652
1659
  worker: TWorker$1;
1653
1660
  /** The exported class name of the Workflow. */
1654
1661
  exportName: TExportName$1;
1655
1662
  }
1656
1663
  /**
1657
- * Binding to a Workflow. `worker` is the name or config of the Worker that
1658
- * defines the Workflow; `exportName` is the exported `WorkflowEntrypoint`
1659
- * class name.
1664
+ * Binding to a Workflow. `name` identifies the Workflow, `worker` is the name
1665
+ * or config of the Worker that defines it, and `exportName` is the exported
1666
+ * `WorkflowEntrypoint` class name.
1660
1667
  */
1661
1668
  interface WorkflowBinding<TWorker$1 extends WorkerReference = WorkerReference, TExportName$1 extends WorkflowExportName<TWorker$1> = WorkflowExportName<TWorker$1>> extends WorkflowBindingOptions<TWorker$1, TExportName$1> {
1662
1669
  type: "workflow";
@@ -1826,6 +1833,12 @@ interface Bindings {
1826
1833
  worker<TWorker$1 extends WorkerReference, TExportName$1 extends WorkerEntrypointExportName<TWorker$1> | undefined = undefined>(options: WorkerBindingOptions<TWorker$1, TExportName$1>): WorkerBinding<TWorker$1, NoInfer<TExportName$1>>;
1827
1834
  /** Binding to a Worker Loader. */
1828
1835
  workerLoader(): WorkerLoaderBinding;
1836
+ /**
1837
+ * Create a Workflow binding.
1838
+ * `worker` may be a Worker config reference or a Worker name.
1839
+ * `exportName` must be a valid `WorkflowEntrypoint` export for the given Worker.
1840
+ */
1841
+ workflow<TWorker$1 extends WorkerReference, TExportName$1 extends WorkflowExportName<TWorker$1>>(options: WorkflowBindingOptions<TWorker$1, TExportName$1>): WorkflowBinding<TWorker$1, NoInfer<TExportName$1>>;
1829
1842
  }
1830
1843
  declare const bindings: Bindings;
1831
1844
  //#endregion