miniflare 0.0.0-e62b097bb → 0.0.0-e6fea1318
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/README.md +7 -0
- package/dist/src/index.d.ts +667 -171
- package/dist/src/index.js +2702 -1408
- package/dist/src/index.js.map +3 -3
- package/dist/src/workers/assets/assets-kv.worker.js +1 -1
- package/dist/src/workers/assets/assets-kv.worker.js.map +1 -1
- package/dist/src/workers/assets/assets.worker.js +5547 -6108
- package/dist/src/workers/assets/assets.worker.js.map +3 -3
- package/dist/src/workers/assets/router.worker.js +5022 -5918
- package/dist/src/workers/assets/router.worker.js.map +3 -3
- package/dist/src/workers/assets/rpc-proxy.worker.js +18 -0
- package/dist/src/workers/assets/rpc-proxy.worker.js.map +6 -0
- package/dist/src/workers/cache/cache-entry.worker.js.map +1 -1
- package/dist/src/workers/cache/cache.worker.js +12 -24
- package/dist/src/workers/cache/cache.worker.js.map +1 -1
- package/dist/src/workers/core/entry.worker.js +32 -59
- package/dist/src/workers/core/entry.worker.js.map +1 -1
- package/dist/src/workers/d1/database.worker.js +8 -6
- package/dist/src/workers/d1/database.worker.js.map +1 -1
- package/dist/src/workers/kv/namespace.worker.js +51 -5
- package/dist/src/workers/kv/namespace.worker.js.map +2 -2
- package/dist/src/workers/kv/sites.worker.js +3 -6
- package/dist/src/workers/kv/sites.worker.js.map +1 -1
- package/dist/src/workers/pipelines/pipeline.worker.js +11 -0
- package/dist/src/workers/pipelines/pipeline.worker.js.map +6 -0
- package/dist/src/workers/queues/broker.worker.js +12 -17
- package/dist/src/workers/queues/broker.worker.js.map +1 -1
- package/dist/src/workers/r2/bucket.worker.js +23 -46
- package/dist/src/workers/r2/bucket.worker.js.map +1 -1
- package/dist/src/workers/ratelimit/ratelimit.worker.js.map +1 -1
- package/dist/src/workers/shared/index.worker.js +24 -50
- package/dist/src/workers/shared/index.worker.js.map +1 -1
- package/dist/src/workers/shared/zod.worker.js +80 -84
- package/dist/src/workers/shared/zod.worker.js.map +1 -1
- package/dist/src/workers/workflows/binding.worker.js +141 -159
- package/dist/src/workers/workflows/binding.worker.js.map +1 -1
- package/package.json +20 -20
package/dist/src/index.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export declare type AnyHeaders = http.IncomingHttpHeaders | string[];
|
|
|
76
76
|
export declare type AssetReverseMap = {
|
|
77
77
|
[pathHash: string]: {
|
|
78
78
|
filePath: string;
|
|
79
|
-
contentType: string;
|
|
79
|
+
contentType: string | null;
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
82
|
|
|
@@ -87,107 +87,302 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
87
87
|
workerName: z.ZodOptional<z.ZodString>;
|
|
88
88
|
directory: z.ZodEffects<z.ZodString, string, string>;
|
|
89
89
|
binding: z.ZodOptional<z.ZodString>;
|
|
90
|
-
|
|
91
|
-
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
-
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
routerConfig: z.ZodOptional<z.ZodObject<{
|
|
93
91
|
account_id: z.ZodOptional<z.ZodNumber>;
|
|
94
92
|
script_id: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
has_user_worker?: boolean;
|
|
97
|
-
invoke_user_worker_ahead_of_assets?: boolean;
|
|
98
96
|
account_id?: number;
|
|
99
97
|
script_id?: number;
|
|
100
|
-
}, {
|
|
101
|
-
has_user_worker?: boolean;
|
|
102
98
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
99
|
+
has_user_worker?: boolean;
|
|
100
|
+
}, {
|
|
103
101
|
account_id?: number;
|
|
104
102
|
script_id?: number;
|
|
103
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
104
|
+
has_user_worker?: boolean;
|
|
105
105
|
}>>;
|
|
106
|
-
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
assetConfig: z.ZodOptional<z.ZodObject<Omit<{
|
|
107
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
script_id: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
compatibility_date: z.ZodOptional<z.ZodString>;
|
|
110
|
+
compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
107
111
|
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
|
108
112
|
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
redirects: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
version: z.ZodLiteral<1>;
|
|
115
|
+
staticRules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
116
|
+
status: z.ZodNumber;
|
|
117
|
+
to: z.ZodString;
|
|
118
|
+
lineNumber: z.ZodNumber;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
status?: number;
|
|
121
|
+
to?: string;
|
|
122
|
+
lineNumber?: number;
|
|
123
|
+
}, {
|
|
124
|
+
status?: number;
|
|
125
|
+
to?: string;
|
|
126
|
+
lineNumber?: number;
|
|
127
|
+
}>>;
|
|
128
|
+
rules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
129
|
+
status: z.ZodNumber;
|
|
130
|
+
to: z.ZodString;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
status?: number;
|
|
133
|
+
to?: string;
|
|
134
|
+
}, {
|
|
135
|
+
status?: number;
|
|
136
|
+
to?: string;
|
|
137
|
+
}>>;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
version?: 1;
|
|
140
|
+
staticRules?: Record<string, {
|
|
141
|
+
status?: number;
|
|
142
|
+
to?: string;
|
|
143
|
+
lineNumber?: number;
|
|
144
|
+
}>;
|
|
145
|
+
rules?: Record<string, {
|
|
146
|
+
status?: number;
|
|
147
|
+
to?: string;
|
|
148
|
+
}>;
|
|
149
|
+
}, {
|
|
150
|
+
version?: 1;
|
|
151
|
+
staticRules?: Record<string, {
|
|
152
|
+
status?: number;
|
|
153
|
+
to?: string;
|
|
154
|
+
lineNumber?: number;
|
|
155
|
+
}>;
|
|
156
|
+
rules?: Record<string, {
|
|
157
|
+
status?: number;
|
|
158
|
+
to?: string;
|
|
159
|
+
}>;
|
|
160
|
+
}>>;
|
|
161
|
+
headers: z.ZodOptional<z.ZodObject<{
|
|
162
|
+
version: z.ZodLiteral<2>;
|
|
163
|
+
rules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
164
|
+
set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
165
|
+
unset: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
set?: Record<string, string>;
|
|
168
|
+
unset?: string[];
|
|
169
|
+
}, {
|
|
170
|
+
set?: Record<string, string>;
|
|
171
|
+
unset?: string[];
|
|
172
|
+
}>>;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
version?: 2;
|
|
175
|
+
rules?: Record<string, {
|
|
176
|
+
set?: Record<string, string>;
|
|
177
|
+
unset?: string[];
|
|
178
|
+
}>;
|
|
179
|
+
}, {
|
|
180
|
+
version?: 2;
|
|
181
|
+
rules?: Record<string, {
|
|
182
|
+
set?: Record<string, string>;
|
|
183
|
+
unset?: string[];
|
|
184
|
+
}>;
|
|
185
|
+
}>>;
|
|
186
|
+
}, "compatibility_date" | "compatibility_flags">, "strip", z.ZodTypeAny, {
|
|
187
|
+
headers?: {
|
|
188
|
+
version?: 2;
|
|
189
|
+
rules?: Record<string, {
|
|
190
|
+
set?: Record<string, string>;
|
|
191
|
+
unset?: string[];
|
|
192
|
+
}>;
|
|
193
|
+
} | undefined;
|
|
194
|
+
account_id?: number | undefined;
|
|
195
|
+
script_id?: number | undefined;
|
|
196
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
197
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
198
|
+
redirects?: {
|
|
199
|
+
version?: 1;
|
|
200
|
+
staticRules?: Record<string, {
|
|
201
|
+
status?: number;
|
|
202
|
+
to?: string;
|
|
203
|
+
lineNumber?: number;
|
|
204
|
+
}>;
|
|
205
|
+
rules?: Record<string, {
|
|
206
|
+
status?: number;
|
|
207
|
+
to?: string;
|
|
208
|
+
}>;
|
|
209
|
+
} | undefined;
|
|
116
210
|
}, {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
211
|
+
headers?: {
|
|
212
|
+
version?: 2;
|
|
213
|
+
rules?: Record<string, {
|
|
214
|
+
set?: Record<string, string>;
|
|
215
|
+
unset?: string[];
|
|
216
|
+
}>;
|
|
217
|
+
} | undefined;
|
|
218
|
+
account_id?: number | undefined;
|
|
219
|
+
script_id?: number | undefined;
|
|
220
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
221
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
222
|
+
redirects?: {
|
|
223
|
+
version?: 1;
|
|
224
|
+
staticRules?: Record<string, {
|
|
225
|
+
status?: number;
|
|
226
|
+
to?: string;
|
|
227
|
+
lineNumber?: number;
|
|
228
|
+
}>;
|
|
229
|
+
rules?: Record<string, {
|
|
230
|
+
status?: number;
|
|
231
|
+
to?: string;
|
|
232
|
+
}>;
|
|
233
|
+
} | undefined;
|
|
121
234
|
}>>;
|
|
122
235
|
}, "strip", z.ZodTypeAny, {
|
|
123
236
|
directory: string;
|
|
124
237
|
workerName?: string | undefined;
|
|
125
238
|
binding?: string | undefined;
|
|
126
|
-
|
|
127
|
-
has_user_worker?: boolean;
|
|
128
|
-
invoke_user_worker_ahead_of_assets?: boolean;
|
|
239
|
+
routerConfig?: {
|
|
129
240
|
account_id?: number;
|
|
130
241
|
script_id?: number;
|
|
242
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
243
|
+
has_user_worker?: boolean;
|
|
131
244
|
} | undefined;
|
|
132
245
|
assetConfig?: {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
246
|
+
headers?: {
|
|
247
|
+
version?: 2;
|
|
248
|
+
rules?: Record<string, {
|
|
249
|
+
set?: Record<string, string>;
|
|
250
|
+
unset?: string[];
|
|
251
|
+
}>;
|
|
252
|
+
} | undefined;
|
|
253
|
+
account_id?: number | undefined;
|
|
254
|
+
script_id?: number | undefined;
|
|
255
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
256
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
257
|
+
redirects?: {
|
|
258
|
+
version?: 1;
|
|
259
|
+
staticRules?: Record<string, {
|
|
260
|
+
status?: number;
|
|
261
|
+
to?: string;
|
|
262
|
+
lineNumber?: number;
|
|
263
|
+
}>;
|
|
264
|
+
rules?: Record<string, {
|
|
265
|
+
status?: number;
|
|
266
|
+
to?: string;
|
|
267
|
+
}>;
|
|
268
|
+
} | undefined;
|
|
137
269
|
} | undefined;
|
|
138
270
|
}, {
|
|
139
271
|
directory: string;
|
|
140
272
|
workerName?: string | undefined;
|
|
141
273
|
binding?: string | undefined;
|
|
142
|
-
|
|
143
|
-
has_user_worker?: boolean;
|
|
144
|
-
invoke_user_worker_ahead_of_assets?: boolean;
|
|
274
|
+
routerConfig?: {
|
|
145
275
|
account_id?: number;
|
|
146
276
|
script_id?: number;
|
|
277
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
278
|
+
has_user_worker?: boolean;
|
|
147
279
|
} | undefined;
|
|
148
280
|
assetConfig?: {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
281
|
+
headers?: {
|
|
282
|
+
version?: 2;
|
|
283
|
+
rules?: Record<string, {
|
|
284
|
+
set?: Record<string, string>;
|
|
285
|
+
unset?: string[];
|
|
286
|
+
}>;
|
|
287
|
+
} | undefined;
|
|
288
|
+
account_id?: number | undefined;
|
|
289
|
+
script_id?: number | undefined;
|
|
290
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
291
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
292
|
+
redirects?: {
|
|
293
|
+
version?: 1;
|
|
294
|
+
staticRules?: Record<string, {
|
|
295
|
+
status?: number;
|
|
296
|
+
to?: string;
|
|
297
|
+
lineNumber?: number;
|
|
298
|
+
}>;
|
|
299
|
+
rules?: Record<string, {
|
|
300
|
+
status?: number;
|
|
301
|
+
to?: string;
|
|
302
|
+
}>;
|
|
303
|
+
} | undefined;
|
|
153
304
|
} | undefined;
|
|
154
305
|
}>>;
|
|
306
|
+
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
307
|
+
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
155
308
|
}, "strip", z.ZodTypeAny, {
|
|
156
309
|
assets?: {
|
|
157
310
|
directory: string;
|
|
158
311
|
workerName?: string | undefined;
|
|
159
312
|
binding?: string | undefined;
|
|
160
|
-
|
|
161
|
-
has_user_worker?: boolean;
|
|
162
|
-
invoke_user_worker_ahead_of_assets?: boolean;
|
|
313
|
+
routerConfig?: {
|
|
163
314
|
account_id?: number;
|
|
164
315
|
script_id?: number;
|
|
316
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
317
|
+
has_user_worker?: boolean;
|
|
165
318
|
} | undefined;
|
|
166
319
|
assetConfig?: {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
320
|
+
headers?: {
|
|
321
|
+
version?: 2;
|
|
322
|
+
rules?: Record<string, {
|
|
323
|
+
set?: Record<string, string>;
|
|
324
|
+
unset?: string[];
|
|
325
|
+
}>;
|
|
326
|
+
} | undefined;
|
|
327
|
+
account_id?: number | undefined;
|
|
328
|
+
script_id?: number | undefined;
|
|
329
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
330
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
331
|
+
redirects?: {
|
|
332
|
+
version?: 1;
|
|
333
|
+
staticRules?: Record<string, {
|
|
334
|
+
status?: number;
|
|
335
|
+
to?: string;
|
|
336
|
+
lineNumber?: number;
|
|
337
|
+
}>;
|
|
338
|
+
rules?: Record<string, {
|
|
339
|
+
status?: number;
|
|
340
|
+
to?: string;
|
|
341
|
+
}>;
|
|
342
|
+
} | undefined;
|
|
171
343
|
} | undefined;
|
|
172
344
|
} | undefined;
|
|
345
|
+
compatibilityDate?: string | undefined;
|
|
346
|
+
compatibilityFlags?: string[] | undefined;
|
|
173
347
|
}, {
|
|
174
348
|
assets?: {
|
|
175
349
|
directory: string;
|
|
176
350
|
workerName?: string | undefined;
|
|
177
351
|
binding?: string | undefined;
|
|
178
|
-
|
|
179
|
-
has_user_worker?: boolean;
|
|
180
|
-
invoke_user_worker_ahead_of_assets?: boolean;
|
|
352
|
+
routerConfig?: {
|
|
181
353
|
account_id?: number;
|
|
182
354
|
script_id?: number;
|
|
355
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
356
|
+
has_user_worker?: boolean;
|
|
183
357
|
} | undefined;
|
|
184
358
|
assetConfig?: {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
359
|
+
headers?: {
|
|
360
|
+
version?: 2;
|
|
361
|
+
rules?: Record<string, {
|
|
362
|
+
set?: Record<string, string>;
|
|
363
|
+
unset?: string[];
|
|
364
|
+
}>;
|
|
365
|
+
} | undefined;
|
|
366
|
+
account_id?: number | undefined;
|
|
367
|
+
script_id?: number | undefined;
|
|
368
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
369
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
370
|
+
redirects?: {
|
|
371
|
+
version?: 1;
|
|
372
|
+
staticRules?: Record<string, {
|
|
373
|
+
status?: number;
|
|
374
|
+
to?: string;
|
|
375
|
+
lineNumber?: number;
|
|
376
|
+
}>;
|
|
377
|
+
rules?: Record<string, {
|
|
378
|
+
status?: number;
|
|
379
|
+
to?: string;
|
|
380
|
+
}>;
|
|
381
|
+
} | undefined;
|
|
189
382
|
} | undefined;
|
|
190
383
|
} | undefined;
|
|
384
|
+
compatibilityDate?: string | undefined;
|
|
385
|
+
compatibilityFlags?: string[] | undefined;
|
|
191
386
|
}>;
|
|
192
387
|
|
|
193
388
|
export declare type Awaitable<T> = T | Promise<T>;
|
|
@@ -314,29 +509,29 @@ export declare const CoreHeaders: {
|
|
|
314
509
|
|
|
315
510
|
export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
316
511
|
modules: z.ZodArray<z.ZodObject<{
|
|
317
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
512
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
318
513
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
319
514
|
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
320
515
|
}, "strip", z.ZodTypeAny, {
|
|
321
|
-
type: "ESModule" | "CommonJS" | "
|
|
516
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
322
517
|
path: string;
|
|
323
518
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
324
519
|
}, {
|
|
325
|
-
type: "ESModule" | "CommonJS" | "
|
|
520
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
326
521
|
path: string;
|
|
327
522
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
328
523
|
}>, "many">;
|
|
329
524
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
330
525
|
}, "strip", z.ZodTypeAny, {
|
|
331
526
|
modules: {
|
|
332
|
-
type: "ESModule" | "CommonJS" | "
|
|
527
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
333
528
|
path: string;
|
|
334
529
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
335
530
|
}[];
|
|
336
531
|
modulesRoot?: string | undefined;
|
|
337
532
|
}, {
|
|
338
533
|
modules: {
|
|
339
|
-
type: "ESModule" | "CommonJS" | "
|
|
534
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
340
535
|
path: string;
|
|
341
536
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
342
537
|
}[];
|
|
@@ -346,15 +541,15 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
346
541
|
scriptPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
347
542
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
348
543
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
349
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
544
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
350
545
|
include: z.ZodArray<z.ZodString, "many">;
|
|
351
546
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
352
547
|
}, "strip", z.ZodTypeAny, {
|
|
353
|
-
type: "ESModule" | "CommonJS" | "
|
|
548
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
354
549
|
include: string[];
|
|
355
550
|
fallthrough?: boolean | undefined;
|
|
356
551
|
}, {
|
|
357
|
-
type: "ESModule" | "CommonJS" | "
|
|
552
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
358
553
|
include: string[];
|
|
359
554
|
fallthrough?: boolean | undefined;
|
|
360
555
|
}>, "many">>;
|
|
@@ -364,7 +559,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
364
559
|
scriptPath?: string | undefined;
|
|
365
560
|
modules?: boolean | undefined;
|
|
366
561
|
modulesRules?: {
|
|
367
|
-
type: "ESModule" | "CommonJS" | "
|
|
562
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
368
563
|
include: string[];
|
|
369
564
|
fallthrough?: boolean | undefined;
|
|
370
565
|
}[] | undefined;
|
|
@@ -374,7 +569,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
374
569
|
scriptPath?: string | undefined;
|
|
375
570
|
modules?: boolean | undefined;
|
|
376
571
|
modulesRules?: {
|
|
377
|
-
type: "ESModule" | "CommonJS" | "
|
|
572
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
378
573
|
include: string[];
|
|
379
574
|
fallthrough?: boolean | undefined;
|
|
380
575
|
}[] | undefined;
|
|
@@ -383,15 +578,15 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
383
578
|
scriptPath: z.ZodEffects<z.ZodString, string, string>;
|
|
384
579
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
385
580
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
386
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
581
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
387
582
|
include: z.ZodArray<z.ZodString, "many">;
|
|
388
583
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
389
584
|
}, "strip", z.ZodTypeAny, {
|
|
390
|
-
type: "ESModule" | "CommonJS" | "
|
|
585
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
391
586
|
include: string[];
|
|
392
587
|
fallthrough?: boolean | undefined;
|
|
393
588
|
}, {
|
|
394
|
-
type: "ESModule" | "CommonJS" | "
|
|
589
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
395
590
|
include: string[];
|
|
396
591
|
fallthrough?: boolean | undefined;
|
|
397
592
|
}>, "many">>;
|
|
@@ -400,7 +595,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
400
595
|
scriptPath: string;
|
|
401
596
|
modules?: boolean | undefined;
|
|
402
597
|
modulesRules?: {
|
|
403
|
-
type: "ESModule" | "CommonJS" | "
|
|
598
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
404
599
|
include: string[];
|
|
405
600
|
fallthrough?: boolean | undefined;
|
|
406
601
|
}[] | undefined;
|
|
@@ -409,7 +604,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
409
604
|
scriptPath: string;
|
|
410
605
|
modules?: boolean | undefined;
|
|
411
606
|
modulesRules?: {
|
|
412
|
-
type: "ESModule" | "CommonJS" | "
|
|
607
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
413
608
|
include: string[];
|
|
414
609
|
fallthrough?: boolean | undefined;
|
|
415
610
|
}[] | undefined;
|
|
@@ -419,6 +614,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
419
614
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
420
615
|
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
421
616
|
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
617
|
+
unsafeInspectorProxy: z.ZodOptional<z.ZodBoolean>;
|
|
422
618
|
routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
423
619
|
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
|
|
424
620
|
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
@@ -749,8 +945,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
749
945
|
}>, "many">>;
|
|
750
946
|
unsafeEvalBinding: z.ZodOptional<z.ZodString>;
|
|
751
947
|
unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
|
|
752
|
-
/** Used to set the vitest pool worker SELF binding to point to the
|
|
753
|
-
(If there are assets but we're not using vitest, the miniflare entry worker can point directly to
|
|
948
|
+
/** Used to set the vitest pool worker SELF binding to point to the Router Worker if there are assets.
|
|
949
|
+
(If there are assets but we're not using vitest, the miniflare entry worker can point directly to
|
|
950
|
+
Router Worker)
|
|
754
951
|
*/
|
|
755
952
|
hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
|
|
756
953
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -758,6 +955,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
758
955
|
rootPath?: undefined;
|
|
759
956
|
compatibilityDate?: string | undefined;
|
|
760
957
|
compatibilityFlags?: string[] | undefined;
|
|
958
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
761
959
|
routes?: string[] | undefined;
|
|
762
960
|
bindings?: Record<string, Json> | undefined;
|
|
763
961
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -838,6 +1036,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
838
1036
|
rootPath?: string | undefined;
|
|
839
1037
|
compatibilityDate?: string | undefined;
|
|
840
1038
|
compatibilityFlags?: string[] | undefined;
|
|
1039
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
841
1040
|
routes?: string[] | undefined;
|
|
842
1041
|
bindings?: Record<string, Json> | undefined;
|
|
843
1042
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -915,7 +1114,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
915
1114
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
916
1115
|
}>>, ({
|
|
917
1116
|
modules: {
|
|
918
|
-
type: "ESModule" | "CommonJS" | "
|
|
1117
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
919
1118
|
path: string;
|
|
920
1119
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
921
1120
|
}[];
|
|
@@ -925,6 +1124,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
925
1124
|
rootPath?: undefined;
|
|
926
1125
|
compatibilityDate?: string | undefined;
|
|
927
1126
|
compatibilityFlags?: string[] | undefined;
|
|
1127
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
928
1128
|
routes?: string[] | undefined;
|
|
929
1129
|
bindings?: Record<string, Json> | undefined;
|
|
930
1130
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1005,7 +1205,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1005
1205
|
scriptPath?: string | undefined;
|
|
1006
1206
|
modules?: boolean | undefined;
|
|
1007
1207
|
modulesRules?: {
|
|
1008
|
-
type: "ESModule" | "CommonJS" | "
|
|
1208
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1009
1209
|
include: string[];
|
|
1010
1210
|
fallthrough?: boolean | undefined;
|
|
1011
1211
|
}[] | undefined;
|
|
@@ -1015,6 +1215,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1015
1215
|
rootPath?: undefined;
|
|
1016
1216
|
compatibilityDate?: string | undefined;
|
|
1017
1217
|
compatibilityFlags?: string[] | undefined;
|
|
1218
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1018
1219
|
routes?: string[] | undefined;
|
|
1019
1220
|
bindings?: Record<string, Json> | undefined;
|
|
1020
1221
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1094,7 +1295,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1094
1295
|
scriptPath: string;
|
|
1095
1296
|
modules?: boolean | undefined;
|
|
1096
1297
|
modulesRules?: {
|
|
1097
|
-
type: "ESModule" | "CommonJS" | "
|
|
1298
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1098
1299
|
include: string[];
|
|
1099
1300
|
fallthrough?: boolean | undefined;
|
|
1100
1301
|
}[] | undefined;
|
|
@@ -1104,6 +1305,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1104
1305
|
rootPath?: undefined;
|
|
1105
1306
|
compatibilityDate?: string | undefined;
|
|
1106
1307
|
compatibilityFlags?: string[] | undefined;
|
|
1308
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1107
1309
|
routes?: string[] | undefined;
|
|
1108
1310
|
bindings?: Record<string, Json> | undefined;
|
|
1109
1311
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1181,7 +1383,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1181
1383
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1182
1384
|
}), ({
|
|
1183
1385
|
modules: {
|
|
1184
|
-
type: "ESModule" | "CommonJS" | "
|
|
1386
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1185
1387
|
path: string;
|
|
1186
1388
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1187
1389
|
}[];
|
|
@@ -1191,7 +1393,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1191
1393
|
scriptPath?: string | undefined;
|
|
1192
1394
|
modules?: boolean | undefined;
|
|
1193
1395
|
modulesRules?: {
|
|
1194
|
-
type: "ESModule" | "CommonJS" | "
|
|
1396
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1195
1397
|
include: string[];
|
|
1196
1398
|
fallthrough?: boolean | undefined;
|
|
1197
1399
|
}[] | undefined;
|
|
@@ -1200,7 +1402,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1200
1402
|
scriptPath: string;
|
|
1201
1403
|
modules?: boolean | undefined;
|
|
1202
1404
|
modulesRules?: {
|
|
1203
|
-
type: "ESModule" | "CommonJS" | "
|
|
1405
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1204
1406
|
include: string[];
|
|
1205
1407
|
fallthrough?: boolean | undefined;
|
|
1206
1408
|
}[] | undefined;
|
|
@@ -1210,6 +1412,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1210
1412
|
rootPath?: string | undefined;
|
|
1211
1413
|
compatibilityDate?: string | undefined;
|
|
1212
1414
|
compatibilityFlags?: string[] | undefined;
|
|
1415
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1213
1416
|
routes?: string[] | undefined;
|
|
1214
1417
|
bindings?: Record<string, Json> | undefined;
|
|
1215
1418
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1395,6 +1598,7 @@ export declare function deserialiseSiteRegExps(siteRegExps: SerialisableSiteMatc
|
|
|
1395
1598
|
export declare interface DiskDirectory {
|
|
1396
1599
|
path?: string;
|
|
1397
1600
|
writable?: boolean;
|
|
1601
|
+
allowDotfiles?: boolean;
|
|
1398
1602
|
}
|
|
1399
1603
|
|
|
1400
1604
|
export declare type DispatchFetch = (input: RequestInfo, init?: RequestInit_2<Partial<IncomingRequestCfProperties>>) => Promise<Response_2>;
|
|
@@ -1576,13 +1780,10 @@ export declare function getMiniflareObjectBindings(unsafeStickyBlobs: boolean):
|
|
|
1576
1780
|
*
|
|
1577
1781
|
* @param compatibilityDateStr The compatibility date
|
|
1578
1782
|
* @param compatibilityFlags The compatibility flags
|
|
1579
|
-
* @param opts.nodeCompat Whether the legacy node_compat arg is being used
|
|
1580
1783
|
* @returns the mode and flags to indicate specific configuration for validating.
|
|
1581
1784
|
*/
|
|
1582
1785
|
export declare function getNodeCompat(compatibilityDate: string | undefined, // Default to some arbitrary old date
|
|
1583
|
-
compatibilityFlags: string[]
|
|
1584
|
-
nodeCompat?: boolean;
|
|
1585
|
-
}): {
|
|
1786
|
+
compatibilityFlags: string[]): {
|
|
1586
1787
|
mode: NodeJSCompatMode;
|
|
1587
1788
|
hasNodejsAlsFlag: boolean;
|
|
1588
1789
|
hasNodejsCompatFlag: boolean;
|
|
@@ -1803,6 +2004,8 @@ export declare interface MatcherRegExps {
|
|
|
1803
2004
|
|
|
1804
2005
|
export declare function matchRoutes(routes: WorkerRoute[], url: URL): string | null;
|
|
1805
2006
|
|
|
2007
|
+
export declare const MAX_BULK_GET_KEYS = 100;
|
|
2008
|
+
|
|
1806
2009
|
export declare function maybeApply<From, To>(f: (value: From) => To, maybeValue: From | undefined): To | undefined;
|
|
1807
2010
|
|
|
1808
2011
|
export declare function maybeParseURL(url: Persistence): URL | undefined;
|
|
@@ -1850,7 +2053,7 @@ export declare class Miniflare {
|
|
|
1850
2053
|
export declare class MiniflareCoreError extends MiniflareError<MiniflareCoreErrorCode> {
|
|
1851
2054
|
}
|
|
1852
2055
|
|
|
1853
|
-
export declare type MiniflareCoreErrorCode = "ERR_RUNTIME_FAILURE" | "ERR_DISPOSED" | "ERR_MODULE_PARSE" | "ERR_MODULE_STRING_SCRIPT" | "ERR_MODULE_DYNAMIC_SPEC" | "ERR_MODULE_RULE" | "ERR_PERSIST_UNSUPPORTED" | "ERR_PERSIST_REMOTE_UNAUTHENTICATED" | "ERR_PERSIST_REMOTE_UNSUPPORTED" | "ERR_FUTURE_COMPATIBILITY_DATE" | "ERR_NO_WORKERS" | "ERR_VALIDATION" | "ERR_DUPLICATE_NAME" | "ERR_DIFFERENT_STORAGE_BACKEND" | "ERR_DIFFERENT_UNIQUE_KEYS" | "ERR_DIFFERENT_PREVENT_EVICTION" | "ERR_MULTIPLE_OUTBOUNDS" | "ERR_INVALID_WRAPPED" | "ERR_CYCLIC";
|
|
2056
|
+
export declare type MiniflareCoreErrorCode = "ERR_RUNTIME_FAILURE" | "ERR_DISPOSED" | "ERR_MODULE_PARSE" | "ERR_MODULE_STRING_SCRIPT" | "ERR_MODULE_DYNAMIC_SPEC" | "ERR_MODULE_RULE" | "ERR_PERSIST_UNSUPPORTED" | "ERR_PERSIST_REMOTE_UNAUTHENTICATED" | "ERR_PERSIST_REMOTE_UNSUPPORTED" | "ERR_FUTURE_COMPATIBILITY_DATE" | "ERR_NO_WORKERS" | "ERR_VALIDATION" | "ERR_DUPLICATE_NAME" | "ERR_DIFFERENT_STORAGE_BACKEND" | "ERR_DIFFERENT_UNIQUE_KEYS" | "ERR_DIFFERENT_PREVENT_EVICTION" | "ERR_MULTIPLE_OUTBOUNDS" | "ERR_INVALID_WRAPPED" | "ERR_CYCLIC" | "ERR_MISSING_INSPECTOR_PROXY_PORT";
|
|
1854
2057
|
|
|
1855
2058
|
export declare class MiniflareError<Code extends string | number = string | number> extends Error {
|
|
1856
2059
|
readonly code: Code;
|
|
@@ -1865,15 +2068,15 @@ export declare type MiniflareOptions = SharedOptions & (WorkerOptions | {
|
|
|
1865
2068
|
export declare type ModuleDefinition = z.infer<typeof ModuleDefinitionSchema>;
|
|
1866
2069
|
|
|
1867
2070
|
export declare const ModuleDefinitionSchema: z.ZodObject<{
|
|
1868
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2071
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
1869
2072
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
1870
2073
|
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
1871
2074
|
}, "strip", z.ZodTypeAny, {
|
|
1872
|
-
type: "ESModule" | "CommonJS" | "
|
|
2075
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1873
2076
|
path: string;
|
|
1874
2077
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1875
2078
|
}, {
|
|
1876
|
-
type: "ESModule" | "CommonJS" | "
|
|
2079
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1877
2080
|
path: string;
|
|
1878
2081
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1879
2082
|
}>;
|
|
@@ -1881,22 +2084,22 @@ export declare const ModuleDefinitionSchema: z.ZodObject<{
|
|
|
1881
2084
|
export declare type ModuleRule = z.infer<typeof ModuleRuleSchema>;
|
|
1882
2085
|
|
|
1883
2086
|
export declare const ModuleRuleSchema: z.ZodObject<{
|
|
1884
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2087
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
1885
2088
|
include: z.ZodArray<z.ZodString, "many">;
|
|
1886
2089
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
1887
2090
|
}, "strip", z.ZodTypeAny, {
|
|
1888
|
-
type: "ESModule" | "CommonJS" | "
|
|
2091
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1889
2092
|
include: string[];
|
|
1890
2093
|
fallthrough?: boolean | undefined;
|
|
1891
2094
|
}, {
|
|
1892
|
-
type: "ESModule" | "CommonJS" | "
|
|
2095
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1893
2096
|
include: string[];
|
|
1894
2097
|
fallthrough?: boolean | undefined;
|
|
1895
2098
|
}>;
|
|
1896
2099
|
|
|
1897
2100
|
export declare type ModuleRuleType = z.infer<typeof ModuleRuleTypeSchema>;
|
|
1898
2101
|
|
|
1899
|
-
export declare const ModuleRuleTypeSchema: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2102
|
+
export declare const ModuleRuleTypeSchema: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
1900
2103
|
|
|
1901
2104
|
export declare class Mutex {
|
|
1902
2105
|
private locked;
|
|
@@ -1923,14 +2126,13 @@ export declare const NODE_PLATFORM_IMPL: PlatformImpl<ReadableStream_3>;
|
|
|
1923
2126
|
|
|
1924
2127
|
/**
|
|
1925
2128
|
* We can provide Node.js compatibility in a number of different modes:
|
|
1926
|
-
* - "legacy" - this mode adds compile-time polyfills that are not well maintained and cannot work with workerd runtime builtins.
|
|
1927
2129
|
* - "als": this mode tells the workerd runtime to enable only the Async Local Storage builtin library (accessible via `node:async_hooks`).
|
|
1928
2130
|
* - "v1" - this mode tells the workerd runtime to enable some Node.js builtin libraries (accessible only via `node:...` imports) but no globals.
|
|
1929
2131
|
* - "v2" - this mode tells the workerd runtime to enable more Node.js builtin libraries (accessible both with and without the `node:` prefix)
|
|
1930
2132
|
* and also some Node.js globals such as `Buffer`; it also turns on additional compile-time polyfills for those that are not provided by the runtime.
|
|
1931
2133
|
* - null - no Node.js compatibility.
|
|
1932
2134
|
*/
|
|
1933
|
-
export declare type NodeJSCompatMode = "
|
|
2135
|
+
export declare type NodeJSCompatMode = "als" | "v1" | "v2" | null;
|
|
1934
2136
|
|
|
1935
2137
|
export declare class NoOpLog extends Log {
|
|
1936
2138
|
constructor();
|
|
@@ -1952,7 +2154,82 @@ export declare type OptionalZodTypeOf<T extends z.ZodTypeAny | undefined> = T ex
|
|
|
1952
2154
|
|
|
1953
2155
|
export declare type OverloadReplaceWorkersTypes<T> = T extends (...args: any[]) => any ? UnionToIntersection<ReplaceWorkersTypes<OverloadUnion<T>>> : ReplaceWorkersTypes<T>;
|
|
1954
2156
|
|
|
1955
|
-
export declare type OverloadUnion<T extends (...args: any[]) => any> = Parameters<T> extends [] ? T :
|
|
2157
|
+
export declare type OverloadUnion<T extends (...args: any[]) => any> = Parameters<T> extends [] ? T : OverloadUnion14<T>;
|
|
2158
|
+
|
|
2159
|
+
export declare type OverloadUnion10<T> = T extends {
|
|
2160
|
+
(...args: infer P1): infer R1;
|
|
2161
|
+
(...args: infer P2): infer R2;
|
|
2162
|
+
(...args: infer P3): infer R3;
|
|
2163
|
+
(...args: infer P4): infer R4;
|
|
2164
|
+
(...args: infer P5): infer R5;
|
|
2165
|
+
(...args: infer P6): infer R6;
|
|
2166
|
+
(...args: infer P7): infer R7;
|
|
2167
|
+
(...args: infer P8): infer R8;
|
|
2168
|
+
(...args: infer P9): infer R9;
|
|
2169
|
+
(...args: infer P10): infer R10;
|
|
2170
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) : OverloadUnion9<T>;
|
|
2171
|
+
|
|
2172
|
+
export declare type OverloadUnion11<T> = T extends {
|
|
2173
|
+
(...args: infer P1): infer R1;
|
|
2174
|
+
(...args: infer P2): infer R2;
|
|
2175
|
+
(...args: infer P3): infer R3;
|
|
2176
|
+
(...args: infer P4): infer R4;
|
|
2177
|
+
(...args: infer P5): infer R5;
|
|
2178
|
+
(...args: infer P6): infer R6;
|
|
2179
|
+
(...args: infer P7): infer R7;
|
|
2180
|
+
(...args: infer P8): infer R8;
|
|
2181
|
+
(...args: infer P9): infer R9;
|
|
2182
|
+
(...args: infer P10): infer R10;
|
|
2183
|
+
(...args: infer P11): infer R11;
|
|
2184
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) : OverloadUnion10<T>;
|
|
2185
|
+
|
|
2186
|
+
export declare type OverloadUnion12<T> = T extends {
|
|
2187
|
+
(...args: infer P1): infer R1;
|
|
2188
|
+
(...args: infer P2): infer R2;
|
|
2189
|
+
(...args: infer P3): infer R3;
|
|
2190
|
+
(...args: infer P4): infer R4;
|
|
2191
|
+
(...args: infer P5): infer R5;
|
|
2192
|
+
(...args: infer P6): infer R6;
|
|
2193
|
+
(...args: infer P7): infer R7;
|
|
2194
|
+
(...args: infer P8): infer R8;
|
|
2195
|
+
(...args: infer P9): infer R9;
|
|
2196
|
+
(...args: infer P10): infer R10;
|
|
2197
|
+
(...args: infer P11): infer R11;
|
|
2198
|
+
(...args: infer P12): infer R12;
|
|
2199
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) : OverloadUnion11<T>;
|
|
2200
|
+
|
|
2201
|
+
export declare type OverloadUnion13<T> = T extends {
|
|
2202
|
+
(...args: infer P1): infer R1;
|
|
2203
|
+
(...args: infer P2): infer R2;
|
|
2204
|
+
(...args: infer P3): infer R3;
|
|
2205
|
+
(...args: infer P4): infer R4;
|
|
2206
|
+
(...args: infer P5): infer R5;
|
|
2207
|
+
(...args: infer P6): infer R6;
|
|
2208
|
+
(...args: infer P7): infer R7;
|
|
2209
|
+
(...args: infer P8): infer R8;
|
|
2210
|
+
(...args: infer P9): infer R9;
|
|
2211
|
+
(...args: infer P10): infer R10;
|
|
2212
|
+
(...args: infer P11): infer R11;
|
|
2213
|
+
(...args: infer P12): infer R12;
|
|
2214
|
+
(...args: infer P13): infer R13;
|
|
2215
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) | ((...args: P13) => R13) : OverloadUnion12<T>;
|
|
2216
|
+
|
|
2217
|
+
export declare type OverloadUnion14<T> = T extends {
|
|
2218
|
+
(...args: infer P1): infer R1;
|
|
2219
|
+
(...args: infer P2): infer R2;
|
|
2220
|
+
(...args: infer P3): infer R3;
|
|
2221
|
+
(...args: infer P4): infer R4;
|
|
2222
|
+
(...args: infer P5): infer R5;
|
|
2223
|
+
(...args: infer P6): infer R6;
|
|
2224
|
+
(...args: infer P7): infer R7;
|
|
2225
|
+
(...args: infer P8): infer R8;
|
|
2226
|
+
(...args: infer P9): infer R9;
|
|
2227
|
+
(...args: infer P10): infer R10;
|
|
2228
|
+
(...args: infer P11): infer R11;
|
|
2229
|
+
(...args: infer P12): infer R12;
|
|
2230
|
+
(...args: infer P13): infer R13;
|
|
2231
|
+
(...args: infer P14): infer R14;
|
|
2232
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) | ((...args: P13) => R13) | ((...args: P14) => R14) : OverloadUnion13<T>;
|
|
1956
2233
|
|
|
1957
2234
|
export declare type OverloadUnion2<T> = T extends {
|
|
1958
2235
|
(...args: infer P1): infer R1;
|
|
@@ -2048,6 +2325,18 @@ export declare type Persistence = z.infer<typeof PersistenceSchema>;
|
|
|
2048
2325
|
|
|
2049
2326
|
export declare const PersistenceSchema: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
2050
2327
|
|
|
2328
|
+
export declare const PIPELINE_PLUGIN: Plugin<typeof PipelineOptionsSchema>;
|
|
2329
|
+
|
|
2330
|
+
export declare const PipelineOptionsSchema: z.ZodObject<{
|
|
2331
|
+
pipelines: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
2332
|
+
}, "strip", z.ZodTypeAny, {
|
|
2333
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
2334
|
+
}, {
|
|
2335
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
2336
|
+
}>;
|
|
2337
|
+
|
|
2338
|
+
export declare const PIPELINES_PLUGIN_NAME = "pipelines";
|
|
2339
|
+
|
|
2051
2340
|
export declare interface PlatformImpl<RS> {
|
|
2052
2341
|
Blob: typeof Blob_2;
|
|
2053
2342
|
File: typeof File_2;
|
|
@@ -2078,29 +2367,29 @@ export declare interface PluginBase<Options extends z.ZodType, SharedOptions ext
|
|
|
2078
2367
|
export declare const PLUGINS: {
|
|
2079
2368
|
core: Plugin_2<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
2080
2369
|
modules: z.ZodArray<z.ZodObject<{
|
|
2081
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2370
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
2082
2371
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
2083
2372
|
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
2084
2373
|
}, "strip", z.ZodTypeAny, {
|
|
2085
|
-
type: "ESModule" | "CommonJS" | "
|
|
2374
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2086
2375
|
path: string;
|
|
2087
2376
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2088
2377
|
}, {
|
|
2089
|
-
type: "ESModule" | "CommonJS" | "
|
|
2378
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2090
2379
|
path: string;
|
|
2091
2380
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2092
2381
|
}>, "many">;
|
|
2093
2382
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2094
2383
|
}, "strip", z.ZodTypeAny, {
|
|
2095
2384
|
modules: {
|
|
2096
|
-
type: "ESModule" | "CommonJS" | "
|
|
2385
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2097
2386
|
path: string;
|
|
2098
2387
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2099
2388
|
}[];
|
|
2100
2389
|
modulesRoot?: string | undefined;
|
|
2101
2390
|
}, {
|
|
2102
2391
|
modules: {
|
|
2103
|
-
type: "ESModule" | "CommonJS" | "
|
|
2392
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2104
2393
|
path: string;
|
|
2105
2394
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2106
2395
|
}[];
|
|
@@ -2110,15 +2399,15 @@ export declare const PLUGINS: {
|
|
|
2110
2399
|
scriptPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2111
2400
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
2112
2401
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2113
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2402
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
2114
2403
|
include: z.ZodArray<z.ZodString, "many">;
|
|
2115
2404
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
2116
2405
|
}, "strip", z.ZodTypeAny, {
|
|
2117
|
-
type: "ESModule" | "CommonJS" | "
|
|
2406
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2118
2407
|
include: string[];
|
|
2119
2408
|
fallthrough?: boolean | undefined;
|
|
2120
2409
|
}, {
|
|
2121
|
-
type: "ESModule" | "CommonJS" | "
|
|
2410
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2122
2411
|
include: string[];
|
|
2123
2412
|
fallthrough?: boolean | undefined;
|
|
2124
2413
|
}>, "many">>;
|
|
@@ -2128,7 +2417,7 @@ export declare const PLUGINS: {
|
|
|
2128
2417
|
scriptPath?: string | undefined;
|
|
2129
2418
|
modules?: boolean | undefined;
|
|
2130
2419
|
modulesRules?: {
|
|
2131
|
-
type: "ESModule" | "CommonJS" | "
|
|
2420
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2132
2421
|
include: string[];
|
|
2133
2422
|
fallthrough?: boolean | undefined;
|
|
2134
2423
|
}[] | undefined;
|
|
@@ -2138,7 +2427,7 @@ export declare const PLUGINS: {
|
|
|
2138
2427
|
scriptPath?: string | undefined;
|
|
2139
2428
|
modules?: boolean | undefined;
|
|
2140
2429
|
modulesRules?: {
|
|
2141
|
-
type: "ESModule" | "CommonJS" | "
|
|
2430
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2142
2431
|
include: string[];
|
|
2143
2432
|
fallthrough?: boolean | undefined;
|
|
2144
2433
|
}[] | undefined;
|
|
@@ -2147,15 +2436,15 @@ export declare const PLUGINS: {
|
|
|
2147
2436
|
scriptPath: z.ZodEffects<z.ZodString, string, string>;
|
|
2148
2437
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
2149
2438
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2150
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2439
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
2151
2440
|
include: z.ZodArray<z.ZodString, "many">;
|
|
2152
2441
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
2153
2442
|
}, "strip", z.ZodTypeAny, {
|
|
2154
|
-
type: "ESModule" | "CommonJS" | "
|
|
2443
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2155
2444
|
include: string[];
|
|
2156
2445
|
fallthrough?: boolean | undefined;
|
|
2157
2446
|
}, {
|
|
2158
|
-
type: "ESModule" | "CommonJS" | "
|
|
2447
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2159
2448
|
include: string[];
|
|
2160
2449
|
fallthrough?: boolean | undefined;
|
|
2161
2450
|
}>, "many">>;
|
|
@@ -2164,7 +2453,7 @@ export declare const PLUGINS: {
|
|
|
2164
2453
|
scriptPath: string;
|
|
2165
2454
|
modules?: boolean | undefined;
|
|
2166
2455
|
modulesRules?: {
|
|
2167
|
-
type: "ESModule" | "CommonJS" | "
|
|
2456
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2168
2457
|
include: string[];
|
|
2169
2458
|
fallthrough?: boolean | undefined;
|
|
2170
2459
|
}[] | undefined;
|
|
@@ -2173,7 +2462,7 @@ export declare const PLUGINS: {
|
|
|
2173
2462
|
scriptPath: string;
|
|
2174
2463
|
modules?: boolean | undefined;
|
|
2175
2464
|
modulesRules?: {
|
|
2176
|
-
type: "ESModule" | "CommonJS" | "
|
|
2465
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2177
2466
|
include: string[];
|
|
2178
2467
|
fallthrough?: boolean | undefined;
|
|
2179
2468
|
}[] | undefined;
|
|
@@ -2183,6 +2472,7 @@ export declare const PLUGINS: {
|
|
|
2183
2472
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
2184
2473
|
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
2185
2474
|
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2475
|
+
unsafeInspectorProxy: z.ZodOptional<z.ZodBoolean>;
|
|
2186
2476
|
routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2187
2477
|
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json_2, z.ZodTypeDef, Json_2>>>;
|
|
2188
2478
|
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
@@ -2519,6 +2809,7 @@ export declare const PLUGINS: {
|
|
|
2519
2809
|
rootPath?: undefined;
|
|
2520
2810
|
compatibilityDate?: string | undefined;
|
|
2521
2811
|
compatibilityFlags?: string[] | undefined;
|
|
2812
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2522
2813
|
routes?: string[] | undefined;
|
|
2523
2814
|
bindings?: Record<string, Json_2> | undefined;
|
|
2524
2815
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -2599,6 +2890,7 @@ export declare const PLUGINS: {
|
|
|
2599
2890
|
rootPath?: string | undefined;
|
|
2600
2891
|
compatibilityDate?: string | undefined;
|
|
2601
2892
|
compatibilityFlags?: string[] | undefined;
|
|
2893
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2602
2894
|
routes?: string[] | undefined;
|
|
2603
2895
|
bindings?: Record<string, Json_2> | undefined;
|
|
2604
2896
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -2676,7 +2968,7 @@ export declare const PLUGINS: {
|
|
|
2676
2968
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2677
2969
|
}>>, ({
|
|
2678
2970
|
modules: {
|
|
2679
|
-
type: "ESModule" | "CommonJS" | "
|
|
2971
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2680
2972
|
path: string;
|
|
2681
2973
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2682
2974
|
}[];
|
|
@@ -2686,6 +2978,7 @@ export declare const PLUGINS: {
|
|
|
2686
2978
|
rootPath?: undefined;
|
|
2687
2979
|
compatibilityDate?: string | undefined;
|
|
2688
2980
|
compatibilityFlags?: string[] | undefined;
|
|
2981
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2689
2982
|
routes?: string[] | undefined;
|
|
2690
2983
|
bindings?: Record<string, Json_2> | undefined;
|
|
2691
2984
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -2766,7 +3059,7 @@ export declare const PLUGINS: {
|
|
|
2766
3059
|
scriptPath?: string | undefined;
|
|
2767
3060
|
modules?: boolean | undefined;
|
|
2768
3061
|
modulesRules?: {
|
|
2769
|
-
type: "ESModule" | "CommonJS" | "
|
|
3062
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2770
3063
|
include: string[];
|
|
2771
3064
|
fallthrough?: boolean | undefined;
|
|
2772
3065
|
}[] | undefined;
|
|
@@ -2776,6 +3069,7 @@ export declare const PLUGINS: {
|
|
|
2776
3069
|
rootPath?: undefined;
|
|
2777
3070
|
compatibilityDate?: string | undefined;
|
|
2778
3071
|
compatibilityFlags?: string[] | undefined;
|
|
3072
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2779
3073
|
routes?: string[] | undefined;
|
|
2780
3074
|
bindings?: Record<string, Json_2> | undefined;
|
|
2781
3075
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -2855,7 +3149,7 @@ export declare const PLUGINS: {
|
|
|
2855
3149
|
scriptPath: string;
|
|
2856
3150
|
modules?: boolean | undefined;
|
|
2857
3151
|
modulesRules?: {
|
|
2858
|
-
type: "ESModule" | "CommonJS" | "
|
|
3152
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2859
3153
|
include: string[];
|
|
2860
3154
|
fallthrough?: boolean | undefined;
|
|
2861
3155
|
}[] | undefined;
|
|
@@ -2865,6 +3159,7 @@ export declare const PLUGINS: {
|
|
|
2865
3159
|
rootPath?: undefined;
|
|
2866
3160
|
compatibilityDate?: string | undefined;
|
|
2867
3161
|
compatibilityFlags?: string[] | undefined;
|
|
3162
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2868
3163
|
routes?: string[] | undefined;
|
|
2869
3164
|
bindings?: Record<string, Json_2> | undefined;
|
|
2870
3165
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -2942,7 +3237,7 @@ export declare const PLUGINS: {
|
|
|
2942
3237
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2943
3238
|
}), ({
|
|
2944
3239
|
modules: {
|
|
2945
|
-
type: "ESModule" | "CommonJS" | "
|
|
3240
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2946
3241
|
path: string;
|
|
2947
3242
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2948
3243
|
}[];
|
|
@@ -2952,7 +3247,7 @@ export declare const PLUGINS: {
|
|
|
2952
3247
|
scriptPath?: string | undefined;
|
|
2953
3248
|
modules?: boolean | undefined;
|
|
2954
3249
|
modulesRules?: {
|
|
2955
|
-
type: "ESModule" | "CommonJS" | "
|
|
3250
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2956
3251
|
include: string[];
|
|
2957
3252
|
fallthrough?: boolean | undefined;
|
|
2958
3253
|
}[] | undefined;
|
|
@@ -2961,7 +3256,7 @@ export declare const PLUGINS: {
|
|
|
2961
3256
|
scriptPath: string;
|
|
2962
3257
|
modules?: boolean | undefined;
|
|
2963
3258
|
modulesRules?: {
|
|
2964
|
-
type: "ESModule" | "CommonJS" | "
|
|
3259
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2965
3260
|
include: string[];
|
|
2966
3261
|
fallthrough?: boolean | undefined;
|
|
2967
3262
|
}[] | undefined;
|
|
@@ -2971,6 +3266,7 @@ export declare const PLUGINS: {
|
|
|
2971
3266
|
rootPath?: string | undefined;
|
|
2972
3267
|
compatibilityDate?: string | undefined;
|
|
2973
3268
|
compatibilityFlags?: string[] | undefined;
|
|
3269
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2974
3270
|
routes?: string[] | undefined;
|
|
2975
3271
|
bindings?: Record<string, Json_2> | undefined;
|
|
2976
3272
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -3335,107 +3631,302 @@ export declare const PLUGINS: {
|
|
|
3335
3631
|
workerName: z.ZodOptional<z.ZodString>;
|
|
3336
3632
|
directory: z.ZodEffects<z.ZodString, string, string>;
|
|
3337
3633
|
binding: z.ZodOptional<z.ZodString>;
|
|
3338
|
-
|
|
3339
|
-
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
3340
|
-
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
3634
|
+
routerConfig: z.ZodOptional<z.ZodObject<{
|
|
3341
3635
|
account_id: z.ZodOptional<z.ZodNumber>;
|
|
3342
3636
|
script_id: z.ZodOptional<z.ZodNumber>;
|
|
3637
|
+
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
3638
|
+
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
3343
3639
|
}, "strip", z.ZodTypeAny, {
|
|
3344
|
-
has_user_worker?: boolean;
|
|
3345
|
-
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3346
3640
|
account_id?: number;
|
|
3347
3641
|
script_id?: number;
|
|
3348
|
-
}, {
|
|
3349
|
-
has_user_worker?: boolean;
|
|
3350
3642
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3643
|
+
has_user_worker?: boolean;
|
|
3644
|
+
}, {
|
|
3351
3645
|
account_id?: number;
|
|
3352
3646
|
script_id?: number;
|
|
3647
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3648
|
+
has_user_worker?: boolean;
|
|
3353
3649
|
}>>;
|
|
3354
|
-
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
3650
|
+
assetConfig: z.ZodOptional<z.ZodObject<Omit<{
|
|
3651
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
3652
|
+
script_id: z.ZodOptional<z.ZodNumber>;
|
|
3653
|
+
compatibility_date: z.ZodOptional<z.ZodString>;
|
|
3654
|
+
compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3355
3655
|
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
|
3356
3656
|
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
|
3357
|
-
|
|
3358
|
-
|
|
3657
|
+
redirects: z.ZodOptional<z.ZodObject<{
|
|
3658
|
+
version: z.ZodLiteral<1>;
|
|
3659
|
+
staticRules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3660
|
+
status: z.ZodNumber;
|
|
3661
|
+
to: z.ZodString;
|
|
3662
|
+
lineNumber: z.ZodNumber;
|
|
3663
|
+
}, "strip", z.ZodTypeAny, {
|
|
3664
|
+
status?: number;
|
|
3665
|
+
to?: string;
|
|
3666
|
+
lineNumber?: number;
|
|
3667
|
+
}, {
|
|
3668
|
+
status?: number;
|
|
3669
|
+
to?: string;
|
|
3670
|
+
lineNumber?: number;
|
|
3671
|
+
}>>;
|
|
3672
|
+
rules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3673
|
+
status: z.ZodNumber;
|
|
3674
|
+
to: z.ZodString;
|
|
3675
|
+
}, "strip", z.ZodTypeAny, {
|
|
3676
|
+
status?: number;
|
|
3677
|
+
to?: string;
|
|
3678
|
+
}, {
|
|
3679
|
+
status?: number;
|
|
3680
|
+
to?: string;
|
|
3681
|
+
}>>;
|
|
3682
|
+
}, "strip", z.ZodTypeAny, {
|
|
3683
|
+
version?: 1;
|
|
3684
|
+
staticRules?: Record<string, {
|
|
3685
|
+
status?: number;
|
|
3686
|
+
to?: string;
|
|
3687
|
+
lineNumber?: number;
|
|
3688
|
+
}>;
|
|
3689
|
+
rules?: Record<string, {
|
|
3690
|
+
status?: number;
|
|
3691
|
+
to?: string;
|
|
3692
|
+
}>;
|
|
3693
|
+
}, {
|
|
3694
|
+
version?: 1;
|
|
3695
|
+
staticRules?: Record<string, {
|
|
3696
|
+
status?: number;
|
|
3697
|
+
to?: string;
|
|
3698
|
+
lineNumber?: number;
|
|
3699
|
+
}>;
|
|
3700
|
+
rules?: Record<string, {
|
|
3701
|
+
status?: number;
|
|
3702
|
+
to?: string;
|
|
3703
|
+
}>;
|
|
3704
|
+
}>>;
|
|
3705
|
+
headers: z.ZodOptional<z.ZodObject<{
|
|
3706
|
+
version: z.ZodLiteral<2>;
|
|
3707
|
+
rules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3708
|
+
set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3709
|
+
unset: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3359
3710
|
}, "strip", z.ZodTypeAny, {
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
serve_directly?: boolean;
|
|
3363
|
-
run_worker_first?: boolean;
|
|
3711
|
+
set?: Record<string, string>;
|
|
3712
|
+
unset?: string[];
|
|
3364
3713
|
}, {
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3714
|
+
set?: Record<string, string>;
|
|
3715
|
+
unset?: string[];
|
|
3716
|
+
}>>;
|
|
3717
|
+
}, "strip", z.ZodTypeAny, {
|
|
3718
|
+
version?: 2;
|
|
3719
|
+
rules?: Record<string, {
|
|
3720
|
+
set?: Record<string, string>;
|
|
3721
|
+
unset?: string[];
|
|
3722
|
+
}>;
|
|
3723
|
+
}, {
|
|
3724
|
+
version?: 2;
|
|
3725
|
+
rules?: Record<string, {
|
|
3726
|
+
set?: Record<string, string>;
|
|
3727
|
+
unset?: string[];
|
|
3728
|
+
}>;
|
|
3729
|
+
}>>;
|
|
3730
|
+
}, "compatibility_date" | "compatibility_flags">, "strip", z.ZodTypeAny, {
|
|
3731
|
+
headers?: {
|
|
3732
|
+
version?: 2;
|
|
3733
|
+
rules?: Record<string, {
|
|
3734
|
+
set?: Record<string, string>;
|
|
3735
|
+
unset?: string[];
|
|
3736
|
+
}>;
|
|
3737
|
+
} | undefined;
|
|
3738
|
+
account_id?: number | undefined;
|
|
3739
|
+
script_id?: number | undefined;
|
|
3740
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3741
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3742
|
+
redirects?: {
|
|
3743
|
+
version?: 1;
|
|
3744
|
+
staticRules?: Record<string, {
|
|
3745
|
+
status?: number;
|
|
3746
|
+
to?: string;
|
|
3747
|
+
lineNumber?: number;
|
|
3748
|
+
}>;
|
|
3749
|
+
rules?: Record<string, {
|
|
3750
|
+
status?: number;
|
|
3751
|
+
to?: string;
|
|
3752
|
+
}>;
|
|
3753
|
+
} | undefined;
|
|
3754
|
+
}, {
|
|
3755
|
+
headers?: {
|
|
3756
|
+
version?: 2;
|
|
3757
|
+
rules?: Record<string, {
|
|
3758
|
+
set?: Record<string, string>;
|
|
3759
|
+
unset?: string[];
|
|
3760
|
+
}>;
|
|
3761
|
+
} | undefined;
|
|
3762
|
+
account_id?: number | undefined;
|
|
3763
|
+
script_id?: number | undefined;
|
|
3764
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3765
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3766
|
+
redirects?: {
|
|
3767
|
+
version?: 1;
|
|
3768
|
+
staticRules?: Record<string, {
|
|
3769
|
+
status?: number;
|
|
3770
|
+
to?: string;
|
|
3771
|
+
lineNumber?: number;
|
|
3772
|
+
}>;
|
|
3773
|
+
rules?: Record<string, {
|
|
3774
|
+
status?: number;
|
|
3775
|
+
to?: string;
|
|
3776
|
+
}>;
|
|
3777
|
+
} | undefined;
|
|
3369
3778
|
}>>;
|
|
3370
3779
|
}, "strip", z.ZodTypeAny, {
|
|
3371
3780
|
directory: string;
|
|
3372
3781
|
workerName?: string | undefined;
|
|
3373
3782
|
binding?: string | undefined;
|
|
3374
|
-
|
|
3375
|
-
has_user_worker?: boolean;
|
|
3376
|
-
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3783
|
+
routerConfig?: {
|
|
3377
3784
|
account_id?: number;
|
|
3378
3785
|
script_id?: number;
|
|
3786
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3787
|
+
has_user_worker?: boolean;
|
|
3379
3788
|
} | undefined;
|
|
3380
3789
|
assetConfig?: {
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3790
|
+
headers?: {
|
|
3791
|
+
version?: 2;
|
|
3792
|
+
rules?: Record<string, {
|
|
3793
|
+
set?: Record<string, string>;
|
|
3794
|
+
unset?: string[];
|
|
3795
|
+
}>;
|
|
3796
|
+
} | undefined;
|
|
3797
|
+
account_id?: number | undefined;
|
|
3798
|
+
script_id?: number | undefined;
|
|
3799
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3800
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3801
|
+
redirects?: {
|
|
3802
|
+
version?: 1;
|
|
3803
|
+
staticRules?: Record<string, {
|
|
3804
|
+
status?: number;
|
|
3805
|
+
to?: string;
|
|
3806
|
+
lineNumber?: number;
|
|
3807
|
+
}>;
|
|
3808
|
+
rules?: Record<string, {
|
|
3809
|
+
status?: number;
|
|
3810
|
+
to?: string;
|
|
3811
|
+
}>;
|
|
3812
|
+
} | undefined;
|
|
3385
3813
|
} | undefined;
|
|
3386
3814
|
}, {
|
|
3387
3815
|
directory: string;
|
|
3388
3816
|
workerName?: string | undefined;
|
|
3389
3817
|
binding?: string | undefined;
|
|
3390
|
-
|
|
3391
|
-
has_user_worker?: boolean;
|
|
3392
|
-
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3818
|
+
routerConfig?: {
|
|
3393
3819
|
account_id?: number;
|
|
3394
3820
|
script_id?: number;
|
|
3821
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3822
|
+
has_user_worker?: boolean;
|
|
3395
3823
|
} | undefined;
|
|
3396
3824
|
assetConfig?: {
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3825
|
+
headers?: {
|
|
3826
|
+
version?: 2;
|
|
3827
|
+
rules?: Record<string, {
|
|
3828
|
+
set?: Record<string, string>;
|
|
3829
|
+
unset?: string[];
|
|
3830
|
+
}>;
|
|
3831
|
+
} | undefined;
|
|
3832
|
+
account_id?: number | undefined;
|
|
3833
|
+
script_id?: number | undefined;
|
|
3834
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3835
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3836
|
+
redirects?: {
|
|
3837
|
+
version?: 1;
|
|
3838
|
+
staticRules?: Record<string, {
|
|
3839
|
+
status?: number;
|
|
3840
|
+
to?: string;
|
|
3841
|
+
lineNumber?: number;
|
|
3842
|
+
}>;
|
|
3843
|
+
rules?: Record<string, {
|
|
3844
|
+
status?: number;
|
|
3845
|
+
to?: string;
|
|
3846
|
+
}>;
|
|
3847
|
+
} | undefined;
|
|
3401
3848
|
} | undefined;
|
|
3402
3849
|
}>>;
|
|
3850
|
+
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
3851
|
+
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3403
3852
|
}, "strip", z.ZodTypeAny, {
|
|
3404
3853
|
assets?: {
|
|
3405
3854
|
directory: string;
|
|
3406
3855
|
workerName?: string | undefined;
|
|
3407
3856
|
binding?: string | undefined;
|
|
3408
|
-
|
|
3409
|
-
has_user_worker?: boolean;
|
|
3410
|
-
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3857
|
+
routerConfig?: {
|
|
3411
3858
|
account_id?: number;
|
|
3412
3859
|
script_id?: number;
|
|
3860
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3861
|
+
has_user_worker?: boolean;
|
|
3413
3862
|
} | undefined;
|
|
3414
3863
|
assetConfig?: {
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3864
|
+
headers?: {
|
|
3865
|
+
version?: 2;
|
|
3866
|
+
rules?: Record<string, {
|
|
3867
|
+
set?: Record<string, string>;
|
|
3868
|
+
unset?: string[];
|
|
3869
|
+
}>;
|
|
3419
3870
|
} | undefined;
|
|
3871
|
+
account_id?: number | undefined;
|
|
3872
|
+
script_id?: number | undefined;
|
|
3873
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3874
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3875
|
+
redirects?: {
|
|
3876
|
+
version?: 1;
|
|
3877
|
+
staticRules?: Record<string, {
|
|
3878
|
+
status?: number;
|
|
3879
|
+
to?: string;
|
|
3880
|
+
lineNumber?: number;
|
|
3881
|
+
}>;
|
|
3882
|
+
rules?: Record<string, {
|
|
3883
|
+
status?: number;
|
|
3884
|
+
to?: string;
|
|
3885
|
+
}>;
|
|
3420
3886
|
} | undefined;
|
|
3887
|
+
} | undefined;
|
|
3888
|
+
} | undefined;
|
|
3889
|
+
compatibilityDate?: string | undefined;
|
|
3890
|
+
compatibilityFlags?: string[] | undefined;
|
|
3421
3891
|
}, {
|
|
3422
3892
|
assets?: {
|
|
3423
3893
|
directory: string;
|
|
3424
3894
|
workerName?: string | undefined;
|
|
3425
3895
|
binding?: string | undefined;
|
|
3426
|
-
|
|
3427
|
-
has_user_worker?: boolean;
|
|
3428
|
-
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3896
|
+
routerConfig?: {
|
|
3429
3897
|
account_id?: number;
|
|
3430
3898
|
script_id?: number;
|
|
3899
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3900
|
+
has_user_worker?: boolean;
|
|
3431
3901
|
} | undefined;
|
|
3432
3902
|
assetConfig?: {
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3903
|
+
headers?: {
|
|
3904
|
+
version?: 2;
|
|
3905
|
+
rules?: Record<string, {
|
|
3906
|
+
set?: Record<string, string>;
|
|
3907
|
+
unset?: string[];
|
|
3908
|
+
}>;
|
|
3909
|
+
} | undefined;
|
|
3910
|
+
account_id?: number | undefined;
|
|
3911
|
+
script_id?: number | undefined;
|
|
3912
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3913
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3914
|
+
redirects?: {
|
|
3915
|
+
version?: 1;
|
|
3916
|
+
staticRules?: Record<string, {
|
|
3917
|
+
status?: number;
|
|
3918
|
+
to?: string;
|
|
3919
|
+
lineNumber?: number;
|
|
3920
|
+
}>;
|
|
3921
|
+
rules?: Record<string, {
|
|
3922
|
+
status?: number;
|
|
3923
|
+
to?: string;
|
|
3924
|
+
}>;
|
|
3925
|
+
} | undefined;
|
|
3437
3926
|
} | undefined;
|
|
3438
3927
|
} | undefined;
|
|
3928
|
+
compatibilityDate?: string | undefined;
|
|
3929
|
+
compatibilityFlags?: string[] | undefined;
|
|
3439
3930
|
}>>;
|
|
3440
3931
|
workflows: Plugin_2<z.ZodObject<{
|
|
3441
3932
|
workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -3470,6 +3961,13 @@ export declare const PLUGINS: {
|
|
|
3470
3961
|
}, {
|
|
3471
3962
|
workflowsPersist?: string | boolean | undefined;
|
|
3472
3963
|
}>>;
|
|
3964
|
+
pipelines: Plugin_2<z.ZodObject<{
|
|
3965
|
+
pipelines: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
3966
|
+
}, "strip", z.ZodTypeAny, {
|
|
3967
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
3968
|
+
}, {
|
|
3969
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
3970
|
+
}>>;
|
|
3473
3971
|
};
|
|
3474
3972
|
|
|
3475
3973
|
export declare type Plugins = typeof PLUGINS;
|
|
@@ -4135,29 +4633,29 @@ export declare type SourceOptions = z.infer<typeof SourceOptionsSchema>;
|
|
|
4135
4633
|
|
|
4136
4634
|
export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
4137
4635
|
modules: z.ZodArray<z.ZodObject<{
|
|
4138
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
4636
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
4139
4637
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
4140
4638
|
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
4141
4639
|
}, "strip", z.ZodTypeAny, {
|
|
4142
|
-
type: "ESModule" | "CommonJS" | "
|
|
4640
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4143
4641
|
path: string;
|
|
4144
4642
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4145
4643
|
}, {
|
|
4146
|
-
type: "ESModule" | "CommonJS" | "
|
|
4644
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4147
4645
|
path: string;
|
|
4148
4646
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4149
4647
|
}>, "many">;
|
|
4150
4648
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4151
4649
|
}, "strip", z.ZodTypeAny, {
|
|
4152
4650
|
modules: {
|
|
4153
|
-
type: "ESModule" | "CommonJS" | "
|
|
4651
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4154
4652
|
path: string;
|
|
4155
4653
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4156
4654
|
}[];
|
|
4157
4655
|
modulesRoot?: string | undefined;
|
|
4158
4656
|
}, {
|
|
4159
4657
|
modules: {
|
|
4160
|
-
type: "ESModule" | "CommonJS" | "
|
|
4658
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4161
4659
|
path: string;
|
|
4162
4660
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4163
4661
|
}[];
|
|
@@ -4167,15 +4665,15 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4167
4665
|
scriptPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4168
4666
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
4169
4667
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4170
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
4668
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
4171
4669
|
include: z.ZodArray<z.ZodString, "many">;
|
|
4172
4670
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
4173
4671
|
}, "strip", z.ZodTypeAny, {
|
|
4174
|
-
type: "ESModule" | "CommonJS" | "
|
|
4672
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4175
4673
|
include: string[];
|
|
4176
4674
|
fallthrough?: boolean | undefined;
|
|
4177
4675
|
}, {
|
|
4178
|
-
type: "ESModule" | "CommonJS" | "
|
|
4676
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4179
4677
|
include: string[];
|
|
4180
4678
|
fallthrough?: boolean | undefined;
|
|
4181
4679
|
}>, "many">>;
|
|
@@ -4185,7 +4683,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4185
4683
|
scriptPath?: string | undefined;
|
|
4186
4684
|
modules?: boolean | undefined;
|
|
4187
4685
|
modulesRules?: {
|
|
4188
|
-
type: "ESModule" | "CommonJS" | "
|
|
4686
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4189
4687
|
include: string[];
|
|
4190
4688
|
fallthrough?: boolean | undefined;
|
|
4191
4689
|
}[] | undefined;
|
|
@@ -4195,7 +4693,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4195
4693
|
scriptPath?: string | undefined;
|
|
4196
4694
|
modules?: boolean | undefined;
|
|
4197
4695
|
modulesRules?: {
|
|
4198
|
-
type: "ESModule" | "CommonJS" | "
|
|
4696
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4199
4697
|
include: string[];
|
|
4200
4698
|
fallthrough?: boolean | undefined;
|
|
4201
4699
|
}[] | undefined;
|
|
@@ -4204,15 +4702,15 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4204
4702
|
scriptPath: z.ZodEffects<z.ZodString, string, string>;
|
|
4205
4703
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
4206
4704
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4207
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
4705
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
4208
4706
|
include: z.ZodArray<z.ZodString, "many">;
|
|
4209
4707
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
4210
4708
|
}, "strip", z.ZodTypeAny, {
|
|
4211
|
-
type: "ESModule" | "CommonJS" | "
|
|
4709
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4212
4710
|
include: string[];
|
|
4213
4711
|
fallthrough?: boolean | undefined;
|
|
4214
4712
|
}, {
|
|
4215
|
-
type: "ESModule" | "CommonJS" | "
|
|
4713
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4216
4714
|
include: string[];
|
|
4217
4715
|
fallthrough?: boolean | undefined;
|
|
4218
4716
|
}>, "many">>;
|
|
@@ -4221,7 +4719,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4221
4719
|
scriptPath: string;
|
|
4222
4720
|
modules?: boolean | undefined;
|
|
4223
4721
|
modulesRules?: {
|
|
4224
|
-
type: "ESModule" | "CommonJS" | "
|
|
4722
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4225
4723
|
include: string[];
|
|
4226
4724
|
fallthrough?: boolean | undefined;
|
|
4227
4725
|
}[] | undefined;
|
|
@@ -4230,7 +4728,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4230
4728
|
scriptPath: string;
|
|
4231
4729
|
modules?: boolean | undefined;
|
|
4232
4730
|
modulesRules?: {
|
|
4233
|
-
type: "ESModule" | "CommonJS" | "
|
|
4731
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4234
4732
|
include: string[];
|
|
4235
4733
|
fallthrough?: boolean | undefined;
|
|
4236
4734
|
}[] | undefined;
|
|
@@ -4536,15 +5034,13 @@ export declare type Worker_Module = {
|
|
|
4536
5034
|
wasm?: Uint8Array;
|
|
4537
5035
|
} | {
|
|
4538
5036
|
json?: string;
|
|
4539
|
-
} | {
|
|
4540
|
-
nodeJsCompatModule?: string;
|
|
4541
5037
|
} | {
|
|
4542
5038
|
pythonModule?: string;
|
|
4543
5039
|
} | {
|
|
4544
5040
|
pythonRequirement?: string;
|
|
4545
5041
|
});
|
|
4546
5042
|
|
|
4547
|
-
export declare type WorkerOptions = z.input<typeof CORE_PLUGIN.options> & z.input<typeof CACHE_PLUGIN.options> & z.input<typeof D1_PLUGIN.options> & z.input<typeof DURABLE_OBJECTS_PLUGIN.options> & z.input<typeof KV_PLUGIN.options> & z.input<typeof QUEUES_PLUGIN.options> & z.input<typeof R2_PLUGIN.options> & z.input<typeof HYPERDRIVE_PLUGIN.options> & z.input<typeof RATELIMIT_PLUGIN.options> & z.input<typeof ASSETS_PLUGIN.options> & z.input<typeof WORKFLOWS_PLUGIN.options>;
|
|
5043
|
+
export declare type WorkerOptions = z.input<typeof CORE_PLUGIN.options> & z.input<typeof CACHE_PLUGIN.options> & z.input<typeof D1_PLUGIN.options> & z.input<typeof DURABLE_OBJECTS_PLUGIN.options> & z.input<typeof KV_PLUGIN.options> & z.input<typeof QUEUES_PLUGIN.options> & z.input<typeof R2_PLUGIN.options> & z.input<typeof HYPERDRIVE_PLUGIN.options> & z.input<typeof RATELIMIT_PLUGIN.options> & z.input<typeof ASSETS_PLUGIN.options> & z.input<typeof WORKFLOWS_PLUGIN.options> & z.input<typeof PIPELINE_PLUGIN.options>;
|
|
4548
5044
|
|
|
4549
5045
|
export declare interface WorkerRoute {
|
|
4550
5046
|
target: string;
|