nitropack-nightly 2.11.14-20250704-082224.ac3df32d → 2.11.14-20250704-090507.e6624f7b

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.
@@ -1,4 +1,4 @@
1
- const version = "2.11.14-20250704-082224.ac3df32d";
1
+ const version = "2.11.14-20250704-090507.e6624f7b";
2
2
 
3
3
  const compatibilityChanges = [
4
4
  {
@@ -35,6 +35,7 @@ export type Route = SimpleRoute | ZoneIdRoute | ZoneNameRoute | CustomDomainRout
35
35
  export type CloudchamberConfig = {
36
36
  image?: string;
37
37
  location?: string;
38
+ instance_type?: "dev" | "basic" | "standard";
38
39
  vcpu?: number;
39
40
  memory?: string;
40
41
  ipv4?: boolean;
@@ -43,11 +44,59 @@ export type CloudchamberConfig = {
43
44
  * Configuration for a container application
44
45
  */
45
46
  export type ContainerApp = {
46
- name: string;
47
- instances: number;
48
- scheduling_policy?: "regional" | "moon";
49
- configuration: {
50
- image: string;
47
+ /**
48
+ * Name of the application
49
+ * @optional Defaults to `worker_name-class_name` if not specified.
50
+ */
51
+ name?: string;
52
+ /**
53
+ * Number of application instances
54
+ * @deprecated
55
+ * @hidden
56
+ */
57
+ instances?: number;
58
+ /**
59
+ * Number of maximum application instances.
60
+ * @optional
61
+ */
62
+ max_instances?: number;
63
+ /**
64
+ * The path to a Dockerfile, or an image URI for the Cloudflare registry.
65
+ */
66
+ image: string;
67
+ /**
68
+ * Build context of the application.
69
+ * @optional - defaults to the directory of `image`.
70
+ */
71
+ image_build_context?: string;
72
+ /**
73
+ * Image variables to be passed along the image at build time.
74
+ * @optional
75
+ */
76
+ image_vars?: Record<string, string>;
77
+ /**
78
+ * The class name of the Durable Object the container is connected to.
79
+ */
80
+ class_name: string;
81
+ /**
82
+ * The scheduling policy of the application
83
+ * @optional
84
+ * @default "default"
85
+ */
86
+ scheduling_policy?: "regional" | "moon" | "default";
87
+ /**
88
+ * The instance type to be used for the container. This sets preconfigured options for vcpu and memory
89
+ * @optional
90
+ */
91
+ instance_type?: "dev" | "basic" | "standard";
92
+ /**
93
+ * @deprecated Use top level `containers` fields instead.
94
+ * `configuration.image` should be `image`
95
+ * `configuration.disk` should be set via `instance_type`
96
+ * @hidden
97
+ */
98
+ configuration?: {
99
+ image?: string;
51
100
  labels?: {
52
101
  name: string;
53
102
  value: string;
@@ -57,12 +106,41 @@ export type ContainerApp = {
57
106
  type: "env";
58
107
  secret: string;
59
108
  }[];
109
+ disk?: {
110
+ size: string;
111
+ };
60
112
  };
113
+ /**
114
+ * Scheduling constraints
115
+ * @hidden
116
+ */
61
117
  constraints?: {
62
118
  regions?: string[];
63
119
  cities?: string[];
64
120
  tier?: number;
65
121
  };
122
+ /**
123
+ * @deprecated use the `class_name` field instead.
124
+ * @hidden
125
+ */
126
+ durable_objects?: {
127
+ namespace_id: string;
128
+ };
129
+ /**
130
+ * How a rollout should be done, defining the size of it
131
+ * @optional
132
+ * @default 25
133
+ * */
134
+ rollout_step_percentage?: number;
135
+ /**
136
+ * How a rollout should be created. It supports the following modes:
137
+ * - full_auto: The container application will be rolled out fully automatically.
138
+ * - none: The container application won't have a roll out or update.
139
+ * - manual: The container application will be rollout fully by manually actioning progress steps.
140
+ * @optional
141
+ * @default "full_auto"
142
+ */
143
+ rollout_kind?: "full_auto" | "none" | "full_manual";
66
144
  };
67
145
  /**
68
146
  * Configuration in wrangler for Durable Object Migrations
@@ -107,7 +185,7 @@ interface EnvironmentInheritable {
107
185
  * A date in the form yyyy-mm-dd, which will be used to determine
108
186
  * which version of the Workers runtime is used.
109
187
  *
110
- * More details at https://developers.cloudflare.com/workers/platform/compatibility-dates
188
+ * More details at https://developers.cloudflare.com/workers/configuration/compatibility-dates
111
189
  *
112
190
  * @inheritable
113
191
  */
@@ -116,7 +194,7 @@ interface EnvironmentInheritable {
116
194
  * A list of flags that enable features from upcoming features of
117
195
  * the Workers runtime, usually used together with compatibility_date.
118
196
  *
119
- * More details at https://developers.cloudflare.com/workers/platform/compatibility-flags
197
+ * More details at https://developers.cloudflare.com/workers/configuration/compatibility-flags/
120
198
  *
121
199
  * @default []
122
200
  * @inheritable
@@ -156,6 +234,7 @@ interface EnvironmentInheritable {
156
234
  * Whether we use <name>.<subdomain>.workers.dev to
157
235
  * test and deploy your Worker.
158
236
  *
237
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workersdev
159
238
  *
160
239
  * @default true
161
240
  * @breaking
@@ -176,6 +255,8 @@ interface EnvironmentInheritable {
176
255
  *
177
256
  * Only required when workers_dev is false, and there's no scheduled Worker (see `triggers`)
178
257
  *
258
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#types-of-routes
259
+ *
179
260
  * @inheritable
180
261
  */
181
262
  routes: Route[] | undefined;
@@ -227,28 +308,20 @@ interface EnvironmentInheritable {
227
308
  *
228
309
  * More details here https://developers.cloudflare.com/workers/platform/cron-triggers
229
310
  *
230
- * @default {crons:[]}
311
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers
312
+ *
313
+ * @default {crons: undefined}
231
314
  * @inheritable
232
315
  */
233
316
  triggers: {
234
- crons: string[];
317
+ crons: string[] | undefined;
235
318
  };
236
- /**
237
- * Specifies the Usage Model for your Worker. There are two options -
238
- * [bundled](https://developers.cloudflare.com/workers/platform/limits#bundled-usage-model) and
239
- * [unbound](https://developers.cloudflare.com/workers/platform/limits#unbound-usage-model).
240
- * For newly created Workers, if the Usage Model is omitted
241
- * it will be set to the [default Usage Model set on the account](https://dash.cloudflare.com/?account=workers/default-usage-model).
242
- * For existing Workers, if the Usage Model is omitted, it will be
243
- * set to the Usage Model configured in the dashboard for that Worker.
244
- *
245
- * @inheritable
246
- */
247
- usage_model: "bundled" | "unbound" | undefined;
248
319
  /**
249
320
  * Specify limits for runtime behavior.
250
321
  * Only supported for the "standard" Usage Model
251
322
  *
323
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#limits
324
+ *
252
325
  * @inheritable
253
326
  */
254
327
  limits: UserLimits | undefined;
@@ -258,6 +331,8 @@ interface EnvironmentInheritable {
258
331
  * to use Text, Data, and CompiledWasm modules, or when you wish to
259
332
  * have a .js file be treated as an ESModule instead of CommonJS.
260
333
  *
334
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#bundling
335
+ *
261
336
  * @inheritable
262
337
  */
263
338
  rules: Rule[];
@@ -267,6 +342,8 @@ interface EnvironmentInheritable {
267
342
  * Refer to the [custom builds documentation](https://developers.cloudflare.com/workers/cli-wrangler/configuration#build)
268
343
  * for more details.
269
344
  *
345
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#custom-builds
346
+ *
270
347
  * @default {watch_dir:"./src"}
271
348
  */
272
349
  build: {
@@ -276,11 +353,6 @@ interface EnvironmentInheritable {
276
353
  cwd?: string;
277
354
  /** The directory to watch for changes while using wrangler dev, defaults to the current working directory */
278
355
  watch_dir?: string | string[];
279
- /**
280
- * Deprecated field previously used to configure the build and upload of the script.
281
- * @deprecated
282
- */
283
- upload?: DeprecatedUpload;
284
356
  };
285
357
  /**
286
358
  * Skip internal build steps and directly deploy script
@@ -293,23 +365,20 @@ interface EnvironmentInheritable {
293
365
  */
294
366
  minify: boolean | undefined;
295
367
  /**
296
- * Add polyfills for node builtin modules and globals
368
+ * Set the `name` property to the original name for functions and classes renamed during minification.
369
+ *
370
+ * See https://esbuild.github.io/api/#keep-names
371
+ *
372
+ * @default true
297
373
  * @inheritable
298
374
  */
299
- node_compat: boolean | undefined;
375
+ keep_names: boolean | undefined;
300
376
  /**
301
377
  * Designates this Worker as an internal-only "first-party" Worker.
302
378
  *
303
379
  * @inheritable
304
380
  */
305
381
  first_party_worker: boolean | undefined;
306
- /**
307
- * TODO: remove this as it has been deprecated.
308
- *
309
- * This is just here for now because the `route` commands use it.
310
- * So we need to include it in this type so it is available.
311
- */
312
- zone_id?: string;
313
382
  /**
314
383
  * List of bindings that you will send to logfwdr
315
384
  *
@@ -337,6 +406,9 @@ interface EnvironmentInheritable {
337
406
  logpush: boolean | undefined;
338
407
  /**
339
408
  * Include source maps when uploading this worker.
409
+ *
410
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps
411
+ *
340
412
  * @inheritable
341
413
  */
342
414
  upload_source_maps: boolean | undefined;
@@ -356,15 +428,26 @@ interface EnvironmentInheritable {
356
428
  *
357
429
  * More details at https://developers.cloudflare.com/workers/frameworks/
358
430
  *
431
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#assets
432
+ *
359
433
  * @inheritable
360
434
  */
361
435
  assets: Assets | undefined;
362
436
  /**
363
437
  * Specify the observability behavior of the Worker.
364
438
  *
439
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability
440
+ *
365
441
  * @inheritable
366
442
  */
367
443
  observability: Observability | undefined;
444
+ /**
445
+ * Specify the compliance region mode of the Worker.
446
+ *
447
+ * Although if the user does not specify a compliance region, the default is `public`,
448
+ * it can be set to `undefined` in configuration to delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable.
449
+ */
450
+ compliance_region: "public" | "fedramp_high" | undefined;
368
451
  }
369
452
  export type DurableObjectBindings = {
370
453
  /** The name of the binding used to refer to the Durable Object */
@@ -385,6 +468,8 @@ export type WorkflowBinding = {
385
468
  class_name: string;
386
469
  /** The script where the Workflow is defined (if it's external to this Worker) */
387
470
  script_name?: string;
471
+ /** Whether the Workflow should be remote or not (only available under `--x-remote-bindings`) */
472
+ experimental_remote?: boolean;
388
473
  };
389
474
  /**
390
475
  * The `EnvironmentNonInheritable` interface declares all the configuration fields for an environment
@@ -410,6 +495,8 @@ export interface EnvironmentNonInheritable {
410
495
  * NOTE: This field is not automatically inherited from the top level environment,
411
496
  * and so must be specified in every named environment.
412
497
  *
498
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
499
+ *
413
500
  * @default {}
414
501
  * @nonInheritable
415
502
  */
@@ -423,6 +510,8 @@ export interface EnvironmentNonInheritable {
423
510
  * NOTE: This field is not automatically inherited from the top level environment,
424
511
  * and so must be specified in every named environment.
425
512
  *
513
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
514
+ *
426
515
  * @default {bindings:[]}
427
516
  * @nonInheritable
428
517
  */
@@ -451,19 +540,14 @@ export interface EnvironmentNonInheritable {
451
540
  cloudchamber: CloudchamberConfig;
452
541
  /**
453
542
  * Container related configuration
543
+ *
544
+ * NOTE: This field is not automatically inherited from the top level environment,
545
+ * and so must be specified in every named environment.
546
+ *
547
+ * @default []
548
+ * @nonInheritable
454
549
  */
455
- containers: {
456
- /**
457
- * Container app configuration
458
- *
459
- * NOTE: This field is not automatically inherited from the top level environment,
460
- * and so must be specified in every named environment.
461
- *
462
- * @default {}
463
- * @nonInheritable
464
- */
465
- app: ContainerApp[];
466
- };
550
+ containers?: ContainerApp[];
467
551
  /**
468
552
  * These specify any Workers KV Namespaces you want to
469
553
  * access from inside your Worker.
@@ -474,6 +558,8 @@ export interface EnvironmentNonInheritable {
474
558
  * NOTE: This field is not automatically inherited from the top level environment,
475
559
  * and so must be specified in every named environment.
476
560
  *
561
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces
562
+ *
477
563
  * @default []
478
564
  * @nonInheritable
479
565
  */
@@ -484,6 +570,8 @@ export interface EnvironmentNonInheritable {
484
570
  id?: string;
485
571
  /** The ID of the KV namespace used during `wrangler dev` */
486
572
  preview_id?: string;
573
+ /** Whether the KV namespace should be remote or not (only available under `--x-remote-bindings`) */
574
+ experimental_remote?: boolean;
487
575
  }[];
488
576
  /**
489
577
  * These specify bindings to send email from inside your Worker.
@@ -491,6 +579,8 @@ export interface EnvironmentNonInheritable {
491
579
  * NOTE: This field is not automatically inherited from the top level environment,
492
580
  * and so must be specified in every named environment.
493
581
  *
582
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#email-bindings
583
+ *
494
584
  * @default []
495
585
  * @nonInheritable
496
586
  */
@@ -508,6 +598,8 @@ export interface EnvironmentNonInheritable {
508
598
  * NOTE: This field is not automatically inherited from the top level environment,
509
599
  * and so must be specified in every named environment.
510
600
  *
601
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#queues
602
+ *
511
603
  * @default {consumers:[],producers:[]}
512
604
  * @nonInheritable
513
605
  */
@@ -520,6 +612,8 @@ export interface EnvironmentNonInheritable {
520
612
  queue: string;
521
613
  /** The number of seconds to wait before delivering a message */
522
614
  delivery_delay?: number;
615
+ /** Whether the Queue producer should be remote or not (only available under `--x-remote-bindings`) */
616
+ experimental_remote?: boolean;
523
617
  }[];
524
618
  /** Consumer configuration */
525
619
  consumers?: {
@@ -549,6 +643,8 @@ export interface EnvironmentNonInheritable {
549
643
  * NOTE: This field is not automatically inherited from the top level environment,
550
644
  * and so must be specified in every named environment.
551
645
  *
646
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets
647
+ *
552
648
  * @default []
553
649
  * @nonInheritable
554
650
  */
@@ -561,6 +657,8 @@ export interface EnvironmentNonInheritable {
561
657
  preview_bucket_name?: string;
562
658
  /** The jurisdiction that the bucket exists in. Default if not present. */
563
659
  jurisdiction?: string;
660
+ /** Whether the R2 bucket should be remote or not (only available under `--x-remote-bindings`) */
661
+ experimental_remote?: boolean;
564
662
  }[];
565
663
  /**
566
664
  * Specifies D1 databases that are bound to this Worker environment.
@@ -568,6 +666,8 @@ export interface EnvironmentNonInheritable {
568
666
  * NOTE: This field is not automatically inherited from the top level environment,
569
667
  * and so must be specified in every named environment.
570
668
  *
669
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases
670
+ *
571
671
  * @default []
572
672
  * @nonInheritable
573
673
  */
@@ -586,6 +686,8 @@ export interface EnvironmentNonInheritable {
586
686
  migrations_dir?: string;
587
687
  /** Internal use only. */
588
688
  database_internal_env?: string;
689
+ /** Whether the D1 database should be remote or not (only available under `--x-remote-bindings`) */
690
+ experimental_remote?: boolean;
589
691
  }[];
590
692
  /**
591
693
  * Specifies Vectorize indexes that are bound to this Worker environment.
@@ -593,6 +695,8 @@ export interface EnvironmentNonInheritable {
593
695
  * NOTE: This field is not automatically inherited from the top level environment,
594
696
  * and so must be specified in every named environment.
595
697
  *
698
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes
699
+ *
596
700
  * @default []
597
701
  * @nonInheritable
598
702
  */
@@ -601,6 +705,8 @@ export interface EnvironmentNonInheritable {
601
705
  binding: string;
602
706
  /** The name of the index. */
603
707
  index_name: string;
708
+ /** Whether the Vectorize index should be remote or not (only available under `--x-remote-bindings`) */
709
+ experimental_remote?: boolean;
604
710
  }[];
605
711
  /**
606
712
  * Specifies Hyperdrive configs that are bound to this Worker environment.
@@ -608,6 +714,8 @@ export interface EnvironmentNonInheritable {
608
714
  * NOTE: This field is not automatically inherited from the top level environment,
609
715
  * and so must be specified in every named environment.
610
716
  *
717
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive
718
+ *
611
719
  * @default []
612
720
  * @nonInheritable
613
721
  */
@@ -625,6 +733,8 @@ export interface EnvironmentNonInheritable {
625
733
  * NOTE: This field is not automatically inherited from the top level environment,
626
734
  * and so must be specified in every named environment.
627
735
  *
736
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
737
+ *
628
738
  * @default []
629
739
  * @nonInheritable
630
740
  */
@@ -637,6 +747,10 @@ export interface EnvironmentNonInheritable {
637
747
  environment?: string;
638
748
  /** Optionally, the entrypoint (named export) of the service to bind to. */
639
749
  entrypoint?: string;
750
+ /** Optional properties that will be made available to the service via ctx.props. */
751
+ props?: Record<string, unknown>;
752
+ /** Whether the service binding should be remote or not (only available under `--x-remote-bindings`) */
753
+ experimental_remote?: boolean;
640
754
  }[] | undefined;
641
755
  /**
642
756
  * Specifies analytics engine datasets that are bound to this Worker environment.
@@ -644,6 +758,8 @@ export interface EnvironmentNonInheritable {
644
758
  * NOTE: This field is not automatically inherited from the top level environment,
645
759
  * and so must be specified in every named environment.
646
760
  *
761
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets
762
+ *
647
763
  * @default []
648
764
  * @nonInheritable
649
765
  */
@@ -659,11 +775,15 @@ export interface EnvironmentNonInheritable {
659
775
  * NOTE: This field is not automatically inherited from the top level environment,
660
776
  * and so must be specified in every named environment.
661
777
  *
778
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering
779
+ *
662
780
  * @default {}
663
781
  * @nonInheritable
664
782
  */
665
783
  browser: {
666
784
  binding: string;
785
+ /** Whether the Browser binding should be remote or not (only available under `--x-remote-bindings`) */
786
+ experimental_remote?: boolean;
667
787
  } | undefined;
668
788
  /**
669
789
  * Binding to the AI project.
@@ -671,12 +791,32 @@ export interface EnvironmentNonInheritable {
671
791
  * NOTE: This field is not automatically inherited from the top level environment,
672
792
  * and so must be specified in every named environment.
673
793
  *
794
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai
795
+ *
674
796
  * @default {}
675
797
  * @nonInheritable
676
798
  */
677
799
  ai: {
678
800
  binding: string;
679
801
  staging?: boolean;
802
+ /** Whether the AI binding should be remote or not (only available under `--x-remote-bindings`) */
803
+ experimental_remote?: boolean;
804
+ } | undefined;
805
+ /**
806
+ * Binding to Cloudflare Images
807
+ *
808
+ * NOTE: This field is not automatically inherited from the top level environment,
809
+ * and so must be specified in every named environment.
810
+ *
811
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#images
812
+ *
813
+ * @default {}
814
+ * @nonInheritable
815
+ */
816
+ images: {
817
+ binding: string;
818
+ /** Whether the Images binding should be remote or not (only available under `--x-remote-bindings`) */
819
+ experimental_remote?: boolean;
680
820
  } | undefined;
681
821
  /**
682
822
  * Binding to the Worker Version's metadata
@@ -730,6 +870,8 @@ export interface EnvironmentNonInheritable {
730
870
  * NOTE: This field is not automatically inherited from the top level environment,
731
871
  * and so must be specified in every named environment.
732
872
  *
873
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates
874
+ *
733
875
  * @default []
734
876
  * @nonInheritable
735
877
  */
@@ -738,6 +880,8 @@ export interface EnvironmentNonInheritable {
738
880
  binding: string;
739
881
  /** The uuid of the uploaded mTLS certificate */
740
882
  certificate_id: string;
883
+ /** Whether the mtls fetcher should be remote or not (only available under `--x-remote-bindings`) */
884
+ experimental_remote?: boolean;
741
885
  }[];
742
886
  /**
743
887
  * Specifies a list of Tail Workers that are bound to this Worker environment
@@ -755,6 +899,8 @@ export interface EnvironmentNonInheritable {
755
899
  * NOTE: This field is not automatically inherited from the top level environment,
756
900
  * and so must be specified in every named environment.
757
901
  *
902
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms
903
+ *
758
904
  * @default []
759
905
  * @nonInheritable
760
906
  */
@@ -765,6 +911,8 @@ export interface EnvironmentNonInheritable {
765
911
  namespace: string;
766
912
  /** Details about the outbound Worker which will handle outbound requests from your namespace */
767
913
  outbound?: DispatchNamespaceOutbound;
914
+ /** Whether the Dispatch Namespace should be remote or not (only available under `--x-remote-bindings`) */
915
+ experimental_remote?: boolean;
768
916
  }[];
769
917
  /**
770
918
  * Specifies list of Pipelines bound to this Worker environment
@@ -781,68 +929,38 @@ export interface EnvironmentNonInheritable {
781
929
  /** Name of the Pipeline to bind */
782
930
  pipeline: string;
783
931
  }[];
784
- }
785
- /**
786
- * The environment configuration properties that have been deprecated.
787
- */
788
- interface EnvironmentDeprecated {
789
- /**
790
- * The zone ID of the zone you want to deploy to. You can find this
791
- * in your domain page on the dashboard.
792
- *
793
- * @deprecated This is unnecessary since we can deduce this from routes directly.
794
- */
795
- zone_id?: string;
796
932
  /**
797
- * Legacy way of defining KVNamespaces that is no longer supported.
933
+ * Specifies Secret Store bindings that are bound to this Worker environment.
798
934
  *
799
- * @deprecated DO NOT USE. This was a legacy bug from Wrangler v1, that we do not want to support.
800
- */
801
- "kv-namespaces"?: string;
802
- /**
803
- * A list of services that your Worker should be bound to.
935
+ * NOTE: This field is not automatically inherited from the top level environment,
936
+ * and so must be specified in every named environment.
804
937
  *
805
938
  * @default []
806
- * @deprecated DO NOT USE. We'd added this to test the new service binding system, but the proper way to test experimental features is to use `unsafe.bindings` configuration.
939
+ * @nonInheritable
807
940
  */
808
- experimental_services?: {
809
- /** The binding name used to refer to the Service */
810
- name: string;
811
- /** The name of the Service being bound */
812
- service: string;
813
- /** The Service's environment */
814
- environment: string;
941
+ secrets_store_secrets: {
942
+ /** The binding name used to refer to the bound service. */
943
+ binding: string;
944
+ /** Id of the secret store */
945
+ store_id: string;
946
+ /** Name of the secret */
947
+ secret_name: string;
815
948
  }[];
816
- }
817
- /**
818
- * Deprecated upload configuration.
819
- */
820
- export interface DeprecatedUpload {
821
949
  /**
822
- * The format of the Worker script.
823
- *
824
- * @deprecated We infer the format automatically now.
825
- */
826
- format?: "modules" | "service-worker";
827
- /**
828
- * The directory you wish to upload your Worker from,
829
- * relative to the Wrangler configuration file.
830
- *
831
- * Defaults to the directory containing the Wrangler configuration file.
950
+ * **DO NOT USE**. Hello World Binding Config to serve as an explanatory example.
832
951
  *
833
- * @deprecated
834
- */
835
- dir?: string;
836
- /**
837
- * The path to the Worker script, relative to `upload.dir`.
952
+ * NOTE: This field is not automatically inherited from the top level environment,
953
+ * and so must be specified in every named environment.
838
954
  *
839
- * @deprecated This will be replaced by a command line argument.
840
- */
841
- main?: string;
842
- /**
843
- * @deprecated This is now defined at the top level `rules` field.
955
+ * @default []
956
+ * @nonInheritable
844
957
  */
845
- rules?: Environment["rules"];
958
+ unsafe_hello_world: {
959
+ /** The binding name used to refer to the bound service. */
960
+ binding: string;
961
+ /** Whether the timer is enabled */
962
+ enable_timer?: boolean;
963
+ }[];
846
964
  }
847
965
  /**
848
966
  * The raw environment configuration that we read from the config file.
@@ -850,7 +968,7 @@ export interface DeprecatedUpload {
850
968
  * All the properties are optional, and will be replaced with defaults in the configuration that
851
969
  * is used in the rest of the codebase.
852
970
  */
853
- export type RawEnvironment = Partial<Environment> & EnvironmentDeprecated;
971
+ export type RawEnvironment = Partial<Environment>;
854
972
  /**
855
973
  * A bundling resolver rule, defining the modules type for paths that match the specified globs.
856
974
  */
@@ -862,7 +980,7 @@ export type Rule = {
862
980
  /**
863
981
  * The possible types for a `Rule`.
864
982
  */
865
- export type ConfigModuleRuleType = "ESModule" | "CommonJS" | "CompiledWasm" | "Text" | "Data" | "PythonModule" | "PythonRequirement" | "NodeJsCompatModule";
983
+ export type ConfigModuleRuleType = "ESModule" | "CommonJS" | "CompiledWasm" | "Text" | "Data" | "PythonModule" | "PythonRequirement";
866
984
  export type TailConsumer = {
867
985
  /** The name of the service tail events will be forwarded to. */
868
986
  service: string;
@@ -891,12 +1009,11 @@ export type Assets = {
891
1009
  /** How to handle requests that do not match an asset. */
892
1010
  not_found_handling?: "single-page-application" | "404-page" | "none";
893
1011
  /**
894
- * If true, route every request to the User Worker, whether or not it matches an asset.
895
- * If false, then respond to requests that match an asset with that asset directly.
896
- * */
897
- run_worker_first?: boolean;
898
- /** Deprecated; Inverse of run_worker_first. Should use run_worker_first instead */
899
- experimental_serve_directly?: boolean;
1012
+ * Matches will be routed to the User Worker, and matches to negative rules will go to the Asset Worker.
1013
+ *
1014
+ * Can also be `true`, indicating that every request should be routed to the User Worker.
1015
+ */
1016
+ run_worker_first?: string[] | boolean;
900
1017
  };
901
1018
  export interface Observability {
902
1019
  /** If observability is enabled for this Worker */
@@ -911,4 +1028,11 @@ export interface Observability {
911
1028
  invocation_logs?: boolean;
912
1029
  };
913
1030
  }
1031
+ export type DockerConfiguration = {
1032
+ /** Socket used by miniflare to communicate with Docker */
1033
+ socketPath: string;
1034
+ };
1035
+ export type ContainerEngine = {
1036
+ localDocker: DockerConfiguration;
1037
+ } | string;
914
1038
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitropack-nightly",
3
- "version": "2.11.14-20250704-082224.ac3df32d",
3
+ "version": "2.11.14-20250704-090507.e6624f7b",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "repository": "nitrojs/nitro",
6
6
  "license": "MIT",