wrangler 3.82.0 → 3.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -14
- package/wrangler-dist/cli.d.ts +78 -68
- package/wrangler-dist/cli.js +2271 -4407
- package/wrangler-dist/cli.js.map +4 -4
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.84.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -63,16 +63,16 @@
|
|
63
63
|
"resolve.exports": "^2.0.2",
|
64
64
|
"selfsigned": "^2.0.1",
|
65
65
|
"source-map": "^0.6.1",
|
66
|
-
"unenv": "npm:unenv-nightly@2.0.0-
|
67
|
-
"workerd": "1.
|
66
|
+
"unenv": "npm:unenv-nightly@2.0.0-20241024-111401-d4156ac",
|
67
|
+
"workerd": "1.20241022.0",
|
68
68
|
"xxhash-wasm": "^1.0.1",
|
69
69
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
70
|
-
"
|
71
|
-
"
|
70
|
+
"@cloudflare/workers-shared": "0.7.0",
|
71
|
+
"miniflare": "3.20241022.0"
|
72
72
|
},
|
73
73
|
"devDependencies": {
|
74
74
|
"@cloudflare/types": "6.18.4",
|
75
|
-
"@cloudflare/workers-types": "^4.
|
75
|
+
"@cloudflare/workers-types": "^4.20241022.0",
|
76
76
|
"@cspotcode/source-map-support": "0.8.1",
|
77
77
|
"@iarna/toml": "^3.0.0",
|
78
78
|
"@microsoft/api-extractor": "^7.47.0",
|
@@ -96,7 +96,7 @@
|
|
96
96
|
"@types/supports-color": "^8.1.1",
|
97
97
|
"@types/ws": "^8.5.7",
|
98
98
|
"@types/yargs": "^17.0.22",
|
99
|
-
"@vitest/ui": "
|
99
|
+
"@vitest/ui": "~2.1.3",
|
100
100
|
"@webcontainer/env": "^1.1.0",
|
101
101
|
"body-parser": "^1.20.0",
|
102
102
|
"chalk": "^5.2.0",
|
@@ -107,7 +107,6 @@
|
|
107
107
|
"concurrently": "^8.2.2",
|
108
108
|
"devtools-protocol": "^0.0.1182435",
|
109
109
|
"dotenv": "^16.0.0",
|
110
|
-
"es-module-lexer": "^1.3.0",
|
111
110
|
"execa": "^6.1.0",
|
112
111
|
"express": "^4.18.1",
|
113
112
|
"find-up": "^6.3.0",
|
@@ -126,7 +125,7 @@
|
|
126
125
|
"mime": "^3.0.0",
|
127
126
|
"minimatch": "^5.1.0",
|
128
127
|
"mock-socket": "^9.3.1",
|
129
|
-
"msw": "
|
128
|
+
"msw": "2.4.3",
|
130
129
|
"open": "^8.4.0",
|
131
130
|
"p-queue": "^7.2.0",
|
132
131
|
"patch-console": "^1.0.0",
|
@@ -147,19 +146,19 @@
|
|
147
146
|
"ts-json-schema-generator": "^1.5.0",
|
148
147
|
"undici": "^5.28.4",
|
149
148
|
"update-check": "^1.5.4",
|
150
|
-
"vitest": "~2.1.
|
151
|
-
"vitest-websocket-mock": "^0.
|
152
|
-
"ws": "^8.
|
149
|
+
"vitest": "~2.1.3",
|
150
|
+
"vitest-websocket-mock": "^0.4.0",
|
151
|
+
"ws": "^8.18.0",
|
153
152
|
"xdg-app-paths": "^8.3.0",
|
154
153
|
"yargs": "^17.7.2",
|
155
154
|
"yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
|
156
155
|
"@cloudflare/cli": "1.1.1",
|
157
156
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
158
|
-
"@cloudflare/pages-shared": "^0.11.
|
157
|
+
"@cloudflare/pages-shared": "^0.11.67",
|
159
158
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
160
159
|
},
|
161
160
|
"peerDependencies": {
|
162
|
-
"@cloudflare/workers-types": "^4.
|
161
|
+
"@cloudflare/workers-types": "^4.20241022.0"
|
163
162
|
},
|
164
163
|
"peerDependenciesMeta": {
|
165
164
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -18,9 +18,9 @@ import type { ModuleRule } from 'miniflare';
|
|
18
18
|
import { Mutex } from 'miniflare';
|
19
19
|
import type { NodeJSCompatMode } from 'miniflare';
|
20
20
|
import { Readable } from 'stream';
|
21
|
-
import { ReadableStream } from 'stream/web';
|
22
|
-
import type { Request as
|
23
|
-
import { Response as
|
21
|
+
import { ReadableStream as ReadableStream_2 } from 'stream/web';
|
22
|
+
import type { Request as Request_3 } from 'miniflare';
|
23
|
+
import { Response as Response_3 } from 'miniflare';
|
24
24
|
import type { Server } from 'node:http';
|
25
25
|
import { ServerResponse } from 'http';
|
26
26
|
import { Socket } from 'net';
|
@@ -137,7 +137,7 @@ declare type Binding = {
|
|
137
137
|
type: "kv_namespace";
|
138
138
|
} & BindingOmit<CfKvNamespace>) | ({
|
139
139
|
type: "send_email";
|
140
|
-
} &
|
140
|
+
} & NameOmit<CfSendEmailBindings>) | {
|
141
141
|
type: "wasm_module";
|
142
142
|
source: BinaryFile;
|
143
143
|
} | {
|
@@ -154,7 +154,7 @@ declare type Binding = {
|
|
154
154
|
source: BinaryFile;
|
155
155
|
} | ({
|
156
156
|
type: "durable_object_namespace";
|
157
|
-
} &
|
157
|
+
} & NameOmit<CfDurableObject>) | ({
|
158
158
|
type: "workflow";
|
159
159
|
} & BindingOmit<CfWorkflow>) | ({
|
160
160
|
type: "queue";
|
@@ -181,13 +181,13 @@ declare type Binding = {
|
|
181
181
|
type: "pipeline";
|
182
182
|
} & Omit<CfPipeline, "binding">) | ({
|
183
183
|
type: "logfwdr";
|
184
|
-
} &
|
184
|
+
} & NameOmit<CfLogfwdrBinding>) | {
|
185
185
|
type: `unsafe_${string}`;
|
186
186
|
} | {
|
187
187
|
type: "assets";
|
188
188
|
};
|
189
189
|
|
190
|
-
declare type BindingOmit<T> = Omit<T, "binding"
|
190
|
+
declare type BindingOmit<T> = Omit<T, "binding">;
|
191
191
|
|
192
192
|
/**
|
193
193
|
* Result of the `getBindingsProxy` utility
|
@@ -216,7 +216,7 @@ declare type BodyInit =
|
|
216
216
|
| string
|
217
217
|
|
218
218
|
declare interface BodyMixin {
|
219
|
-
readonly body:
|
219
|
+
readonly body: ReadableStream_2 | null
|
220
220
|
readonly bodyUsed: boolean
|
221
221
|
|
222
222
|
readonly arrayBuffer: () => Promise<ArrayBuffer>
|
@@ -341,13 +341,13 @@ declare type BundleStartEvent = {
|
|
341
341
|
};
|
342
342
|
|
343
343
|
declare interface Cache {
|
344
|
-
match (request: RequestInfo, options?: CacheQueryOptions): Promise<
|
345
|
-
matchAll (request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly
|
344
|
+
match (request: RequestInfo, options?: CacheQueryOptions): Promise<Response_2 | undefined>,
|
345
|
+
matchAll (request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly Response_2[]>,
|
346
346
|
add (request: RequestInfo): Promise<undefined>,
|
347
347
|
addAll (requests: RequestInfo[]): Promise<undefined>,
|
348
|
-
put (request: RequestInfo, response:
|
348
|
+
put (request: RequestInfo, response: Response_2): Promise<undefined>,
|
349
349
|
delete (request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>,
|
350
|
-
keys (request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly
|
350
|
+
keys (request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly Request_2[]>
|
351
351
|
}
|
352
352
|
|
353
353
|
/**
|
@@ -376,7 +376,7 @@ declare type CacheResponse = any;
|
|
376
376
|
declare const caches: CacheStorage;
|
377
377
|
|
378
378
|
declare interface CacheStorage {
|
379
|
-
match (request: RequestInfo, options?: MultiCacheQueryOptions): Promise<
|
379
|
+
match (request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response_2 | undefined>,
|
380
380
|
has (cacheName: string): Promise<boolean>,
|
381
381
|
open (cacheName: string): Promise<Cache>,
|
382
382
|
delete (cacheName: string): Promise<boolean>,
|
@@ -971,7 +971,7 @@ declare type DeferredPromise<T> = {
|
|
971
971
|
};
|
972
972
|
|
973
973
|
declare function deleteCookie (
|
974
|
-
headers:
|
974
|
+
headers: Headers_2,
|
975
975
|
name: string,
|
976
976
|
attributes?: { name?: string, domain?: string }
|
977
977
|
): void
|
@@ -1421,7 +1421,7 @@ declare interface DispatchNamespaceOutbound {
|
|
1421
1421
|
parameters?: string[];
|
1422
1422
|
}
|
1423
1423
|
|
1424
|
-
declare type
|
1424
|
+
declare type DOMException_2 = typeof globalThis extends { DOMException: infer T }
|
1425
1425
|
? T
|
1426
1426
|
: any
|
1427
1427
|
|
@@ -1478,6 +1478,8 @@ declare type Entry = {
|
|
1478
1478
|
* A worker's name
|
1479
1479
|
*/
|
1480
1480
|
name?: string | undefined;
|
1481
|
+
/** Export from a Worker's entrypoint */
|
1482
|
+
exports: string[];
|
1481
1483
|
};
|
1482
1484
|
|
1483
1485
|
/**
|
@@ -2358,10 +2360,10 @@ declare class ExecutionContext {
|
|
2358
2360
|
passThroughOnException(): void;
|
2359
2361
|
}
|
2360
2362
|
|
2361
|
-
declare function
|
2363
|
+
declare function fetch_2 (
|
2362
2364
|
input: RequestInfo,
|
2363
|
-
init?:
|
2364
|
-
): Promise<
|
2365
|
+
init?: RequestInit_2
|
2366
|
+
): Promise<Response_2>
|
2365
2367
|
|
2366
2368
|
declare class File extends Blob_2 {
|
2367
2369
|
/**
|
@@ -2424,7 +2426,7 @@ declare class FileReader {
|
|
2424
2426
|
|
2425
2427
|
readonly result: string | ArrayBuffer | null
|
2426
2428
|
|
2427
|
-
readonly error:
|
2429
|
+
readonly error: DOMException_2 | null
|
2428
2430
|
|
2429
2431
|
onloadstart: null | ((this: FileReader, event: ProgressEvent) => void)
|
2430
2432
|
onprogress: null | ((this: FileReader, event: ProgressEvent) => void)
|
@@ -2551,7 +2553,7 @@ export declare function getBindingsProxy<Bindings = Record<string, unknown>, CfP
|
|
2551
2553
|
/** Options for the `getBindingsProxy` utility */
|
2552
2554
|
export declare type GetBindingsProxyOptions = GetPlatformProxyOptions;
|
2553
2555
|
|
2554
|
-
declare function getCookies (headers:
|
2556
|
+
declare function getCookies (headers: Headers_2): Record<string, string>
|
2555
2557
|
|
2556
2558
|
declare function getGlobalDispatcher(): Dispatcher;
|
2557
2559
|
|
@@ -2607,9 +2609,9 @@ export declare type GetPlatformProxyOptions = {
|
|
2607
2609
|
experimentalRegistry?: boolean;
|
2608
2610
|
};
|
2609
2611
|
|
2610
|
-
declare function getSetCookies (headers:
|
2612
|
+
declare function getSetCookies (headers: Headers_2): Cookie[]
|
2611
2613
|
|
2612
|
-
declare class
|
2614
|
+
declare class Headers_2 implements SpecIterable<[string, string]> {
|
2613
2615
|
constructor (init?: HeadersInit)
|
2614
2616
|
readonly append: (name: string, value: string) => void
|
2615
2617
|
readonly delete: (name: string) => void
|
@@ -2618,7 +2620,7 @@ declare class Headers implements SpecIterable<[string, string]> {
|
|
2618
2620
|
readonly set: (name: string, value: string) => void
|
2619
2621
|
readonly getSetCookie: () => string[]
|
2620
2622
|
readonly forEach: (
|
2621
|
-
callbackfn: (value: string, key: string, iterable:
|
2623
|
+
callbackfn: (value: string, key: string, iterable: Headers_2) => void,
|
2622
2624
|
thisArg?: unknown
|
2623
2625
|
) => void
|
2624
2626
|
|
@@ -2628,7 +2630,7 @@ declare class Headers implements SpecIterable<[string, string]> {
|
|
2628
2630
|
readonly [Symbol.iterator]: () => SpecIterator<[string, string]>
|
2629
2631
|
}
|
2630
2632
|
|
2631
|
-
declare type HeadersInit = string[][] | Record<string, string | ReadonlyArray<string>> |
|
2633
|
+
declare type HeadersInit = string[][] | Record<string, string | ReadonlyArray<string>> | Headers_2
|
2632
2634
|
|
2633
2635
|
declare type Hook<T extends HookValues, Args extends unknown[] = []> = T | ((...args: Args) => T);
|
2634
2636
|
|
@@ -2689,6 +2691,8 @@ declare class Logger {
|
|
2689
2691
|
error: (...args: unknown[]) => void;
|
2690
2692
|
table<Keys extends string>(data: TableRow<Keys>[]): void;
|
2691
2693
|
console<M extends Exclude<keyof Console, "Console">>(method: M, ...args: Parameters<Console[M]>): void;
|
2694
|
+
static warnOnceHistory: Set<unknown>;
|
2695
|
+
warnOnce(message: string): void;
|
2692
2696
|
private doLog;
|
2693
2697
|
static registerBeforeLogHook(callback: (() => void) | undefined): void;
|
2694
2698
|
static registerAfterLogHook(callback: (() => void) | undefined): void;
|
@@ -2699,7 +2703,7 @@ declare type LogLevel = "debug" | "info" | "log" | "warn" | "error" | "none";
|
|
2699
2703
|
|
2700
2704
|
declare type MaybePromise<T> = T | Promise<T>;
|
2701
2705
|
|
2702
|
-
declare interface
|
2706
|
+
declare interface MessageEvent_2<T = any> extends Event_2 {
|
2703
2707
|
readonly data: T
|
2704
2708
|
readonly lastEventId: string
|
2705
2709
|
readonly origin: string
|
@@ -2717,9 +2721,9 @@ declare interface MessageEvent<T = any> extends Event_2 {
|
|
2717
2721
|
): void;
|
2718
2722
|
}
|
2719
2723
|
|
2720
|
-
declare const
|
2721
|
-
prototype:
|
2722
|
-
new<T>(type: string, eventInitDict?: MessageEventInit<T>):
|
2724
|
+
declare const MessageEvent_2: {
|
2725
|
+
prototype: MessageEvent_2
|
2726
|
+
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent_2<T>
|
2723
2727
|
};
|
2724
2728
|
|
2725
2729
|
declare interface MessageEventInit<T = any> extends EventInit {
|
@@ -2858,7 +2862,7 @@ declare namespace MockInterceptor {
|
|
2858
2862
|
origin: string;
|
2859
2863
|
method: string;
|
2860
2864
|
body?: BodyInit | Dispatcher.DispatchOptions['body'];
|
2861
|
-
headers:
|
2865
|
+
headers: Headers_2 | Record<string, string>;
|
2862
2866
|
maxRedirections: number;
|
2863
2867
|
}
|
2864
2868
|
|
@@ -2905,6 +2909,8 @@ declare interface MultiCacheQueryOptions extends CacheQueryOptions {
|
|
2905
2909
|
cacheName?: string
|
2906
2910
|
}
|
2907
2911
|
|
2912
|
+
declare type NameOmit<T> = Omit<T, "name">;
|
2913
|
+
|
2908
2914
|
declare interface Observability {
|
2909
2915
|
/** If observability is enabled for this Worker */
|
2910
2916
|
enabled: boolean;
|
@@ -25503,7 +25509,7 @@ declare class ProxyController extends Controller<ProxyControllerEventMap> {
|
|
25503
25509
|
onReloadComplete(data: ReloadCompleteEvent): void;
|
25504
25510
|
onProxyWorkerMessage(message: ProxyWorkerOutgoingRequestBody): void;
|
25505
25511
|
onInspectorProxyWorkerMessage(message: InspectorProxyWorkerOutgoingWebsocketMessage): void;
|
25506
|
-
onInspectorProxyWorkerRequest(message: InspectorProxyWorkerOutgoingRequestBody): Promise<
|
25512
|
+
onInspectorProxyWorkerRequest(message: InspectorProxyWorkerOutgoingRequestBody): Promise<Response_3>;
|
25507
25513
|
_torndown: boolean;
|
25508
25514
|
teardown(): Promise<void>;
|
25509
25515
|
emitReadyEvent(proxyWorker: Miniflare, url: URL, inspectorUrl: URL): void;
|
@@ -25587,13 +25593,19 @@ declare type ReloadStartEvent = {
|
|
25587
25593
|
bundle: Bundle;
|
25588
25594
|
};
|
25589
25595
|
|
25590
|
-
|
25591
|
-
|
25596
|
+
/** Performs an HTTP request. */
|
25597
|
+
declare function request(
|
25598
|
+
url: string | URL_2 | UrlObject,
|
25599
|
+
options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.RequestOptions, 'origin' | 'path' | 'method'> & Partial<Pick<Dispatcher.RequestOptions, 'method'>>,
|
25600
|
+
): Promise<Dispatcher.ResponseData>;
|
25601
|
+
|
25602
|
+
declare class Request_2 implements BodyMixin {
|
25603
|
+
constructor (input: RequestInfo, init?: RequestInit_2)
|
25592
25604
|
|
25593
25605
|
readonly cache: RequestCache
|
25594
25606
|
readonly credentials: RequestCredentials
|
25595
25607
|
readonly destination: RequestDestination
|
25596
|
-
readonly headers:
|
25608
|
+
readonly headers: Headers_2
|
25597
25609
|
readonly integrity: string
|
25598
25610
|
readonly method: string
|
25599
25611
|
readonly mode: RequestMode
|
@@ -25605,7 +25617,7 @@ declare class Request implements BodyMixin {
|
|
25605
25617
|
readonly signal: AbortSignal
|
25606
25618
|
readonly duplex: RequestDuplex
|
25607
25619
|
|
25608
|
-
readonly body:
|
25620
|
+
readonly body: ReadableStream_2 | null
|
25609
25621
|
readonly bodyUsed: boolean
|
25610
25622
|
|
25611
25623
|
readonly arrayBuffer: () => Promise<ArrayBuffer>
|
@@ -25614,15 +25626,9 @@ declare class Request implements BodyMixin {
|
|
25614
25626
|
readonly json: () => Promise<unknown>
|
25615
25627
|
readonly text: () => Promise<string>
|
25616
25628
|
|
25617
|
-
readonly clone: () =>
|
25629
|
+
readonly clone: () => Request_2
|
25618
25630
|
}
|
25619
25631
|
|
25620
|
-
/** Performs an HTTP request. */
|
25621
|
-
declare function request(
|
25622
|
-
url: string | URL_2 | UrlObject,
|
25623
|
-
options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.RequestOptions, 'origin' | 'path' | 'method'> & Partial<Pick<Dispatcher.RequestOptions, 'method'>>,
|
25624
|
-
): Promise<Dispatcher.ResponseData>;
|
25625
|
-
|
25626
25632
|
declare type RequestCache =
|
25627
25633
|
| 'default'
|
25628
25634
|
| 'force-cache'
|
@@ -25655,9 +25661,9 @@ declare type RequestDestination =
|
|
25655
25661
|
|
25656
25662
|
declare type RequestDuplex = 'half'
|
25657
25663
|
|
25658
|
-
declare type RequestInfo = string | URL_2 |
|
25664
|
+
declare type RequestInfo = string | URL_2 | Request_2
|
25659
25665
|
|
25660
|
-
declare interface
|
25666
|
+
declare interface RequestInit_2 {
|
25661
25667
|
method?: string
|
25662
25668
|
keepalive?: boolean
|
25663
25669
|
headers?: HeadersInit
|
@@ -25678,10 +25684,10 @@ declare type RequestMode = 'cors' | 'navigate' | 'no-cors' | 'same-origin'
|
|
25678
25684
|
|
25679
25685
|
declare type RequestRedirect = 'error' | 'follow' | 'manual'
|
25680
25686
|
|
25681
|
-
declare class
|
25682
|
-
constructor (body?: BodyInit, init?:
|
25687
|
+
declare class Response_2 implements BodyMixin {
|
25688
|
+
constructor (body?: BodyInit, init?: ResponseInit_2)
|
25683
25689
|
|
25684
|
-
readonly headers:
|
25690
|
+
readonly headers: Headers_2
|
25685
25691
|
readonly ok: boolean
|
25686
25692
|
readonly status: number
|
25687
25693
|
readonly statusText: string
|
@@ -25689,7 +25695,7 @@ declare class Response implements BodyMixin {
|
|
25689
25695
|
readonly url: string
|
25690
25696
|
readonly redirected: boolean
|
25691
25697
|
|
25692
|
-
readonly body:
|
25698
|
+
readonly body: ReadableStream_2 | null
|
25693
25699
|
readonly bodyUsed: boolean
|
25694
25700
|
|
25695
25701
|
readonly arrayBuffer: () => Promise<ArrayBuffer>
|
@@ -25698,14 +25704,14 @@ declare class Response implements BodyMixin {
|
|
25698
25704
|
readonly json: () => Promise<unknown>
|
25699
25705
|
readonly text: () => Promise<string>
|
25700
25706
|
|
25701
|
-
readonly clone: () =>
|
25707
|
+
readonly clone: () => Response_2
|
25702
25708
|
|
25703
|
-
static error ():
|
25704
|
-
static json(data: any, init?:
|
25705
|
-
static redirect (url: string | URL_2, status: ResponseRedirectStatus):
|
25709
|
+
static error (): Response_2
|
25710
|
+
static json(data: any, init?: ResponseInit_2): Response_2
|
25711
|
+
static redirect (url: string | URL_2, status: ResponseRedirectStatus): Response_2
|
25706
25712
|
}
|
25707
25713
|
|
25708
|
-
declare interface
|
25714
|
+
declare interface ResponseInit_2 {
|
25709
25715
|
readonly status?: number
|
25710
25716
|
readonly statusText?: string
|
25711
25717
|
readonly headers?: HeadersInit
|
@@ -25882,9 +25888,9 @@ declare type SerializedError = {
|
|
25882
25888
|
cause?: unknown;
|
25883
25889
|
};
|
25884
25890
|
|
25885
|
-
declare type ServiceFetch = (request:
|
25891
|
+
declare type ServiceFetch = (request: Request_3) => Promise<Response_3> | Response_3;
|
25886
25892
|
|
25887
|
-
declare function setCookie (headers:
|
25893
|
+
declare function setCookie (headers: Headers_2, cookie: Cookie): void
|
25888
25894
|
|
25889
25895
|
declare function setGlobalDispatcher<DispatcherImplementation extends Dispatcher>(dispatcher: DispatcherImplementation): void;
|
25890
25896
|
|
@@ -26015,6 +26021,8 @@ declare interface StartDevWorkerInput {
|
|
26015
26021
|
/** Describes the registry of other Workers running locally */
|
26016
26022
|
registry?: WorkerRegistry;
|
26017
26023
|
testScheduled?: boolean;
|
26024
|
+
/** Whether to use Vectorize mixed mode -- the worker is run locally but accesses to Vectorize are made remotely */
|
26025
|
+
bindVectorizeToProd?: boolean;
|
26018
26026
|
};
|
26019
26027
|
legacy?: {
|
26020
26028
|
site?: Hook<Config["site"], [Config]>;
|
@@ -26035,6 +26043,7 @@ declare type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets"> & {
|
|
26035
26043
|
moduleRules: Rule[];
|
26036
26044
|
define: Record<string, string>;
|
26037
26045
|
additionalModules: CfModule[];
|
26046
|
+
exports: string[];
|
26038
26047
|
processEntrypoint: boolean;
|
26039
26048
|
};
|
26040
26049
|
legacy: StartDevWorkerInput["legacy"] & {
|
@@ -26130,10 +26139,10 @@ declare namespace Undici {
|
|
26130
26139
|
var MockPool: MockPool;
|
26131
26140
|
var MockAgent: MockAgent;
|
26132
26141
|
var mockErrors: MockErrors;
|
26133
|
-
var fetch:
|
26134
|
-
var Headers:
|
26135
|
-
var Response:
|
26136
|
-
var Request:
|
26142
|
+
var fetch: fetch_2;
|
26143
|
+
var Headers: Headers_2;
|
26144
|
+
var Response: Response_2;
|
26145
|
+
var Request: Request_2;
|
26137
26146
|
var FormData: FormData_2;
|
26138
26147
|
var File: File;
|
26139
26148
|
var FileReader: FileReader;
|
@@ -26173,7 +26182,7 @@ declare namespace undici {
|
|
26173
26182
|
getSetCookies,
|
26174
26183
|
setCookie,
|
26175
26184
|
Cookie,
|
26176
|
-
fetch,
|
26185
|
+
fetch_2 as fetch,
|
26177
26186
|
RequestInfo,
|
26178
26187
|
BodyInit,
|
26179
26188
|
BodyMixin,
|
@@ -26181,20 +26190,20 @@ declare namespace undici {
|
|
26181
26190
|
SpecIterableIterator,
|
26182
26191
|
SpecIterable,
|
26183
26192
|
HeadersInit,
|
26184
|
-
Headers,
|
26193
|
+
Headers_2 as Headers,
|
26185
26194
|
RequestCache,
|
26186
26195
|
RequestCredentials,
|
26187
26196
|
RequestDestination,
|
26188
|
-
RequestInit,
|
26197
|
+
RequestInit_2 as RequestInit,
|
26189
26198
|
ReferrerPolicy,
|
26190
26199
|
RequestMode,
|
26191
26200
|
RequestRedirect,
|
26192
26201
|
RequestDuplex,
|
26193
|
-
Request,
|
26194
|
-
ResponseInit,
|
26202
|
+
Request_2 as Request,
|
26203
|
+
ResponseInit_2 as ResponseInit,
|
26195
26204
|
ResponseType,
|
26196
26205
|
ResponseRedirectStatus,
|
26197
|
-
Response,
|
26206
|
+
Response_2 as Response,
|
26198
26207
|
BlobPropertyBag,
|
26199
26208
|
FilePropertyBag,
|
26200
26209
|
File,
|
@@ -26210,7 +26219,7 @@ declare namespace undici {
|
|
26210
26219
|
CloseEventInit,
|
26211
26220
|
CloseEvent,
|
26212
26221
|
MessageEventInit,
|
26213
|
-
MessageEvent,
|
26222
|
+
MessageEvent_2 as MessageEvent,
|
26214
26223
|
WebSocketInit,
|
26215
26224
|
parseMIMEType,
|
26216
26225
|
serializeAMimeType,
|
@@ -26244,7 +26253,7 @@ export declare class unstable_DevEnv extends EventEmitter_2 {
|
|
26244
26253
|
emitErrorEvent(ev: ErrorEvent): void;
|
26245
26254
|
}
|
26246
26255
|
|
26247
|
-
export declare const unstable_generateASSETSBinding: (opts: UnstableASSETSBindingsOptions) => (request:
|
26256
|
+
export declare const unstable_generateASSETSBinding: (opts: UnstableASSETSBindingsOptions) => (request: Request_3) => Promise<Response_3>;
|
26248
26257
|
|
26249
26258
|
export declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: string): {
|
26250
26259
|
workerOptions: SourcelessWorkerOptions;
|
@@ -26341,6 +26350,7 @@ export declare interface UnstableDevOptions {
|
|
26341
26350
|
watch?: boolean;
|
26342
26351
|
devEnv?: boolean;
|
26343
26352
|
fileBasedRegistry?: boolean;
|
26353
|
+
vectorizeBindToProd?: boolean;
|
26344
26354
|
};
|
26345
26355
|
}
|
26346
26356
|
|
@@ -26349,7 +26359,7 @@ export declare interface UnstableDevWorker {
|
|
26349
26359
|
address: string;
|
26350
26360
|
proxyData: ProxyData;
|
26351
26361
|
stop: () => Promise<void>;
|
26352
|
-
fetch: (input?: RequestInfo, init?:
|
26362
|
+
fetch: (input?: RequestInfo, init?: RequestInit_2) => Promise<Response_2>;
|
26353
26363
|
waitUntilExit: () => Promise<void>;
|
26354
26364
|
}
|
26355
26365
|
|
@@ -26425,7 +26435,7 @@ declare const WebSocket: {
|
|
26425
26435
|
declare interface WebSocketEventMap {
|
26426
26436
|
close: CloseEvent
|
26427
26437
|
error: Event_2
|
26428
|
-
message:
|
26438
|
+
message: MessageEvent_2
|
26429
26439
|
open: Event_2
|
26430
26440
|
}
|
26431
26441
|
|