wrangler 0.0.0-e3791f7d8 → 0.0.0-e39a45ffa

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.
@@ -6,7 +6,6 @@ import type { DispatchFetch } from 'miniflare';
6
6
  import { Duplex } from 'stream';
7
7
  import { EventEmitter } from 'events';
8
8
  import { EventEmitter as EventEmitter_2 } from 'node:events';
9
- import { IncomingMessage } from 'http';
10
9
  import type { IncomingRequestCfProperties } from '@cloudflare/workers-types/experimental';
11
10
  import { IpcNetConnectOpts } from 'net';
12
11
  import type { Json } from 'miniflare';
@@ -14,6 +13,7 @@ import type { MessagePort as MessagePort_2 } from 'worker_threads';
14
13
  import type { Metafile } from 'esbuild';
15
14
  import { Miniflare } from 'miniflare';
16
15
  import type { MiniflareOptions } from 'miniflare';
16
+ import type { MixedModeConnectionString } from 'miniflare';
17
17
  import type { ModuleRule } from 'miniflare';
18
18
  import { Mutex } from 'miniflare';
19
19
  import type { NodeJSCompatMode } from 'miniflare';
@@ -21,8 +21,6 @@ import { Readable } from 'stream';
21
21
  import { ReadableStream as ReadableStream_2 } from 'stream/web';
22
22
  import type { Request as Request_3 } from 'miniflare';
23
23
  import { Response as Response_3 } from 'miniflare';
24
- import { Server } from 'http';
25
- import { ServerResponse } from 'http';
26
24
  import { Socket } from 'net';
27
25
  import { TcpNetConnectOpts } from 'net';
28
26
  import { TLSSocket } from 'tls';
