@depup/cloudflare__vite-plugin 1.54.8-depup.0 → 1.54.9-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,15 +13,16 @@ 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.54.8 |
17
- | Processed | 2026-09-11 |
16
+ | Original | [@cloudflare/vite-plugin](https://www.npmjs.com/package/@cloudflare/vite-plugin) @ 1.54.9 |
17
+ | Processed | 2026-09-14 |
18
18
  | Smoke test | failed |
19
- | Deps updated | 1 |
19
+ | Deps updated | 2 |
20
20
 
21
21
  ## Dependency Changes
22
22
 
23
23
  | Dependency | From | To |
24
24
  |------------|------|-----|
25
+ | workerd | 1.20260911.1 | ^1.20260914.1 |
25
26
  | ws | 8.21.0 | ^8.21.3 |
26
27
 
27
28
  ---
package/changes.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "bumped": {
3
+ "workerd": {
4
+ "from": "1.20260911.1",
5
+ "to": "^1.20260914.1"
6
+ },
3
7
  "ws": {
4
8
  "from": "8.21.0",
5
9
  "to": "^8.21.3"
6
10
  }
7
11
  },
8
- "timestamp": "2026-09-11T16:10:36.083Z",
9
- "totalUpdated": 1
12
+ "timestamp": "2026-09-14T16:08:56.208Z",
13
+ "totalUpdated": 2
10
14
  }
@@ -1,6 +1,6 @@
1
1
  import { Pipeline, PipelineRecord } from "cloudflare:pipelines";
2
2
 
3
- //#region ../config/dist/public-E85Be_2R.d.mts
3
+ //#region ../config/dist/public-CxIWEZqM.d.mts
4
4
 
5
5
  //#region src/inference.d.ts
6
6
  /**
@@ -232,6 +232,25 @@ type ConfigWithType<T$1 extends ConfigObject, TType extends string> = T$1 & {
232
232
  type: TType;
233
233
  };
234
234
  //#endregion
235
+ //#region src/container-definition.d.ts
236
+ type ContainerConfigExport<T$1 extends ContainerConfig = ContainerConfig> = ConfigInput<T$1>;
237
+ type DistributiveOmit<T$1, K$1 extends PropertyKey> = T$1 extends unknown ? Omit<T$1, K$1> : never;
238
+ /**
239
+ * Authored Container config shape — {@link ContainerConfig} without the `type`
240
+ * discriminant, which `defineContainer` injects.
241
+ */
242
+ type ContainerConfigInput = DistributiveOmit<ContainerConfig, "type">;
243
+ /** Declare a Container application. */
244
+ declare const defineContainer: <const TInput extends ConfigInput<ContainerConfigInput>>(config: TInput) => TInput extends ((ctx: ConfigContext) => infer TResult) ? (ctx: ConfigContext) => TResult extends Promise<infer TConfig extends {
245
+ [x: string]: unknown;
246
+ }> ? Promise<ConfigWithType<TConfig, "container">> : TResult extends {
247
+ [x: string]: unknown;
248
+ } ? ConfigWithType<TResult, "container"> : never : TInput extends Promise<infer TConfig extends {
249
+ [x: string]: unknown;
250
+ }> ? Promise<ConfigWithType<TConfig, "container">> : TInput extends {
251
+ [x: string]: unknown;
252
+ } ? ConfigWithType<TInput, "container"> : never;
253
+ //#endregion
235
254
  //#region src/exports.d.ts
236
255
  /**
237
256
  * Storage backend for the Durable Object.
@@ -239,17 +258,16 @@ type ConfigWithType<T$1 extends ConfigObject, TType extends string> = T$1 & {
239
258
  * Containers are only supported on the SQLite storage engine, so `container` is
240
259
  * only offered alongside `storage: "sqlite"`.
241
260
  */
