wrangler 4.124.0 → 4.125.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 +101 -10
- package/package.json +18 -18
- package/wrangler-dist/cli.d.ts +21 -3
- package/wrangler-dist/cli.js +3161 -2259
- package/wrangler-dist/experimental-config.d.mts +43 -13
- package/wrangler-dist/experimental-config.d.mts.map +1 -1
- package/wrangler-dist/experimental-config.mjs +6 -1
- package/wrangler-dist/experimental-config.mjs.map +1 -1
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
|
@@ -659,6 +659,38 @@
|
|
|
659
659
|
"producers": []
|
|
660
660
|
}
|
|
661
661
|
},
|
|
662
|
+
"connect": {
|
|
663
|
+
"type": "array",
|
|
664
|
+
"items": {
|
|
665
|
+
"type": "object",
|
|
666
|
+
"properties": {
|
|
667
|
+
"protocol": {
|
|
668
|
+
"type": "string",
|
|
669
|
+
"const": "tcp",
|
|
670
|
+
"description": "The transport protocol to listen for.",
|
|
671
|
+
"markdownDescription": "The transport protocol to listen for."
|
|
672
|
+
},
|
|
673
|
+
"port": {
|
|
674
|
+
"type": "number",
|
|
675
|
+
"description": "The port to listen on.",
|
|
676
|
+
"markdownDescription": "The port to listen on."
|
|
677
|
+
},
|
|
678
|
+
"address": {
|
|
679
|
+
"type": "string",
|
|
680
|
+
"description": "The address to bind to. Defaults to `127.0.0.1`.",
|
|
681
|
+
"markdownDescription": "The address to bind to. Defaults to `127.0.0.1`."
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"required": [
|
|
685
|
+
"protocol",
|
|
686
|
+
"port"
|
|
687
|
+
],
|
|
688
|
+
"additionalProperties": false
|
|
689
|
+
},
|
|
690
|
+
"description": "Specifies raw sockets that this Worker should listen on. Each entry opens a listening socket on the given port that delivers incoming connections directly to the Worker's `connect(socket, env, ctx)` handler.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
691
|
+
"markdownDescription": "Specifies raw sockets that this Worker should listen on.\nEach entry opens a listening socket on the\ngiven port that delivers incoming connections directly to the Worker's\n`connect(socket, env, ctx)` handler.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
692
|
+
"default": []
|
|
693
|
+
},
|
|
662
694
|
"r2_buckets": {
|
|
663
695
|
"type": "array",
|
|
664
696
|
"items": {
|
|
@@ -2425,6 +2457,38 @@
|
|
|
2425
2457
|
"producers": []
|
|
2426
2458
|
}
|
|
2427
2459
|
},
|
|
2460
|
+
"connect": {
|
|
2461
|
+
"type": "array",
|
|
2462
|
+
"items": {
|
|
2463
|
+
"type": "object",
|
|
2464
|
+
"properties": {
|
|
2465
|
+
"protocol": {
|
|
2466
|
+
"type": "string",
|
|
2467
|
+
"const": "tcp",
|
|
2468
|
+
"description": "The transport protocol to listen for.",
|
|
2469
|
+
"markdownDescription": "The transport protocol to listen for."
|
|
2470
|
+
},
|
|
2471
|
+
"port": {
|
|
2472
|
+
"type": "number",
|
|
2473
|
+
"description": "The port to listen on.",
|
|
2474
|
+
"markdownDescription": "The port to listen on."
|
|
2475
|
+
},
|
|
2476
|
+
"address": {
|
|
2477
|
+
"type": "string",
|
|
2478
|
+
"description": "The address to bind to. Defaults to `127.0.0.1`.",
|
|
2479
|
+
"markdownDescription": "The address to bind to. Defaults to `127.0.0.1`."
|
|
2480
|
+
}
|
|
2481
|
+
},
|
|
2482
|
+
"required": [
|
|
2483
|
+
"protocol",
|
|
2484
|
+
"port"
|
|
2485
|
+
],
|
|
2486
|
+
"additionalProperties": false
|
|
2487
|
+
},
|
|
2488
|
+
"description": "Specifies raw sockets that this Worker should listen on. Each entry opens a listening socket on the given port that delivers incoming connections directly to the Worker's `connect(socket, env, ctx)` handler.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2489
|
+
"markdownDescription": "Specifies raw sockets that this Worker should listen on.\nEach entry opens a listening socket on the\ngiven port that delivers incoming connections directly to the Worker's\n`connect(socket, env, ctx)` handler.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
2490
|
+
"default": []
|
|
2491
|
+
},
|
|
2428
2492
|
"r2_buckets": {
|
|
2429
2493
|
"type": "array",
|
|
2430
2494
|
"items": {
|
|
@@ -4036,16 +4100,16 @@
|
|
|
4036
4100
|
"additionalProperties": false,
|
|
4037
4101
|
"properties": {
|
|
4038
4102
|
"logpush": {
|
|
4039
|
-
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-
|
|
4103
|
+
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-559642004818536"
|
|
4040
4104
|
},
|
|
4041
4105
|
"observability": {
|
|
4042
|
-
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-
|
|
4106
|
+
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-559642004818536"
|
|
4043
4107
|
},
|
|
4044
4108
|
"limits": {
|
|
4045
|
-
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-
|
|
4109
|
+
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-559642004818536"
|
|
4046
4110
|
},
|
|
4047
4111
|
"cache": {
|
|
4048
|
-
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-
|
|
4112
|
+
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-559642004818536"
|
|
4049
4113
|
},
|
|
4050
4114
|
"define": {
|
|
4051
4115
|
"type": "object",
|
|
@@ -4319,6 +4383,38 @@
|
|
|
4319
4383
|
"producers": []
|
|
4320
4384
|
}
|
|
4321
4385
|
},
|
|
4386
|
+
"connect": {
|
|
4387
|
+
"type": "array",
|
|
4388
|
+
"items": {
|
|
4389
|
+
"type": "object",
|
|
4390
|
+
"properties": {
|
|
4391
|
+
"protocol": {
|
|
4392
|
+
"type": "string",
|
|
4393
|
+
"const": "tcp",
|
|
4394
|
+
"description": "The transport protocol to listen for.",
|
|
4395
|
+
"markdownDescription": "The transport protocol to listen for."
|
|
4396
|
+
},
|
|
4397
|
+
"port": {
|
|
4398
|
+
"type": "number",
|
|
4399
|
+
"description": "The port to listen on.",
|
|
4400
|
+
"markdownDescription": "The port to listen on."
|
|
4401
|
+
},
|
|
4402
|
+
"address": {
|
|
4403
|
+
"type": "string",
|
|
4404
|
+
"description": "The address to bind to. Defaults to `127.0.0.1`.",
|
|
4405
|
+
"markdownDescription": "The address to bind to. Defaults to `127.0.0.1`."
|
|
4406
|
+
}
|
|
4407
|
+
},
|
|
4408
|
+
"required": [
|
|
4409
|
+
"protocol",
|
|
4410
|
+
"port"
|
|
4411
|
+
],
|
|
4412
|
+
"additionalProperties": false
|
|
4413
|
+
},
|
|
4414
|
+
"description": "Specifies raw sockets that this Worker should listen on. Each entry opens a listening socket on the given port that delivers incoming connections directly to the Worker's `connect(socket, env, ctx)` handler.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
4415
|
+
"markdownDescription": "Specifies raw sockets that this Worker should listen on.\nEach entry opens a listening socket on the\ngiven port that delivers incoming connections directly to the Worker's\n`connect(socket, env, ctx)` handler.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
4416
|
+
"default": []
|
|
4417
|
+
},
|
|
4322
4418
|
"r2_buckets": {
|
|
4323
4419
|
"type": "array",
|
|
4324
4420
|
"items": {
|
|
@@ -5317,7 +5413,7 @@
|
|
|
5317
5413
|
"description": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments. Previews are branches of your Worker's main instance used to test features during feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`, `cache`",
|
|
5318
5414
|
"markdownDescription": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments.\nPreviews are branches of your Worker's main instance used to test features\nduring feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`, `cache`"
|
|
5319
5415
|
},
|
|
5320
|
-
"interface-769040647-11843-22205-769040647-0-
|
|
5416
|
+
"interface-769040647-11843-22205-769040647-0-559642004818536": {
|
|
5321
5417
|
"type": "object",
|
|
5322
5418
|
"properties": {
|
|
5323
5419
|
"name": {
|
|
@@ -5791,11 +5887,6 @@
|
|
|
5791
5887
|
"description": "The script where the Workflow is defined (if it's external to this Worker)",
|
|
5792
5888
|
"markdownDescription": "The script where the Workflow is defined (if it's external to this Worker)"
|
|
5793
5889
|
},
|
|
5794
|
-
"remote": {
|
|
5795
|
-
"type": "boolean",
|
|
5796
|
-
"description": "Whether the Workflow should be remote or not in local development",
|
|
5797
|
-
"markdownDescription": "Whether the Workflow should be remote or not in local development"
|
|
5798
|
-
},
|
|
5799
5890
|
"limits": {
|
|
5800
5891
|
"type": "object",
|
|
5801
5892
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.125.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -66,17 +66,17 @@
|
|
|
66
66
|
"esbuild": "0.28.1",
|
|
67
67
|
"path-to-regexp": "6.3.0",
|
|
68
68
|
"unenv": "2.0.0-rc.24",
|
|
69
|
-
"workerd": "1.
|
|
69
|
+
"workerd": "1.20260820.1",
|
|
70
70
|
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
71
|
-
"
|
|
72
|
-
"
|
|
71
|
+
"miniflare": "5.20260820.0-alpha",
|
|
72
|
+
"@cloudflare/unenv-preset": "2.16.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
76
76
|
"@aws-sdk/s3-request-presigner": "^3.721.0",
|
|
77
77
|
"@bomb.sh/tab": "^0.0.12",
|
|
78
78
|
"@cloudflare/types": "6.18.4",
|
|
79
|
-
"@cloudflare/workers-types": "^5.
|
|
79
|
+
"@cloudflare/workers-types": "^5.20260820.1",
|
|
80
80
|
"@cspotcode/source-map-support": "0.8.1",
|
|
81
81
|
"@netlify/build-info": "^10.5.1",
|
|
82
82
|
"@sentry/node": "^7.86.0",
|
|
@@ -156,25 +156,25 @@
|
|
|
156
156
|
"yaml": "^2.8.1",
|
|
157
157
|
"yargs": "^17.7.2",
|
|
158
158
|
"zod": "4.4.3",
|
|
159
|
-
"@cloudflare/autoconfig": "0.2.
|
|
160
|
-
"@cloudflare/build-output-utils": "0.1.
|
|
161
|
-
"@cloudflare/cli-shared-helpers": "0.1.
|
|
162
|
-
"@cloudflare/config": "0.6.0",
|
|
163
|
-
"@cloudflare/codemod": "1.1.0",
|
|
159
|
+
"@cloudflare/autoconfig": "0.2.9",
|
|
160
|
+
"@cloudflare/build-output-utils": "0.1.3",
|
|
161
|
+
"@cloudflare/cli-shared-helpers": "0.1.25",
|
|
164
162
|
"@cloudflare/containers-shared": "0.16.0",
|
|
165
|
-
"@cloudflare/
|
|
163
|
+
"@cloudflare/config": "0.7.0",
|
|
164
|
+
"@cloudflare/deploy-helpers": "0.8.0",
|
|
166
165
|
"@cloudflare/pages-functions": "0.1.0",
|
|
167
|
-
"@cloudflare/pages-shared": "^0.13.
|
|
168
|
-
"@cloudflare/remote-bindings": "0.0.
|
|
169
|
-
"@cloudflare/runtime-types": "0.0.
|
|
170
|
-
"@cloudflare/
|
|
166
|
+
"@cloudflare/pages-shared": "^0.13.171",
|
|
167
|
+
"@cloudflare/remote-bindings": "0.0.14",
|
|
168
|
+
"@cloudflare/runtime-types": "0.0.16",
|
|
169
|
+
"@cloudflare/shared-ast-primitives": "1.1.0",
|
|
170
|
+
"@cloudflare/workers-auth": "0.6.5",
|
|
171
171
|
"@cloudflare/workers-shared": "0.19.9",
|
|
172
172
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
173
|
-
"@cloudflare/workers-utils": "0.
|
|
174
|
-
"@cloudflare/workflows-shared": "0.
|
|
173
|
+
"@cloudflare/workers-utils": "0.34.0",
|
|
174
|
+
"@cloudflare/workflows-shared": "0.13.0"
|
|
175
175
|
},
|
|
176
176
|
"peerDependencies": {
|
|
177
|
-
"@cloudflare/workers-types": "^5.
|
|
177
|
+
"@cloudflare/workers-types": "^5.20260820.1"
|
|
178
178
|
},
|
|
179
179
|
"peerDependenciesMeta": {
|
|
180
180
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Rule as Rule$1, CfModule, Environment as Environment$1, Entry, CfModuleType, Config as Config$1, StartDevWorkerInput, NodeJSCompatMode, CfScriptFormat, AsyncHook, CfAccount, AssetsOptions as AssetsOptions$1, Binding, ConfigBindingFieldName, RawConfig as RawConfig$1, NormalizeAndValidateConfigArgs, ResolveConfigPathOptions, ParseError, LoggerLevel, ComplianceConfig, ApiCredentials, UserError, FatalError } from '@cloudflare/workers-utils';
|
|
2
2
|
export { Binding, experimental_patchConfig, experimental_readRawConfig, defaultWranglerConfig as unstable_defaultWranglerConfig } from '@cloudflare/workers-utils';
|
|
3
|
-
import { Json as Json$1, WorkerdStructuredLog, DispatchFetch, Miniflare, WorkerRegistry, V4MiniflareOptions, Mutex, Response as Response$1, DurableObjectStorageOptions, DurableObjectStorageHandle,
|
|
3
|
+
import { Json as Json$1, WorkerdStructuredLog, DispatchFetch, Miniflare, WorkerRegistry, V4MiniflareOptions, Mutex, Response as Response$1, DurableObjectStorageOptions, DurableObjectStorageHandle, V4WorkerOptions, V4ModuleRule, RemoteProxyConnectionString, Request } from 'miniflare';
|
|
4
4
|
import * as undici from 'undici';
|
|
5
5
|
import { RequestInfo, RequestInit, Response, FormData } from 'undici';
|
|
6
6
|
import { Metafile } from 'esbuild';
|
|
@@ -1986,8 +1986,6 @@ type WorkflowBinding = {
|
|
|
1986
1986
|
class_name: string;
|
|
1987
1987
|
/** The script where the Workflow is defined (if it's external to this Worker) */
|
|
1988
1988
|
script_name?: string;
|
|
1989
|
-
/** Whether the Workflow should be remote or not in local development */
|
|
1990
|
-
remote?: boolean;
|
|
1991
1989
|
/** Optional limits for the Workflow */
|
|
1992
1990
|
limits?: {
|
|
1993
1991
|
/** Maximum number of steps a Workflow instance can execute */
|
|
@@ -2185,6 +2183,26 @@ interface EnvironmentNonInheritable {
|
|
|
2185
2183
|
retry_delay?: number;
|
|
2186
2184
|
}[];
|
|
2187
2185
|
};
|
|
2186
|
+
/**
|
|
2187
|
+
* Specifies raw sockets that this Worker should listen on.
|
|
2188
|
+
* Each entry opens a listening socket on the
|
|
2189
|
+
* given port that delivers incoming connections directly to the Worker's
|
|
2190
|
+
* `connect(socket, env, ctx)` handler.
|
|
2191
|
+
*
|
|
2192
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
2193
|
+
* and so must be specified in every named environment.
|
|
2194
|
+
*
|
|
2195
|
+
* @default []
|
|
2196
|
+
* @nonInheritable
|
|
2197
|
+
*/
|
|
2198
|
+
connect: {
|
|
2199
|
+
/** The transport protocol to listen for. */
|
|
2200
|
+
protocol: "tcp";
|
|
2201
|
+
/** The port to listen on. */
|
|
2202
|
+
port: number;
|
|
2203
|
+
/** The address to bind to. Defaults to `127.0.0.1`. */
|
|
2204
|
+
address?: string;
|
|
2205
|
+
}[];
|
|
2188
2206
|
/**
|
|
2189
2207
|
* Specifies R2 buckets that are bound to this Worker environment.
|
|
2190
2208
|
*
|