@@ -77,17 +75,140 @@ declare type ApiCredentials = {
77
75
  declare type AssetConfig = z.infer<typeof AssetConfigSchema>;
78
76
 
79
77
  declare const AssetConfigSchema: z.ZodObject<{
78
+ account_id: z.ZodOptional<z.ZodNumber>;
79
+ script_id: z.ZodOptional<z.ZodNumber>;
80
+ debug: z.ZodOptional<z.ZodBoolean>;
81
+ compatibility_date: z.ZodOptional<z.ZodString>;
82
+ compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
80
83
  html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
81
84
  not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
82
- serve_directly: z.ZodOptional<z.ZodBoolean>;
85
+ redirects: z.ZodOptional<z.ZodObject<{
86
+ version: z.ZodLiteral<1>;
87
+ staticRules: z.ZodRecord<z.ZodString, z.ZodObject<{
88
+ status: z.ZodNumber;
89
+ to: z.ZodString;
90
+ lineNumber: z.ZodNumber;
91
+ }, "strip", z.ZodTypeAny, {
92
+ status?: number;
93
+ to?: string;
94
+ lineNumber?: number;
95
+ }, {
96
+ status?: number;
97
+ to?: string;
98
+ lineNumber?: number;
99
+ }>>;
100
+ rules: z.ZodRecord<z.ZodString, z.ZodObject<{
101
+ status: z.ZodNumber;
102
+ to: z.ZodString;
103
+ }, "strip", z.ZodTypeAny, {
104
+ status?: number;
105
+ to?: string;
106
+ }, {
107
+ status?: number;
108
+ to?: string;
109
+ }>>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ version?: 1;
112
+ staticRules?: Record<string, {
113
+ status?: number;
114
+ to?: string;
115
+ lineNumber?: number;
116
+ }>;
117
+ rules?: Record<string, {
118
+ status?: number;
119
+ to?: string;
120
+ }>;
121
+ }, {
122
+ version?: 1;
123
+ staticRules?: Record<string, {
124
+ status?: number;
125
+ to?: string;
126
+ lineNumber?: number;
127
+ }>;
128
+ rules?: Record<string, {
129
+ status?: number;
130
+ to?: string;
131
+ }>;
132
+ }>>;
133
+ headers: z.ZodOptional<z.ZodObject<{
134
+ version: z.ZodLiteral<2>;
135
+ rules: z.ZodRecord<z.ZodString, z.ZodObject<{
136
+ set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
137
+ unset: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ set?: Record<string, string>;
140
+ unset?: string[];
141
+ }, {
142
+ set?: Record<string, string>;
143
+ unset?: string[];
144
+ }>>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ version?: 2;
147
+ rules?: Record<string, {
148
+ set?: Record<string, string>;
149
+ unset?: string[];
150
+ }>;
151
+ }, {
152
+ version?: 2;
153
+ rules?: Record<string, {
154
+ set?: Record<string, string>;
155
+ unset?: string[];
156
+ }>;
157
+ }>>;
83
158
  }, "strip", z.ZodTypeAny, {
159
+ account_id?: number;
160
+ script_id?: number;
161
+ debug?: boolean;
162
+ compatibility_date?: string;
163
+ compatibility_flags?: string[];
84
164
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
85
165
  not_found_handling?: "none" | "single-page-application" | "404-page";
86
- serve_directly?: boolean;
166
+ redirects?: {
167
+ version?: 1;
168
+ staticRules?: Record<string, {
169
+ status?: number;
170
+ to?: string;
171
+ lineNumber?: number;
172
+ }>;
173
+ rules?: Record<string, {
174
+ status?: number;
175
+ to?: string;
176
+ }>;
177
+ };
178
+ headers?: {
179
+ version?: 2;
180
+ rules?: Record<string, {
181
+ set?: Record<string, string>;
182
+ unset?: string[];
183
+ }>;
184
+ };
87
185
  }, {
186
+ account_id?: number;
187
+ script_id?: number;
188
+ debug?: boolean;
189
+ compatibility_date?: string;
190
+ compatibility_flags?: string[];
88
191
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
89
192
  not_found_handling?: "none" | "single-page-application" | "404-page";
90
- serve_directly?: boolean;
193
+ redirects?: {
194
+ version?: 1;
195
+ staticRules?: Record<string, {
196
+ status?: number;
197
+ to?: string;
198
+ lineNumber?: number;
199
+ }>;
200
+ rules?: Record<string, {
201
+ status?: number;
202
+ to?: string;
203
+ }>;
204
+ };
205
+ headers?: {
206
+ version?: 2;
207
+ rules?: Record<string, {
208
+ set?: Record<string, string>;
209
+ unset?: string[];
210
+ }>;
211
+ };
91
212
  }>;
92
213
 
93
214
  declare type Assets = {
@@ -100,17 +221,19 @@ declare type Assets = {
100
221
  /** How to handle requests that do not match an asset. */
101
222
  not_found_handling?: "single-page-application" | "404-page" | "none";
102
223
  /**
103
- * If true, then respond to requests that match an asset with that asset directly.
104
- * If false, route every request to the User Worker, whether or not it matches an asset.
224
+ * If true, route every request to the User Worker, whether or not it matches an asset.
225
+ * If false, then respond to requests that match an asset with that asset directly.
105
226
  * */
106
- experimental_serve_directly?: boolean;
227
+ run_worker_first?: boolean;
107
228
  };
108
229
 
109
230
  declare type AssetsOptions = {
110
231
  directory: string;
111
232
  binding?: string;
112
- routingConfig: RoutingConfig;
233
+ routerConfig: RouterConfig;
113
234
  assetConfig: AssetConfig;
235
+ _redirects?: string;
236
+ _headers?: string;
114
237
  };
115
238
 
116
239
  declare type AsyncHook<T extends HookValues, Args extends unknown[] = []> = Hook<T, Args> | Hook<Promise<T>, Args>;
@@ -136,7 +259,7 @@ declare type BaseErrorEvent<Source = string, Data = undefined> = {
136
259
  data: Data;
137
260
  };
138
261
 
139
- declare type BinaryFile = File_2<Uint8Array>;
262
+ declare type BinaryFile = File_3<Uint8Array>;
140
263
 
141
264
  declare type BinaryType = 'blob' | 'arraybuffer'
142
265
 
@@ -155,11 +278,13 @@ declare type Binding = {
155
278
  source: BinaryFile;
156
279
  } | {
157
280
  type: "text_blob";
158
- source: File_2;
281
+ source: File_3;
159
282
  } | {
160
283
  type: "browser";
161
284
  } | {
162
285
  type: "ai";
286
+ } | {
287
+ type: "images";
163
288
  } | {
164
289
  type: "version_metadata";
165
290
  } | {
@@ -175,24 +300,26 @@ declare type Binding = {
175
300
  type: "r2_bucket";
176
301
  } & BindingOmit<CfR2Bucket>) | ({
177
302
  type: "d1";
178
- } & Omit<CfD1Database, "binding">) | ({
303
+ } & BindingOmit<CfD1Database>) | ({
179
304
  type: "vectorize";
180
- } & Omit<CfVectorize, "binding">) | ({
305
+ } & BindingOmit<CfVectorize>) | ({
181
306
  type: "hyperdrive";
182
- } & Omit<CfHyperdrive, "binding">) | ({
307
+ } & BindingOmit<CfHyperdrive>) | ({
183
308
  type: "service";
184
- } & Omit<CfService, "binding">) | {
309
+ } & BindingOmit<CfService>) | {
185
310
  type: "fetcher";
186
311
  fetcher: ServiceFetch;
187
312
  } | ({
188
313
  type: "analytics_engine";
189
- } & Omit<CfAnalyticsEngineDataset, "binding">) | ({
314
+ } & BindingOmit<CfAnalyticsEngineDataset>) | ({
190
315
  type: "dispatch_namespace";
191
- } & Omit<CfDispatchNamespace, "binding">) | ({
316
+ } & BindingOmit<CfDispatchNamespace>) | ({
192
317
  type: "mtls_certificate";
193
- } & Omit<CfMTlsCertificate, "binding">) | ({
318
+ } & BindingOmit<CfMTlsCertificate>) | ({
194
319
  type: "pipeline";
195
- } & Omit<CfPipeline, "binding">) | ({
320
+ } & BindingOmit<CfPipeline>) | ({
321
+ type: "secrets_store_secret";
322
+ } & BindingOmit<CfSecretsStoreSecrets>) | ({
196
323
  type: "logfwdr";
197
324
  } & NameOmit<CfLogfwdrBinding>) | {
198
325
  type: `unsafe_${string}`;
@@ -202,15 +329,7 @@ declare type Binding = {
202
329
 
203
330
  declare type BindingOmit<T> = Omit<T, "binding">;
204
331
 
205
- /**
206
- * Result of the `getBindingsProxy` utility
207
- */
208
- export declare type BindingsProxy<Bindings = Record<string, unknown>, CfProperties extends Record<string, unknown> = IncomingRequestCfProperties> = Omit<PlatformProxy<Bindings, CfProperties>, "env"> & {
209
- /**
210
- * Object containing the various proxies
211
- */
212
- bindings: Bindings;
213
- };
332
+ declare type BindingsOpt = NonNullable<StartDevWorkerInput["bindings"]>;
214
333
 
215
334
  declare interface BlobPropertyBag {
216
335
  type?: string
@@ -468,6 +587,8 @@ declare interface CfD1Database {
468
587
  database_internal_env?: string;
469
588
  migrations_table?: string;
470
589
  migrations_dir?: string;
590
+ remote?: boolean;
591
+ raw?: boolean;
471
592
  }
472
593
 
473
594
  declare interface CfDispatchNamespace {
@@ -502,6 +623,8 @@ declare interface CfHyperdrive {
502
623
  declare interface CfKvNamespace {
503
624
  binding: string;
504
625
  id?: string | typeof INHERIT_SYMBOL;
626
+ remote?: boolean;
627
+ raw?: boolean;
505
628
  }
506
629
 
507
630
  declare interface CfLogfwdrBinding {
@@ -539,7 +662,7 @@ declare interface CfModule {
539
662
  * }
540
663
  * }
541
664
  */
542
- content: string | Buffer;
665
+ content: string | Buffer<ArrayBuffer>;
543
666
  /**
544
667
  * An optional sourcemap for this module if it's of a ESM or CJS type, this will only be present
545
668
  * if we're deploying with sourcemaps enabled. Since we copy extra modules that aren't bundled
@@ -557,7 +680,7 @@ declare interface CfModule {
557
680
  /**
558
681
  * A module type.
559
682
  */
560
- declare type CfModuleType = "esm" | "commonjs" | "compiled-wasm" | "text" | "buffer" | "python" | "python-requirement" | "nodejs-compat-module";
683
+ declare type CfModuleType = "esm" | "commonjs" | "compiled-wasm" | "text" | "buffer" | "python" | "python-requirement";
561
684
 
562
685
  declare interface CfMTlsCertificate {
563
686
  binding: string;
@@ -573,12 +696,16 @@ declare interface CfQueue {
573
696
  binding: string;
574
697
  queue_name: string;
575
698
  delivery_delay?: number;
699
+ remote?: boolean;
700
+ raw?: boolean;
576
701
  }
577
702
 
578
703
  declare interface CfR2Bucket {
579
704
  binding: string;
580
705
  bucket_name?: string | typeof INHERIT_SYMBOL;
581
706
  jurisdiction?: string;
707
+ remote?: boolean;
708
+ raw?: boolean;
582
709
  }
583
710
 
584
711
  /**
@@ -586,20 +713,35 @@ declare interface CfR2Bucket {
586
713
  */
587
714
  declare type CfScriptFormat = "modules" | "service-worker";
588
715
 
716
+ declare interface CfSecretsStoreSecrets {
717
+ binding: string;
718
+ store_id: string;
719
+ secret_name: string;
720
+ }
721
+
589
722
  /**
590
723
  * A binding to send email.
591
724
  */
592
- declare interface CfSendEmailBindings {
725
+ declare type CfSendEmailBindings = {
593
726
  name: string;
727
+ } & ({
594
728
  destination_address?: string;
729
+ } | {
595
730
  allowed_destination_addresses?: string[];
596
- }
731
+ });
597
732
 
598
733
  declare interface CfService {
599
734
  binding: string;
600
735
  service: string;
601
736
  environment?: string;
602
737
  entrypoint?: string;
738
+ props?: Record<string, unknown>;
739
+ remote?: boolean;
740
+ }
741
+
742
+ declare interface CfTailConsumer {
743
+ service: string;
744
+ environment?: string;
603
745
  }
604
746
 
605
747
  declare interface CfUnsafe {
@@ -618,6 +760,7 @@ declare type CfUnsafeMetadata = Record<string, unknown>;
618
760
  declare interface CfVectorize {
619
761
  binding: string;
620
762
  index_name: string;
763
+ raw?: boolean;
621
764
  }
622
765
 
623
766
  declare interface CfWorkerSourceMap {
@@ -651,6 +794,8 @@ declare interface CfWorkflow {
651
794
  class_name: string;
652
795
  binding: string;
653
796
  script_name?: string;
797
+ remote?: boolean;
798
+ raw?: boolean;
654
799
  }
655
800
 
656
801
  /**
@@ -772,6 +917,20 @@ declare type CloudchamberConfig = {
772
917
  ipv4?: boolean;
773
918
  };
774
919
 
920
+ declare interface ComputedFields {
921
+ /** The path to the Wrangler configuration file (if any, and possibly redirected from the user Wrangler configuration) used to create this configuration. */
922
+ configPath: string | undefined;
923
+ /** The path to the user's Wrangler configuration file (if any), which may have been redirected to another file that used to create this configuration. */
924
+ userConfigPath: string | undefined;
925
+ /**
926
+ * The original top level name for the Worker in the raw configuration.
927
+ *
928
+ * When a raw configuration has been flattened to a single environment the worker name may have been replaced or transformed.
929
+ * It can be useful to know what the top-level name was before the flattening.
930
+ */
931
+ topLevelName: string | undefined;
932
+ }
933
+
775
934
  declare class ConfigController extends Controller<ConfigControllerEventMap> {
776
935
  #private;
777
936
  latestInput?: StartDevWorkerInput;
@@ -787,7 +946,6 @@ declare type ConfigControllerEventMap = ControllerEventMap & {
787
946
  };
788
947
 
789
948
  declare interface ConfigFields<Dev extends RawDevConfig> {
790
- configPath: string | undefined;
791
949
  /**
792
950
  * A boolean to enable "legacy" style wrangler environments (from Wrangler v1).
793
951
  * These have been superseded by Services, but there may be projects that won't
@@ -804,6 +962,8 @@ declare interface ConfigFields<Dev extends RawDevConfig> {
804
962
  send_metrics: boolean | undefined;
805
963
  /**
806
964
  * Options to configure the development server that your worker will use.
965
+ *
966
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#local-development-settings
807
967
  */
808
968
  dev: Dev;
809
969
  /**
@@ -811,6 +971,8 @@ declare interface ConfigFields<Dev extends RawDevConfig> {
811
971
  * static assets with your Worker.
812
972
  *
813
973
  * More details at https://developers.cloudflare.com/workers/platform/sites
974
+ *
975
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workers-sites
814
976
  */
815
977
  site: {
816
978
  /**
@@ -848,20 +1010,6 @@ declare interface ConfigFields<Dev extends RawDevConfig> {
848
1010
  */
849
1011
  exclude?: string[];
850
1012
  } | undefined;
851
- /**
852
- * Old behaviour of serving a folder of static assets with your Worker,
853
- * without any additional code.
854
- * This can either be a string, or an object with additional config
855
- * fields.
856
- * Will be deprecated in the near future in favor of `assets`.
857
- */
858
- legacy_assets: {
859
- bucket: string;
860
- include: string[];
861
- exclude: string[];
862
- browser_TTL: number | undefined;
863
- serve_single_page_app: boolean;
864
- } | string | undefined;
865
1013
  /**
866
1014
  * A list of wasm modules that your worker should be bound to. This is
867
1015
  * the "legacy" way of binding to a wasm module. ES module workers should
@@ -889,6 +1037,8 @@ declare interface ConfigFields<Dev extends RawDevConfig> {
889
1037
  /**
890
1038
  * A map of module aliases. Lets you swap out a module for any others.
891
1039
  * Corresponds with esbuild's `alias` config
1040
+ *
1041
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#module-aliasing
892
1042
  */
893
1043
  alias: {
894
1044
  [key: string]: string;
@@ -909,7 +1059,7 @@ declare interface ConfigFields<Dev extends RawDevConfig> {
909
1059
  /**
910
1060
  * The possible types for a `Rule`.
911
1061
  */
912
- declare type ConfigModuleRuleType = "ESModule" | "CommonJS" | "CompiledWasm" | "Text" | "Data" | "PythonModule" | "PythonRequirement" | "NodeJsCompatModule";
1062
+ declare type ConfigModuleRuleType = "ESModule" | "CommonJS" | "CompiledWasm" | "Text" | "Data" | "PythonModule" | "PythonRequirement";
913
1063
 
914
1064
  declare type ConfigUpdateEvent = {
915
1065
  type: "configUpdate";
@@ -926,8 +1076,27 @@ options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.ConnectOptions, 'origin'
926
1076
  * Configuration for a container application
927
1077
  */
928
1078
  declare type ContainerApp = {
1079
+ /** Name of the application*/
929
1080
  name: string;
930
- instances: number;
1081
+ /** Number of application instances */
1082
+ instances?: number;
1083
+ /** Number of maximum application instances. Only applicable to Durable Object container applications */
1084
+ max_instances?: number;
1085
+ /**
1086
+ * The path to a Dockerfile, or an image URI.
1087
+ * Can be defined both here or by setting the `image` key in the `ContainerApp` configuration
1088
+ */
1089
+ image?: string;
1090
+ /**
1091
+ * Build context of the application. By default it is the directory of `image`.
1092
+ */
1093
+ image_build_context?: string;
1094
+ /**
1095
+ * Image variables to be passed along the image
1096
+ */
1097
+ image_vars?: Record<string, string>;
1098
+ class_name: string;
1099
+ /** The scheduling policy of the application, default is regional */
931
1100
  scheduling_policy?: "regional" | "moon";
932
1101
  configuration: {
933
1102
  image: string;
@@ -941,11 +1110,24 @@ declare type ContainerApp = {
941
1110
  secret: string;
942
1111
  }[];
943
1112
  };
1113
+ /** Scheduling constraints */
944
1114
  constraints?: {
945
1115
  regions?: string[];
946
1116
  cities?: string[];
947
1117
  tier?: number;
948
1118
  };
1119
+ durable_objects?: {
1120
+ namespace_id: string;
1121
+ };
1122
+ /** How a rollout should be done, defining the size of it */
1123
+ rollout_step_percentage?: number;
1124
+ /**
1125
+ * How a rollout should be created. It supports the following modes:
1126
+ * - full_auto: The container application will be rolled out fully automatically.
1127
+ * - none: The container application won't have a roll out or update.
1128
+ * - manual: The container application will be rollout fully by manually actioning progress steps.
1129
+ */
1130
+ rollout_kind?: "full_auto" | "none" | "full_manual";
949
1131
  };
950
1132
 
951
1133
  declare abstract class Controller<EventMap extends ControllerEventMap = ControllerEventMap> extends TypedEventEmitterImpl<EventMap> {
@@ -998,123 +1180,71 @@ attributes?: { name?: string, domain?: string }
998
1180
  * variable set
999
1181
  */
1000
1182
  declare function deploy({ directory, accountId, projectName, branch, skipCaching, commitMessage, commitHash, commitDirty, functionsDirectory: customFunctionsDirectory, bundle, sourceMaps, args, }: PagesDeployOptions): Promise<{
1001
- url: string;
1002
- id: string;
1003
- environment: "production" | "preview";
1004
- build_config: {
1005
- build_command: string;
1006
- destination_dir: string;
1007
- root_dir: string;
1008
- web_analytics_tag?: string | undefined;
1009
- web_analytics_token?: string | undefined;
1010
- fast_builds?: boolean | undefined;
1011
- };
1012
- created_on: string;
1013
- production_branch: string;
1014
- project_id: string;
1015
- project_name: string;
1016
- deployment_trigger: {
1017
- metadata: {
1018
- branch: string;
1019
- commit_hash: string;
1020
- commit_message: string;
1021
- };
1022
- type: string;
1023
- };
1024
- latest_stage: {
1025
- status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
1026
- name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
1027
- started_on: string | null;
1028
- ended_on: string | null;
1183
+ deploymentResponse: {
1184
+ url: string;
1185
+ id: string;
1186
+ environment: "production" | "preview";
1187
+ build_config: {
1188
+ build_command: string;
1189
+ destination_dir: string;
1190
+ root_dir: string;
1191
+ web_analytics_tag?: string | undefined;
1192
+ web_analytics_token?: string | undefined;
1193
+ fast_builds?: boolean | undefined;
1194
+ };
1195
+ created_on: string;
1196
+ production_branch: string;
1197
+ project_id: string;
1198
+ project_name: string;
1199
+ deployment_trigger: {
1200
+ metadata: {
1201
+ branch: string;
1202
+ commit_hash: string;
1203
+ commit_message: string;
1204
+ };
1205
+ type: string;
1206
+ };
1207
+ latest_stage: {
1208
+ name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
1209
+ status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
1210
+ started_on: string | null;
1211
+ ended_on: string | null;
1212
+ };
1213
+ stages: {
1214
+ name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
1215
+ status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
1216
+ started_on: string | null;
1217
+ ended_on: string | null;
1218
+ }[];
1219
+ aliases: string[];
1220
+ modified_on: string;
1221
+ short_id: string;
1222
+ build_image_major_version: number;
1223
+ kv_namespaces?: any;
1224
+ source?: {
1225
+ type: "github" | "gitlab";
1226
+ config: {
1227
+ owner: string;
1228
+ repo_name: string;
1229
+ production_branch?: string | undefined;
1230
+ pr_comments_enabled?: boolean | undefined;
1231
+ deployments_enabled?: boolean | undefined;
1232
+ production_deployments_enabled?: boolean | undefined;
1233
+ preview_deployment_setting?: "none" | "custom" | "all" | undefined;
1234
+ preview_branch_includes?: string[] | undefined;
1235
+ preview_branch_excludes?: string[] | undefined;
1236
+ };
1237
+ } | undefined;
1238
+ env_vars?: any;
1239
+ durable_object_namespaces?: any;
1240
+ is_skipped?: boolean | undefined;
1241
+ files?: {
1242
+ [x: string]: string | undefined;
1243
+ } | undefined;
1029
1244
  };
1030
- stages: {
1031
- status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
1032
- name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
1033
- started_on: string | null;
1034
- ended_on: string | null;
1035
- }[];
1036
- aliases: string[];
1037
- modified_on: string;
1038
- short_id: string;
1039
- build_image_major_version: number;
1040
- kv_namespaces?: any;
1041
- source?: {
1042
- config: {
1043
- owner: string;
1044
- repo_name: string;
1045
- production_branch?: string | undefined;
1046
- pr_comments_enabled?: boolean | undefined;
1047
- deployments_enabled?: boolean | undefined;
1048
- production_deployments_enabled?: boolean | undefined;
1049
- preview_deployment_setting?: "none" | "custom" | "all" | undefined;
1050
- preview_branch_includes?: string[] | undefined;
1051
- preview_branch_excludes?: string[] | undefined;
1052
- };
1053
- type: "github" | "gitlab";
1054
- } | undefined;
1055
- env_vars?: any;
1056
- durable_object_namespaces?: any;
1057
- is_skipped?: boolean | undefined;
1058
- files?: {
1059
- [x: string]: string | undefined;
1060
- } | undefined;
1245
+ formData: FormData_2;
1061
1246
  }>;
1062
1247
 
1063
- declare interface DeprecatedConfigFields {
1064
- /**
1065
- * The project "type". A holdover from Wrangler v1.x.
1066
- * Valid values were "webpack", "javascript", and "rust".
1067
- *
1068
- * @deprecated DO NOT USE THIS. Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build.
1069
- * @breaking
1070
- */
1071
- type?: "webpack" | "javascript" | "rust";
1072
- /**
1073
- * Path to the webpack config to use when building your worker.
1074
- * A holdover from Wrangler v1.x, used with `type: "webpack"`.
1075
- *
1076
- * @deprecated DO NOT USE THIS. Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build.
1077
- * @breaking
1078
- */
1079
- webpack_config?: string;
1080
- /**
1081
- * Configuration only used by a standalone use of the miniflare binary.
1082
- * @deprecated
1083
- */
1084
- miniflare?: unknown;
1085
- }
1086
-
1087
- /**
1088
- * Deprecated upload configuration.
1089
- */
1090
- declare interface DeprecatedUpload {
1091
- /**
1092
- * The format of the Worker script.
1093
- *
1094
- * @deprecated We infer the format automatically now.
1095
- */
1096
- format?: "modules" | "service-worker";
1097
- /**
1098
- * The directory you wish to upload your Worker from,
1099
- * relative to the Wrangler configuration file.
1100
- *
1101
- * Defaults to the directory containing the Wrangler configuration file.
1102
- *
1103
- * @deprecated
1104
- */
1105
- dir?: string;
1106
- /**
1107
- * The path to the Worker script, relative to `upload.dir`.
1108
- *
1109
- * @deprecated This will be replaced by a command line argument.
1110
- */
1111
- main?: string;
1112
- /**
1113
- * @deprecated This is now defined at the top level `rules` field.
1114
- */
1115
- rules?: Environment["rules"];
1116
- }
1117
-
1118
1248
  declare interface DevConfig {
1119
1249
  /**
1120
1250
  * IP address for the local dev server to listen on,
@@ -1510,6 +1640,8 @@ declare type Entry = {
1510
1640
  file: string;
1511
1641
  /** A worker's directory. Usually where the Wrangler configuration file is located */
1512
1642
  projectRoot: string;
1643
+ /** The path to the config file, if it exists. */
1644
+ configPath: string | undefined;
1513
1645
  /** Is this a module worker or a service worker? */
1514
1646
  format: CfScriptFormat;
1515
1647
  /** The directory that contains all of a `--no-bundle` worker's modules. Usually `${directory}/src`. Defaults to path.dirname(file) */
@@ -1531,39 +1663,6 @@ declare type Entry = {
1531
1663
  declare interface Environment extends EnvironmentInheritable, EnvironmentNonInheritable {
1532
1664
  }
1533
1665
 
1534
- /**
1535
- * The environment configuration properties that have been deprecated.
1536
- */
1537
- declare interface EnvironmentDeprecated {
1538
- /**
1539
- * The zone ID of the zone you want to deploy to. You can find this
1540
- * in your domain page on the dashboard.
1541
- *
1542
- * @deprecated This is unnecessary since we can deduce this from routes directly.
1543
- */
1544
- zone_id?: string;
1545
- /**
1546
- * Legacy way of defining KVNamespaces that is no longer supported.
1547
- *
1548
- * @deprecated DO NOT USE. This was a legacy bug from Wrangler v1, that we do not want to support.
1549
- */
1550
- "kv-namespaces"?: string;
1551
- /**
1552
- * A list of services that your Worker should be bound to.
1553
- *
1554
- * @default `[]`
1555
- * @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.
1556
- */
1557
- experimental_services?: {
1558
- /** The binding name used to refer to the Service */
1559
- name: string;
1560
- /** The name of the Service being bound */
1561
- service: string;
1562
- /** The Service's environment */
1563
- environment: string;
1564
- }[];
1565
- }
1566
-
1567
1666
  /**
1568
1667
  * The `EnvironmentInheritable` interface declares all the configuration fields for an environment
1569
1668
  * that can be inherited (and overridden) from the top-level environment.
@@ -1589,18 +1688,18 @@ declare interface EnvironmentInheritable {
1589
1688
  * A date in the form yyyy-mm-dd, which will be used to determine
1590
1689
  * which version of the Workers runtime is used.
1591
1690
  *
1592
- * More details at https://developers.cloudflare.com/workers/platform/compatibility-dates
1691
+ * More details at https://developers.cloudflare.com/workers/configuration/compatibility-dates
1593
1692
  *
1594
1693
  * @inheritable
1595
1694
  */
1596
1695
  compatibility_date: string | undefined;
1597
1696
  /**
1598
1697
  * A list of flags that enable features from upcoming features of
1599
- * the Workers runtime, usually used together with compatibility_flags.
1698
+ * the Workers runtime, usually used together with compatibility_date.
1600
1699
  *
1601
- * More details at https://developers.cloudflare.com/workers/platform/compatibility-dates
1700
+ * More details at https://developers.cloudflare.com/workers/configuration/compatibility-flags/
1602
1701
  *
1603
- * @default `[]`
1702
+ * @default []
1604
1703
  * @inheritable
1605
1704
  */
1606
1705
  compatibility_flags: string[];
@@ -1638,9 +1737,9 @@ declare interface EnvironmentInheritable {
1638
1737
  * Whether we use <name>.<subdomain>.workers.dev to
1639
1738
  * test and deploy your Worker.
1640
1739
  *
1641
- * // Carmen according to our tests the default is undefined
1642
- * // warning: you must force "workers_dev: true" in tests to match expected behavior
1643
- * @default `true` (This is a breaking change from Wrangler v1)
1740
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workersdev
1741
+ *
1742
+ * @default true
1644
1743
  * @breaking
1645
1744
  * @inheritable
1646
1745
  */
@@ -1649,7 +1748,7 @@ declare interface EnvironmentInheritable {
1649
1748
  * Whether we use <version>-<name>.<subdomain>.workers.dev to
1650
1749
  * serve Preview URLs for your Worker.
1651
1750
  *
1652
- * @default `true`
1751
+ * @default true
1653
1752
  * @inheritable
1654
1753
  */
1655
1754
  preview_urls: boolean | undefined;
@@ -1659,6 +1758,8 @@ declare interface EnvironmentInheritable {
1659
1758
  *
1660
1759
  * Only required when workers_dev is false, and there's no scheduled Worker (see `triggers`)
1661
1760
  *
1761
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#types-of-routes
1762
+ *
1662
1763
  * @inheritable
1663
1764
  */
1664
1765
  routes: Route[] | undefined;
@@ -1681,14 +1782,14 @@ declare interface EnvironmentInheritable {
1681
1782
  /**
1682
1783
  * The function to use to replace jsx syntax.
1683
1784
  *
1684
- * @default `"React.createElement"`
1785
+ * @default "React.createElement"
1685
1786
  * @inheritable
1686
1787
  */
1687
1788
  jsx_factory: string;
1688
1789
  /**
1689
1790
  * The function to use to replace jsx fragment syntax.
1690
1791
  *
1691
- * @default `"React.Fragment"`
1792
+ * @default "React.Fragment"
1692
1793
  * @inheritable
1693
1794
  */
1694
1795
  jsx_fragment: string;
@@ -1710,28 +1811,20 @@ declare interface EnvironmentInheritable {
1710
1811
  *
1711
1812
  * More details here https://developers.cloudflare.com/workers/platform/cron-triggers
1712
1813
  *
1713
- * @default `{crons:[]}`
1814
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers
1815
+ *
1816
+ * @default {crons: undefined}
1714
1817
  * @inheritable
1715
1818
  */
1716
1819
  triggers: {
1717
- crons: string[];
1820
+ crons: string[] | undefined;
1718
1821
  };
1719
- /**
1720
- * Specifies the Usage Model for your Worker. There are two options -
1721
- * [bundled](https://developers.cloudflare.com/workers/platform/limits#bundled-usage-model) and
1722
- * [unbound](https://developers.cloudflare.com/workers/platform/limits#unbound-usage-model).
1723
- * For newly created Workers, if the Usage Model is omitted
1724
- * it will be set to the [default Usage Model set on the account](https://dash.cloudflare.com/?account=workers/default-usage-model).
1725
- * For existing Workers, if the Usage Model is omitted, it will be
1726
- * set to the Usage Model configured in the dashboard for that Worker.
1727
- *
1728
- * @inheritable
1729
- */
1730
- usage_model: "bundled" | "unbound" | undefined;
1731
1822
  /**
1732
1823
  * Specify limits for runtime behavior.
1733
1824
  * Only supported for the "standard" Usage Model
1734
1825
  *
1826
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#limits
1827
+ *
1735
1828
  * @inheritable
1736
1829
  */
1737
1830
  limits: UserLimits | undefined;
@@ -1741,6 +1834,8 @@ declare interface EnvironmentInheritable {
1741
1834
  * to use Text, Data, and CompiledWasm modules, or when you wish to
1742
1835
  * have a .js file be treated as an ESModule instead of CommonJS.
1743
1836
  *
1837
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#bundling
1838
+ *
1744
1839
  * @inheritable
1745
1840
  */
1746
1841
  rules: Rule[];
@@ -1750,6 +1845,8 @@ declare interface EnvironmentInheritable {
1750
1845
  * Refer to the [custom builds documentation](https://developers.cloudflare.com/workers/cli-wrangler/configuration#build)
1751
1846
  * for more details.
1752
1847
  *
1848
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#custom-builds
1849
+ *
1753
1850
  * @default {watch_dir:"./src"}
1754
1851
  */
1755
1852
  build: {
@@ -1759,11 +1856,6 @@ declare interface EnvironmentInheritable {
1759
1856
  cwd?: string;
1760
1857
  /** The directory to watch for changes while using wrangler dev, defaults to the current working directory */
1761
1858
  watch_dir?: string | string[];
1762
- /**
1763
- * Deprecated field previously used to configure the build and upload of the script.
1764
- * @deprecated
1765
- */
1766
- upload?: DeprecatedUpload;
1767
1859
  };
1768
1860
  /**
1769
1861
  * Skip internal build steps and directly deploy script
@@ -1776,27 +1868,22 @@ declare interface EnvironmentInheritable {
1776
1868
  */
1777
1869
  minify: boolean | undefined;
1778
1870
  /**
1779
- * Add polyfills for node builtin modules and globals
1871
+ * Keep function names after javascript transpilations.
1872
+ *
1873
+ * @default {true}
1780
1874
  * @inheritable
1781
1875
  */
1782
- node_compat: boolean | undefined;
1876
+ keep_names: boolean | undefined;
1783
1877
  /**
1784
1878
  * Designates this Worker as an internal-only "first-party" Worker.
1785
1879
  *
1786
1880
  * @inheritable
1787
1881
  */
1788
1882
  first_party_worker: boolean | undefined;
1789
- /**
1790
- * TODO: remove this as it has been deprecated.
1791
- *
1792
- * This is just here for now because the `route` commands use it.
1793
- * So we need to include it in this type so it is available.
1794
- */
1795
- zone_id?: string;
1796
1883
  /**
1797
1884
  * List of bindings that you will send to logfwdr
1798
1885
  *
1799
- * @default `{bindings:[]}`
1886
+ * @default {bindings:[]}
1800
1887
  * @inheritable
1801
1888
  */
1802
1889
  logfwdr: {
@@ -1820,6 +1907,9 @@ declare interface EnvironmentInheritable {
1820
1907
  logpush: boolean | undefined;
1821
1908
  /**
1822
1909
  * Include source maps when uploading this worker.
1910
+ *
1911
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps
1912
+ *
1823
1913
  * @inheritable
1824
1914
  */
1825
1915
  upload_source_maps: boolean | undefined;
@@ -1839,15 +1929,26 @@ declare interface EnvironmentInheritable {
1839
1929
  *
1840
1930
  * More details at https://developers.cloudflare.com/workers/frameworks/
1841
1931
  *
1932
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#assets
1933
+ *
1842
1934
  * @inheritable
1843
1935
  */
1844
1936
  assets: Assets | undefined;
1845
1937
  /**
1846
1938
  * Specify the observability behavior of the Worker.
1847
1939
  *
1940
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability
1941
+ *
1848
1942
  * @inheritable
1849
1943
  */
1850
1944
  observability: Observability | undefined;
1945
+ /**
1946
+ * Specify the compliance region mode of the Worker.
1947
+ *
1948
+ * Although if the user does not specify a compliance region, the default is `public`,
1949
+ * it can be set to `undefined` in configuration to delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable.
1950
+ */
1951
+ compliance_region: "public" | "fedramp_high" | undefined;
1851
1952
  }
1852
1953
 
1853
1954
  declare interface EnvironmentMap {
@@ -1882,7 +1983,7 @@ declare interface EnvironmentNonInheritable {
1882
1983
  * NOTE: This field is not automatically inherited from the top level environment,
1883
1984
  * and so must be specified in every named environment.
1884
1985
  *
1885
- * @default `{}`
1986
+ * @default {}
1886
1987
  * @nonInheritable
1887
1988
  */
1888
1989
  define: Record<string, string>;
@@ -1892,7 +1993,9 @@ declare interface EnvironmentNonInheritable {
1892
1993
  * NOTE: This field is not automatically inherited from the top level environment,
1893
1994
  * and so must be specified in every named environment.
1894
1995
  *
1895
- * @default `{}`
1996
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
1997
+ *
1998
+ * @default {}
1896
1999
  * @nonInheritable
1897
2000
  */
1898
2001
  vars: Record<string, string | Json>;
@@ -1905,7 +2008,9 @@ declare interface EnvironmentNonInheritable {
1905
2008
  * NOTE: This field is not automatically inherited from the top level environment,
1906
2009
  * and so must be specified in every named environment.
1907
2010
  *
1908
- * @default `{bindings:[]}`
2011
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
2012
+ *
2013
+ * @default {bindings:[]}
1909
2014
  * @nonInheritable
1910
2015
  */
1911
2016
  durable_objects: {
@@ -1917,7 +2022,7 @@ declare interface EnvironmentNonInheritable {
1917
2022
  * NOTE: This field is not automatically inherited from the top level environment,
1918
2023
  * and so must be specified in every named environment.
1919
2024
  *
1920
- * @default `[]`
2025
+ * @default []
1921
2026
  * @nonInheritable
1922
2027
  */
1923
2028
  workflows: WorkflowBinding[];
@@ -1927,25 +2032,17 @@ declare interface EnvironmentNonInheritable {
1927
2032
  * NOTE: This field is not automatically inherited from the top level environment,
1928
2033
  * and so must be specified in every named environment.
1929
2034
  *
1930
- * @default `{}`
2035
+ * @default {}
1931
2036
  * @nonInheritable
1932
2037
  */
1933
2038
  cloudchamber: CloudchamberConfig;
1934
2039
  /**
1935
2040
  * Container related configuration
2041
+ *
2042
+ * @default []
2043
+ * @nonInheritable
1936
2044
  */
1937
- containers: {
1938
- /**
1939
- * Container app configuration
1940
- *
1941
- * NOTE: This field is not automatically inherited from the top level environment,
1942
- * and so must be specified in every named environment.
1943
- *
1944
- * @default `{}`
1945
- * @nonInheritable
1946
- */
1947
- app: ContainerApp[];
1948
- };
2045
+ containers?: ContainerApp[];
1949
2046
  /**
1950
2047
  * These specify any Workers KV Namespaces you want to
1951
2048
  * access from inside your Worker.
@@ -1956,7 +2053,9 @@ declare interface EnvironmentNonInheritable {
1956
2053
  * NOTE: This field is not automatically inherited from the top level environment,
1957
2054
  * and so must be specified in every named environment.
1958
2055
  *
1959
- * @default `[]`
2056
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces
2057
+ *
2058
+ * @default []
1960
2059
  * @nonInheritable
1961
2060
  */
1962
2061
  kv_namespaces: {
@@ -1966,6 +2065,8 @@ declare interface EnvironmentNonInheritable {
1966
2065
  id?: string;
1967
2066
  /** The ID of the KV namespace used during `wrangler dev` */
1968
2067
  preview_id?: string;
2068
+ /** Whether the KV namespace should be remote or not (only available under `--x-mixed-mode`) */
2069
+ remote?: boolean;
1969
2070
  }[];
1970
2071
  /**
1971
2072
  * These specify bindings to send email from inside your Worker.
@@ -1973,7 +2074,9 @@ declare interface EnvironmentNonInheritable {
1973
2074
  * NOTE: This field is not automatically inherited from the top level environment,
1974
2075
  * and so must be specified in every named environment.
1975
2076
  *
1976
- * @default `[]`
2077
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#email-bindings
2078
+ *
2079
+ * @default []
1977
2080
  * @nonInheritable
1978
2081
  */
1979
2082
  send_email: {
@@ -1990,7 +2093,9 @@ declare interface EnvironmentNonInheritable {
1990
2093
  * NOTE: This field is not automatically inherited from the top level environment,
1991
2094
  * and so must be specified in every named environment.
1992
2095
  *
1993
- * @default `{consumers:[],producers:[]}`
2096
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#queues
2097
+ *
2098
+ * @default {consumers:[],producers:[]}
1994
2099
  * @nonInheritable
1995
2100
  */
1996
2101
  queues: {
@@ -2002,6 +2107,8 @@ declare interface EnvironmentNonInheritable {
2002
2107
  queue: string;
2003
2108
  /** The number of seconds to wait before delivering a message */
2004
2109
  delivery_delay?: number;
2110
+ /** Whether the Queue producer should be remote or not (only available under `--x-mixed-mode`) */
2111
+ remote?: boolean;
2005
2112
  }[];
2006
2113
  /** Consumer configuration */
2007
2114
  consumers?: {
@@ -2031,7 +2138,9 @@ declare interface EnvironmentNonInheritable {
2031
2138
  * NOTE: This field is not automatically inherited from the top level environment,
2032
2139
  * and so must be specified in every named environment.
2033
2140
  *
2034
- * @default `[]`
2141
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets
2142
+ *
2143
+ * @default []
2035
2144
  * @nonInheritable
2036
2145
  */
2037
2146
  r2_buckets: {
@@ -2043,6 +2152,8 @@ declare interface EnvironmentNonInheritable {
2043
2152
  preview_bucket_name?: string;
2044
2153
  /** The jurisdiction that the bucket exists in. Default if not present. */
2045
2154
  jurisdiction?: string;
2155
+ /** Whether the R2 bucket should be remote or not (only available under `--x-mixed-mode`) */
2156
+ remote?: boolean;
2046
2157
  }[];
2047
2158
  /**
2048
2159
  * Specifies D1 databases that are bound to this Worker environment.
@@ -2050,7 +2161,9 @@ declare interface EnvironmentNonInheritable {
2050
2161
  * NOTE: This field is not automatically inherited from the top level environment,
2051
2162
  * and so must be specified in every named environment.
2052
2163
  *
2053
- * @default `[]`
2164
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases
2165
+ *
2166
+ * @default []
2054
2167
  * @nonInheritable
2055
2168
  */
2056
2169
  d1_databases: {
@@ -2068,6 +2181,8 @@ declare interface EnvironmentNonInheritable {
2068
2181
  migrations_dir?: string;
2069
2182
  /** Internal use only. */
2070
2183
  database_internal_env?: string;
2184
+ /** Whether the D1 database should be remote or not (only available under `--x-mixed-mode`) */
2185
+ remote?: boolean;
2071
2186
  }[];
2072
2187
  /**
2073
2188
  * Specifies Vectorize indexes that are bound to this Worker environment.
@@ -2075,7 +2190,9 @@ declare interface EnvironmentNonInheritable {
2075
2190
  * NOTE: This field is not automatically inherited from the top level environment,
2076
2191
  * and so must be specified in every named environment.
2077
2192
  *
2078
- * @default `[]`
2193
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes
2194
+ *
2195
+ * @default []
2079
2196
  * @nonInheritable
2080
2197
  */
2081
2198
  vectorize: {
@@ -2090,7 +2207,9 @@ declare interface EnvironmentNonInheritable {
2090
2207
  * NOTE: This field is not automatically inherited from the top level environment,
2091
2208
  * and so must be specified in every named environment.
2092
2209
  *
2093
- * @default `[]`
2210
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive
2211
+ *
2212
+ * @default []
2094
2213
  * @nonInheritable
2095
2214
  */
2096
2215
  hyperdrive: {
@@ -2107,7 +2226,9 @@ declare interface EnvironmentNonInheritable {
2107
2226
  * NOTE: This field is not automatically inherited from the top level environment,
2108
2227
  * and so must be specified in every named environment.
2109
2228
  *
2110
- * @default `[]`
2229
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
2230
+ *
2231
+ * @default []
2111
2232
  * @nonInheritable
2112
2233
  */
2113
2234
  services: {
@@ -2119,6 +2240,10 @@ declare interface EnvironmentNonInheritable {
2119
2240
  environment?: string;
2120
2241
  /** Optionally, the entrypoint (named export) of the service to bind to. */
2121
2242
  entrypoint?: string;
2243
+ /** Optional properties that will be made available to the service via ctx.props. */
2244
+ props?: Record<string, unknown>;
2245
+ /** Whether the service binding should be remote or not (only available under `--x-mixed-mode`) */
2246
+ remote?: boolean;
2122
2247
  }[] | undefined;
2123
2248
  /**
2124
2249
  * Specifies analytics engine datasets that are bound to this Worker environment.
@@ -2126,7 +2251,9 @@ declare interface EnvironmentNonInheritable {
2126
2251
  * NOTE: This field is not automatically inherited from the top level environment,
2127
2252
  * and so must be specified in every named environment.
2128
2253
  *
2129
- * @default `[]`
2254
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets
2255
+ *
2256
+ * @default []
2130
2257
  * @nonInheritable
2131
2258
  */
2132
2259
  analytics_engine_datasets: {
@@ -2141,7 +2268,9 @@ declare interface EnvironmentNonInheritable {
2141
2268
  * NOTE: This field is not automatically inherited from the top level environment,
2142
2269
  * and so must be specified in every named environment.
2143
2270
  *
2144
- * @default `{}`
2271
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering
2272
+ *
2273
+ * @default {}
2145
2274
  * @nonInheritable
2146
2275
  */
2147
2276
  browser: {
@@ -2153,13 +2282,29 @@ declare interface EnvironmentNonInheritable {
2153
2282
  * NOTE: This field is not automatically inherited from the top level environment,
2154
2283
  * and so must be specified in every named environment.
2155
2284
  *
2156
- * @default `{}`
2285
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai
2286
+ *
2287
+ * @default {}
2157
2288
  * @nonInheritable
2158
2289
  */
2159
2290
  ai: {
2160
2291
  binding: string;
2161
2292
  staging?: boolean;
2162
2293
  } | undefined;
2294
+ /**
2295
+ * Binding to Cloudflare Images
2296
+ *
2297
+ * NOTE: This field is not automatically inherited from the top level environment,
2298
+ * and so must be specified in every named environment.
2299
+ *
2300
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#images
2301
+ *
2302
+ * @default {}
2303
+ * @nonInheritable
2304
+ */
2305
+ images: {
2306
+ binding: string;
2307
+ } | undefined;
2163
2308
  /**
2164
2309
  * Binding to the Worker Version's metadata
2165
2310
  */
@@ -2172,7 +2317,7 @@ declare interface EnvironmentNonInheritable {
2172
2317
  * NOTE: This field is not automatically inherited from the top level environment,
2173
2318
  * and so must be specified in every named environment.
2174
2319
  *
2175
- * @default `{}`
2320
+ * @default {}
2176
2321
  * @nonInheritable
2177
2322
  */
2178
2323
  unsafe: {
@@ -2212,7 +2357,9 @@ declare interface EnvironmentNonInheritable {
2212
2357
  * NOTE: This field is not automatically inherited from the top level environment,
2213
2358
  * and so must be specified in every named environment.
2214
2359
  *
2215
- * @default `[]`
2360
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates
2361
+ *
2362
+ * @default []
2216
2363
  * @nonInheritable
2217
2364
  */
2218
2365
  mtls_certificates: {
@@ -2227,7 +2374,7 @@ declare interface EnvironmentNonInheritable {
2227
2374
  * NOTE: This field is not automatically inherited from the top level environment,
2228
2375
  * and so must be specified in every named environment.
2229
2376
  *
2230
- * @default `[]`
2377
+ * @default []
2231
2378
  * @nonInheritable
2232
2379
  */
2233
2380
  tail_consumers?: TailConsumer[];
@@ -2237,7 +2384,9 @@ declare interface EnvironmentNonInheritable {
2237
2384
  * NOTE: This field is not automatically inherited from the top level environment,
2238
2385
  * and so must be specified in every named environment.
2239
2386
  *
2240
- * @default `[]`
2387
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms
2388
+ *
2389
+ * @default []
2241
2390
  * @nonInheritable
2242
2391
  */
2243
2392
  dispatch_namespaces: {
@@ -2254,7 +2403,7 @@ declare interface EnvironmentNonInheritable {
2254
2403
  * NOTE: This field is not automatically inherited from the top level environment,
2255
2404
  * and so must be specified in every named environment.
2256
2405
  *
2257
- * @default `[]`
2406
+ * @default []
2258
2407
  * @nonInheritable
2259
2408
  */
2260
2409
  pipelines: {
@@ -2263,6 +2412,23 @@ declare interface EnvironmentNonInheritable {
2263
2412
  /** Name of the Pipeline to bind */
2264
2413
  pipeline: string;
2265
2414
  }[];
2415
+ /**
2416
+ * Specifies Secret Store bindings that are bound to this Worker environment.
2417
+ *
2418
+ * NOTE: This field is not automatically inherited from the top level environment,
2419
+ * and so must be specified in every named environment.
2420
+ *
2421
+ * @default []
2422
+ * @nonInheritable
2423
+ */
2424
+ secrets_store_secrets: {
2425
+ /** The binding name used to refer to the bound service. */
2426
+ binding: string;
2427
+ /** Id of the secret store */
2428
+ store_id: string;
2429
+ /** Name of the secret */
2430
+ secret_name: string;
2431
+ }[];
2266
2432
  }
2267
2433
 
2268
2434
  declare type ErrorEvent = BaseErrorEvent<"ConfigController" | "BundlerController" | "LocalRuntimeController" | "RemoteRuntimeController" | "ProxyWorker" | "InspectorProxyWorker" | "MultiworkerRuntimeController"> | BaseErrorEvent<"ProxyController", {
@@ -2472,21 +2638,29 @@ declare type EventTarget_2 = typeof globalThis extends { EventTarget: infer T }
2472
2638
  declare class ExecutionContext {
2473
2639
  waitUntil(promise: Promise<any>): void;
2474
2640
  passThroughOnException(): void;
2641
+ props: any;
2475
2642
  }
2476
2643
 
2477
2644
  export declare const experimental_patchConfig: (configPath: string, patch: Unstable_RawConfig, isArrayInsertion?: boolean) => string;
2478
2645
 
2479
- export declare const experimental_readRawConfig: (args: ReadConfigCommandArgs) => {
2646
+ export declare const experimental_readRawConfig: (args: ReadConfigCommandArgs, options?: ReadConfigOptions) => {
2480
2647
  rawConfig: Unstable_RawConfig;
2481
2648
  configPath: string | undefined;
2649
+ userConfigPath: string | undefined;
2482
2650
  };
2483
2651
 
2652
+ export declare function experimental_startMixedModeSession(bindings: BindingsOpt, options?: {
2653
+ auth?: NonNullable<StartDevWorkerInput["dev"]>["auth"];
2654
+ /** If running in a non-public compliance region, set this here. */
2655
+ complianceRegion?: Unstable_Config["compliance_region"];
2656
+ }): Promise<MixedModeSession>;
2657
+
2484
2658
  declare function fetch_2 (
2485
2659
  input: RequestInfo,
2486
2660
  init?: RequestInit_2
2487
2661
  ): Promise<Response_2>
2488
2662
 
2489
- declare class File extends Blob_2 {
2663
+ declare class File_2 extends Blob_2 {
2490
2664
  /**
2491
2665
  * Creates a new File instance.
2492
2666
  *
@@ -2509,7 +2683,7 @@ declare class File extends Blob_2 {
2509
2683
  readonly [Symbol.toStringTag]: string
2510
2684
  }
2511
2685
 
2512
- declare type File_2<Contents = string, Path = string> = {
2686
+ declare type File_3<Contents = string, Path = string> = {
2513
2687
  path: Path;
2514
2688
  } | {
2515
2689
  contents: Contents;
@@ -2658,21 +2832,7 @@ declare class FormData_2 {
2658
2832
  /**
2659
2833
  * A `string` or `File` that represents a single value from a set of `FormData` key-value pairs.
2660
2834
  */
2661
- declare type FormDataEntryValue = string | File
2662
-
2663
- /**
2664
- * By reading from a Wrangler configuration file this function generates proxy binding objects that can be
2665
- * used to simulate the interaction with bindings during local development in a Node.js environment
2666
- *
2667
- * @deprecated use `getPlatformProxy` instead
2668
- *
2669
- * @param options The various options that can tweak this function's behavior
2670
- * @returns An Object containing the generated proxies alongside other related utilities
2671
- */
2672
- export declare function getBindingsProxy<Bindings = Record<string, unknown>, CfProperties extends Record<string, unknown> = IncomingRequestCfProperties>(options?: GetBindingsProxyOptions): Promise<BindingsProxy<Bindings, CfProperties>>;
2673
-
2674
- /** Options for the `getBindingsProxy` utility */
2675
- export declare type GetBindingsProxyOptions = GetPlatformProxyOptions;
2835
+ declare type FormDataEntryValue = string | File_2
2676
2836
 
2677
2837
  declare function getCookies (headers: Headers_2): Record<string, string>
2678
2838
 
@@ -2709,18 +2869,12 @@ export declare type GetPlatformProxyOptions = {
2709
2869
  configPath?: string;
2710
2870
  /**
2711
2871
  * Indicates if and where to persist the bindings data, if not present or `true` it defaults to the same location
2712
- * used by wrangler v3: `.wrangler/state/v3` (so that the same data can be easily used by the caller and wrangler).
2872
+ * used by wrangler: `.wrangler/state/v3` (so that the same data can be easily used by the caller and wrangler).
2713
2873
  * If `false` is specified no data is persisted on the filesystem.
2714
2874
  */
2715
2875
  persist?: boolean | {
2716
2876
  path: string;
2717
2877
  };
2718
- /**
2719
- * Use the experimental file-based dev registry for service discovery
2720
- *
2721
- * Note: this feature is experimental
2722
- */
2723
- experimentalRegistry?: boolean;
2724
2878
  };
2725
2879
 
2726
2880
  declare function getSetCookies (headers: Headers_2): Cookie[]
@@ -2750,13 +2904,6 @@ declare type Hook<T extends HookValues, Args extends unknown[] = []> = T | ((...
2750
2904
 
2751
2905
  declare type HookValues = string | number | boolean | object | undefined | null;
2752
2906
 
2753
- /**
2754
- * @property terminate Terminates HTTP server.
2755
- */
2756
- declare type HttpTerminator = {
2757
- readonly terminate: () => Promise<void>;
2758
- };
2759
-
2760
2907
  /**
2761
2908
  * The header type declaration of `undici`.
2762
2909
  */
@@ -2799,8 +2946,10 @@ declare class Logger {
2799
2946
  #private;
2800
2947
  constructor();
2801
2948
  private overrideLoggerLevel?;
2949
+ private onceHistory;
2802
2950
  get loggerLevel(): "log" | "error" | "none" | "debug" | "info" | "warn";
2803
2951
  set loggerLevel(val: "log" | "error" | "none" | "debug" | "info" | "warn");
2952
+ resetLoggerLevel(): void;
2804
2953
  columns: number;
2805
2954
  debug: (...args: unknown[]) => void;
2806
2955
  debugWithSanitization: (label: string, ...args: unknown[]) => void;
@@ -2810,13 +2959,13 @@ declare class Logger {
2810
2959
  error: (...args: unknown[]) => void;
2811
2960
  table<Keys extends string>(data: TableRow<Keys>[]): void;
2812
2961
  console<M extends Exclude<keyof Console, "Console">>(method: M, ...args: Parameters<Console[M]>): void;
2813
- static onceHistory: Set<unknown>;
2814
2962
  get once(): {
2815
2963
  info: (...args: unknown[]) => void;
2816
2964
  log: (...args: unknown[]) => void;
2817
2965
  warn: (...args: unknown[]) => void;
2818
2966
  error: (...args: unknown[]) => void;
2819
2967
  };
2968
+ clearHistory(): void;
2820
2969
  doLogOnce(messageLevel: Exclude<LoggerLevel, "none">, args: unknown[]): void;
2821
2970
  private doLog;
2822
2971
  static registerBeforeLogHook(callback: (() => void) | undefined): void;
@@ -2879,6 +3028,11 @@ declare interface MIMEType {
2879
3028
 
2880
3029
  declare type MiniflareWorker = Awaited<ReturnType<Miniflare["getWorker"]>>;
2881
3030
 
3031
+ declare type MixedModeSession = Pick<Worker, "ready" | "dispose"> & {
3032
+ updateBindings: (bindings: BindingsOpt) => Promise<void>;
3033
+ mixedModeConnectionString: MixedModeConnectionString;
3034
+ };
3035
+
2882
3036
  /** A mocked Agent class that implements the Agent API. It allows one to intercept HTTP requests made through undici and return mocked responses instead. */
2883
3037
  declare class MockAgent<TMockAgentOptions extends MockAgent.Options = MockAgent.Options> extends Dispatcher {
2884
3038
  constructor(options?: MockAgent.Options)
@@ -3055,6 +3209,7 @@ declare type NormalizeAndValidateConfigArgs = {
3055
3209
  remote?: boolean;
3056
3210
  localProtocol?: string;
3057
3211
  upstreamProtocol?: string;
3212
+ script?: string;
3058
3213
  };
3059
3214
 
3060
3215
  declare interface Observability {
@@ -25703,6 +25858,10 @@ declare type ReadConfigCommandArgs = NormalizeAndValidateConfigArgs & {
25703
25858
  script?: string;
25704
25859
  };
25705
25860
 
25861
+ declare type ReadConfigOptions = ResolveConfigPathOptions & {
25862
+ hideWarnings?: boolean;
25863
+ };
25864
+
25706
25865
  declare type ReadyEvent = {
25707
25866
  type: "ready";
25708
25867
  proxyWorker: Miniflare;
@@ -25831,6 +25990,10 @@ declare type RequestMode = 'cors' | 'navigate' | 'no-cors' | 'same-origin'
25831
25990
 
25832
25991
  declare type RequestRedirect = 'error' | 'follow' | 'manual'
25833
25992
 
25993
+ declare type ResolveConfigPathOptions = {
25994
+ useRedirectIfAvailable?: boolean;
25995
+ };
25996
+
25834
25997
  declare class Response_2 implements BodyMixin {
25835
25998
  constructor (body?: BodyInit, init?: ResponseInit_2)
25836
25999
 
@@ -25989,17 +26152,26 @@ declare namespace RetryHandler {
25989
26152
 
25990
26153
  declare type Route = SimpleRoute | ZoneIdRoute | ZoneNameRoute | CustomDomainRoute;
25991
26154
 
25992
- declare type RoutingConfig = z.infer<typeof RoutingConfigSchema>;
26155
+ declare type RouterConfig = z.infer<typeof RouterConfigSchema>;
25993
26156
 
25994
- declare const RoutingConfigSchema: z.ZodObject<{
25995
- has_user_worker: z.ZodOptional<z.ZodBoolean>;
26157
+ declare const RouterConfigSchema: z.ZodObject<{
26158
+ account_id: z.ZodOptional<z.ZodNumber>;
26159
+ script_id: z.ZodOptional<z.ZodNumber>;
26160
+ debug: z.ZodOptional<z.ZodBoolean>;
25996
26161
  invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
26162
+ has_user_worker: z.ZodOptional<z.ZodBoolean>;
25997
26163
  }, "strip", z.ZodTypeAny, {
25998
- has_user_worker?: boolean;
26164
+ account_id?: number;
26165
+ script_id?: number;
26166
+ debug?: boolean;
25999
26167
  invoke_user_worker_ahead_of_assets?: boolean;
26000
- }, {
26001
26168
  has_user_worker?: boolean;
26169
+ }, {
26170
+ account_id?: number;
26171
+ script_id?: number;
26172
+ debug?: boolean;
26002
26173
  invoke_user_worker_ahead_of_assets?: boolean;
26174
+ has_user_worker?: boolean;
26003
26175
  }>;
26004
26176
 
26005
26177
  /**
@@ -26079,7 +26251,6 @@ declare interface StartDevWorkerInput {
26079
26251
  /**
26080
26252
  * The javascript or typescript entry-point of the worker.
26081
26253
  * This is the `main` property of a Wrangler configuration file.
26082
- * You can specify a file path or provide the contents directly.
26083
26254
  */
26084
26255
  entrypoint?: string;
26085
26256
  /** The configuration of the worker. */
@@ -26088,12 +26259,15 @@ declare interface StartDevWorkerInput {
26088
26259
  compatibilityDate?: string;
26089
26260
  /** The compatibility flags for the workerd runtime. */
26090
26261
  compatibilityFlags?: string[];
26262
+ /** Specify the compliance region mode of the Worker. */
26263
+ complianceRegion?: Unstable_Config["compliance_region"];
26091
26264
  env?: string;
26092
26265
  /** The bindings available to the worker. The specified bindind type will be exposed to the worker on the `env` object under the same key. */
26093
26266
  bindings?: Record<string, Binding>;
26094
26267
  migrations?: DurableObjectMigration[];
26095
26268
  /** The triggers which will cause the worker's exported default handlers to be called. */
26096
26269
  triggers?: Trigger[];
26270
+ tailConsumers?: CfTailConsumer[];
26097
26271
  /**
26098
26272
  * Whether Wrangler should send usage metrics to Cloudflare for this project.
26099
26273
  *
@@ -26116,6 +26290,8 @@ declare interface StartDevWorkerInput {
26116
26290
  alias?: Record<string, string>;
26117
26291
  /** Whether the bundled worker is minified. Only takes effect if bundle: true. */
26118
26292
  minify?: boolean;
26293
+ /** Whether to keep function names after JavaScript transpilations. */
26294
+ keepNames?: boolean;
26119
26295
  /** Options controlling a custom build step. */
26120
26296
  custom?: {
26121
26297
  /** Custom shell command to run before bundling. Runs even if bundle. */
@@ -26139,8 +26315,8 @@ declare interface StartDevWorkerInput {
26139
26315
  port?: number;
26140
26316
  secure?: boolean;
26141
26317
  };
26142
- /** Whether the worker runs on the edge or locally. */
26143
- remote?: boolean;
26318
+ /** Whether the worker runs on the edge or locally. Can also be set to "minimal" for minimal mode. */
26319
+ remote?: boolean | "minimal";
26144
26320
  /** Cloudflare Account credentials. Can be provided upfront or as a function which will be called only when required. */
26145
26321
  auth?: AsyncHook<CfAccount, [Pick<Unstable_Config, "account_id">]>;
26146
26322
  /** Whether local storage (KV, Durable Objects, R2, D1, etc) is persisted. You can also specify the directory to persist data to. */
@@ -26173,12 +26349,13 @@ declare interface StartDevWorkerInput {
26173
26349
  testScheduled?: boolean;
26174
26350
  /** Whether to use Vectorize mixed mode -- the worker is run locally but accesses to Vectorize are made remotely */
26175
26351
  bindVectorizeToProd?: boolean;
26352
+ /** Whether to use Images local mode -- this is lower fidelity, but doesn't require network access */
26353
+ imagesLocalMode?: boolean;
26176
26354
  /** Treat this as the primary worker in a multiworker setup (i.e. the first Worker in Miniflare's options) */
26177
26355
  multiworkerPrimary?: boolean;
26178
26356
  };
26179
26357
  legacy?: {
26180
26358
  site?: Hook<Unstable_Config["site"], [Unstable_Config]>;
26181
- legacyAssets?: Hook<Unstable_Config["legacy_assets"], [Unstable_Config]>;
26182
26359
  enableServiceEnvironments?: boolean;
26183
26360
  };
26184
26361
  unsafe?: Omit<CfUnsafe, "bindings">;
@@ -26199,7 +26376,6 @@ declare type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets"> & {
26199
26376
  processEntrypoint: boolean;
26200
26377
  };
26201
26378
  legacy: StartDevWorkerInput["legacy"] & {
26202
- legacyAssets?: Unstable_Config["legacy_assets"];
26203
26379
  site?: Unstable_Config["site"];
26204
26380
  };
26205
26381
  dev: StartDevWorkerInput["dev"] & {
@@ -26209,6 +26385,7 @@ declare type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets"> & {
26209
26385
  entrypoint: string;
26210
26386
  assets?: AssetsOptions;
26211
26387
  name: string;
26388
+ complianceRegion: Unstable_Config["compliance_region"];
26212
26389
  };
26213
26390
 
26214
26391
  /** A faster version of `request`. */
@@ -26292,7 +26469,7 @@ declare namespace Undici {
26292
26469
  var Response: Response_2;
26293
26470
  var Request: Request_2;
26294
26471
  var FormData: FormData_2;
26295
- var File: File;
26472
+ var File: File_2;
26296
26473
  var FileReader: FileReader;
26297
26474
  var caches: caches;
26298
26475
  }
@@ -26354,7 +26531,7 @@ declare namespace undici {
26354
26531
  Response_2 as Response,
26355
26532
  BlobPropertyBag,
26356
26533
  FilePropertyBag,
26357
- File,
26534
+ File_2 as File,
26358
26535
  FileReader,
26359
26536
  ProgressEventInit,
26360
26537
  ProgressEvent,
@@ -26407,7 +26584,7 @@ export declare interface Unstable_ASSETSBindingsOptions {
26407
26584
  * - `@breaking`: the deprecation/optionality is a breaking change from Wrangler v1.
26408
26585
  * - `@todo`: there's more work to be done (with details attached).
26409
26586
  */
26410
- export declare type Unstable_Config = ConfigFields<DevConfig> & PagesConfigFields & Environment;
26587
+ export declare type Unstable_Config = ComputedFields & ConfigFields<DevConfig> & PagesConfigFields & Environment;
26411
26588
 
26412
26589
  /**
26413
26590
  * unstable_dev starts a wrangler dev server, and returns a promise that resolves with utility functions to interact with it.
@@ -26441,11 +26618,9 @@ export declare interface Unstable_DevOptions {
26441
26618
  httpsKeyPath?: string;
26442
26619
  httpsCertPath?: string;
26443
26620
  assets?: string;
26444
- legacyAssets?: string;
26445
26621
  site?: string;
26446
26622
  siteInclude?: string[];
26447
26623
  siteExclude?: string[];
26448
- nodeCompat?: boolean;
26449
26624
  compatibilityDate?: string;
26450
26625
  compatibilityFlags?: string[];
26451
26626
  persist?: boolean;
@@ -26455,6 +26630,7 @@ export declare interface Unstable_DevOptions {
26455
26630
  binding: string;
26456
26631
  id?: string;
26457
26632
  preview_id?: string;
26633
+ remote?: boolean;
26458
26634
  }[];
26459
26635
  durableObjects?: {
26460
26636
  name: string;
@@ -26467,11 +26643,13 @@ export declare interface Unstable_DevOptions {
26467
26643
  service: string;
26468
26644
  environment?: string | undefined;
26469
26645
  entrypoint?: string | undefined;
26646
+ remote?: boolean;
26470
26647
  }[];
26471
26648
  r2?: {
26472
26649
  binding: string;
26473
26650
  bucket_name?: string;
26474
26651
  preview_bucket_name?: string;
26652
+ remote?: boolean;
26475
26653
  }[];
26476
26654
  ai?: {
26477
26655
  binding: string;
@@ -26501,6 +26679,7 @@ export declare interface Unstable_DevOptions {
26501
26679
  devEnv?: boolean;
26502
26680
  fileBasedRegistry?: boolean;
26503
26681
  vectorizeBindToProd?: boolean;
26682
+ imagesLocalMode?: boolean;
26504
26683
  enableIpc?: boolean;
26505
26684
  };
26506
26685
  }
@@ -26515,21 +26694,32 @@ export declare interface Unstable_DevWorker {
26515
26694
 
26516
26695
  export declare const unstable_generateASSETSBinding: (opts: Unstable_ASSETSBindingsOptions) => (request: Request_3) => Promise<Response_3>;
26517
26696
 
26518
- export declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: string): Unstable_MiniflareWorkerOptions;
26697
+ export declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: string, options?: {
26698
+ imagesLocalMode?: boolean;
26699
+ overrides?: {
26700
+ assets?: Partial<AssetsOptions>;
26701
+ };
26702
+ }): Unstable_MiniflareWorkerOptions;
26519
26703
 
26520
- export declare function unstable_getMiniflareWorkerOptions(config: Unstable_Config): Unstable_MiniflareWorkerOptions;
26704
+ export declare function unstable_getMiniflareWorkerOptions(config: Unstable_Config, env?: string, options?: {
26705
+ imagesLocalMode?: boolean;
26706
+ overrides?: {
26707
+ assets?: Partial<AssetsOptions>;
26708
+ };
26709
+ }): Unstable_MiniflareWorkerOptions;
26521
26710
 
26522
26711
  export declare interface Unstable_MiniflareWorkerOptions {
26523
26712
  workerOptions: SourcelessWorkerOptions;
26524
26713
  define: Record<string, string>;
26525
26714
  main?: string;
26715
+ externalWorkers: WorkerOptions[];
26526
26716
  }
26527
26717
 
26528
26718
  export declare const unstable_pages: {
26529
26719
  deploy: typeof deploy;
26530
26720
  };
26531
26721
 
26532
- export declare type Unstable_RawConfig = Partial<ConfigFields<RawDevConfig>> & PagesConfigFields & Unstable_RawEnvironment & DeprecatedConfigFields & EnvironmentMap & {
26722
+ export declare type Unstable_RawConfig = Partial<ConfigFields<RawDevConfig>> & PagesConfigFields & Unstable_RawEnvironment & EnvironmentMap & {
26533
26723
  $schema?: string;
26534
26724
  };
26535
26725
 
@@ -26539,14 +26729,12 @@ export declare type Unstable_RawConfig = Partial<ConfigFields<RawDevConfig>> & P
26539
26729
  * All the properties are optional, and will be replaced with defaults in the configuration that
26540
26730
  * is used in the rest of the codebase.
26541
26731
  */
26542
- export declare type Unstable_RawEnvironment = Partial<Environment> & EnvironmentDeprecated;
26732
+ export declare type Unstable_RawEnvironment = Partial<Environment>;
26543
26733
 
26544
26734
  /**
26545
26735
  * Get the Wrangler configuration; read it from the give `configPath` if available.
26546
26736
  */
26547
- export declare function unstable_readConfig(args: ReadConfigCommandArgs, options?: {
26548
- hideWarnings?: boolean;
26549
- }): Unstable_Config;
26737
+ export declare function unstable_readConfig(args: ReadConfigCommandArgs, options?: ReadConfigOptions): Unstable_Config;
26550
26738
 
26551
26739
  /**
26552
26740
  * Split an SQLQuery into an array of statements
@@ -26555,11 +26743,6 @@ export declare function unstable_splitSqlQuery(sql: string): string[];
26555
26743
 
26556
26744
  export declare function unstable_startWorker(options: StartDevWorkerInput): Promise<Worker>;
26557
26745
 
26558
- export declare const unstable_startWorkerRegistryServer: (port: number) => Promise<{
26559
- server: Server<IncomingMessage, ServerResponse>;
26560
- terminator: HttpTerminator;
26561
- }>;
26562
-
26563
26746
  /** Upgrade to a different protocol. */
26564
26747
  declare function upgrade(
26565
26748
  url: string | URL_2 | UrlObject,
@@ -26653,6 +26836,7 @@ declare interface Worker {
26653
26836
  scheduled: MiniflareWorker["scheduled"];
26654
26837
  queue: MiniflareWorker["queue"];
26655
26838
  dispose(): Promise<void>;
26839
+ raw: unstable_DevEnv;
26656
26840
  }
26657
26841
 
26658
26842
  declare type WorkerDefinition = {
@@ -26686,6 +26870,8 @@ declare type WorkflowBinding = {
26686
26870
  class_name: string;
26687
26871
  /** The script where the Workflow is defined (if it's external to this Worker) */
26688
26872
  script_name?: string;
26873
+ /** Whether the Workflow should be remote or not (only available under `--x-mixed-mode`) */
26874
+ remote?: boolean;
26689
26875
  };
26690
26876
 
26691
26877
  declare type ZoneIdRoute = {