242
- type DurableObjectStorageOptions = {
261
+ type DurableObjectStorageOptions<TContainer extends ContainerConfigExport | undefined = ContainerConfigExport | undefined> = {
243
262
  /**
244
263
  * Selects the SQLite-backed storage engine (recommended for new
245
264
  * classes).
246
265
  */
247
266
  storage: "sqlite";
248
267
  /**
249
- * Attach a container to this Durable Object, by container name. The
250
- * name must match an entry in the top level `containers` array.
268
+ * Attach a Container application to this Durable Object by config reference.
251
269
  */
252
- container?: string;
270
+ container?: TContainer;
253
271
  } | {
254
272
  /** Selects the legacy key-value storage engine. */
255
273
  storage: "legacy-kv";
@@ -262,9 +280,9 @@ type DurableObjectStorageOptions = {
262
280
  *
263
281
  * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
264
282
  */
265
- type DurableObjectCreatedExportOptions = {
283
+ type DurableObjectCreatedExportOptions<TContainer extends ContainerConfigExport | undefined = ContainerConfigExport | undefined> = {
266
284
  state?: "created";
267
- } & DurableObjectStorageOptions;
285
+ } & DurableObjectStorageOptions<TContainer>;
268
286
  /**
269
287
  * Retire a provisioned Durable Object namespace whose class has
270
288
  * been removed from code.
@@ -304,14 +322,14 @@ interface DurableObjectTransferredExportOptions {
304
322
  * Prepare to receive cross-Worker Durable Object transfer.
305
323
  * Once the source Worker's `transferred` export is deployed, this entry becomes a normal live `durable-object` export.
306
324
  */
307
- type DurableObjectExpectingTransferExportOptions = {
325
+ type DurableObjectExpectingTransferExportOptions<TContainer extends ContainerConfigExport | undefined = ContainerConfigExport | undefined> = {
308
326
  state: "expecting-transfer";
309
327
  /**
310
328
  * The source Worker for the two-phase cross-Worker transfer.
311
329
  */
312
330
  transferFrom: string;
313
- } & DurableObjectStorageOptions;
314
- type DurableObjectCreatedExport = DurableObjectCreatedExportOptions & {
331
+ } & DurableObjectStorageOptions<TContainer>;
332
+ type DurableObjectCreatedExport<TContainer extends ContainerConfigExport | undefined = ContainerConfigExport | undefined> = DurableObjectCreatedExportOptions<TContainer> & {
315
333
  type: "durable-object";
316
334
  };
317
335
  interface DurableObjectDeletedExport extends DurableObjectDeletedExportOptions {
@@ -323,7 +341,7 @@ interface DurableObjectRenamedExport extends DurableObjectRenamedExportOptions {
323
341
  interface DurableObjectTransferredExport extends DurableObjectTransferredExportOptions {
324
342
  type: "durable-object";
325
343
  }
326
- type DurableObjectExpectingTransferExport = DurableObjectExpectingTransferExportOptions & {
344
+ type DurableObjectExpectingTransferExport<TContainer extends ContainerConfigExport | undefined = ContainerConfigExport | undefined> = DurableObjectExpectingTransferExportOptions<TContainer> & {
327
345
  type: "durable-object";
328
346
  };
329
347
  type DurableObjectExportOptions = DurableObjectCreatedExportOptions | DurableObjectDeletedExportOptions | DurableObjectRenamedExportOptions | DurableObjectTransferredExportOptions | DurableObjectExpectingTransferExportOptions;
@@ -350,7 +368,7 @@ interface Exports {
350
368
  *
351
369
  * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
352
370
  */
353
- durableObject(options: DurableObjectCreatedExportOptions): DurableObjectCreatedExport;
371
+ durableObject<TContainer extends ContainerConfigExport | undefined = undefined>(options: DurableObjectCreatedExportOptions<TContainer>): DurableObjectCreatedExport<TContainer>;
354
372
  /**
355
373
  * Retire a provisioned Durable Object namespace whose class has been removed from code.
356
374
  */
@@ -367,7 +385,7 @@ interface Exports {
367
385
  * Prepare to receive cross-Worker Durable Object transfer.
368
386
  * The source Worker must follow up with a deployment containing a `transferred` export to commit the transfer.
369
387
  */
370
- durableObject(options: DurableObjectExpectingTransferExportOptions): DurableObjectExpectingTransferExport;
388
+ durableObject<TContainer extends ContainerConfigExport | undefined = undefined>(options: DurableObjectExpectingTransferExportOptions<TContainer>): DurableObjectExpectingTransferExport<TContainer>;
371
389
  durableObject(options: DurableObjectExportOptions): DurableObjectExports;
372
390
  /** Declares a WorkerEntrypoint export defined by this Worker. */
373
391
  worker(options?: WorkerEntrypointExportOptions): WorkerEntrypointExport;
@@ -377,12 +395,17 @@ interface Exports {
377
395
  *
378
396
  * @example
379
397
  * ```typescript
380
- * import { defineWorker, exports } from "@cloudflare/config";
398
+ * import { defineContainer, defineWorker, exports } from "@cloudflare/config";
399
+ *
400
+ * const myContainer = defineContainer({
401
+ * name: "my-container",
402
+ * image: { dockerfile: "./Dockerfile" },
403
+ * });
381
404
  *
382
405
  * export default defineWorker({
383
406
  * exports: {
384
407
  * MyDurableObject: exports.durableObject({ storage: "sqlite" }),
385
- * MyContainerDO: exports.durableObject({ storage: "sqlite", container: "my-container" }),
408
+ * MyContainerDO: exports.durableObject({ storage: "sqlite", container: myContainer }),
386
409
  * OldClass: exports.durableObject({ state: "deleted" }),
387
410
  * OldName: exports.durableObject({ state: "renamed", renamedTo: "NewName" }),
388
411
  * Outgoing: exports.durableObject({ state: "transferred", transferredTo: "target-worker" }),
@@ -572,6 +595,181 @@ type Trigger = ConnectTrigger | EmailTrigger | FetchTrigger | QueueConsumerTrigg
572
595
  * classes and tombstone lifecycle operations.
573
596
  */
574
597
  type Export = DurableObjectCreatedExport | DurableObjectDeletedExport | DurableObjectRenamedExport | DurableObjectTransferredExport | DurableObjectExpectingTransferExport | WorkerEntrypointExport;
598
+ /** An image source accepted in an authored Container configuration. */
599
+ type ContainerImage = {
600
+ /** The path to a Dockerfile. */
601
+ dockerfile: string;
602
+ /**
603
+ * Build context of the application.
604
+ *
605
+ * @default The directory containing `dockerfile`.
606
+ */
607
+ buildContext?: string;
608
+ /** Image variables available to the image at build time only. */
609
+ buildVars?: Record<string, string>;
610
+ } | {
611
+ /**
612
+ * Reference to an existing image.
613
+ *
614
+ * For supported registries, refer to
615
+ * https://developers.cloudflare.com/containers/guides/image-management/#use-pre-built-container-images
616
+ */
617
+ reference: string;
618
+ };
619
+ /** Fields shared by all Container application configurations. */
620
+ interface BaseContainerConfig {
621
+ /**
622
+ * Discriminates this config as a Container config.
623
+ *
624
+ * Injected automatically by `defineContainer`; only needs to be written by
625
+ * hand when authoring a raw config object without the helper.
626
+ */
627
+ type: "container";
628
+ /**
629
+ * Name of the application.
630
+ *
631
+ * This is also the identifier used to reference the Container from a Durable
632
+ * Object's `exports` entry via its `container` field.
633
+ */
634
+ name: string;
635
+ /** Configures observability for Container instances. */
636
+ observability?: {
637
+ /** Whether observability is enabled. */
638
+ enabled?: boolean;
639
+ logs?: {
640
+ /** Whether log collection is enabled. */
641
+ enabled?: boolean;
642
+ };
643
+ } & ({
644
+ /** Percentage of Container instances targeted for observability. */
645
+ targetInstancePercentage?: number;
646
+ targetInstanceCount?: never;
647
+ } | {
648
+ targetInstancePercentage?: never;
649
+ /** Number of Container instances targeted for observability. */
650
+ targetInstanceCount?: number;
651
+ });
652
+ /**
653
+ * Passed through without client-side validation or transformation.
654
+ *
655
+ * @hidden
656
+ */
657
+ unsafe?: Record<string, unknown>;
658
+ }
659
+ /** A Container application managed with a standard scheduling policy. */
660
+ interface StandardContainerConfig extends BaseContainerConfig {
661
+ /** The image to build or deploy. */
662
+ image: ContainerImage;
663
+ /**
664
+ * Maximum number of application instances.
665
+ *
666
+ * @default 20
667
+ */
668
+ maxInstances?: number;
669
+ /**
670
+ * The instance type to be used for the Container.
671
+ * Select from one of the following named instance types:
672
+ *
673
+ * - lite: 1/16 vCPU, 256 MiB memory, and 2 GB disk
674
+ * - basic: 1/4 vCPU, 1 GiB memory, and 4 GB disk
675
+ * - standard-1: 1/2 vCPU, 4 GiB memory, and 8 GB disk
676
+ * - standard-2: 1 vCPU, 6 GiB memory, and 12 GB disk
677
+ * - standard-3: 2 vCPU, 8 GiB memory, and 16 GB disk
678
+ * - standard-4: 4 vCPU, 12 GiB memory, and 20 GB disk
679
+ *
680
+ * Customers on an enterprise plan have the additional option to set custom
681
+ * limits.
682
+ *
683
+ * @default "lite"
684
+ */
685
+ instanceType?: "basic" | "lite" | "standard-1" | "standard-2" | "standard-3" | "standard-4" | {
686
+ /** @default 0.0625 (1/16 vCPU) */
687
+ vcpu?: number;
688
+ /** @default 256 MiB */
689
+ memoryMib?: number;
690
+ /** @default 2 GB */
691
+ diskMb?: number;
692
+ };
693
+ /**
694
+ * The scheduling policy of the application.
695
+ *
696
+ * @default "default"
697
+ */
698
+ schedulingPolicy?: "default" | "regional";
699
+ ssh?: {
700
+ /**
701
+ * If enabled, users with write access to the Container application can
702
+ * connect to it over SSH.
703
+ *
704
+ * @default false
705
+ */
706
+ enabled: boolean;
707
+ /**
708
+ * Port that the SSH service is running on.
709
+ *
710
+ * @default 22
711
+ */
712
+ port?: number;
713
+ };
714
+ /** SSH public keys to put in the Container's authorized_keys file. */
715
+ authorizedKeys?: Array<{
716
+ name: string;
717
+ publicKey: string;
718
+ }>;
719
+ /** Scheduling constraints for Container placement. */
720
+ constraints?: {
721
+ /** Limit Container placement to specific geographic regions. */
722
+ regions?: Array<"ENAM" | "WNAM" | "EEUR" | "WEUR" | "APAC" | "SAM" | "ME" | "OC" | "AFR">;
723
+ /** Restrict Containers to compliance boundaries. */
724
+ jurisdiction?: "eu" | "fedramp";
725
+ };
726
+ rollout?: {
727
+ /**
728
+ * How a rollout should be created. It supports the following modes:
729
+ *
730
+ * - full-auto: The Container application will be rolled out fully
731
+ * automatically.
732
+ * - none: The Container application will not have a rollout or update.
733
+ * - full-manual: The Container application will be rolled out by manually
734
+ * progressing through the rollout steps.
735
+ *
736
+ * @default "full-auto"
737
+ * @hidden
738
+ */
739
+ kind?: "full-auto" | "none" | "full-manual";
740
+ /**
741
+ * Configures what percentage of instances should be updated at each step of
742
+ * a rollout. You can specify this as a single number or an array of numbers.
743
+ *
744
+ * If this is a single number, each step will progress by that percentage.
745
+ * The options are 5, 10, 20, 25, 50, or 100.
746
+ *
747
+ * If this is an array, each step specifies the cumulative rollout progress.
748
+ * The final step must be 100.
749
+ *
750
+ * @default [10, 100]
751
+ */
752
+ stepPercentage?: number | number[];
753
+ /**
754
+ * Configures the grace period, in seconds, for active instances before they
755
+ * are shut down during a rollout.
756
+ *
757
+ * @default 0
758
+ */
759
+ activeGracePeriod?: number;
760
+ };
761
+ }
762
+ /** A Container application managed by a Durable Object. */
763
+ interface DurableObjectContainerConfig extends BaseContainerConfig {
764
+ schedulingPolicy: "durable-object";
765
+ /** Named images that the Durable Object can start. */
766
+ images?: Record<string, ContainerImage>;
767
+ }
768
+ /**
769
+ * Container application configuration. This is the input shape passed to
770
+ * `defineContainer` and is validated at runtime by `InputContainerSchema`.
771
+ */
772
+ type ContainerConfig = DurableObjectContainerConfig | StandardContainerConfig;
575
773
  /**
576
774
  * Worker configuration. This is the input shape passed to
577
775
  * [`defineWorker`](https://developers.cloudflare.com/workers/wrangler/configuration/).
@@ -1608,5 +1806,5 @@ declare const defineSettings: <const TInput extends ConfigInput<SettingsConfigIn
1608
1806
  } ? ConfigWithType<TInput, "settings"> : never;
1609
1807
  //#endregion
1610
1808
  //#endregion
1611
- export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, ArtifactsBinding, AssetsBinding, BindingDevOptions, Bindings, BrowserBinding, ConfigContext, ConnectTrigger, 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, SettingsConfig, SettingsConfigExport, SettingsConfigInput, StreamBinding$1 as StreamBinding, TextBinding, Triggers, TypedAiBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, UnsafeBinding, UnwrapConfig, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WebSearchBinding, WorkerBinding, WorkerConfig, WorkerConfigExport, WorkerConfigInput, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerLoaderBinding, WorkerReference, WorkflowBinding, bindings, defineSettings, defineWorker, exports, triggers };
1809
+ export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, ArtifactsBinding, AssetsBinding, BindingDevOptions, Bindings, BrowserBinding, ConfigContext, ConnectTrigger, ContainerConfig, ContainerConfigExport, ContainerConfigInput, 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, SettingsConfig, SettingsConfigExport, SettingsConfigInput, StreamBinding$1 as StreamBinding, TextBinding, Triggers, TypedAiBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, UnsafeBinding, UnwrapConfig, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WebSearchBinding, WorkerBinding, WorkerConfig, WorkerConfigExport, WorkerConfigInput, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerLoaderBinding, WorkerReference, WorkflowBinding, bindings, defineContainer, defineSettings, defineWorker, exports, triggers };
1612
1810
  //# sourceMappingURL=experimental-config.d.mts.map