wrangler 0.0.0-cddbaefe → 0.0.0-ce00a44c

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,25 +6,29 @@ 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 type { IncomingRequestCfProperties as IncomingRequestCfProperties_2 } from '@cloudflare/workers-types/experimental';
9
+ import { IncomingMessage } from 'http';
10
+ import type { IncomingRequestCfProperties } from '@cloudflare/workers-types/experimental';
10
11
  import { IpcNetConnectOpts } from 'net';
11
12
  import type { Json } from 'miniflare';
12
13
  import type { MessagePort as MessagePort_2 } from 'worker_threads';
13
14
  import type { Metafile } from 'esbuild';
14
15
  import { Miniflare } from 'miniflare';
15
16
  import type { MiniflareOptions } from 'miniflare';
17
+ import type { ModuleRule as ModuleRule_2 } from 'miniflare';
16
18
  import { Mutex } from 'miniflare';
17
19
  import { Readable } from 'stream';
18
- import { ReadableStream as ReadableStream_2 } from 'stream/web';
19
- import type { Request as Request_3 } from 'miniflare';
20
- import { Response as Response_3 } from 'miniflare';
21
- import { Socket as Socket_2 } from 'net';
20
+ import { ReadableStream } from 'stream/web';
21
+ import type { Request as Request_2 } from 'miniflare';
22
+ import { Response as Response_2 } from 'miniflare';
23
+ import type { Server } from 'node:http';
24
+ import { ServerResponse } from 'http';
25
+ import { Socket } from 'net';
22
26
  import { TcpNetConnectOpts } from 'net';
23
27
  import { TLSSocket } from 'tls';
24
28
  import { URL as URL_2 } from 'url';
25
29
  import { UrlObject } from 'url';
26
30
  import { URLSearchParams as URLSearchParams_2 } from 'url';
27
- import { WebSocket as WebSocket_3 } from 'miniflare';
31
+ import { WebSocket as WebSocket_2 } from 'miniflare';
28
32
  import type { WorkerOptions } from 'miniflare';
29
33
  import { Writable } from 'stream';
30
34
 
