wrangler 0.0.0-e0b98fdb6 → 0.0.0-e0efb6f17

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';
@@ -21,8 +20,6 @@ import { Readable } from 'stream';
21
20
  import { ReadableStream as ReadableStream_2 } from 'stream/web';
22
21
  import type { Request as Request_3 } from 'miniflare';
23
22
  import { Response as Response_3 } from 'miniflare';
24
- import { Server } from 'http';
25
- import { ServerResponse } from 'http';
26
23
  import { Socket } from 'net';
27
24
  import { TcpNetConnectOpts } from 'net';
28
25
  import { TLSSocket } from 'tls';
@@ -77,17 +74,137 @@ declare type ApiCredentials = {
77
74
  declare type AssetConfig = z.infer<typeof AssetConfigSchema>;
78
75
 
79
76
  declare const AssetConfigSchema: z.ZodObject<{
77
+ account_id: z.ZodOptional<z.ZodNumber>;
78
+ script_id: z.ZodOptional<z.ZodNumber>;
79
+ compatibility_date: z.ZodOptional<z.ZodString>;
80
+ compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
80
81
  html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
81
82
  not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
82
- serve_directly: z.ZodOptional<z.ZodBoolean>;
83
+ redirects: z.ZodOptional<z.ZodObject<{
84
+ version: z.ZodLiteral<1>;
85
+ staticRules: z.ZodRecord<z.ZodString, z.ZodObject<{
86
+ status: z.ZodNumber;
87
+ to: z.ZodString;
88
+ lineNumber: z.ZodNumber;
89
+ }, "strip", z.ZodTypeAny, {
90
+ status?: number;
91
+ to?: string;
92
+ lineNumber?: number;
93
+ }, {
94
+ status?: number;
95
+ to?: string;
96
+ lineNumber?: number;
97
+ }>>;
98
+ rules: z.ZodRecord<z.ZodString, z.ZodObject<{
99
+ status: z.ZodNumber;
100
+ to: z.ZodString;
101
+ }, "strip", z.ZodTypeAny, {
102
+ status?: number;
103
+ to?: string;
104
+ }, {
105
+ status?: number;
106
+ to?: string;
107
+ }>>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ version?: 1;
110
+ staticRules?: Record<string, {
111
+ status?: number;
112
+ to?: string;
113
+ lineNumber?: number;
114
+ }>;
115
+ rules?: Record<string, {
116
+ status?: number;
117
+ to?: string;
118
+ }>;
119
+ }, {
120
+ version?: 1;
121
+ staticRules?: Record<string, {
122
+ status?: number;
123
+ to?: string;
124
+ lineNumber?: number;
125
+ }>;
126
+ rules?: Record<string, {
127
+ status?: number;
128
+ to?: string;
129
+ }>;
130
+ }>>;
131
+ headers: z.ZodOptional<z.ZodObject<{
132
+ version: z.ZodLiteral<2>;
133
+ rules: z.ZodRecord<z.ZodString, z.ZodObject<{
134
+ set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
135
+ unset: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ set?: Record<string, string>;
138
+ unset?: string[];
139
+ }, {
140
+ set?: Record<string, string>;
141
+ unset?: string[];
142
+ }>>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ version?: 2;
145
+ rules?: Record<string, {
146
+ set?: Record<string, string>;
147
+ unset?: string[];
148
+ }>;
149
+ }, {
150
+ version?: 2;
151
+ rules?: Record<string, {
152
+ set?: Record<string, string>;
153
+ unset?: string[];
154
+ }>;
155
+ }>>;
83
156
  }, "strip", z.ZodTypeAny, {
157
+ account_id?: number;
158
+ script_id?: number;
159
+ compatibility_date?: string;
160
+ compatibility_flags?: string[];
84
161
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
85
162
  not_found_handling?: "none" | "single-page-application" | "404-page";
86
- serve_directly?: boolean;
163
+ redirects?: {
164
+ version?: 1;
165
+ staticRules?: Record<string, {
166
+ status?: number;
167
+ to?: string;
168
+ lineNumber?: number;
169
+ }>;
170
+ rules?: Record<string, {
171
+ status?: number;
172
+ to?: string;
173
+ }>;
174
+ };
175
+ headers?: {
176
+ version?: 2;
177
+ rules?: Record<string, {
178
+ set?: Record<string, string>;
179
+ unset?: string[];
180
+ }>;
181
+ };
87
182
  }, {
183
+ account_id?: number;
184
+ script_id?: number;
185
+ compatibility_date?: string;
186
+ compatibility_flags?: string[];
88
187
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
89
188
  not_found_handling?: "none" | "single-page-application" | "404-page";
90
- serve_directly?: boolean;
189
+ redirects?: {
190
+ version?: 1;
191
+ staticRules?: Record<string, {
192
+ status?: number;
193
+ to?: string;
194
+ lineNumber?: number;
195
+ }>;
196
+ rules?: Record<string, {
197
+ status?: number;
198
+ to?: string;
199
+ }>;
200
+ };
201
+ headers?: {
202
+ version?: 2;
203
+ rules?: Record<string, {
204
+ set?: Record<string, string>;
205
+ unset?: string[];
206
+ }>;
207
+ };
91
208
  }>;
92
209
 
93
210
  declare type Assets = {
@@ -100,17 +217,19 @@ declare type Assets = {
100
217
  /** How to handle requests that do not match an asset. */
101
218
  not_found_handling?: "single-page-application" | "404-page" | "none";
102
219
  /**
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.
220
+ * If true, route every request to the User Worker, whether or not it matches an asset.
221
+ * If false, then respond to requests that match an asset with that asset directly.
105
222
  * */
106
- experimental_serve_directly?: boolean;
223
+ run_worker_first?: boolean;
107
224
  };
108
225
 
109
226
  declare type AssetsOptions = {
110
227
  directory: string;
111
228
  binding?: string;
112
- routingConfig: RoutingConfig;
229
+ routerConfig: RouterConfig;
113
230
  assetConfig: AssetConfig;
231
+ _redirects?: string;
232
+ _headers?: string;
114
233
  };
115
234
 
116
235
  declare type AsyncHook<T extends HookValues, Args extends unknown[] = []> = Hook<T, Args> | Hook<Promise<T>, Args>;
@@ -160,6 +279,8 @@ declare type Binding = {
160
279
  type: "browser";
161
280
  } | {
162
281
  type: "ai";
282
+ } | {
283
+ type: "images";
163
284
  } | {
164
285
  type: "version_metadata";
165
286
  } | {
@@ -175,24 +296,24 @@ declare type Binding = {
175
296
  type: "r2_bucket";
176
297
  } & BindingOmit<CfR2Bucket>) | ({
177
298
  type: "d1";
178
- } & Omit<CfD1Database, "binding">) | ({
299
+ } & BindingOmit<CfD1Database>) | ({
179
300
  type: "vectorize";
180
- } & Omit<CfVectorize, "binding">) | ({
301
+ } & BindingOmit<CfVectorize>) | ({
181
302
  type: "hyperdrive";
182
- } & Omit<CfHyperdrive, "binding">) | ({
303
+ } & BindingOmit<CfHyperdrive>) | ({
183
304
  type: "service";
184
- } & Omit<CfService, "binding">) | {
305
+ } & BindingOmit<CfService>) | {
185
306
  type: "fetcher";
186
307
  fetcher: ServiceFetch;
187
308
  } | ({
188
309
  type: "analytics_engine";
189
- } & Omit<CfAnalyticsEngineDataset, "binding">) | ({
310
+ } & BindingOmit<CfAnalyticsEngineDataset>) | ({
190
311
  type: "dispatch_namespace";
191
- } & Omit<CfDispatchNamespace, "binding">) | ({
312
+ } & BindingOmit<CfDispatchNamespace>) | ({
192
313
  type: "mtls_certificate";
193
- } & Omit<CfMTlsCertificate, "binding">) | ({
314
+ } & BindingOmit<CfMTlsCertificate>) | ({
194
315
  type: "pipeline";
195
- } & Omit<CfPipeline, "binding">) | ({
316
+ } & BindingOmit<CfPipeline>) | ({
196
317
  type: "logfwdr";
197
318
  } & NameOmit<CfLogfwdrBinding>) | {
198
319
  type: `unsafe_${string}`;
@@ -202,16 +323,6 @@ declare type Binding = {
202
323
 
203
324
  declare type BindingOmit<T> = Omit<T, "binding">;
204
325
 
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
- };
214
-
215
326
  declare interface BlobPropertyBag {
216
327
  type?: string
217
328
  endings?: 'native' | 'transparent'
@@ -539,7 +650,7 @@ declare interface CfModule {
539
650
  * }
540
651
  * }
541
652
  */
542
- content: string | Buffer;
653
+ content: string | Buffer<ArrayBuffer>;
543
654
  /**
544
655
  * An optional sourcemap for this module if it's of a ESM or CJS type, this will only be present
545
656
  * if we're deploying with sourcemaps enabled. Since we copy extra modules that aren't bundled
@@ -557,7 +668,7 @@ declare interface CfModule {
557
668
  /**
558
669
  * A module type.
559
670
  */
560
- declare type CfModuleType = "esm" | "commonjs" | "compiled-wasm" | "text" | "buffer" | "python" | "python-requirement" | "nodejs-compat-module";
671
+ declare type CfModuleType = "esm" | "commonjs" | "compiled-wasm" | "text" | "buffer" | "python" | "python-requirement";
561
672
 
562
673
  declare interface CfMTlsCertificate {
563
674
  binding: string;
@@ -772,6 +883,20 @@ declare type CloudchamberConfig = {
772
883
  ipv4?: boolean;
773
884
  };
774
885
 
886
+ declare interface ComputedFields {
887
+ /** The path to the Wrangler configuration file (if any, and possibly redirected from the user Wrangler configuration) used to create this configuration. */
888
+ configPath: string | undefined;
889
+ /** 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. */
890
+ userConfigPath: string | undefined;
891
+ /**
892
+ * The original top level name for the Worker in the raw configuration.
893
+ *
894
+ * When a raw configuration has been flattened to a single environment the worker name may have been replaced or transformed.
895
+ * It can be useful to know what the top-level name was before the flattening.
896
+ */
897
+ topLevelName: string | undefined;
898
+ }
899
+
775
900
  declare class ConfigController extends Controller<ConfigControllerEventMap> {
776
901
  #private;
777
902
  latestInput?: StartDevWorkerInput;
@@ -787,7 +912,6 @@ declare type ConfigControllerEventMap = ControllerEventMap & {
787
912
  };
788
913
 
789
914
  declare interface ConfigFields<Dev extends RawDevConfig> {
790
- configPath: string | undefined;
791
915
  /**
792
916
  * A boolean to enable "legacy" style wrangler environments (from Wrangler v1).
793
917
  * These have been superseded by Services, but there may be projects that won't
@@ -848,20 +972,6 @@ declare interface ConfigFields<Dev extends RawDevConfig> {
848
972
  */
849
973
  exclude?: string[];
850
974
  } | 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
975
  /**
866
976
  * A list of wasm modules that your worker should be bound to. This is
867
977
  * the "legacy" way of binding to a wasm module. ES module workers should
@@ -909,7 +1019,7 @@ declare interface ConfigFields<Dev extends RawDevConfig> {
909
1019
  /**
910
1020
  * The possible types for a `Rule`.
911
1021
  */
912
- declare type ConfigModuleRuleType = "ESModule" | "CommonJS" | "CompiledWasm" | "Text" | "Data" | "PythonModule" | "PythonRequirement" | "NodeJsCompatModule";
1022
+ declare type ConfigModuleRuleType = "ESModule" | "CommonJS" | "CompiledWasm" | "Text" | "Data" | "PythonModule" | "PythonRequirement";
913
1023
 
914
1024
  declare type ConfigUpdateEvent = {
915
1025
  type: "configUpdate";
@@ -928,6 +1038,8 @@ options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.ConnectOptions, 'origin'
928
1038
  declare type ContainerApp = {
929
1039
  name: string;
930
1040
  instances: number;
1041
+ image?: string;
1042
+ class_name: string;
931
1043
  scheduling_policy?: "regional" | "moon";
932
1044
  configuration: {
933
1045
  image: string;
@@ -998,123 +1110,71 @@ attributes?: { name?: string, domain?: string }
998
1110
  * variable set
999
1111
  */
1000
1112
  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: "active" | "idle" | "canceled" | "success" | "failure" | "skipped";
1026
- name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
1027
- started_on: string | null;
1028
- ended_on: string | null;
1113
+ deploymentResponse: {
1114
+ url: string;
1115
+ id: string;
1116
+ environment: "production" | "preview";
1117
+ build_config: {
1118
+ build_command: string;
1119
+ destination_dir: string;
1120
+ root_dir: string;
1121
+ web_analytics_tag?: string | undefined;
1122
+ web_analytics_token?: string | undefined;
1123
+ fast_builds?: boolean | undefined;
1124
+ };
1125
+ created_on: string;
1126
+ production_branch: string;
1127
+ project_id: string;
1128
+ project_name: string;
1129
+ deployment_trigger: {
1130
+ metadata: {
1131
+ branch: string;
1132
+ commit_hash: string;
1133
+ commit_message: string;
1134
+ };
1135
+ type: string;
1136
+ };
1137
+ latest_stage: {
1138
+ status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
1139
+ name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
1140
+ started_on: string | null;
1141
+ ended_on: string | null;
1142
+ };
1143
+ stages: {
1144
+ status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
1145
+ name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
1146
+ started_on: string | null;
1147
+ ended_on: string | null;
1148
+ }[];
1149
+ aliases: string[];
1150
+ modified_on: string;
1151
+ short_id: string;
1152
+ build_image_major_version: number;
1153
+ kv_namespaces?: any;
1154
+ source?: {
1155
+ config: {
1156
+ owner: string;
1157
+ repo_name: string;
1158
+ production_branch?: string | undefined;
1159
+ pr_comments_enabled?: boolean | undefined;
1160
+ deployments_enabled?: boolean | undefined;
1161
+ production_deployments_enabled?: boolean | undefined;
1162
+ preview_deployment_setting?: "none" | "custom" | "all" | undefined;
1163
+ preview_branch_includes?: string[] | undefined;
1164
+ preview_branch_excludes?: string[] | undefined;
1165
+ };
1166
+ type: "github" | "gitlab";
1167
+ } | undefined;
1168
+ env_vars?: any;
1169
+ durable_object_namespaces?: any;
1170
+ is_skipped?: boolean | undefined;
1171
+ files?: {
1172
+ [x: string]: string | undefined;
1173
+ } | undefined;
1029
1174
  };
1030
- stages: {
1031
- status: "active" | "idle" | "canceled" | "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" | "all" | "custom" | 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;
1175
+ formData: FormData_2;
1061
1176
  }>;
1062
1177
 
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
1178
  declare interface DevConfig {
1119
1179
  /**
1120
1180
  * IP address for the local dev server to listen on,
@@ -1531,39 +1591,6 @@ declare type Entry = {
1531
1591
  declare interface Environment extends EnvironmentInheritable, EnvironmentNonInheritable {
1532
1592
  }
1533
1593
 
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
1594
  /**
1568
1595
  * The `EnvironmentInheritable` interface declares all the configuration fields for an environment
1569
1596
  * that can be inherited (and overridden) from the top-level environment.
@@ -1596,11 +1623,11 @@ declare interface EnvironmentInheritable {
1596
1623
  compatibility_date: string | undefined;
1597
1624
  /**
1598
1625
  * A list of flags that enable features from upcoming features of
1599
- * the Workers runtime, usually used together with compatibility_flags.
1626
+ * the Workers runtime, usually used together with compatibility_date.
1600
1627
  *
1601
- * More details at https://developers.cloudflare.com/workers/platform/compatibility-dates
1628
+ * More details at https://developers.cloudflare.com/workers/platform/compatibility-flags
1602
1629
  *
1603
- * @default `[]`
1630
+ * @default []
1604
1631
  * @inheritable
1605
1632
  */
1606
1633
  compatibility_flags: string[];
@@ -1638,9 +1665,8 @@ declare interface EnvironmentInheritable {
1638
1665
  * Whether we use <name>.<subdomain>.workers.dev to
1639
1666
  * test and deploy your Worker.
1640
1667
  *
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)
1668
+ *
1669
+ * @default true
1644
1670
  * @breaking
1645
1671
  * @inheritable
1646
1672
  */
@@ -1649,7 +1675,7 @@ declare interface EnvironmentInheritable {
1649
1675
  * Whether we use <version>-<name>.<subdomain>.workers.dev to
1650
1676
  * serve Preview URLs for your Worker.
1651
1677
  *
1652
- * @default `true`
1678
+ * @default true
1653
1679
  * @inheritable
1654
1680
  */
1655
1681
  preview_urls: boolean | undefined;
@@ -1681,14 +1707,14 @@ declare interface EnvironmentInheritable {
1681
1707
  /**
1682
1708
  * The function to use to replace jsx syntax.
1683
1709
  *
1684
- * @default `"React.createElement"`
1710
+ * @default "React.createElement"
1685
1711
  * @inheritable
1686
1712
  */
1687
1713
  jsx_factory: string;
1688
1714
  /**
1689
1715
  * The function to use to replace jsx fragment syntax.
1690
1716
  *
1691
- * @default `"React.Fragment"`
1717
+ * @default "React.Fragment"
1692
1718
  * @inheritable
1693
1719
  */
1694
1720
  jsx_fragment: string;
@@ -1710,24 +1736,12 @@ declare interface EnvironmentInheritable {
1710
1736
  *
1711
1737
  * More details here https://developers.cloudflare.com/workers/platform/cron-triggers
1712
1738
  *
1713
- * @default `{crons:[]}`
1739
+ * @default {crons:[]}
1714
1740
  * @inheritable
1715
1741
  */
1716
1742
  triggers: {
1717
1743
  crons: string[];
1718
1744
  };
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
1745
  /**
1732
1746
  * Specify limits for runtime behavior.
1733
1747
  * Only supported for the "standard" Usage Model
@@ -1759,11 +1773,6 @@ declare interface EnvironmentInheritable {
1759
1773
  cwd?: string;
1760
1774
  /** The directory to watch for changes while using wrangler dev, defaults to the current working directory */
1761
1775
  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
1776
  };
1768
1777
  /**
1769
1778
  * Skip internal build steps and directly deploy script
@@ -1775,28 +1784,16 @@ declare interface EnvironmentInheritable {
1775
1784
  * @inheritable
1776
1785
  */
1777
1786
  minify: boolean | undefined;
1778
- /**
1779
- * Add polyfills for node builtin modules and globals
1780
- * @inheritable
1781
- */
1782
- node_compat: boolean | undefined;
1783
1787
  /**
1784
1788
  * Designates this Worker as an internal-only "first-party" Worker.
1785
1789
  *
1786
1790
  * @inheritable
1787
1791
  */
1788
1792
  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
1793
  /**
1797
1794
  * List of bindings that you will send to logfwdr
1798
1795
  *
1799
- * @default `{bindings:[]}`
1796
+ * @default {bindings:[]}
1800
1797
  * @inheritable
1801
1798
  */
1802
1799
  logfwdr: {
@@ -1882,7 +1879,7 @@ declare interface EnvironmentNonInheritable {
1882
1879
  * NOTE: This field is not automatically inherited from the top level environment,
1883
1880
  * and so must be specified in every named environment.
1884
1881
  *
1885
- * @default `{}`
1882
+ * @default {}
1886
1883
  * @nonInheritable
1887
1884
  */
1888
1885
  define: Record<string, string>;
@@ -1892,7 +1889,7 @@ declare interface EnvironmentNonInheritable {
1892
1889
  * NOTE: This field is not automatically inherited from the top level environment,
1893
1890
  * and so must be specified in every named environment.
1894
1891
  *
1895
- * @default `{}`
1892
+ * @default {}
1896
1893
  * @nonInheritable
1897
1894
  */
1898
1895
  vars: Record<string, string | Json>;
@@ -1905,7 +1902,7 @@ declare interface EnvironmentNonInheritable {
1905
1902
  * NOTE: This field is not automatically inherited from the top level environment,
1906
1903
  * and so must be specified in every named environment.
1907
1904
  *
1908
- * @default `{bindings:[]}`
1905
+ * @default {bindings:[]}
1909
1906
  * @nonInheritable
1910
1907
  */
1911
1908
  durable_objects: {
@@ -1917,7 +1914,7 @@ declare interface EnvironmentNonInheritable {
1917
1914
  * NOTE: This field is not automatically inherited from the top level environment,
1918
1915
  * and so must be specified in every named environment.
1919
1916
  *
1920
- * @default `[]`
1917
+ * @default []
1921
1918
  * @nonInheritable
1922
1919
  */
1923
1920
  workflows: WorkflowBinding[];
@@ -1927,25 +1924,17 @@ declare interface EnvironmentNonInheritable {
1927
1924
  * NOTE: This field is not automatically inherited from the top level environment,
1928
1925
  * and so must be specified in every named environment.
1929
1926
  *
1930
- * @default `{}`
1927
+ * @default {}
1931
1928
  * @nonInheritable
1932
1929
  */
1933
1930
  cloudchamber: CloudchamberConfig;
1934
1931
  /**
1935
1932
  * Container related configuration
1933
+ *
1934
+ * @default []
1935
+ * @nonInheritable
1936
1936
  */
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
- };
1937
+ containers?: ContainerApp[];
1949
1938
  /**
1950
1939
  * These specify any Workers KV Namespaces you want to
1951
1940
  * access from inside your Worker.
@@ -1956,7 +1945,7 @@ declare interface EnvironmentNonInheritable {
1956
1945
  * NOTE: This field is not automatically inherited from the top level environment,
1957
1946
  * and so must be specified in every named environment.
1958
1947
  *
1959
- * @default `[]`
1948
+ * @default []
1960
1949
  * @nonInheritable
1961
1950
  */
1962
1951
  kv_namespaces: {
@@ -1973,7 +1962,7 @@ declare interface EnvironmentNonInheritable {
1973
1962
  * NOTE: This field is not automatically inherited from the top level environment,
1974
1963
  * and so must be specified in every named environment.
1975
1964
  *
1976
- * @default `[]`
1965
+ * @default []
1977
1966
  * @nonInheritable
1978
1967
  */
1979
1968
  send_email: {
@@ -1990,7 +1979,7 @@ declare interface EnvironmentNonInheritable {
1990
1979
  * NOTE: This field is not automatically inherited from the top level environment,
1991
1980
  * and so must be specified in every named environment.
1992
1981
  *
1993
- * @default `{consumers:[],producers:[]}`
1982
+ * @default {consumers:[],producers:[]}
1994
1983
  * @nonInheritable
1995
1984
  */
1996
1985
  queues: {
@@ -2031,7 +2020,7 @@ declare interface EnvironmentNonInheritable {
2031
2020
  * NOTE: This field is not automatically inherited from the top level environment,
2032
2021
  * and so must be specified in every named environment.
2033
2022
  *
2034
- * @default `[]`
2023
+ * @default []
2035
2024
  * @nonInheritable
2036
2025
  */
2037
2026
  r2_buckets: {
@@ -2050,7 +2039,7 @@ declare interface EnvironmentNonInheritable {
2050
2039
  * NOTE: This field is not automatically inherited from the top level environment,
2051
2040
  * and so must be specified in every named environment.
2052
2041
  *
2053
- * @default `[]`
2042
+ * @default []
2054
2043
  * @nonInheritable
2055
2044
  */
2056
2045
  d1_databases: {
@@ -2075,7 +2064,7 @@ declare interface EnvironmentNonInheritable {
2075
2064
  * NOTE: This field is not automatically inherited from the top level environment,
2076
2065
  * and so must be specified in every named environment.
2077
2066
  *
2078
- * @default `[]`
2067
+ * @default []
2079
2068
  * @nonInheritable
2080
2069
  */
2081
2070
  vectorize: {
@@ -2090,7 +2079,7 @@ declare interface EnvironmentNonInheritable {
2090
2079
  * NOTE: This field is not automatically inherited from the top level environment,
2091
2080
  * and so must be specified in every named environment.
2092
2081
  *
2093
- * @default `[]`
2082
+ * @default []
2094
2083
  * @nonInheritable
2095
2084
  */
2096
2085
  hyperdrive: {
@@ -2107,7 +2096,7 @@ declare interface EnvironmentNonInheritable {
2107
2096
  * NOTE: This field is not automatically inherited from the top level environment,
2108
2097
  * and so must be specified in every named environment.
2109
2098
  *
2110
- * @default `[]`
2099
+ * @default []
2111
2100
  * @nonInheritable
2112
2101
  */
2113
2102
  services: {
@@ -2126,7 +2115,7 @@ declare interface EnvironmentNonInheritable {
2126
2115
  * NOTE: This field is not automatically inherited from the top level environment,
2127
2116
  * and so must be specified in every named environment.
2128
2117
  *
2129
- * @default `[]`
2118
+ * @default []
2130
2119
  * @nonInheritable
2131
2120
  */
2132
2121
  analytics_engine_datasets: {
@@ -2141,7 +2130,7 @@ declare interface EnvironmentNonInheritable {
2141
2130
  * NOTE: This field is not automatically inherited from the top level environment,
2142
2131
  * and so must be specified in every named environment.
2143
2132
  *
2144
- * @default `{}`
2133
+ * @default {}
2145
2134
  * @nonInheritable
2146
2135
  */
2147
2136
  browser: {
@@ -2153,13 +2142,25 @@ declare interface EnvironmentNonInheritable {
2153
2142
  * NOTE: This field is not automatically inherited from the top level environment,
2154
2143
  * and so must be specified in every named environment.
2155
2144
  *
2156
- * @default `{}`
2145
+ * @default {}
2157
2146
  * @nonInheritable
2158
2147
  */
2159
2148
  ai: {
2160
2149
  binding: string;
2161
2150
  staging?: boolean;
2162
2151
  } | undefined;
2152
+ /**
2153
+ * Binding to Cloudflare Images
2154
+ *
2155
+ * NOTE: This field is not automatically inherited from the top level environment,
2156
+ * and so must be specified in every named environment.
2157
+ *
2158
+ * @default {}
2159
+ * @nonInheritable
2160
+ */
2161
+ images: {
2162
+ binding: string;
2163
+ } | undefined;
2163
2164
  /**
2164
2165
  * Binding to the Worker Version's metadata
2165
2166
  */
@@ -2172,7 +2173,7 @@ declare interface EnvironmentNonInheritable {
2172
2173
  * NOTE: This field is not automatically inherited from the top level environment,
2173
2174
  * and so must be specified in every named environment.
2174
2175
  *
2175
- * @default `{}`
2176
+ * @default {}
2176
2177
  * @nonInheritable
2177
2178
  */
2178
2179
  unsafe: {
@@ -2212,7 +2213,7 @@ declare interface EnvironmentNonInheritable {
2212
2213
  * NOTE: This field is not automatically inherited from the top level environment,
2213
2214
  * and so must be specified in every named environment.
2214
2215
  *
2215
- * @default `[]`
2216
+ * @default []
2216
2217
  * @nonInheritable
2217
2218
  */
2218
2219
  mtls_certificates: {
@@ -2227,7 +2228,7 @@ declare interface EnvironmentNonInheritable {
2227
2228
  * NOTE: This field is not automatically inherited from the top level environment,
2228
2229
  * and so must be specified in every named environment.
2229
2230
  *
2230
- * @default `[]`
2231
+ * @default []
2231
2232
  * @nonInheritable
2232
2233
  */
2233
2234
  tail_consumers?: TailConsumer[];
@@ -2237,7 +2238,7 @@ declare interface EnvironmentNonInheritable {
2237
2238
  * NOTE: This field is not automatically inherited from the top level environment,
2238
2239
  * and so must be specified in every named environment.
2239
2240
  *
2240
- * @default `[]`
2241
+ * @default []
2241
2242
  * @nonInheritable
2242
2243
  */
2243
2244
  dispatch_namespaces: {
@@ -2254,7 +2255,7 @@ declare interface EnvironmentNonInheritable {
2254
2255
  * NOTE: This field is not automatically inherited from the top level environment,
2255
2256
  * and so must be specified in every named environment.
2256
2257
  *
2257
- * @default `[]`
2258
+ * @default []
2258
2259
  * @nonInheritable
2259
2260
  */
2260
2261
  pipelines: {
@@ -2474,6 +2475,14 @@ declare class ExecutionContext {
2474
2475
  passThroughOnException(): void;
2475
2476
  }
2476
2477
 
2478
+ export declare const experimental_patchConfig: (configPath: string, patch: Unstable_RawConfig, isArrayInsertion?: boolean) => string;
2479
+
2480
+ export declare const experimental_readRawConfig: (args: ReadConfigCommandArgs, options?: ReadConfigOptions) => {
2481
+ rawConfig: Unstable_RawConfig;
2482
+ configPath: string | undefined;
2483
+ userConfigPath: string | undefined;
2484
+ };
2485
+
2477
2486
  declare function fetch_2 (
2478
2487
  input: RequestInfo,
2479
2488
  init?: RequestInit_2
@@ -2653,20 +2662,6 @@ declare class FormData_2 {
2653
2662
  */
2654
2663
  declare type FormDataEntryValue = string | File
2655
2664
 
2656
- /**
2657
- * By reading from a Wrangler configuration file this function generates proxy binding objects that can be
2658
- * used to simulate the interaction with bindings during local development in a Node.js environment
2659
- *
2660
- * @deprecated use `getPlatformProxy` instead
2661
- *
2662
- * @param options The various options that can tweak this function's behavior
2663
- * @returns An Object containing the generated proxies alongside other related utilities
2664
- */
2665
- export declare function getBindingsProxy<Bindings = Record<string, unknown>, CfProperties extends Record<string, unknown> = IncomingRequestCfProperties>(options?: GetBindingsProxyOptions): Promise<BindingsProxy<Bindings, CfProperties>>;
2666
-
2667
- /** Options for the `getBindingsProxy` utility */
2668
- export declare type GetBindingsProxyOptions = GetPlatformProxyOptions;
2669
-
2670
2665
  declare function getCookies (headers: Headers_2): Record<string, string>
2671
2666
 
2672
2667
  declare function getGlobalDispatcher(): Dispatcher;
@@ -2708,12 +2703,6 @@ export declare type GetPlatformProxyOptions = {
2708
2703
  persist?: boolean | {
2709
2704
  path: string;
2710
2705
  };
2711
- /**
2712
- * Use the experimental file-based dev registry for service discovery
2713
- *
2714
- * Note: this feature is experimental
2715
- */
2716
- experimentalRegistry?: boolean;
2717
2706
  };
2718
2707
 
2719
2708
  declare function getSetCookies (headers: Headers_2): Cookie[]
@@ -2743,13 +2732,6 @@ declare type Hook<T extends HookValues, Args extends unknown[] = []> = T | ((...
2743
2732
 
2744
2733
  declare type HookValues = string | number | boolean | object | undefined | null;
2745
2734
 
2746
- /**
2747
- * @property terminate Terminates HTTP server.
2748
- */
2749
- declare type HttpTerminator = {
2750
- readonly terminate: () => Promise<void>;
2751
- };
2752
-
2753
2735
  /**
2754
2736
  * The header type declaration of `undici`.
2755
2737
  */
@@ -2792,8 +2774,10 @@ declare class Logger {
2792
2774
  #private;
2793
2775
  constructor();
2794
2776
  private overrideLoggerLevel?;
2795
- get loggerLevel(): "error" | "none" | "warn" | "info" | "log" | "debug";
2796
- set loggerLevel(val: "error" | "none" | "warn" | "info" | "log" | "debug");
2777
+ private onceHistory;
2778
+ get loggerLevel(): "log" | "error" | "none" | "debug" | "info" | "warn";
2779
+ set loggerLevel(val: "log" | "error" | "none" | "debug" | "info" | "warn");
2780
+ resetLoggerLevel(): void;
2797
2781
  columns: number;
2798
2782
  debug: (...args: unknown[]) => void;
2799
2783
  debugWithSanitization: (label: string, ...args: unknown[]) => void;
@@ -2803,13 +2787,13 @@ declare class Logger {
2803
2787
  error: (...args: unknown[]) => void;
2804
2788
  table<Keys extends string>(data: TableRow<Keys>[]): void;
2805
2789
  console<M extends Exclude<keyof Console, "Console">>(method: M, ...args: Parameters<Console[M]>): void;
2806
- static onceHistory: Set<unknown>;
2807
2790
  get once(): {
2808
2791
  info: (...args: unknown[]) => void;
2809
2792
  log: (...args: unknown[]) => void;
2810
2793
  warn: (...args: unknown[]) => void;
2811
2794
  error: (...args: unknown[]) => void;
2812
2795
  };
2796
+ clearHistory(): void;
2813
2797
  doLogOnce(messageLevel: Exclude<LoggerLevel, "none">, args: unknown[]): void;
2814
2798
  private doLog;
2815
2799
  static registerBeforeLogHook(callback: (() => void) | undefined): void;
@@ -3048,6 +3032,7 @@ declare type NormalizeAndValidateConfigArgs = {
3048
3032
  remote?: boolean;
3049
3033
  localProtocol?: string;
3050
3034
  upstreamProtocol?: string;
3035
+ script?: string;
3051
3036
  };
3052
3037
 
3053
3038
  declare interface Observability {
@@ -25696,6 +25681,10 @@ declare type ReadConfigCommandArgs = NormalizeAndValidateConfigArgs & {
25696
25681
  script?: string;
25697
25682
  };
25698
25683
 
25684
+ declare type ReadConfigOptions = ResolveConfigPathOptions & {
25685
+ hideWarnings?: boolean;
25686
+ };
25687
+
25699
25688
  declare type ReadyEvent = {
25700
25689
  type: "ready";
25701
25690
  proxyWorker: Miniflare;
@@ -25824,6 +25813,10 @@ declare type RequestMode = 'cors' | 'navigate' | 'no-cors' | 'same-origin'
25824
25813
 
25825
25814
  declare type RequestRedirect = 'error' | 'follow' | 'manual'
25826
25815
 
25816
+ declare type ResolveConfigPathOptions = {
25817
+ useRedirectIfAvailable?: boolean;
25818
+ };
25819
+
25827
25820
  declare class Response_2 implements BodyMixin {
25828
25821
  constructor (body?: BodyInit, init?: ResponseInit_2)
25829
25822
 
@@ -25982,17 +25975,23 @@ declare namespace RetryHandler {
25982
25975
 
25983
25976
  declare type Route = SimpleRoute | ZoneIdRoute | ZoneNameRoute | CustomDomainRoute;
25984
25977
 
25985
- declare type RoutingConfig = z.infer<typeof RoutingConfigSchema>;
25978
+ declare type RouterConfig = z.infer<typeof RouterConfigSchema>;
25986
25979
 
25987
- declare const RoutingConfigSchema: z.ZodObject<{
25988
- has_user_worker: z.ZodOptional<z.ZodBoolean>;
25980
+ declare const RouterConfigSchema: z.ZodObject<{
25981
+ account_id: z.ZodOptional<z.ZodNumber>;
25982
+ script_id: z.ZodOptional<z.ZodNumber>;
25989
25983
  invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
25984
+ has_user_worker: z.ZodOptional<z.ZodBoolean>;
25990
25985
  }, "strip", z.ZodTypeAny, {
25991
- has_user_worker?: boolean;
25986
+ account_id?: number;
25987
+ script_id?: number;
25992
25988
  invoke_user_worker_ahead_of_assets?: boolean;
25993
- }, {
25994
25989
  has_user_worker?: boolean;
25990
+ }, {
25991
+ account_id?: number;
25992
+ script_id?: number;
25995
25993
  invoke_user_worker_ahead_of_assets?: boolean;
25994
+ has_user_worker?: boolean;
25996
25995
  }>;
25997
25996
 
25998
25997
  /**
@@ -26166,12 +26165,13 @@ declare interface StartDevWorkerInput {
26166
26165
  testScheduled?: boolean;
26167
26166
  /** Whether to use Vectorize mixed mode -- the worker is run locally but accesses to Vectorize are made remotely */
26168
26167
  bindVectorizeToProd?: boolean;
26168
+ /** Whether to use Images local mode -- this is lower fidelity, but doesn't require network access */
26169
+ imagesLocalMode?: boolean;
26169
26170
  /** Treat this as the primary worker in a multiworker setup (i.e. the first Worker in Miniflare's options) */
26170
26171
  multiworkerPrimary?: boolean;
26171
26172
  };
26172
26173
  legacy?: {
26173
26174
  site?: Hook<Unstable_Config["site"], [Unstable_Config]>;
26174
- legacyAssets?: Hook<Unstable_Config["legacy_assets"], [Unstable_Config]>;
26175
26175
  enableServiceEnvironments?: boolean;
26176
26176
  };
26177
26177
  unsafe?: Omit<CfUnsafe, "bindings">;
@@ -26192,7 +26192,6 @@ declare type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets"> & {
26192
26192
  processEntrypoint: boolean;
26193
26193
  };
26194
26194
  legacy: StartDevWorkerInput["legacy"] & {
26195
- legacyAssets?: Unstable_Config["legacy_assets"];
26196
26195
  site?: Unstable_Config["site"];
26197
26196
  };
26198
26197
  dev: StartDevWorkerInput["dev"] & {
@@ -26400,7 +26399,7 @@ export declare interface Unstable_ASSETSBindingsOptions {
26400
26399
  * - `@breaking`: the deprecation/optionality is a breaking change from Wrangler v1.
26401
26400
  * - `@todo`: there's more work to be done (with details attached).
26402
26401
  */
26403
- export declare type Unstable_Config = ConfigFields<DevConfig> & PagesConfigFields & Environment;
26402
+ export declare type Unstable_Config = ComputedFields & ConfigFields<DevConfig> & PagesConfigFields & Environment;
26404
26403
 
26405
26404
  /**
26406
26405
  * unstable_dev starts a wrangler dev server, and returns a promise that resolves with utility functions to interact with it.
@@ -26434,11 +26433,9 @@ export declare interface Unstable_DevOptions {
26434
26433
  httpsKeyPath?: string;
26435
26434
  httpsCertPath?: string;
26436
26435
  assets?: string;
26437
- legacyAssets?: string;
26438
26436
  site?: string;
26439
26437
  siteInclude?: string[];
26440
26438
  siteExclude?: string[];
26441
- nodeCompat?: boolean;
26442
26439
  compatibilityDate?: string;
26443
26440
  compatibilityFlags?: string[];
26444
26441
  persist?: boolean;
@@ -26494,6 +26491,7 @@ export declare interface Unstable_DevOptions {
26494
26491
  devEnv?: boolean;
26495
26492
  fileBasedRegistry?: boolean;
26496
26493
  vectorizeBindToProd?: boolean;
26494
+ imagesLocalMode?: boolean;
26497
26495
  enableIpc?: boolean;
26498
26496
  };
26499
26497
  }
@@ -26508,21 +26506,26 @@ export declare interface Unstable_DevWorker {
26508
26506
 
26509
26507
  export declare const unstable_generateASSETSBinding: (opts: Unstable_ASSETSBindingsOptions) => (request: Request_3) => Promise<Response_3>;
26510
26508
 
26511
- export declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: string): Unstable_MiniflareWorkerOptions;
26509
+ export declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: string, options?: {
26510
+ imagesLocalMode: boolean;
26511
+ }): Unstable_MiniflareWorkerOptions;
26512
26512
 
26513
- export declare function unstable_getMiniflareWorkerOptions(config: Unstable_Config): Unstable_MiniflareWorkerOptions;
26513
+ export declare function unstable_getMiniflareWorkerOptions(config: Unstable_Config, env?: string, options?: {
26514
+ imagesLocalMode: boolean;
26515
+ }): Unstable_MiniflareWorkerOptions;
26514
26516
 
26515
26517
  export declare interface Unstable_MiniflareWorkerOptions {
26516
26518
  workerOptions: SourcelessWorkerOptions;
26517
26519
  define: Record<string, string>;
26518
26520
  main?: string;
26521
+ externalWorkers: WorkerOptions[];
26519
26522
  }
26520
26523
 
26521
26524
  export declare const unstable_pages: {
26522
26525
  deploy: typeof deploy;
26523
26526
  };
26524
26527
 
26525
- export declare type Unstable_RawConfig = Partial<ConfigFields<RawDevConfig>> & PagesConfigFields & Unstable_RawEnvironment & DeprecatedConfigFields & EnvironmentMap & {
26528
+ export declare type Unstable_RawConfig = Partial<ConfigFields<RawDevConfig>> & PagesConfigFields & Unstable_RawEnvironment & EnvironmentMap & {
26526
26529
  $schema?: string;
26527
26530
  };
26528
26531
 
@@ -26532,14 +26535,12 @@ export declare type Unstable_RawConfig = Partial<ConfigFields<RawDevConfig>> & P
26532
26535
  * All the properties are optional, and will be replaced with defaults in the configuration that
26533
26536
  * is used in the rest of the codebase.
26534
26537
  */
26535
- export declare type Unstable_RawEnvironment = Partial<Environment> & EnvironmentDeprecated;
26538
+ export declare type Unstable_RawEnvironment = Partial<Environment>;
26536
26539
 
26537
26540
  /**
26538
26541
  * Get the Wrangler configuration; read it from the give `configPath` if available.
26539
26542
  */
26540
- export declare function unstable_readConfig(args: ReadConfigCommandArgs, options?: {
26541
- hideWarnings?: boolean;
26542
- }): Unstable_Config;
26543
+ export declare function unstable_readConfig(args: ReadConfigCommandArgs, options?: ReadConfigOptions): Unstable_Config;
26543
26544
 
26544
26545
  /**
26545
26546
  * Split an SQLQuery into an array of statements
@@ -26548,11 +26549,6 @@ export declare function unstable_splitSqlQuery(sql: string): string[];
26548
26549
 
26549
26550
  export declare function unstable_startWorker(options: StartDevWorkerInput): Promise<Worker>;
26550
26551
 
26551
- export declare const unstable_startWorkerRegistryServer: (port: number) => Promise<{
26552
- server: Server<IncomingMessage, ServerResponse>;
26553
- terminator: HttpTerminator;
26554
- }>;
26555
-
26556
26552
  /** Upgrade to a different protocol. */
26557
26553
  declare function upgrade(
26558
26554
  url: string | URL_2 | UrlObject,
@@ -26646,6 +26642,7 @@ declare interface Worker {
26646
26642
  scheduled: MiniflareWorker["scheduled"];
26647
26643
  queue: MiniflareWorker["queue"];
26648
26644
  dispose(): Promise<void>;
26645
+ raw: unstable_DevEnv;
26649
26646
  }
26650
26647
 
26651
26648
  declare type WorkerDefinition = {