miniflare 0.0.0-e0efb6f17 → 0.0.0-e101451a2
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/dist/src/index.d.ts +204 -170
- package/dist/src/index.js +1370 -1580
- package/dist/src/index.js.map +3 -3
- package/dist/src/workers/assets/assets-kv.worker.js.map +1 -1
- package/dist/src/workers/assets/assets.worker.js +131 -226
- package/dist/src/workers/assets/assets.worker.js.map +2 -2
- package/dist/src/workers/assets/router.worker.js +32 -27
- package/dist/src/workers/assets/router.worker.js.map +1 -1
- package/dist/src/workers/assets/rpc-proxy.worker.js +0 -7
- package/dist/src/workers/assets/rpc-proxy.worker.js.map +1 -1
- package/dist/src/workers/cache/cache-entry.worker.js.map +1 -1
- package/dist/src/workers/cache/cache.worker.js +24 -12
- package/dist/src/workers/cache/cache.worker.js.map +1 -1
- package/dist/src/workers/core/entry.worker.js +59 -32
- package/dist/src/workers/core/entry.worker.js.map +1 -1
- package/dist/src/workers/core/strip-cf-connecting-ip.worker.js +11 -0
- package/dist/src/workers/core/strip-cf-connecting-ip.worker.js.map +6 -0
- package/dist/src/workers/d1/database.worker.js +6 -8
- package/dist/src/workers/d1/database.worker.js.map +1 -1
- package/dist/src/workers/kv/namespace.worker.js +5 -51
- package/dist/src/workers/kv/namespace.worker.js.map +2 -2
- package/dist/src/workers/kv/sites.worker.js +6 -3
- package/dist/src/workers/kv/sites.worker.js.map +1 -1
- package/dist/src/workers/queues/broker.worker.js +17 -12
- package/dist/src/workers/queues/broker.worker.js.map +1 -1
- package/dist/src/workers/r2/bucket.worker.js +46 -23
- 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 +50 -24
- package/dist/src/workers/shared/index.worker.js.map +1 -1
- package/dist/src/workers/shared/zod.worker.js +84 -80
- package/dist/src/workers/shared/zod.worker.js.map +1 -1
- package/dist/src/workers/workflows/binding.worker.js +132 -111
- package/dist/src/workers/workflows/binding.worker.js.map +1 -1
- package/package.json +9 -10
package/dist/src/index.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
103
103
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
104
104
|
has_user_worker?: boolean;
|
|
105
105
|
}>>;
|
|
106
|
-
assetConfig: z.ZodOptional<z.ZodObject<
|
|
106
|
+
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
107
107
|
account_id: z.ZodOptional<z.ZodNumber>;
|
|
108
108
|
script_id: z.ZodOptional<z.ZodNumber>;
|
|
109
109
|
compatibility_date: z.ZodOptional<z.ZodString>;
|
|
@@ -183,18 +183,13 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
183
183
|
unset?: string[];
|
|
184
184
|
}>;
|
|
185
185
|
}>>;
|
|
186
|
-
}, "
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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;
|
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
account_id?: number;
|
|
188
|
+
script_id?: number;
|
|
189
|
+
compatibility_date?: string;
|
|
190
|
+
compatibility_flags?: string[];
|
|
191
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
192
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
198
193
|
redirects?: {
|
|
199
194
|
version?: 1;
|
|
200
195
|
staticRules?: Record<string, {
|
|
@@ -206,19 +201,21 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
206
201
|
status?: number;
|
|
207
202
|
to?: string;
|
|
208
203
|
}>;
|
|
209
|
-
}
|
|
210
|
-
}, {
|
|
204
|
+
};
|
|
211
205
|
headers?: {
|
|
212
206
|
version?: 2;
|
|
213
207
|
rules?: Record<string, {
|
|
214
208
|
set?: Record<string, string>;
|
|
215
209
|
unset?: string[];
|
|
216
210
|
}>;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
211
|
+
};
|
|
212
|
+
}, {
|
|
213
|
+
account_id?: number;
|
|
214
|
+
script_id?: number;
|
|
215
|
+
compatibility_date?: string;
|
|
216
|
+
compatibility_flags?: string[];
|
|
217
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
218
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
222
219
|
redirects?: {
|
|
223
220
|
version?: 1;
|
|
224
221
|
staticRules?: Record<string, {
|
|
@@ -230,7 +227,14 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
230
227
|
status?: number;
|
|
231
228
|
to?: string;
|
|
232
229
|
}>;
|
|
233
|
-
}
|
|
230
|
+
};
|
|
231
|
+
headers?: {
|
|
232
|
+
version?: 2;
|
|
233
|
+
rules?: Record<string, {
|
|
234
|
+
set?: Record<string, string>;
|
|
235
|
+
unset?: string[];
|
|
236
|
+
}>;
|
|
237
|
+
};
|
|
234
238
|
}>>;
|
|
235
239
|
}, "strip", z.ZodTypeAny, {
|
|
236
240
|
directory: string;
|
|
@@ -243,17 +247,12 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
243
247
|
has_user_worker?: boolean;
|
|
244
248
|
} | undefined;
|
|
245
249
|
assetConfig?: {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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;
|
|
250
|
+
account_id?: number;
|
|
251
|
+
script_id?: number;
|
|
252
|
+
compatibility_date?: string;
|
|
253
|
+
compatibility_flags?: string[];
|
|
254
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
255
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
257
256
|
redirects?: {
|
|
258
257
|
version?: 1;
|
|
259
258
|
staticRules?: Record<string, {
|
|
@@ -265,7 +264,14 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
265
264
|
status?: number;
|
|
266
265
|
to?: string;
|
|
267
266
|
}>;
|
|
268
|
-
}
|
|
267
|
+
};
|
|
268
|
+
headers?: {
|
|
269
|
+
version?: 2;
|
|
270
|
+
rules?: Record<string, {
|
|
271
|
+
set?: Record<string, string>;
|
|
272
|
+
unset?: string[];
|
|
273
|
+
}>;
|
|
274
|
+
};
|
|
269
275
|
} | undefined;
|
|
270
276
|
}, {
|
|
271
277
|
directory: string;
|
|
@@ -278,17 +284,12 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
278
284
|
has_user_worker?: boolean;
|
|
279
285
|
} | undefined;
|
|
280
286
|
assetConfig?: {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
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;
|
|
287
|
+
account_id?: number;
|
|
288
|
+
script_id?: number;
|
|
289
|
+
compatibility_date?: string;
|
|
290
|
+
compatibility_flags?: string[];
|
|
291
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
292
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
292
293
|
redirects?: {
|
|
293
294
|
version?: 1;
|
|
294
295
|
staticRules?: Record<string, {
|
|
@@ -300,11 +301,16 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
300
301
|
status?: number;
|
|
301
302
|
to?: string;
|
|
302
303
|
}>;
|
|
303
|
-
}
|
|
304
|
+
};
|
|
305
|
+
headers?: {
|
|
306
|
+
version?: 2;
|
|
307
|
+
rules?: Record<string, {
|
|
308
|
+
set?: Record<string, string>;
|
|
309
|
+
unset?: string[];
|
|
310
|
+
}>;
|
|
311
|
+
};
|
|
304
312
|
} | undefined;
|
|
305
313
|
}>>;
|
|
306
|
-
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
307
|
-
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
308
314
|
}, "strip", z.ZodTypeAny, {
|
|
309
315
|
assets?: {
|
|
310
316
|
directory: string;
|
|
@@ -317,17 +323,12 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
317
323
|
has_user_worker?: boolean;
|
|
318
324
|
} | undefined;
|
|
319
325
|
assetConfig?: {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
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;
|
|
326
|
+
account_id?: number;
|
|
327
|
+
script_id?: number;
|
|
328
|
+
compatibility_date?: string;
|
|
329
|
+
compatibility_flags?: string[];
|
|
330
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
331
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
331
332
|
redirects?: {
|
|
332
333
|
version?: 1;
|
|
333
334
|
staticRules?: Record<string, {
|
|
@@ -339,11 +340,16 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
339
340
|
status?: number;
|
|
340
341
|
to?: string;
|
|
341
342
|
}>;
|
|
342
|
-
}
|
|
343
|
+
};
|
|
344
|
+
headers?: {
|
|
345
|
+
version?: 2;
|
|
346
|
+
rules?: Record<string, {
|
|
347
|
+
set?: Record<string, string>;
|
|
348
|
+
unset?: string[];
|
|
349
|
+
}>;
|
|
350
|
+
};
|
|
343
351
|
} | undefined;
|
|
344
352
|
} | undefined;
|
|
345
|
-
compatibilityDate?: string | undefined;
|
|
346
|
-
compatibilityFlags?: string[] | undefined;
|
|
347
353
|
}, {
|
|
348
354
|
assets?: {
|
|
349
355
|
directory: string;
|
|
@@ -356,17 +362,12 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
356
362
|
has_user_worker?: boolean;
|
|
357
363
|
} | undefined;
|
|
358
364
|
assetConfig?: {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
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;
|
|
365
|
+
account_id?: number;
|
|
366
|
+
script_id?: number;
|
|
367
|
+
compatibility_date?: string;
|
|
368
|
+
compatibility_flags?: string[];
|
|
369
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
370
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
370
371
|
redirects?: {
|
|
371
372
|
version?: 1;
|
|
372
373
|
staticRules?: Record<string, {
|
|
@@ -378,11 +379,16 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
378
379
|
status?: number;
|
|
379
380
|
to?: string;
|
|
380
381
|
}>;
|
|
381
|
-
}
|
|
382
|
+
};
|
|
383
|
+
headers?: {
|
|
384
|
+
version?: 2;
|
|
385
|
+
rules?: Record<string, {
|
|
386
|
+
set?: Record<string, string>;
|
|
387
|
+
unset?: string[];
|
|
388
|
+
}>;
|
|
389
|
+
};
|
|
382
390
|
} | undefined;
|
|
383
391
|
} | undefined;
|
|
384
|
-
compatibilityDate?: string | undefined;
|
|
385
|
-
compatibilityFlags?: string[] | undefined;
|
|
386
392
|
}>;
|
|
387
393
|
|
|
388
394
|
export declare type Awaitable<T> = T | Promise<T>;
|
|
@@ -614,7 +620,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
614
620
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
615
621
|
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
616
622
|
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
617
|
-
unsafeInspectorProxy: z.ZodOptional<z.ZodBoolean>;
|
|
618
623
|
routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
619
624
|
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
|
|
620
625
|
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
@@ -950,12 +955,14 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
950
955
|
Router Worker)
|
|
951
956
|
*/
|
|
952
957
|
hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
|
|
958
|
+
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
959
|
+
stripCfConnectingIp: z.ZodDefault<z.ZodBoolean>;
|
|
953
960
|
}, "strip", z.ZodTypeAny, {
|
|
961
|
+
stripCfConnectingIp: boolean;
|
|
954
962
|
name?: string | undefined;
|
|
955
963
|
rootPath?: undefined;
|
|
956
964
|
compatibilityDate?: string | undefined;
|
|
957
965
|
compatibilityFlags?: string[] | undefined;
|
|
958
|
-
unsafeInspectorProxy?: boolean | undefined;
|
|
959
966
|
routes?: string[] | undefined;
|
|
960
967
|
bindings?: Record<string, Json> | undefined;
|
|
961
968
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1031,12 +1038,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1031
1038
|
unsafeEvalBinding?: string | undefined;
|
|
1032
1039
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1033
1040
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1041
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1034
1042
|
}, {
|
|
1035
1043
|
name?: string | undefined;
|
|
1036
1044
|
rootPath?: string | undefined;
|
|
1037
1045
|
compatibilityDate?: string | undefined;
|
|
1038
1046
|
compatibilityFlags?: string[] | undefined;
|
|
1039
|
-
unsafeInspectorProxy?: boolean | undefined;
|
|
1040
1047
|
routes?: string[] | undefined;
|
|
1041
1048
|
bindings?: Record<string, Json> | undefined;
|
|
1042
1049
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1112,6 +1119,8 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1112
1119
|
unsafeEvalBinding?: string | undefined;
|
|
1113
1120
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1114
1121
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1122
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1123
|
+
stripCfConnectingIp?: boolean | undefined;
|
|
1115
1124
|
}>>, ({
|
|
1116
1125
|
modules: {
|
|
1117
1126
|
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
@@ -1120,11 +1129,11 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1120
1129
|
}[];
|
|
1121
1130
|
modulesRoot?: string | undefined;
|
|
1122
1131
|
} & {
|
|
1132
|
+
stripCfConnectingIp: boolean;
|
|
1123
1133
|
name?: string | undefined;
|
|
1124
1134
|
rootPath?: undefined;
|
|
1125
1135
|
compatibilityDate?: string | undefined;
|
|
1126
1136
|
compatibilityFlags?: string[] | undefined;
|
|
1127
|
-
unsafeInspectorProxy?: boolean | undefined;
|
|
1128
1137
|
routes?: string[] | undefined;
|
|
1129
1138
|
bindings?: Record<string, Json> | undefined;
|
|
1130
1139
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1200,6 +1209,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1200
1209
|
unsafeEvalBinding?: string | undefined;
|
|
1201
1210
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1202
1211
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1212
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1203
1213
|
}) | ({
|
|
1204
1214
|
script: string;
|
|
1205
1215
|
scriptPath?: string | undefined;
|
|
@@ -1211,11 +1221,11 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1211
1221
|
}[] | undefined;
|
|
1212
1222
|
modulesRoot?: string | undefined;
|
|
1213
1223
|
} & {
|
|
1224
|
+
stripCfConnectingIp: boolean;
|
|
1214
1225
|
name?: string | undefined;
|
|
1215
1226
|
rootPath?: undefined;
|
|
1216
1227
|
compatibilityDate?: string | undefined;
|
|
1217
1228
|
compatibilityFlags?: string[] | undefined;
|
|
1218
|
-
unsafeInspectorProxy?: boolean | undefined;
|
|
1219
1229
|
routes?: string[] | undefined;
|
|
1220
1230
|
bindings?: Record<string, Json> | undefined;
|
|
1221
1231
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1291,6 +1301,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1291
1301
|
unsafeEvalBinding?: string | undefined;
|
|
1292
1302
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1293
1303
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1304
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1294
1305
|
}) | ({
|
|
1295
1306
|
scriptPath: string;
|
|
1296
1307
|
modules?: boolean | undefined;
|
|
@@ -1301,11 +1312,11 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1301
1312
|
}[] | undefined;
|
|
1302
1313
|
modulesRoot?: string | undefined;
|
|
1303
1314
|
} & {
|
|
1315
|
+
stripCfConnectingIp: boolean;
|
|
1304
1316
|
name?: string | undefined;
|
|
1305
1317
|
rootPath?: undefined;
|
|
1306
1318
|
compatibilityDate?: string | undefined;
|
|
1307
1319
|
compatibilityFlags?: string[] | undefined;
|
|
1308
|
-
unsafeInspectorProxy?: boolean | undefined;
|
|
1309
1320
|
routes?: string[] | undefined;
|
|
1310
1321
|
bindings?: Record<string, Json> | undefined;
|
|
1311
1322
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1381,6 +1392,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1381
1392
|
unsafeEvalBinding?: string | undefined;
|
|
1382
1393
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1383
1394
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1395
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1384
1396
|
}), ({
|
|
1385
1397
|
modules: {
|
|
1386
1398
|
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
@@ -1412,7 +1424,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1412
1424
|
rootPath?: string | undefined;
|
|
1413
1425
|
compatibilityDate?: string | undefined;
|
|
1414
1426
|
compatibilityFlags?: string[] | undefined;
|
|
1415
|
-
unsafeInspectorProxy?: boolean | undefined;
|
|
1416
1427
|
routes?: string[] | undefined;
|
|
1417
1428
|
bindings?: Record<string, Json> | undefined;
|
|
1418
1429
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1488,6 +1499,8 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1488
1499
|
unsafeEvalBinding?: string | undefined;
|
|
1489
1500
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1490
1501
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1502
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1503
|
+
stripCfConnectingIp?: boolean | undefined;
|
|
1491
1504
|
}>;
|
|
1492
1505
|
|
|
1493
1506
|
export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
@@ -1509,6 +1522,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1509
1522
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
1510
1523
|
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>>;
|
|
1511
1524
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
1525
|
+
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
1512
1526
|
}, "strip", z.ZodTypeAny, {
|
|
1513
1527
|
rootPath?: undefined;
|
|
1514
1528
|
host?: string | undefined;
|
|
@@ -1528,6 +1542,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1528
1542
|
unsafeProxySharedSecret?: string | undefined;
|
|
1529
1543
|
unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1530
1544
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1545
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1531
1546
|
}, {
|
|
1532
1547
|
rootPath?: string | undefined;
|
|
1533
1548
|
host?: string | undefined;
|
|
@@ -1547,6 +1562,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1547
1562
|
unsafeProxySharedSecret?: string | undefined;
|
|
1548
1563
|
unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1549
1564
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1565
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1550
1566
|
}>;
|
|
1551
1567
|
|
|
1552
1568
|
export declare function coupleWebSocket(ws: NodeWebSocket, pair: WebSocket): Promise<void>;
|
|
@@ -1598,7 +1614,6 @@ export declare function deserialiseSiteRegExps(siteRegExps: SerialisableSiteMatc
|
|
|
1598
1614
|
export declare interface DiskDirectory {
|
|
1599
1615
|
path?: string;
|
|
1600
1616
|
writable?: boolean;
|
|
1601
|
-
allowDotfiles?: boolean;
|
|
1602
1617
|
}
|
|
1603
1618
|
|
|
1604
1619
|
export declare type DispatchFetch = (input: RequestInfo, init?: RequestInit_2<Partial<IncomingRequestCfProperties>>) => Promise<Response_2>;
|
|
@@ -1780,10 +1795,13 @@ export declare function getMiniflareObjectBindings(unsafeStickyBlobs: boolean):
|
|
|
1780
1795
|
*
|
|
1781
1796
|
* @param compatibilityDateStr The compatibility date
|
|
1782
1797
|
* @param compatibilityFlags The compatibility flags
|
|
1798
|
+
* @param opts.nodeCompat Whether the legacy node_compat arg is being used
|
|
1783
1799
|
* @returns the mode and flags to indicate specific configuration for validating.
|
|
1784
1800
|
*/
|
|
1785
1801
|
export declare function getNodeCompat(compatibilityDate: string | undefined, // Default to some arbitrary old date
|
|
1786
|
-
compatibilityFlags: string[]
|
|
1802
|
+
compatibilityFlags: string[], opts?: {
|
|
1803
|
+
nodeCompat?: boolean;
|
|
1804
|
+
}): {
|
|
1787
1805
|
mode: NodeJSCompatMode;
|
|
1788
1806
|
hasNodejsAlsFlag: boolean;
|
|
1789
1807
|
hasNodejsCompatFlag: boolean;
|
|
@@ -2004,8 +2022,6 @@ export declare interface MatcherRegExps {
|
|
|
2004
2022
|
|
|
2005
2023
|
export declare function matchRoutes(routes: WorkerRoute[], url: URL): string | null;
|
|
2006
2024
|
|
|
2007
|
-
export declare const MAX_BULK_GET_KEYS = 100;
|
|
2008
|
-
|
|
2009
2025
|
export declare function maybeApply<From, To>(f: (value: From) => To, maybeValue: From | undefined): To | undefined;
|
|
2010
2026
|
|
|
2011
2027
|
export declare function maybeParseURL(url: Persistence): URL | undefined;
|
|
@@ -2053,7 +2069,7 @@ export declare class Miniflare {
|
|
|
2053
2069
|
export declare class MiniflareCoreError extends MiniflareError<MiniflareCoreErrorCode> {
|
|
2054
2070
|
}
|
|
2055
2071
|
|
|
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"
|
|
2072
|
+
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";
|
|
2057
2073
|
|
|
2058
2074
|
export declare class MiniflareError<Code extends string | number = string | number> extends Error {
|
|
2059
2075
|
readonly code: Code;
|
|
@@ -2126,13 +2142,14 @@ export declare const NODE_PLATFORM_IMPL: PlatformImpl<ReadableStream_3>;
|
|
|
2126
2142
|
|
|
2127
2143
|
/**
|
|
2128
2144
|
* We can provide Node.js compatibility in a number of different modes:
|
|
2145
|
+
* - "legacy" - this mode adds compile-time polyfills that are not well maintained and cannot work with workerd runtime builtins.
|
|
2129
2146
|
* - "als": this mode tells the workerd runtime to enable only the Async Local Storage builtin library (accessible via `node:async_hooks`).
|
|
2130
2147
|
* - "v1" - this mode tells the workerd runtime to enable some Node.js builtin libraries (accessible only via `node:...` imports) but no globals.
|
|
2131
2148
|
* - "v2" - this mode tells the workerd runtime to enable more Node.js builtin libraries (accessible both with and without the `node:` prefix)
|
|
2132
2149
|
* 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.
|
|
2133
2150
|
* - null - no Node.js compatibility.
|
|
2134
2151
|
*/
|
|
2135
|
-
export declare type NodeJSCompatMode = "als" | "v1" | "v2" | null;
|
|
2152
|
+
export declare type NodeJSCompatMode = "legacy" | "als" | "v1" | "v2" | null;
|
|
2136
2153
|
|
|
2137
2154
|
export declare class NoOpLog extends Log {
|
|
2138
2155
|
constructor();
|
|
@@ -2472,7 +2489,6 @@ export declare const PLUGINS: {
|
|
|
2472
2489
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
2473
2490
|
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
2474
2491
|
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2475
|
-
unsafeInspectorProxy: z.ZodOptional<z.ZodBoolean>;
|
|
2476
2492
|
routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2477
2493
|
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json_2, z.ZodTypeDef, Json_2>>>;
|
|
2478
2494
|
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
@@ -2804,12 +2820,14 @@ export declare const PLUGINS: {
|
|
|
2804
2820
|
unsafeEvalBinding: z.ZodOptional<z.ZodString>;
|
|
2805
2821
|
unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
|
|
2806
2822
|
hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
|
|
2823
|
+
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
2824
|
+
stripCfConnectingIp: z.ZodDefault<z.ZodBoolean>;
|
|
2807
2825
|
}, "strip", z.ZodTypeAny, {
|
|
2826
|
+
stripCfConnectingIp: boolean;
|
|
2808
2827
|
name?: string | undefined;
|
|
2809
2828
|
rootPath?: undefined;
|
|
2810
2829
|
compatibilityDate?: string | undefined;
|
|
2811
2830
|
compatibilityFlags?: string[] | undefined;
|
|
2812
|
-
unsafeInspectorProxy?: boolean | undefined;
|
|
2813
2831
|
routes?: string[] | undefined;
|
|
2814
2832
|
bindings?: Record<string, Json_2> | undefined;
|
|
2815
2833
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -2885,12 +2903,12 @@ export declare const PLUGINS: {
|
|
|
2885
2903
|
unsafeEvalBinding?: string | undefined;
|
|
2886
2904
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2887
2905
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2906
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2888
2907
|
}, {
|
|
2889
2908
|
name?: string | undefined;
|
|
2890
2909
|
rootPath?: string | undefined;
|
|
2891
2910
|
compatibilityDate?: string | undefined;
|
|
2892
2911
|
compatibilityFlags?: string[] | undefined;
|
|
2893
|
-
unsafeInspectorProxy?: boolean | undefined;
|
|
2894
2912
|
routes?: string[] | undefined;
|
|
2895
2913
|
bindings?: Record<string, Json_2> | undefined;
|
|
2896
2914
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -2966,6 +2984,8 @@ export declare const PLUGINS: {
|
|
|
2966
2984
|
unsafeEvalBinding?: string | undefined;
|
|
2967
2985
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2968
2986
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2987
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2988
|
+
stripCfConnectingIp?: boolean | undefined;
|
|
2969
2989
|
}>>, ({
|
|
2970
2990
|
modules: {
|
|
2971
2991
|
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
@@ -2974,11 +2994,11 @@ export declare const PLUGINS: {
|
|
|
2974
2994
|
}[];
|
|
2975
2995
|
modulesRoot?: string | undefined;
|
|
2976
2996
|
} & {
|
|
2997
|
+
stripCfConnectingIp: boolean;
|
|
2977
2998
|
name?: string | undefined;
|
|
2978
2999
|
rootPath?: undefined;
|
|
2979
3000
|
compatibilityDate?: string | undefined;
|
|
2980
3001
|
compatibilityFlags?: string[] | undefined;
|
|
2981
|
-
unsafeInspectorProxy?: boolean | undefined;
|
|
2982
3002
|
routes?: string[] | undefined;
|
|
2983
3003
|
bindings?: Record<string, Json_2> | undefined;
|
|
2984
3004
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -3054,6 +3074,7 @@ export declare const PLUGINS: {
|
|
|
3054
3074
|
unsafeEvalBinding?: string | undefined;
|
|
3055
3075
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
3056
3076
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3077
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3057
3078
|
}) | ({
|
|
3058
3079
|
script: string;
|
|
3059
3080
|
scriptPath?: string | undefined;
|
|
@@ -3065,11 +3086,11 @@ export declare const PLUGINS: {
|
|
|
3065
3086
|
}[] | undefined;
|
|
3066
3087
|
modulesRoot?: string | undefined;
|
|
3067
3088
|
} & {
|
|
3089
|
+
stripCfConnectingIp: boolean;
|
|
3068
3090
|
name?: string | undefined;
|
|
3069
3091
|
rootPath?: undefined;
|
|
3070
3092
|
compatibilityDate?: string | undefined;
|
|
3071
3093
|
compatibilityFlags?: string[] | undefined;
|
|
3072
|
-
unsafeInspectorProxy?: boolean | undefined;
|
|
3073
3094
|
routes?: string[] | undefined;
|
|
3074
3095
|
bindings?: Record<string, Json_2> | undefined;
|
|
3075
3096
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -3145,6 +3166,7 @@ export declare const PLUGINS: {
|
|
|
3145
3166
|
unsafeEvalBinding?: string | undefined;
|
|
3146
3167
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
3147
3168
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3169
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3148
3170
|
}) | ({
|
|
3149
3171
|
scriptPath: string;
|
|
3150
3172
|
modules?: boolean | undefined;
|
|
@@ -3155,11 +3177,11 @@ export declare const PLUGINS: {
|
|
|
3155
3177
|
}[] | undefined;
|
|
3156
3178
|
modulesRoot?: string | undefined;
|
|
3157
3179
|
} & {
|
|
3180
|
+
stripCfConnectingIp: boolean;
|
|
3158
3181
|
name?: string | undefined;
|
|
3159
3182
|
rootPath?: undefined;
|
|
3160
3183
|
compatibilityDate?: string | undefined;
|
|
3161
3184
|
compatibilityFlags?: string[] | undefined;
|
|
3162
|
-
unsafeInspectorProxy?: boolean | undefined;
|
|
3163
3185
|
routes?: string[] | undefined;
|
|
3164
3186
|
bindings?: Record<string, Json_2> | undefined;
|
|
3165
3187
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -3235,6 +3257,7 @@ export declare const PLUGINS: {
|
|
|
3235
3257
|
unsafeEvalBinding?: string | undefined;
|
|
3236
3258
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
3237
3259
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3260
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3238
3261
|
}), ({
|
|
3239
3262
|
modules: {
|
|
3240
3263
|
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
@@ -3266,7 +3289,6 @@ export declare const PLUGINS: {
|
|
|
3266
3289
|
rootPath?: string | undefined;
|
|
3267
3290
|
compatibilityDate?: string | undefined;
|
|
3268
3291
|
compatibilityFlags?: string[] | undefined;
|
|
3269
|
-
unsafeInspectorProxy?: boolean | undefined;
|
|
3270
3292
|
routes?: string[] | undefined;
|
|
3271
3293
|
bindings?: Record<string, Json_2> | undefined;
|
|
3272
3294
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -3342,6 +3364,8 @@ export declare const PLUGINS: {
|
|
|
3342
3364
|
unsafeEvalBinding?: string | undefined;
|
|
3343
3365
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
3344
3366
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3367
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3368
|
+
stripCfConnectingIp?: boolean | undefined;
|
|
3345
3369
|
}>, z.ZodObject<{
|
|
3346
3370
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
3347
3371
|
host: z.ZodOptional<z.ZodString>;
|
|
@@ -3361,6 +3385,7 @@ export declare const PLUGINS: {
|
|
|
3361
3385
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
3362
3386
|
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>>;
|
|
3363
3387
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
3388
|
+
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
3364
3389
|
}, "strip", z.ZodTypeAny, {
|
|
3365
3390
|
rootPath?: undefined;
|
|
3366
3391
|
host?: string | undefined;
|
|
@@ -3380,6 +3405,7 @@ export declare const PLUGINS: {
|
|
|
3380
3405
|
unsafeProxySharedSecret?: string | undefined;
|
|
3381
3406
|
unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
3382
3407
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3408
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3383
3409
|
}, {
|
|
3384
3410
|
rootPath?: string | undefined;
|
|
3385
3411
|
host?: string | undefined;
|
|
@@ -3399,6 +3425,7 @@ export declare const PLUGINS: {
|
|
|
3399
3425
|
unsafeProxySharedSecret?: string | undefined;
|
|
3400
3426
|
unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
3401
3427
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3428
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3402
3429
|
}>>;
|
|
3403
3430
|
cache: Plugin_2<z.ZodObject<{
|
|
3404
3431
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3647,7 +3674,7 @@ export declare const PLUGINS: {
|
|
|
3647
3674
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3648
3675
|
has_user_worker?: boolean;
|
|
3649
3676
|
}>>;
|
|
3650
|
-
assetConfig: z.ZodOptional<z.ZodObject<
|
|
3677
|
+
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
3651
3678
|
account_id: z.ZodOptional<z.ZodNumber>;
|
|
3652
3679
|
script_id: z.ZodOptional<z.ZodNumber>;
|
|
3653
3680
|
compatibility_date: z.ZodOptional<z.ZodString>;
|
|
@@ -3727,18 +3754,13 @@ export declare const PLUGINS: {
|
|
|
3727
3754
|
unset?: string[];
|
|
3728
3755
|
}>;
|
|
3729
3756
|
}>>;
|
|
3730
|
-
}, "
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
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;
|
|
3757
|
+
}, "strip", z.ZodTypeAny, {
|
|
3758
|
+
account_id?: number;
|
|
3759
|
+
script_id?: number;
|
|
3760
|
+
compatibility_date?: string;
|
|
3761
|
+
compatibility_flags?: string[];
|
|
3762
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3763
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3742
3764
|
redirects?: {
|
|
3743
3765
|
version?: 1;
|
|
3744
3766
|
staticRules?: Record<string, {
|
|
@@ -3750,19 +3772,21 @@ export declare const PLUGINS: {
|
|
|
3750
3772
|
status?: number;
|
|
3751
3773
|
to?: string;
|
|
3752
3774
|
}>;
|
|
3753
|
-
}
|
|
3754
|
-
}, {
|
|
3775
|
+
};
|
|
3755
3776
|
headers?: {
|
|
3756
3777
|
version?: 2;
|
|
3757
3778
|
rules?: Record<string, {
|
|
3758
3779
|
set?: Record<string, string>;
|
|
3759
3780
|
unset?: string[];
|
|
3760
3781
|
}>;
|
|
3761
|
-
}
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3782
|
+
};
|
|
3783
|
+
}, {
|
|
3784
|
+
account_id?: number;
|
|
3785
|
+
script_id?: number;
|
|
3786
|
+
compatibility_date?: string;
|
|
3787
|
+
compatibility_flags?: string[];
|
|
3788
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3789
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3766
3790
|
redirects?: {
|
|
3767
3791
|
version?: 1;
|
|
3768
3792
|
staticRules?: Record<string, {
|
|
@@ -3774,7 +3798,14 @@ export declare const PLUGINS: {
|
|
|
3774
3798
|
status?: number;
|
|
3775
3799
|
to?: string;
|
|
3776
3800
|
}>;
|
|
3777
|
-
}
|
|
3801
|
+
};
|
|
3802
|
+
headers?: {
|
|
3803
|
+
version?: 2;
|
|
3804
|
+
rules?: Record<string, {
|
|
3805
|
+
set?: Record<string, string>;
|
|
3806
|
+
unset?: string[];
|
|
3807
|
+
}>;
|
|
3808
|
+
};
|
|
3778
3809
|
}>>;
|
|
3779
3810
|
}, "strip", z.ZodTypeAny, {
|
|
3780
3811
|
directory: string;
|
|
@@ -3787,17 +3818,12 @@ export declare const PLUGINS: {
|
|
|
3787
3818
|
has_user_worker?: boolean;
|
|
3788
3819
|
} | undefined;
|
|
3789
3820
|
assetConfig?: {
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
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;
|
|
3821
|
+
account_id?: number;
|
|
3822
|
+
script_id?: number;
|
|
3823
|
+
compatibility_date?: string;
|
|
3824
|
+
compatibility_flags?: string[];
|
|
3825
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3826
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3801
3827
|
redirects?: {
|
|
3802
3828
|
version?: 1;
|
|
3803
3829
|
staticRules?: Record<string, {
|
|
@@ -3809,7 +3835,14 @@ export declare const PLUGINS: {
|
|
|
3809
3835
|
status?: number;
|
|
3810
3836
|
to?: string;
|
|
3811
3837
|
}>;
|
|
3812
|
-
}
|
|
3838
|
+
};
|
|
3839
|
+
headers?: {
|
|
3840
|
+
version?: 2;
|
|
3841
|
+
rules?: Record<string, {
|
|
3842
|
+
set?: Record<string, string>;
|
|
3843
|
+
unset?: string[];
|
|
3844
|
+
}>;
|
|
3845
|
+
};
|
|
3813
3846
|
} | undefined;
|
|
3814
3847
|
}, {
|
|
3815
3848
|
directory: string;
|
|
@@ -3822,17 +3855,12 @@ export declare const PLUGINS: {
|
|
|
3822
3855
|
has_user_worker?: boolean;
|
|
3823
3856
|
} | undefined;
|
|
3824
3857
|
assetConfig?: {
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
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;
|
|
3858
|
+
account_id?: number;
|
|
3859
|
+
script_id?: number;
|
|
3860
|
+
compatibility_date?: string;
|
|
3861
|
+
compatibility_flags?: string[];
|
|
3862
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3863
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3836
3864
|
redirects?: {
|
|
3837
3865
|
version?: 1;
|
|
3838
3866
|
staticRules?: Record<string, {
|
|
@@ -3844,11 +3872,16 @@ export declare const PLUGINS: {
|
|
|
3844
3872
|
status?: number;
|
|
3845
3873
|
to?: string;
|
|
3846
3874
|
}>;
|
|
3847
|
-
}
|
|
3875
|
+
};
|
|
3876
|
+
headers?: {
|
|
3877
|
+
version?: 2;
|
|
3878
|
+
rules?: Record<string, {
|
|
3879
|
+
set?: Record<string, string>;
|
|
3880
|
+
unset?: string[];
|
|
3881
|
+
}>;
|
|
3882
|
+
};
|
|
3848
3883
|
} | undefined;
|
|
3849
3884
|
}>>;
|
|
3850
|
-
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
3851
|
-
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3852
3885
|
}, "strip", z.ZodTypeAny, {
|
|
3853
3886
|
assets?: {
|
|
3854
3887
|
directory: string;
|
|
@@ -3861,17 +3894,12 @@ export declare const PLUGINS: {
|
|
|
3861
3894
|
has_user_worker?: boolean;
|
|
3862
3895
|
} | undefined;
|
|
3863
3896
|
assetConfig?: {
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
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;
|
|
3897
|
+
account_id?: number;
|
|
3898
|
+
script_id?: number;
|
|
3899
|
+
compatibility_date?: string;
|
|
3900
|
+
compatibility_flags?: string[];
|
|
3901
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3902
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3875
3903
|
redirects?: {
|
|
3876
3904
|
version?: 1;
|
|
3877
3905
|
staticRules?: Record<string, {
|
|
@@ -3883,11 +3911,16 @@ export declare const PLUGINS: {
|
|
|
3883
3911
|
status?: number;
|
|
3884
3912
|
to?: string;
|
|
3885
3913
|
}>;
|
|
3914
|
+
};
|
|
3915
|
+
headers?: {
|
|
3916
|
+
version?: 2;
|
|
3917
|
+
rules?: Record<string, {
|
|
3918
|
+
set?: Record<string, string>;
|
|
3919
|
+
unset?: string[];
|
|
3920
|
+
}>;
|
|
3921
|
+
};
|
|
3886
3922
|
} | undefined;
|
|
3887
3923
|
} | undefined;
|
|
3888
|
-
} | undefined;
|
|
3889
|
-
compatibilityDate?: string | undefined;
|
|
3890
|
-
compatibilityFlags?: string[] | undefined;
|
|
3891
3924
|
}, {
|
|
3892
3925
|
assets?: {
|
|
3893
3926
|
directory: string;
|
|
@@ -3900,17 +3933,12 @@ export declare const PLUGINS: {
|
|
|
3900
3933
|
has_user_worker?: boolean;
|
|
3901
3934
|
} | undefined;
|
|
3902
3935
|
assetConfig?: {
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
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;
|
|
3936
|
+
account_id?: number;
|
|
3937
|
+
script_id?: number;
|
|
3938
|
+
compatibility_date?: string;
|
|
3939
|
+
compatibility_flags?: string[];
|
|
3940
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3941
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3914
3942
|
redirects?: {
|
|
3915
3943
|
version?: 1;
|
|
3916
3944
|
staticRules?: Record<string, {
|
|
@@ -3922,11 +3950,16 @@ export declare const PLUGINS: {
|
|
|
3922
3950
|
status?: number;
|
|
3923
3951
|
to?: string;
|
|
3924
3952
|
}>;
|
|
3953
|
+
};
|
|
3954
|
+
headers?: {
|
|
3955
|
+
version?: 2;
|
|
3956
|
+
rules?: Record<string, {
|
|
3957
|
+
set?: Record<string, string>;
|
|
3958
|
+
unset?: string[];
|
|
3959
|
+
}>;
|
|
3960
|
+
};
|
|
3925
3961
|
} | undefined;
|
|
3926
3962
|
} | undefined;
|
|
3927
|
-
} | undefined;
|
|
3928
|
-
compatibilityDate?: string | undefined;
|
|
3929
|
-
compatibilityFlags?: string[] | undefined;
|
|
3930
3963
|
}>>;
|
|
3931
3964
|
workflows: Plugin_2<z.ZodObject<{
|
|
3932
3965
|
workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -3988,6 +4021,7 @@ export declare interface PluginServicesOptions<Options extends z.ZodType, Shared
|
|
|
3988
4021
|
unsafeEphemeralDurableObjects: boolean;
|
|
3989
4022
|
queueProducers: QueueProducers;
|
|
3990
4023
|
queueConsumers: QueueConsumers;
|
|
4024
|
+
unsafeEnableAssetsRpc: boolean;
|
|
3991
4025
|
}
|
|
3992
4026
|
|
|
3993
4027
|
export declare function prefixError(prefix: string, e: any): Error;
|