wrangler 4.127.0 → 4.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config-schema.json +11 -5
- package/package.json +17 -17
- package/wrangler-dist/cli.d.ts +7 -2
- package/wrangler-dist/cli.js +247400 -374478
- package/wrangler-dist/experimental-config.d.mts +27 -21
- package/wrangler-dist/experimental-config.d.mts.map +1 -1
- package/wrangler-dist/metafile-cjs.json +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Pipeline, PipelineRecord } from "cloudflare:pipelines";
|
|
2
2
|
|
|
3
|
-
//#region ../config/dist/public-
|
|
3
|
+
//#region ../config/dist/public-DZgNmLyp.d.mts
|
|
4
4
|
|
|
5
5
|
//#region src/utils.d.ts
|
|
6
6
|
/**
|
|
@@ -143,7 +143,7 @@ interface DispatchNamespaceBindingOptions {
|
|
|
143
143
|
/** Details about the outbound Worker which will handle outbound requests from your namespace. */
|
|
144
144
|
outbound?: {
|
|
145
145
|
/** Name of the Worker handling the outbound requests. */
|
|
146
|
-
|
|
146
|
+
worker: string;
|
|
147
147
|
/** (Optional) List of parameter names, for sending context from your dispatch Worker to the outbound handler. */
|
|
148
148
|
parameters?: string[];
|
|
149
149
|
};
|
|
@@ -160,12 +160,12 @@ interface DispatchNamespaceBinding extends DispatchNamespaceBindingOptions {
|
|
|
160
160
|
}
|
|
161
161
|
interface DurableObjectBindingOptions {
|
|
162
162
|
/** The name of the Worker that defines the Durable Object class. */
|
|
163
|
-
|
|
163
|
+
worker: string;
|
|
164
164
|
/** The exported class name of the Durable Object. */
|
|
165
165
|
exportName: string;
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
|
-
* Binding to a Durable Object class. `
|
|
168
|
+
* Binding to a Durable Object class. `worker` is the name of the Worker
|
|
169
169
|
* that defines the class; `exportName` is the exported class name.
|
|
170
170
|
*
|
|
171
171
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
|
|
@@ -174,13 +174,13 @@ interface DurableObjectBinding extends DurableObjectBindingOptions {
|
|
|
174
174
|
type: "durable-object";
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
177
|
-
* Binding to a Durable Object class. `
|
|
177
|
+
* Binding to a Durable Object class. `worker` is the name of the Worker
|
|
178
178
|
* that defines the class; `exportName` is the exported class name.
|
|
179
179
|
*
|
|
180
180
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
|
|
181
181
|
*/
|
|
182
182
|
interface TypedDurableObjectBinding<TConfig$1, TExportName$1 extends string> extends DurableObjectBinding {
|
|
183
|
-
|
|
183
|
+
worker: string;
|
|
184
184
|
exportName: TExportName$1;
|
|
185
185
|
/** @internal Carries the config type for inference */
|
|
186
186
|
__config: TConfig$1;
|
|
@@ -510,7 +510,7 @@ interface WebSearchBinding extends WebSearchBindingOptions {
|
|
|
510
510
|
}
|
|
511
511
|
interface WorkerBindingOptions {
|
|
512
512
|
/** The name of the bound Worker. */
|
|
513
|
-
|
|
513
|
+
worker: string;
|
|
514
514
|
/** The named export to bind to (defaults to the default export). */
|
|
515
515
|
exportName?: string;
|
|
516
516
|
/** Optional properties that will be made available to the service via `ctx.props`. */
|
|
@@ -519,7 +519,7 @@ interface WorkerBindingOptions {
|
|
|
519
519
|
dev?: BindingDevOptions;
|
|
520
520
|
}
|
|
521
521
|
/**
|
|
522
|
-
* Service binding (Worker-to-Worker). `
|
|
522
|
+
* Service binding (Worker-to-Worker). `worker` is the name of the bound
|
|
523
523
|
* Worker; `exportName` selects a named `WorkerEntrypoint` export (defaults to
|
|
524
524
|
* the default export).
|
|
525
525
|
*
|
|
@@ -529,14 +529,14 @@ interface WorkerBinding extends WorkerBindingOptions {
|
|
|
529
529
|
type: "worker";
|
|
530
530
|
}
|
|
531
531
|
/**
|
|
532
|
-
* Service binding (Worker-to-Worker). `
|
|
532
|
+
* Service binding (Worker-to-Worker). `worker` is the name of the bound
|
|
533
533
|
* Worker; `exportName` selects a named `WorkerEntrypoint` export (defaults to
|
|
534
534
|
* the default export).
|
|
535
535
|
*
|
|
536
536
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
|
|
537
537
|
*/
|
|
538
538
|
interface TypedWorkerBinding<TConfig$1, TExportName$1 extends string> extends WorkerBinding {
|
|
539
|
-
|
|
539
|
+
worker: string;
|
|
540
540
|
exportName: TExportName$1;
|
|
541
541
|
/** @internal Carries the config type for inference */
|
|
542
542
|
__config: TConfig$1;
|
|
@@ -547,23 +547,23 @@ interface WorkerLoaderBinding {
|
|
|
547
547
|
}
|
|
548
548
|
interface WorkflowBindingOptions {
|
|
549
549
|
/** The name of the Worker that defines the Workflow. */
|
|
550
|
-
|
|
550
|
+
worker: string;
|
|
551
551
|
/** The exported class name of the Workflow. */
|
|
552
552
|
exportName: string;
|
|
553
553
|
}
|
|
554
554
|
/**
|
|
555
|
-
* Binding to a Workflow. `
|
|
555
|
+
* Binding to a Workflow. `worker` is the name of the Worker that defines
|
|
556
556
|
* the Workflow; `exportName` is the exported `WorkflowEntrypoint` class name.
|
|
557
557
|
*/
|
|
558
558
|
interface WorkflowBinding extends WorkflowBindingOptions {
|
|
559
559
|
type: "workflow";
|
|
560
560
|
}
|
|
561
561
|
/**
|
|
562
|
-
* Binding to a Workflow. `
|
|
562
|
+
* Binding to a Workflow. `worker` is the name of the Worker that defines
|
|
563
563
|
* the Workflow; `exportName` is the exported `WorkflowEntrypoint` class name.
|
|
564
564
|
*/
|
|
565
565
|
interface TypedWorkflowBinding<TConfig$1, TExportName$1 extends string> extends WorkflowBinding {
|
|
566
|
-
|
|
566
|
+
worker: string;
|
|
567
567
|
exportName: TExportName$1;
|
|
568
568
|
/** @internal Carries the config type for inference */
|
|
569
569
|
__config: TConfig$1;
|
|
@@ -626,7 +626,7 @@ interface Bindings {
|
|
|
626
626
|
*/
|
|
627
627
|
dispatchNamespace(options?: DispatchNamespaceBindingOptions): DispatchNamespaceBinding;
|
|
628
628
|
/**
|
|
629
|
-
* Binding to a Durable Object class. `
|
|
629
|
+
* Binding to a Durable Object class. `worker` is the name of the Worker
|
|
630
630
|
* that defines the class; `exportName` is the exported class name.
|
|
631
631
|
*
|
|
632
632
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
|
|
@@ -729,7 +729,7 @@ interface Bindings {
|
|
|
729
729
|
*/
|
|
730
730
|
webSearch(options?: WebSearchBindingOptions): WebSearchBinding;
|
|
731
731
|
/**
|
|
732
|
-
* Service binding (Worker-to-Worker). `
|
|
732
|
+
* Service binding (Worker-to-Worker). `worker` is the name of the bound
|
|
733
733
|
* Worker; `exportName` selects a named `WorkerEntrypoint` export (defaults to
|
|
734
734
|
* the default export).
|
|
735
735
|
*
|
|
@@ -1200,7 +1200,7 @@ interface WorkerConfig {
|
|
|
1200
1200
|
*/
|
|
1201
1201
|
tailConsumers?: Array<{
|
|
1202
1202
|
/** The name of the service tail events will be forwarded to. */
|
|
1203
|
-
|
|
1203
|
+
worker: string;
|
|
1204
1204
|
/** Whether to stream tail events in real time. */
|
|
1205
1205
|
streaming?: boolean;
|
|
1206
1206
|
}>;
|
|
@@ -1262,6 +1262,12 @@ interface WorkerConfig {
|
|
|
1262
1262
|
enabled?: boolean;
|
|
1263
1263
|
/** The sampling rate. */
|
|
1264
1264
|
headSamplingRate?: number;
|
|
1265
|
+
/**
|
|
1266
|
+
* Whether query strings are removed from request URLs in logs and traces.
|
|
1267
|
+
*
|
|
1268
|
+
* @default false
|
|
1269
|
+
*/
|
|
1270
|
+
redactQueryString?: boolean;
|
|
1265
1271
|
logs?: {
|
|
1266
1272
|
enabled?: boolean;
|
|
1267
1273
|
/** The sampling rate. */
|
|
@@ -1412,24 +1418,24 @@ interface WorkerDefinition<TConfig$1 extends WorkerConfig = WorkerConfig> extend
|
|
|
1412
1418
|
*/
|
|
1413
1419
|
interface TypedWorkerDefinition<TConfig$1 extends WorkerConfig, TWorkerName extends string = InferWorkerName<TConfig$1>> extends WorkerDefinition<TConfig$1> {
|
|
1414
1420
|
/**
|
|
1415
|
-
* Binding to a Durable Object class. `
|
|
1421
|
+
* Binding to a Durable Object class. `worker` is the name of the Worker
|
|
1416
1422
|
* that defines the class; `exportName` is the exported class name.
|
|
1417
1423
|
*
|
|
1418
1424
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
|
|
1419
1425
|
*/
|
|
1420
1426
|
durableObject<TExportName$1 extends InferDurableNamespaces<TConfig$1>>(options: {
|
|
1421
|
-
|
|
1427
|
+
worker: TWorkerName;
|
|
1422
1428
|
exportName: TExportName$1;
|
|
1423
1429
|
}): TypedDurableObjectBinding<TConfig$1, TExportName$1>;
|
|
1424
1430
|
/**
|
|
1425
|
-
* Service binding (Worker-to-Worker). `
|
|
1431
|
+
* Service binding (Worker-to-Worker). `worker` is the name of the bound
|
|
1426
1432
|
* Worker; `exportName` selects a named `WorkerEntrypoint` export (defaults to
|
|
1427
1433
|
* the default export).
|
|
1428
1434
|
*
|
|
1429
1435
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
|
|
1430
1436
|
*/
|
|
1431
1437
|
worker<TExportName$1 extends InferWorkerEntrypointExports<TConfig$1> | undefined = undefined>(options: {
|
|
1432
|
-
|
|
1438
|
+
worker: TWorkerName;
|
|
1433
1439
|
exportName?: TExportName$1;
|
|
1434
1440
|
props?: Record<string, unknown>;
|
|
1435
1441
|
dev?: BindingDevOptions;
|