@@ -138,7 +142,7 @@ declare type Binding = {
138
142
  /**
139
143
  * Result of the `getBindingsProxy` utility
140
144
  */
141
- export declare type BindingsProxy<Bindings = Record<string, unknown>, CfProperties extends Record<string, unknown> = IncomingRequestCfProperties_2> = Omit<PlatformProxy<Bindings, CfProperties>, "env"> & {
145
+ export declare type BindingsProxy<Bindings = Record<string, unknown>, CfProperties extends Record<string, unknown> = IncomingRequestCfProperties> = Omit<PlatformProxy<Bindings, CfProperties>, "env"> & {
142
146
  /**
143
147
  * Object containing the various proxies
144
148
  */
@@ -150,11 +154,11 @@ declare interface BlobPropertyBag {
150
154
  endings?: 'native' | 'transparent'
151
155
  }
152
156
 
153
- declare type BodyInit_2 =
157
+ declare type BodyInit =
154
158
  | ArrayBuffer
155
159
  | AsyncIterable<Uint8Array>
156
160
  | Blob_2
157
- | FormData_2
161
+ | FormData
158
162
  | Iterable<Uint8Array>
159
163
  | NodeJS.ArrayBufferView
160
164
  | URLSearchParams_2
@@ -162,12 +166,12 @@ declare type BodyInit_2 =
162
166
  | string
163
167
 
164
168
  declare interface BodyMixin {
165
- readonly body: ReadableStream_2 | null
169
+ readonly body: ReadableStream | null
166
170
  readonly bodyUsed: boolean
167
171
 
168
172
  readonly arrayBuffer: () => Promise<ArrayBuffer>
169
173
  readonly blob: () => Promise<Blob_2>
170
- readonly formData: () => Promise<FormData_2>
174
+ readonly formData: () => Promise<FormData>
171
175
  readonly json: () => Promise<unknown>
172
176
  readonly text: () => Promise<string>
173
177
  }
@@ -249,11 +253,11 @@ declare namespace buildConnector {
249
253
  port: string
250
254
  servername?: string
251
255
  localAddress?: string | null
252
- httpSocket?: Socket_2
256
+ httpSocket?: Socket
253
257
  }
254
258
 
255
259
  type Callback = (...args: CallbackArgs) => void
256
- type CallbackArgs = [null, Socket_2 | TLSSocket] | [Error, null]
260
+ type CallbackArgs = [null, Socket | TLSSocket] | [Error, null]
257
261
 
258
262
  interface connector {
259
263
  (options: buildConnector.Options, callback: buildConnector.Callback): void
@@ -273,7 +277,7 @@ declare class BundlerController extends Controller {
273
277
  emitBundleCompletetEvent(data: BundleCompleteEvent): void;
274
278
  on(event: "bundleStart", listener: (_: BundleStartEvent) => void): this;
275
279
  on(event: "bundleComplete", listener: (_: BundleCompleteEvent) => void): this;
276
- on(event: "error", listener: (_: ErrorEvent_2) => void): this;
280
+ on(event: "error", listener: (_: ErrorEvent) => void): this;
277
281
  once: typeof BundlerController.on;
278
282
  }
279
283
 
@@ -282,32 +286,32 @@ declare type BundleStartEvent = {
282
286
  config: StartDevWorkerOptions;
283
287
  };
284
288
 
285
- declare interface Cache_2 {
286
- match (request: RequestInfo_2, options?: CacheQueryOptions_2): Promise<Response_2 | undefined>,
287
- matchAll (request?: RequestInfo_2, options?: CacheQueryOptions_2): Promise<readonly Response_2[]>,
288
- add (request: RequestInfo_2): Promise<undefined>,
289
- addAll (requests: RequestInfo_2[]): Promise<undefined>,
290
- put (request: RequestInfo_2, response: Response_2): Promise<undefined>,
291
- delete (request: RequestInfo_2, options?: CacheQueryOptions_2): Promise<boolean>,
292
- keys (request?: RequestInfo_2, options?: CacheQueryOptions_2): Promise<readonly Request_2[]>
289
+ declare interface Cache {
290
+ match (request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>,
291
+ matchAll (request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly Response[]>,
292
+ add (request: RequestInfo): Promise<undefined>,
293
+ addAll (requests: RequestInfo[]): Promise<undefined>,
294
+ put (request: RequestInfo, response: Response): Promise<undefined>,
295
+ delete (request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>,
296
+ keys (request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly Request[]>
293
297
  }
294
298
 
295
299
  /**
296
300
  * No-op implementation of Cache
297
301
  */
298
- declare class Cache_3 {
299
- delete(request: CacheRequest, options?: CacheQueryOptions_3): Promise<boolean>;
300
- match(request: CacheRequest, options?: CacheQueryOptions_3): Promise<CacheResponse | undefined>;
302
+ declare class Cache_2 {
303
+ delete(request: CacheRequest, options?: CacheQueryOptions_2): Promise<boolean>;
304
+ match(request: CacheRequest, options?: CacheQueryOptions_2): Promise<CacheResponse | undefined>;
301
305
  put(request: CacheRequest, response: CacheResponse): Promise<void>;
302
306
  }
303
307
 
304
- declare interface CacheQueryOptions_2 {
308
+ declare interface CacheQueryOptions {
305
309
  ignoreSearch?: boolean,
306
310
  ignoreMethod?: boolean,
307
311
  ignoreVary?: boolean
308
312
  }
309
313
 
310
- declare type CacheQueryOptions_3 = {
314
+ declare type CacheQueryOptions_2 = {
311
315
  ignoreMethod?: boolean;
312
316
  };
313
317
 
@@ -315,19 +319,19 @@ declare type CacheRequest = any;
315
319
 
316
320
  declare type CacheResponse = any;
317
321
 
318
- declare const caches_2: CacheStorage_2;
322
+ declare const caches: CacheStorage;
319
323
 
320
- declare interface CacheStorage_2 {
321
- match (request: RequestInfo_2, options?: MultiCacheQueryOptions): Promise<Response_2 | undefined>,
324
+ declare interface CacheStorage {
325
+ match (request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>,
322
326
  has (cacheName: string): Promise<boolean>,
323
- open (cacheName: string): Promise<Cache_2>,
327
+ open (cacheName: string): Promise<Cache>,
324
328
  delete (cacheName: string): Promise<boolean>,
325
329
  keys (): Promise<string[]>
326
330
  }
327
331
 
328
- declare const CacheStorage_2: {
329
- prototype: CacheStorage_2
330
- new(): CacheStorage_2
332
+ declare const CacheStorage: {
333
+ prototype: CacheStorage
334
+ new(): CacheStorage
331
335
  };
332
336
 
333
337
  /**
@@ -352,10 +356,10 @@ declare const CacheStorage_2: {
352
356
  /**
353
357
  * No-op implementation of CacheStorage
354
358
  */
355
- declare class CacheStorage_3 {
359
+ declare class CacheStorage_2 {
356
360
  constructor();
357
- open(cacheName: string): Promise<Cache_3>;
358
- get default(): Cache_3;
361
+ open(cacheName: string): Promise<Cache_2>;
362
+ get default(): Cache_2;
359
363
  }
360
364
 
361
365
  /**
@@ -524,18 +528,18 @@ declare namespace Client {
524
528
  }
525
529
  }
526
530
 
527
- declare interface CloseEvent_2 extends Event_2 {
531
+ declare interface CloseEvent extends Event_2 {
528
532
  readonly code: number
529
533
  readonly reason: string
530
534
  readonly wasClean: boolean
531
535
  }
532
536
 
533
- declare const CloseEvent_2: {
534
- prototype: CloseEvent_2
535
- new (type: string, eventInitDict?: CloseEventInit_2): CloseEvent_2
537
+ declare const CloseEvent: {
538
+ prototype: CloseEvent
539
+ new (type: string, eventInitDict?: CloseEventInit): CloseEvent
536
540
  };
537
541
 
538
- declare interface CloseEventInit_2 extends EventInit_2 {
542
+ declare interface CloseEventInit extends EventInit {
539
543
  code?: number
540
544
  reason?: string
541
545
  wasClean?: boolean
@@ -556,7 +560,7 @@ declare class ConfigController extends EventEmitter_2 {
556
560
  teardown(): Promise<void>;
557
561
  emitConfigUpdateEvent(data: ConfigUpdateEvent): void;
558
562
  on(event: "configUpdate", listener: (_: ConfigUpdateEvent) => void): this;
559
- on(event: "error", listener: (_: ErrorEvent_2) => void): this;
563
+ on(event: "error", listener: (_: ErrorEvent) => void): this;
560
564
  once: typeof ConfigController.on;
561
565
  }
562
566
 
@@ -587,7 +591,7 @@ declare interface ConfigFields<Dev extends RawDevConfig> {
587
591
  *
588
592
  * More details at https://developers.cloudflare.com/workers/learning/using-durable-objects#configuring-durable-object-classes-with-migrations
589
593
  *
590
- * @default `[]`
594
+ * @default []
591
595
  */
592
596
  migrations: {
593
597
  /** A unique identifier for this migration. */
@@ -631,7 +635,7 @@ declare interface ConfigFields<Dev extends RawDevConfig> {
631
635
  * items will be uploaded. Example: include = ["upload_dir"]
632
636
  *
633
637
  * @optional
634
- * @default `[]`
638
+ * @default []
635
639
  */
636
640
  include?: string[];
637
641
  /**
@@ -640,7 +644,7 @@ declare interface ConfigFields<Dev extends RawDevConfig> {
640
644
  * uploads. Example: exclude = ["ignore_dir"]
641
645
  *
642
646
  * @optional
643
- * @default `[]`
647
+ * @default []
644
648
  */
645
649
  exclude?: string[];
646
650
  } | undefined;
@@ -742,7 +746,7 @@ declare type DeferredPromise<T> = {
742
746
  };
743
747
 
744
748
  declare function deleteCookie (
745
- headers: Headers_2,
749
+ headers: Headers,
746
750
  name: string,
747
751
  attributes?: { name?: string, domain?: string }
748
752
  ): void
@@ -752,10 +756,10 @@ attributes?: { name?: string, domain?: string }
752
756
  * NOTE: You will need the `CLOUDFLARE_API_KEY` environment
753
757
  * variable set
754
758
  */
755
- declare function deploy({ directory, accountId, projectName, branch, skipCaching, commitMessage, commitHash, commitDirty, functionsDirectory: customFunctionsDirectory, bundle, }: PagesDeployOptions): Promise<{
759
+ declare function deploy({ directory, accountId, projectName, branch, skipCaching, commitMessage, commitHash, commitDirty, functionsDirectory: customFunctionsDirectory, bundle, args, }: PagesDeployOptions): Promise<{
756
760
  url: string;
757
- environment: "production" | "preview";
758
761
  id: string;
762
+ environment: "production" | "preview";
759
763
  project_id: string;
760
764
  project_name: string;
761
765
  build_config: {
@@ -794,7 +798,6 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
794
798
  build_image_major_version: number;
795
799
  kv_namespaces?: any;
796
800
  source?: {
797
- type: "github" | "gitlab";
798
801
  config: {
799
802
  owner: string;
800
803
  repo_name: string;
@@ -806,6 +809,7 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
806
809
  preview_branch_includes?: string[] | undefined;
807
810
  preview_branch_excludes?: string[] | undefined;
808
811
  };
812
+ type: "github" | "gitlab";
809
813
  } | undefined;
810
814
  env_vars?: any;
811
815
  durable_object_namespaces?: any;
@@ -874,25 +878,25 @@ declare interface DevConfig {
874
878
  /**
875
879
  * IP address for the local dev server to listen on,
876
880
  *
877
- * @default `localhost`
881
+ * @default localhost
878
882
  */
879
883
  ip: string;
880
884
  /**
881
885
  * Port for the local dev server to listen on
882
886
  *
883
- * @default `8787`
887
+ * @default 8787
884
888
  */
885
889
  port: number | undefined;
886
890
  /**
887
891
  * Port for the local dev server's inspector to listen on
888
892
  *
889
- * @default `9229`
893
+ * @default 9229
890
894
  */
891
895
  inspector_port: number | undefined;
892
896
  /**
893
897
  * Protocol that local wrangler dev server listens to requests on.
894
898
  *
895
- * @default `http`
899
+ * @default http
896
900
  */
897
901
  local_protocol: "http" | "https";
898
902
  /**
@@ -901,7 +905,7 @@ declare interface DevConfig {
901
905
  * Setting this to `http` is not currently implemented for remote mode.
902
906
  * See https://github.com/cloudflare/workers-sdk/issues/583
903
907
  *
904
- * @default `https` in remote mode; same as local_protocol in local mode.
908
+ * @default https
905
909
  */
906
910
  upstream_protocol: "https" | "http";
907
911
  /**
@@ -970,20 +974,20 @@ declare namespace DiagnosticsChannel {
970
974
  interface ClientSendHeadersMessage {
971
975
  request: Request;
972
976
  headers: string;
973
- socket: Socket_2;
977
+ socket: Socket;
974
978
  }
975
979
  interface ClientBeforeConnectMessage {
976
980
  connectParams: ConnectParams;
977
981
  connector: Connector;
978
982
  }
979
983
  interface ClientConnectedMessage {
980
- socket: Socket_2;
984
+ socket: Socket;
981
985
  connectParams: ConnectParams;
982
986
  connector: Connector;
983
987
  }
984
988
  interface ClientConnectErrorMessage {
985
989
  error: Error;
986
- socket: Socket_2;
990
+ socket: Socket;
987
991
  connectParams: ConnectParams;
988
992
  connector: Connector;
989
993
  }
@@ -1076,7 +1080,7 @@ declare namespace Dispatcher {
1076
1080
  path: string;
1077
1081
  method: HttpMethod;
1078
1082
  /** Default: `null` */
1079
- body?: string | Buffer | Uint8Array | Readable | null | FormData_2;
1083
+ body?: string | Buffer | Uint8Array | Readable | null | FormData;
1080
1084
  /** Default: `null` */
1081
1085
  headers?: IncomingHttpHeaders | string[] | null;
1082
1086
  /** Query string params to be embedded in the request URL. Default: `null` */
@@ -1227,7 +1231,7 @@ declare interface DispatchNamespaceOutbound {
1227
1231
  parameters?: string[];
1228
1232
  }
1229
1233
 
1230
- declare type DOMException_2 = typeof globalThis extends { DOMException: infer T }
1234
+ declare type DOMException = typeof globalThis extends { DOMException: infer T }
1231
1235
  ? T
1232
1236
  : any
1233
1237
 
@@ -1550,6 +1554,11 @@ declare interface EnvironmentInheritable {
1550
1554
  * @inheritable
1551
1555
  */
1552
1556
  logpush: boolean | undefined;
1557
+ /**
1558
+ * Include source maps when uploading this worker.
1559
+ * @inheritable
1560
+ */
1561
+ upload_source_maps: boolean | undefined;
1553
1562
  /**
1554
1563
  * Specify how the worker should be located to minimize round-trip time.
1555
1564
  *
@@ -1571,7 +1580,7 @@ declare interface EnvironmentMap {
1571
1580
  *
1572
1581
  * For more information, see the documentation at https://developers.cloudflare.com/workers/cli-wrangler/configuration#environments
1573
1582
  *
1574
- * @default `{}`
1583
+ * @default {}
1575
1584
  */
1576
1585
  env?: {
1577
1586
  [envName: string]: RawEnvironment;
@@ -1685,11 +1694,15 @@ declare interface EnvironmentNonInheritable {
1685
1694
  binding: string;
1686
1695
  /** The name of this Queue. */
1687
1696
  queue: string;
1697
+ /** The number of seconds to wait before delivering a message */
1698
+ delivery_delay?: number;
1688
1699
  }[];
1689
1700
  /** Consumer configuration */
1690
1701
  consumers?: {
1691
- /** The name of the queue from which this script should consume. */
1702
+ /** The name of the queue from which this consumer should consume. */
1692
1703
  queue: string;
1704
+ /** The consumer type, e.g., worker, http-pull, r2-bucket, etc. Default is worker. */
1705
+ type?: string;
1693
1706
  /** The maximum number of messages per batch */
1694
1707
  max_batch_size?: number;
1695
1708
  /** The maximum number of seconds to wait to fill a batch with messages. */
@@ -1700,6 +1713,10 @@ declare interface EnvironmentNonInheritable {
1700
1713
  dead_letter_queue?: string;
1701
1714
  /** The maximum number of concurrent consumer Worker invocations. Leaving this unset will allow your consumer to scale to the maximum concurrency needed to keep up with the message backlog. */
1702
1715
  max_concurrency?: number | null;
1716
+ /** The number of milliseconds to wait for pulled messages to become visible again */
1717
+ visibility_timeout_ms?: number;
1718
+ /** The number of seconds to wait before retrying a message */
1719
+ retry_delay?: number;
1703
1720
  }[];
1704
1721
  };
1705
1722
  /**
@@ -1809,6 +1826,8 @@ declare interface EnvironmentNonInheritable {
1809
1826
  service: string;
1810
1827
  /** The environment of the service (e.g. production, staging, etc). */
1811
1828
  environment?: string;
1829
+ /** Optionally, the entrypoint (named export) of the service to bind to. */
1830
+ entrypoint?: string;
1812
1831
  }[] | undefined;
1813
1832
  /**
1814
1833
  * Specifies analytics engine datasets that are bound to this Worker environment.
@@ -1837,6 +1856,12 @@ declare interface EnvironmentNonInheritable {
1837
1856
  ai: {
1838
1857
  binding: string;
1839
1858
  } | undefined;
1859
+ /**
1860
+ * Binding to the Worker Version's metadata
1861
+ */
1862
+ version_metadata: {
1863
+ binding: string;
1864
+ } | undefined;
1840
1865
  /**
1841
1866
  * "Unsafe" tables for features that aren't directly supported by wrangler.
1842
1867
  *
@@ -1885,7 +1910,7 @@ declare interface EnvironmentNonInheritable {
1885
1910
  tail_consumers?: TailConsumer[];
1886
1911
  }
1887
1912
 
1888
- declare type ErrorEvent_2 = BaseErrorEvent<"ConfigController" | "BundlerController" | "LocalRuntimeController" | "RemoteRuntimeController" | "ProxyWorker" | "InspectorProxyWorker"> | BaseErrorEvent<"ProxyController", {
1913
+ declare type ErrorEvent = BaseErrorEvent<"ConfigController" | "BundlerController" | "LocalRuntimeController" | "RemoteRuntimeController" | "ProxyWorker" | "InspectorProxyWorker"> | BaseErrorEvent<"ProxyController", {
1889
1914
  config?: StartDevWorkerOptions;
1890
1915
  bundle?: EsbuildBundle;
1891
1916
  }>;
@@ -2047,17 +2072,17 @@ declare type Event_2 = typeof globalThis extends { Event: infer T }
2047
2072
  readonly type: string
2048
2073
  }
2049
2074
 
2050
- declare interface EventInit_2 {
2075
+ declare interface EventInit {
2051
2076
  bubbles?: boolean
2052
2077
  cancelable?: boolean
2053
2078
  composed?: boolean
2054
2079
  }
2055
2080
 
2056
- declare interface EventListener_2 {
2081
+ declare interface EventListener {
2057
2082
  (evt: Event_2): void
2058
2083
  }
2059
2084
 
2060
- declare interface EventListenerObject_2 {
2085
+ declare interface EventListenerObject {
2061
2086
  handleEvent (object: Event_2): void
2062
2087
  }
2063
2088
 
@@ -2065,7 +2090,7 @@ declare interface EventListenerOptions {
2065
2090
  capture?: boolean
2066
2091
  }
2067
2092
 
2068
- declare type EventListenerOrEventListenerObject_2 = EventListener_2 | EventListenerObject_2
2093
+ declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject
2069
2094
 
2070
2095
  declare type _EventMethods = keyof ProtocolMapping.Events;
2071
2096
 
@@ -2085,17 +2110,17 @@ declare type EventTarget_2 = typeof globalThis extends { EventTarget: infer T }
2085
2110
  ): void
2086
2111
  }
2087
2112
 
2088
- declare class ExecutionContext_2 {
2113
+ declare class ExecutionContext {
2089
2114
  waitUntil(promise: Promise<any>): void;
2090
2115
  passThroughOnException(): void;
2091
2116
  }
2092
2117
 
2093
- declare function fetch_2 (
2094
- input: RequestInfo_2,
2095
- init?: RequestInit_2
2096
- ): Promise<Response_2>
2118
+ declare function fetch (
2119
+ input: RequestInfo,
2120
+ init?: RequestInit
2121
+ ): Promise<Response>
2097
2122
 
2098
- declare class File_2 extends Blob_2 {
2123
+ declare class File extends Blob_2 {
2099
2124
  /**
2100
2125
  * Creates a new File instance.
2101
2126
  *
@@ -2118,7 +2143,7 @@ declare class File_2 extends Blob_2 {
2118
2143
  readonly [Symbol.toStringTag]: string
2119
2144
  }
2120
2145
 
2121
- declare type File_3<Contents = string> = {
2146
+ declare type File_2<Contents = string> = {
2122
2147
  path: string;
2123
2148
  } | {
2124
2149
  contents: Contents;
@@ -2156,7 +2181,7 @@ declare class FileReader {
2156
2181
 
2157
2182
  readonly result: string | ArrayBuffer | null
2158
2183
 
2159
- readonly error: DOMException_2 | null
2184
+ readonly error: DOMException | null
2160
2185
 
2161
2186
  onloadstart: null | ((this: FileReader, event: ProgressEvent) => void)
2162
2187
  onprogress: null | ((this: FileReader, event: ProgressEvent) => void)
@@ -2169,7 +2194,7 @@ declare class FileReader {
2169
2194
  /**
2170
2195
  * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using fetch().
2171
2196
  */
2172
- declare class FormData_2 {
2197
+ declare class FormData {
2173
2198
  /**
2174
2199
  * Appends a new value onto an existing key inside a FormData object,
2175
2200
  * or adds the key if it does not already exist.
@@ -2234,7 +2259,7 @@ declare class FormData_2 {
2234
2259
  * Executes given callback function for each field of the FormData instance
2235
2260
  */
2236
2261
  forEach: (
2237
- callbackfn: (value: FormDataEntryValue, key: string, iterable: FormData_2) => void,
2262
+ callbackfn: (value: FormDataEntryValue, key: string, iterable: FormData) => void,
2238
2263
  thisArg?: unknown
2239
2264
  ) => void
2240
2265
 
@@ -2267,7 +2292,7 @@ declare class FormData_2 {
2267
2292
  /**
2268
2293
  * A `string` or `File` that represents a single value from a set of `FormData` key-value pairs.
2269
2294
  */
2270
- declare type FormDataEntryValue = string | File_2
2295
+ declare type FormDataEntryValue = string | File
2271
2296
 
2272
2297
  /**
2273
2298
  * By reading from a `wrangler.toml` file this function generates proxy binding objects that can be
@@ -2278,12 +2303,12 @@ declare type FormDataEntryValue = string | File_2
2278
2303
  * @param options The various options that can tweak this function's behavior
2279
2304
  * @returns An Object containing the generated proxies alongside other related utilities
2280
2305
  */
2281
- export declare function getBindingsProxy<Bindings = Record<string, unknown>, CfProperties extends Record<string, unknown> = IncomingRequestCfProperties_2>(options?: GetBindingsProxyOptions): Promise<BindingsProxy<Bindings, CfProperties>>;
2306
+ export declare function getBindingsProxy<Bindings = Record<string, unknown>, CfProperties extends Record<string, unknown> = IncomingRequestCfProperties>(options?: GetBindingsProxyOptions): Promise<BindingsProxy<Bindings, CfProperties>>;
2282
2307
 
2283
2308
  /** Options for the `getBindingsProxy` utility */
2284
2309
  export declare type GetBindingsProxyOptions = GetPlatformProxyOptions;
2285
2310
 
2286
- declare function getCookies (headers: Headers_2): Record<string, string>
2311
+ declare function getCookies (headers: Headers): Record<string, string>
2287
2312
 
2288
2313
  declare function getGlobalDispatcher(): Dispatcher;
2289
2314
 
@@ -2297,7 +2322,7 @@ declare function getGlobalOrigin(): URL | undefined;
2297
2322
  * @param options The various options that can tweak this function's behavior
2298
2323
  * @returns An Object containing the generated proxies alongside other related utilities
2299
2324
  */
2300
- export declare function getPlatformProxy<Env = Record<string, unknown>, CfProperties extends Record<string, unknown> = IncomingRequestCfProperties_2>(options?: GetPlatformProxyOptions): Promise<PlatformProxy<Env, CfProperties>>;
2325
+ export declare function getPlatformProxy<Env = Record<string, unknown>, CfProperties extends Record<string, unknown> = IncomingRequestCfProperties>(options?: GetPlatformProxyOptions): Promise<PlatformProxy<Env, CfProperties>>;
2301
2326
 
2302
2327
  /**
2303
2328
  * Options for the `getPlatformProxy` utility
@@ -2324,10 +2349,10 @@ export declare type GetPlatformProxyOptions = {
2324
2349
  };
2325
2350
  };
2326
2351
 
2327
- declare function getSetCookies (headers: Headers_2): Cookie[]
2352
+ declare function getSetCookies (headers: Headers): Cookie[]
2328
2353
 
2329
- declare class Headers_2 implements SpecIterable<[string, string]> {
2330
- constructor (init?: HeadersInit_2)
2354
+ declare class Headers implements SpecIterable<[string, string]> {
2355
+ constructor (init?: HeadersInit)
2331
2356
  readonly append: (name: string, value: string) => void
2332
2357
  readonly delete: (name: string) => void
2333
2358
  readonly get: (name: string) => string | null
@@ -2335,7 +2360,7 @@ declare class Headers_2 implements SpecIterable<[string, string]> {
2335
2360
  readonly set: (name: string, value: string) => void
2336
2361
  readonly getSetCookie: () => string[]
2337
2362
  readonly forEach: (
2338
- callbackfn: (value: string, key: string, iterable: Headers_2) => void,
2363
+ callbackfn: (value: string, key: string, iterable: Headers) => void,
2339
2364
  thisArg?: unknown
2340
2365
  ) => void
2341
2366
 
@@ -2345,10 +2370,17 @@ declare class Headers_2 implements SpecIterable<[string, string]> {
2345
2370
  readonly [Symbol.iterator]: () => SpecIterator<[string, string]>
2346
2371
  }
2347
2372
 
2348
- declare type HeadersInit_2 = string[][] | Record<string, string | ReadonlyArray<string>> | Headers_2
2373
+ declare type HeadersInit = string[][] | Record<string, string | ReadonlyArray<string>> | Headers
2349
2374
 
2350
2375
  declare type Hook<T, Args extends unknown[] = unknown[]> = T | Promise<T> | ((...args: Args) => T | Promise<T>);
2351
2376
 
2377
+ /**
2378
+ * @property terminate Terminates HTTP server.
2379
+ */
2380
+ declare type HttpTerminator = {
2381
+ readonly terminate: () => Promise<void>;
2382
+ };
2383
+
2352
2384
  /**
2353
2385
  * The header type declaration of `undici`.
2354
2386
  */
@@ -2386,7 +2418,7 @@ declare type LogLevel = "debug" | "info" | "log" | "warn" | "error" | "none";
2386
2418
 
2387
2419
  declare type MaybePromise<T> = T | Promise<T>;
2388
2420
 
2389
- declare interface MessageEvent_2<T = any> extends Event_2 {
2421
+ declare interface MessageEvent<T = any> extends Event_2 {
2390
2422
  readonly data: T
2391
2423
  readonly lastEventId: string
2392
2424
  readonly origin: string
@@ -2404,12 +2436,12 @@ declare interface MessageEvent_2<T = any> extends Event_2 {
2404
2436
  ): void;
2405
2437
  }
2406
2438
 
2407
- declare const MessageEvent_2: {
2408
- prototype: MessageEvent_2
2409
- new<T>(type: string, eventInitDict?: MessageEventInit_2<T>): MessageEvent_2<T>
2439
+ declare const MessageEvent: {
2440
+ prototype: MessageEvent
2441
+ new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>
2410
2442
  };
2411
2443
 
2412
- declare interface MessageEventInit_2<T = any> extends EventInit_2 {
2444
+ declare interface MessageEventInit<T = any> extends EventInit {
2413
2445
  data?: T
2414
2446
  lastEventId?: string
2415
2447
  origin?: string
@@ -2542,8 +2574,8 @@ declare namespace MockInterceptor {
2542
2574
  path: string;
2543
2575
  origin: string;
2544
2576
  method: string;
2545
- body?: BodyInit_2 | Dispatcher.DispatchOptions['body'];
2546
- headers: Headers_2 | Record<string, string>;
2577
+ body?: BodyInit | Dispatcher.DispatchOptions['body'];
2578
+ headers: Headers | Record<string, string>;
2547
2579
  maxRedirections: number;
2548
2580
  }
2549
2581
 
@@ -2592,10 +2624,32 @@ declare interface ModuleRule {
2592
2624
  fallthrough?: boolean;
2593
2625
  }
2594
2626
 
2595
- declare interface MultiCacheQueryOptions extends CacheQueryOptions_2 {
2627
+ declare interface MultiCacheQueryOptions extends CacheQueryOptions {
2596
2628
  cacheName?: string
2597
2629
  }
2598
2630
 
2631
+ declare interface PagesConfigFields {
2632
+ /**
2633
+ * The directory of static assets to serve.
2634
+ *
2635
+ * The presence of this field in `wrangler.toml` indicates a Pages project,
2636
+ * and will prompt the handling of the configuration file according to the
2637
+ * Pages-specific validation rules.
2638
+ */
2639
+ pages_build_output_dir?: string;
2640
+ }
2641
+
2642
+ declare interface PagesConfigFields {
2643
+ /**
2644
+ * The directory of static assets to serve.
2645
+ *
2646
+ * The presence of this field in `wrangler.toml` indicates a Pages project,
2647
+ * and will prompt the handling of the configuration file according to the
2648
+ * Pages-specific validation rules.
2649
+ */
2650
+ pages_build_output_dir?: string;
2651
+ }
2652
+
2599
2653
  declare interface PagesDeployOptions {
2600
2654
  /**
2601
2655
  * Path to static assets to deploy to Pages
@@ -2642,6 +2696,10 @@ declare interface PagesDeployOptions {
2642
2696
  * Default: true
2643
2697
  */
2644
2698
  bundle?: boolean;
2699
+ /**
2700
+ * Command line args passed to the `pages deploy` cmd
2701
+ */
2702
+ args?: Record<string, unknown>;
2645
2703
  }
2646
2704
 
2647
2705
  declare type _Params<ParamsArray extends [unknown?]> = ParamsArray extends [infer P] ? P : undefined;
@@ -2671,7 +2729,7 @@ handler: Dispatcher.PipelineHandler
2671
2729
  /**
2672
2730
  * Result of the `getPlatformProxy` utility
2673
2731
  */
2674
- export declare type PlatformProxy<Env = Record<string, unknown>, CfProperties extends Record<string, unknown> = IncomingRequestCfProperties_2> = {
2732
+ export declare type PlatformProxy<Env = Record<string, unknown>, CfProperties extends Record<string, unknown> = IncomingRequestCfProperties> = {
2675
2733
  /**
2676
2734
  * Environment object containing the various Cloudflare bindings
2677
2735
  */
@@ -2683,11 +2741,11 @@ export declare type PlatformProxy<Env = Record<string, unknown>, CfProperties ex
2683
2741
  /**
2684
2742
  * Mock of the context object that Workers received in their request handler, all the object's methods are no-op
2685
2743
  */
2686
- ctx: ExecutionContext_2;
2744
+ ctx: ExecutionContext;
2687
2745
  /**
2688
2746
  * Caches object emulating the Workers Cache runtime API
2689
2747
  */
2690
- caches: CacheStorage_3;
2748
+ caches: CacheStorage_2;
2691
2749
  /**
2692
2750
  * Function used to dispose of the child process providing the bindings implementation
2693
2751
  */
@@ -2747,7 +2805,7 @@ declare class ProgressEvent {
2747
2805
  readonly total: number
2748
2806
  }
2749
2807
 
2750
- declare interface ProgressEventInit extends EventInit_2 {
2808
+ declare interface ProgressEventInit extends EventInit {
2751
2809
  lengthComputable?: boolean
2752
2810
  loaded?: number
2753
2811
  total?: number
@@ -23021,12 +23079,12 @@ declare class ProxyController extends EventEmitter_2 {
23021
23079
  ready: DeferredPromise<ReadyEvent>;
23022
23080
  proxyWorker?: Miniflare;
23023
23081
  proxyWorkerOptions?: MiniflareOptions;
23024
- inspectorProxyWorkerWebSocket?: DeferredPromise<WebSocket_3>;
23082
+ inspectorProxyWorkerWebSocket?: DeferredPromise<WebSocket_2>;
23025
23083
  protected latestConfig?: StartDevWorkerOptions;
23026
23084
  protected latestBundle?: EsbuildBundle;
23027
23085
  secret: `${string}-${string}-${string}-${string}-${string}`;
23028
23086
  protected createProxyWorker(): void;
23029
- reconnectInspectorProxyWorker(): Promise<WebSocket_3 | undefined>;
23087
+ reconnectInspectorProxyWorker(): Promise<WebSocket_2 | undefined>;
23030
23088
  runtimeMessageMutex: Mutex;
23031
23089
  sendMessageToProxyWorker(message: ProxyWorkerIncomingRequestBody, retries?: number): Promise<void>;
23032
23090
  sendMessageToInspectorProxyWorker(message: InspectorProxyWorkerIncomingWebSocketMessage, retries?: number): Promise<void>;
@@ -23036,7 +23094,7 @@ declare class ProxyController extends EventEmitter_2 {
23036
23094
  onReloadComplete(data: ReloadCompleteEvent): void;
23037
23095
  onProxyWorkerMessage(message: ProxyWorkerOutgoingRequestBody): void;
23038
23096
  onInspectorProxyWorkerMessage(message: InspectorProxyWorkerOutgoingWebsocketMessage): void;
23039
- onInspectorProxyWorkerRequest(message: InspectorProxyWorkerOutgoingRequestBody): Promise<Response_3>;
23097
+ onInspectorProxyWorkerRequest(message: InspectorProxyWorkerOutgoingRequestBody): Promise<Response_2>;
23040
23098
  _torndown: boolean;
23041
23099
  teardown(): Promise<void>;
23042
23100
  emitReadyEvent(proxyWorker: Miniflare): void;
@@ -23044,7 +23102,7 @@ declare class ProxyController extends EventEmitter_2 {
23044
23102
  emitErrorEvent(reason: string, cause: Error | SerializedError): void;
23045
23103
  on(event: "ready", listener: (_: ReadyEvent) => void): this;
23046
23104
  on(event: "previewTokenExpired", listener: (_: PreviewTokenExpiredEvent) => void): this;
23047
- on(event: "error", listener: (_: ErrorEvent_2) => void): this;
23105
+ on(event: "error", listener: (_: ErrorEvent) => void): this;
23048
23106
  once: typeof ProxyController.on;
23049
23107
  }
23050
23108
 
@@ -23056,6 +23114,7 @@ declare type ProxyData = {
23056
23114
  liveReload?: boolean;
23057
23115
  proxyLogsToController?: boolean;
23058
23116
  internalDurableObjects?: CfDurableObject[];
23117
+ entrypointAddresses: WorkerEntrypointsDefinition | undefined;
23059
23118
  };
23060
23119
 
23061
23120
  declare type ProxyWorkerIncomingRequestBody = {
@@ -23076,7 +23135,9 @@ declare type ProxyWorkerOutgoingRequestBody = {
23076
23135
  args: Parameters<typeof console.debug>;
23077
23136
  };
23078
23137
 
23079
- declare type RawConfig = Partial<ConfigFields<RawDevConfig>> & RawEnvironment & DeprecatedConfigFields & EnvironmentMap;
23138
+ declare type RawConfig = Partial<ConfigFields<RawDevConfig>> & PagesConfigFields & RawEnvironment & DeprecatedConfigFields & EnvironmentMap & {
23139
+ $schema?: string;
23140
+ };
23080
23141
 
23081
23142
  declare type RawDevConfig = Partial<DevConfig>;
23082
23143
 
@@ -23123,19 +23184,13 @@ declare type ReloadStartEvent = {
23123
23184
  bundle: EsbuildBundle;
23124
23185
  };
23125
23186
 
23126
- /** Performs an HTTP request. */
23127
- declare function request(
23128
- url: string | URL_2 | UrlObject,
23129
- options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.RequestOptions, 'origin' | 'path' | 'method'> & Partial<Pick<Dispatcher.RequestOptions, 'method'>>,
23130
- ): Promise<Dispatcher.ResponseData>;
23131
-
23132
- declare class Request_2 implements BodyMixin {
23133
- constructor (input: RequestInfo_2, init?: RequestInit_2)
23187
+ declare class Request implements BodyMixin {
23188
+ constructor (input: RequestInfo, init?: RequestInit)
23134
23189
 
23135
23190
  readonly cache: RequestCache
23136
23191
  readonly credentials: RequestCredentials
23137
23192
  readonly destination: RequestDestination
23138
- readonly headers: Headers_2
23193
+ readonly headers: Headers
23139
23194
  readonly integrity: string
23140
23195
  readonly method: string
23141
23196
  readonly mode: RequestMode
@@ -23147,18 +23202,24 @@ declare class Request_2 implements BodyMixin {
23147
23202
  readonly signal: AbortSignal
23148
23203
  readonly duplex: RequestDuplex
23149
23204
 
23150
- readonly body: ReadableStream_2 | null
23205
+ readonly body: ReadableStream | null
23151
23206
  readonly bodyUsed: boolean
23152
23207
 
23153
23208
  readonly arrayBuffer: () => Promise<ArrayBuffer>
23154
23209
  readonly blob: () => Promise<Blob_2>
23155
- readonly formData: () => Promise<FormData_2>
23210
+ readonly formData: () => Promise<FormData>
23156
23211
  readonly json: () => Promise<unknown>
23157
23212
  readonly text: () => Promise<string>
23158
23213
 
23159
- readonly clone: () => Request_2
23214
+ readonly clone: () => Request
23160
23215
  }
23161
23216
 
23217
+ /** Performs an HTTP request. */
23218
+ declare function request(
23219
+ url: string | URL_2 | UrlObject,
23220
+ options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.RequestOptions, 'origin' | 'path' | 'method'> & Partial<Pick<Dispatcher.RequestOptions, 'method'>>,
23221
+ ): Promise<Dispatcher.ResponseData>;
23222
+
23162
23223
  declare type RequestCache =
23163
23224
  | 'default'
23164
23225
  | 'force-cache'
@@ -23191,13 +23252,13 @@ declare type RequestDestination =
23191
23252
 
23192
23253
  declare type RequestDuplex = 'half'
23193
23254
 
23194
- declare type RequestInfo_2 = string | URL_2 | Request_2
23255
+ declare type RequestInfo = string | URL_2 | Request
23195
23256
 
23196
- declare interface RequestInit_2 {
23257
+ declare interface RequestInit {
23197
23258
  method?: string
23198
23259
  keepalive?: boolean
23199
- headers?: HeadersInit_2
23200
- body?: BodyInit_2
23260
+ headers?: HeadersInit
23261
+ body?: BodyInit
23201
23262
  redirect?: RequestRedirect
23202
23263
  integrity?: string
23203
23264
  signal?: AbortSignal | null
@@ -23214,10 +23275,10 @@ declare type RequestMode = 'cors' | 'navigate' | 'no-cors' | 'same-origin'
23214
23275
 
23215
23276
  declare type RequestRedirect = 'error' | 'follow' | 'manual'
23216
23277
 
23217
- declare class Response_2 implements BodyMixin {
23218
- constructor (body?: BodyInit_2, init?: ResponseInit_2)
23278
+ declare class Response implements BodyMixin {
23279
+ constructor (body?: BodyInit, init?: ResponseInit)
23219
23280
 
23220
- readonly headers: Headers_2
23281
+ readonly headers: Headers
23221
23282
  readonly ok: boolean
23222
23283
  readonly status: number
23223
23284
  readonly statusText: string
@@ -23225,26 +23286,26 @@ declare class Response_2 implements BodyMixin {
23225
23286
  readonly url: string
23226
23287
  readonly redirected: boolean
23227
23288
 
23228
- readonly body: ReadableStream_2 | null
23289
+ readonly body: ReadableStream | null
23229
23290
  readonly bodyUsed: boolean
23230
23291
 
23231
23292
  readonly arrayBuffer: () => Promise<ArrayBuffer>
23232
23293
  readonly blob: () => Promise<Blob_2>
23233
- readonly formData: () => Promise<FormData_2>
23294
+ readonly formData: () => Promise<FormData>
23234
23295
  readonly json: () => Promise<unknown>
23235
23296
  readonly text: () => Promise<string>
23236
23297
 
23237
- readonly clone: () => Response_2
23298
+ readonly clone: () => Response
23238
23299
 
23239
- static error (): Response_2
23240
- static json(data: any, init?: ResponseInit_2): Response_2
23241
- static redirect (url: string | URL_2, status: ResponseRedirectStatus): Response_2
23300
+ static error (): Response
23301
+ static json(data: any, init?: ResponseInit): Response
23302
+ static redirect (url: string | URL_2, status: ResponseRedirectStatus): Response
23242
23303
  }
23243
23304
 
23244
- declare interface ResponseInit_2 {
23305
+ declare interface ResponseInit {
23245
23306
  readonly status?: number
23246
23307
  readonly statusText?: string
23247
- readonly headers?: HeadersInit_2
23308
+ readonly headers?: HeadersInit
23248
23309
  }
23249
23310
 
23250
23311
  declare type ResponseRedirectStatus = 301 | 302 | 303 | 307 | 308
@@ -23390,7 +23451,7 @@ declare abstract class RuntimeController extends Controller {
23390
23451
  abstract emitReloadCompletetEvent(data: ReloadCompleteEvent): void;
23391
23452
  on(event: "reloadStart", listener: (_: ReloadStartEvent) => void): this;
23392
23453
  on(event: "reloadComplete", listener: (_: ReloadCompleteEvent) => void): this;
23393
- on(event: "error", listener: (_: ErrorEvent_2) => void): this;
23454
+ on(event: "error", listener: (_: ErrorEvent) => void): this;
23394
23455
  once: typeof RuntimeController.on;
23395
23456
  }
23396
23457
 
@@ -23412,9 +23473,9 @@ declare interface ServiceDesignator {
23412
23473
  env?: string;
23413
23474
  }
23414
23475
 
23415
- declare type ServiceFetch = (request: Request_3) => Promise<Response_3>;
23476
+ declare type ServiceFetch = (request: Request_2) => Promise<Response_2>;
23416
23477
 
23417
- declare function setCookie (headers: Headers_2, cookie: Cookie): void
23478
+ declare function setCookie (headers: Headers, cookie: Cookie): void
23418
23479
 
23419
23480
  declare function setGlobalDispatcher<DispatcherImplementation extends Dispatcher>(dispatcher: DispatcherImplementation): void;
23420
23481
 
@@ -23422,7 +23483,9 @@ declare function setGlobalOrigin(origin: string | URL | undefined): void;
23422
23483
 
23423
23484
  declare type SimpleRoute = string;
23424
23485
 
23425
- export declare type SourcelessWorkerOptions = Omit<WorkerOptions, "script" | "scriptPath" | "modules" | "modulesRoot" | "modulesRule">;
23486
+ export declare type SourcelessWorkerOptions = Omit<WorkerOptions, "script" | "scriptPath" | "modules" | "modulesRoot"> & {
23487
+ modulesRules?: ModuleRule_2[];
23488
+ };
23426
23489
 
23427
23490
  /**
23428
23491
  * Information about Wrangler's bundling process that needs passed through
@@ -23453,9 +23516,9 @@ declare interface StartDevWorkerOptions {
23453
23516
  * This is the `main` property of a wrangler.toml.
23454
23517
  * You can specify a file path or provide the contents directly.
23455
23518
  */
23456
- script: File_3<string>;
23519
+ script: File_2<string>;
23457
23520
  /** The configuration of the worker. */
23458
- config?: File_3<string | RawConfig> & {
23521
+ config?: File_2<string | RawConfig> & {
23459
23522
  env?: string;
23460
23523
  };
23461
23524
  /** The compatibility date for the workerd runtime. */
@@ -23601,14 +23664,14 @@ declare namespace Undici {
23601
23664
  var MockPool: MockPool;
23602
23665
  var MockAgent: MockAgent;
23603
23666
  var mockErrors: MockErrors;
23604
- var fetch: fetch_2;
23605
- var Headers: Headers_2;
23606
- var Response: Response_2;
23607
- var Request: Request_2;
23608
- var FormData: FormData_2;
23609
- var File: File_2;
23667
+ var fetch: fetch;
23668
+ var Headers: Headers;
23669
+ var Response: Response;
23670
+ var Request: Request;
23671
+ var FormData: FormData;
23672
+ var File: File;
23610
23673
  var FileReader: FileReader;
23611
- var caches: caches_2;
23674
+ var caches: caches;
23612
23675
  }
23613
23676
 
23614
23677
  declare namespace undici {
@@ -23644,53 +23707,53 @@ declare namespace undici {
23644
23707
  getSetCookies,
23645
23708
  setCookie,
23646
23709
  Cookie,
23647
- fetch_2 as fetch,
23648
- RequestInfo_2 as RequestInfo,
23649
- BodyInit_2 as BodyInit,
23710
+ fetch,
23711
+ RequestInfo,
23712
+ BodyInit,
23650
23713
  BodyMixin,
23651
23714
  SpecIterator,
23652
23715
  SpecIterableIterator,
23653
23716
  SpecIterable,
23654
- HeadersInit_2 as HeadersInit,
23655
- Headers_2 as Headers,
23717
+ HeadersInit,
23718
+ Headers,
23656
23719
  RequestCache,
23657
23720
  RequestCredentials,
23658
23721
  RequestDestination,
23659
- RequestInit_2 as RequestInit,
23722
+ RequestInit,
23660
23723
  ReferrerPolicy,
23661
23724
  RequestMode,
23662
23725
  RequestRedirect,
23663
23726
  RequestDuplex,
23664
- Request_2 as Request,
23665
- ResponseInit_2 as ResponseInit,
23727
+ Request,
23728
+ ResponseInit,
23666
23729
  ResponseType,
23667
23730
  ResponseRedirectStatus,
23668
- Response_2 as Response,
23731
+ Response,
23669
23732
  BlobPropertyBag,
23670
23733
  FilePropertyBag,
23671
- File_2 as File,
23734
+ File,
23672
23735
  FileReader,
23673
23736
  ProgressEventInit,
23674
23737
  ProgressEvent,
23675
23738
  FormDataEntryValue,
23676
- FormData_2 as FormData,
23739
+ FormData,
23677
23740
  DiagnosticsChannel,
23678
23741
  BinaryType,
23679
- WebSocketEventMap_2 as WebSocketEventMap,
23680
- WebSocket_2 as WebSocket,
23681
- CloseEventInit_2 as CloseEventInit,
23682
- CloseEvent_2 as CloseEvent,
23683
- MessageEventInit_2 as MessageEventInit,
23684
- MessageEvent_2 as MessageEvent,
23742
+ WebSocketEventMap,
23743
+ WebSocket,
23744
+ CloseEventInit,
23745
+ CloseEvent,
23746
+ MessageEventInit,
23747
+ MessageEvent,
23685
23748
  WebSocketInit,
23686
23749
  parseMIMEType,
23687
23750
  serializeAMimeType,
23688
23751
  MIMEType,
23689
- CacheStorage_2 as CacheStorage,
23690
- Cache_2 as Cache,
23691
- CacheQueryOptions_2 as CacheQueryOptions,
23752
+ CacheStorage,
23753
+ Cache,
23754
+ CacheQueryOptions,
23692
23755
  MultiCacheQueryOptions,
23693
- caches_2 as caches
23756
+ caches
23694
23757
  }
23695
23758
  }
23696
23759
 
@@ -23715,11 +23778,12 @@ export declare class unstable_DevEnv extends EventEmitter_2 {
23715
23778
  proxy?: ProxyController | undefined;
23716
23779
  });
23717
23780
  teardown(): Promise<void>;
23718
- emitErrorEvent(ev: ErrorEvent_2): void;
23781
+ emitErrorEvent(ev: ErrorEvent): void;
23719
23782
  }
23720
23783
 
23721
23784
  export declare function unstable_getMiniflareWorkerOptions(configPath: string): {
23722
23785
  workerOptions: SourcelessWorkerOptions;
23786
+ define: Record<string, string>;
23723
23787
  main?: string;
23724
23788
  };
23725
23789
 
@@ -23727,6 +23791,16 @@ export declare const unstable_pages: {
23727
23791
  deploy: typeof deploy;
23728
23792
  };
23729
23793
 
23794
+ /**
23795
+ * Split an SQLQuery into an array of statements
23796
+ */
23797
+ export declare function unstable_splitSqlQuery(sql: string): string[];
23798
+
23799
+ export declare function unstable_startWorkerRegistryServer(port: number): Promise<{
23800
+ server: Server<IncomingMessage, ServerResponse>;
23801
+ terminator: HttpTerminator;
23802
+ }>;
23803
+
23730
23804
  export declare interface UnstableDevOptions {
23731
23805
  config?: string;
23732
23806
  env?: string;
@@ -23762,6 +23836,7 @@ export declare interface UnstableDevOptions {
23762
23836
  binding: string;
23763
23837
  service: string;
23764
23838
  environment?: string | undefined;
23839
+ entrypoint?: string | undefined;
23765
23840
  }[];
23766
23841
  r2?: {
23767
23842
  binding: string;
@@ -23771,6 +23846,9 @@ export declare interface UnstableDevOptions {
23771
23846
  ai?: {
23772
23847
  binding: string;
23773
23848
  };
23849
+ version_metadata?: {
23850
+ binding: string;
23851
+ };
23774
23852
  moduleRoot?: string;
23775
23853
  rules?: Rule[];
23776
23854
  logLevel?: "none" | "info" | "error" | "log" | "warn" | "debug";
@@ -23799,7 +23877,7 @@ export declare interface UnstableDevWorker {
23799
23877
  address: string;
23800
23878
  proxyData: ProxyData;
23801
23879
  stop: () => Promise<void>;
23802
- fetch: (input?: RequestInfo_2, init?: RequestInit_2) => Promise<Response_2>;
23880
+ fetch: (input?: RequestInfo, init?: RequestInit) => Promise<Response>;
23803
23881
  waitUntilExit: () => Promise<void>;
23804
23882
  }
23805
23883
 
@@ -23818,16 +23896,16 @@ declare interface UserLimits {
23818
23896
  cpu_ms: number;
23819
23897
  }
23820
23898
 
23821
- declare interface WebSocket_2 extends EventTarget_2 {
23899
+ declare interface WebSocket extends EventTarget_2 {
23822
23900
  binaryType: BinaryType
23823
23901
 
23824
23902
  readonly bufferedAmount: number
23825
23903
  readonly extensions: string
23826
23904
 
23827
- onclose: ((this: WebSocket_2, ev: WebSocketEventMap_2['close']) => any) | null
23828
- onerror: ((this: WebSocket_2, ev: WebSocketEventMap_2['error']) => any) | null
23829
- onmessage: ((this: WebSocket_2, ev: WebSocketEventMap_2['message']) => any) | null
23830
- onopen: ((this: WebSocket_2, ev: WebSocketEventMap_2['open']) => any) | null
23905
+ onclose: ((this: WebSocket, ev: WebSocketEventMap['close']) => any) | null
23906
+ onerror: ((this: WebSocket, ev: WebSocketEventMap['error']) => any) | null
23907
+ onmessage: ((this: WebSocket, ev: WebSocketEventMap['message']) => any) | null
23908
+ onopen: ((this: WebSocket, ev: WebSocketEventMap['open']) => any) | null
23831
23909
 
23832
23910
  readonly protocol: string
23833
23911
  readonly readyState: number
@@ -23841,50 +23919,55 @@ declare interface WebSocket_2 extends EventTarget_2 {
23841
23919
  readonly CONNECTING: number
23842
23920
  readonly OPEN: number
23843
23921
 
23844
- addEventListener<K extends keyof WebSocketEventMap_2>(
23922
+ addEventListener<K extends keyof WebSocketEventMap>(
23845
23923
  type: K,
23846
- listener: (this: WebSocket_2, ev: WebSocketEventMap_2[K]) => any,
23924
+ listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
23847
23925
  options?: boolean | AddEventListenerOptions
23848
23926
  ): void
23849
23927
  addEventListener(
23850
23928
  type: string,
23851
- listener: EventListenerOrEventListenerObject_2,
23929
+ listener: EventListenerOrEventListenerObject,
23852
23930
  options?: boolean | AddEventListenerOptions
23853
23931
  ): void
23854
- removeEventListener<K extends keyof WebSocketEventMap_2>(
23932
+ removeEventListener<K extends keyof WebSocketEventMap>(
23855
23933
  type: K,
23856
- listener: (this: WebSocket_2, ev: WebSocketEventMap_2[K]) => any,
23934
+ listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
23857
23935
  options?: boolean | EventListenerOptions
23858
23936
  ): void
23859
23937
  removeEventListener(
23860
23938
  type: string,
23861
- listener: EventListenerOrEventListenerObject_2,
23939
+ listener: EventListenerOrEventListenerObject,
23862
23940
  options?: boolean | EventListenerOptions
23863
23941
  ): void
23864
23942
  }
23865
23943
 
23866
- declare const WebSocket_2: {
23867
- prototype: WebSocket_2
23868
- new (url: string | URL, protocols?: string | string[] | WebSocketInit): WebSocket_2
23944
+ declare const WebSocket: {
23945
+ prototype: WebSocket
23946
+ new (url: string | URL, protocols?: string | string[] | WebSocketInit): WebSocket
23869
23947
  readonly CLOSED: number
23870
23948
  readonly CLOSING: number
23871
23949
  readonly CONNECTING: number
23872
23950
  readonly OPEN: number
23873
23951
  };
23874
23952
 
23875
- declare interface WebSocketEventMap_2 {
23876
- close: CloseEvent_2
23953
+ declare interface WebSocketEventMap {
23954
+ close: CloseEvent
23877
23955
  error: Event_2
23878
- message: MessageEvent_2
23956
+ message: MessageEvent
23879
23957
  open: Event_2
23880
23958
  }
23881
23959
 
23882
23960
  declare interface WebSocketInit {
23883
23961
  protocols?: string | string[],
23884
23962
  dispatcher?: Dispatcher,
23885
- headers?: HeadersInit_2
23963
+ headers?: HeadersInit
23886
23964
  }
23887
23965
 
23966
+ declare type WorkerEntrypointsDefinition = Record<"default" | string, {
23967
+ host: string;
23968
+ port: number;
23969
+ } | undefined>;
23970
+
23888
23971
  declare type ZoneIdRoute = {
23889
23972
  pattern: string;
23890
23973
  zone_id: string;