wrangler 4.0.0 → 4.2.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 +15 -28
- package/package.json +7 -7
- package/wrangler-dist/cli.d.ts +12 -14
- package/wrangler-dist/cli.js +532 -254
- package/wrangler-dist/cli.js.map +7 -0
package/config-schema.json
CHANGED
@@ -79,6 +79,9 @@
|
|
79
79
|
"additionalProperties": false,
|
80
80
|
"description": "Configuration for a container application",
|
81
81
|
"properties": {
|
82
|
+
"class_name": {
|
83
|
+
"type": "string"
|
84
|
+
},
|
82
85
|
"configuration": {
|
83
86
|
"additionalProperties": false,
|
84
87
|
"properties": {
|
@@ -155,6 +158,9 @@
|
|
155
158
|
},
|
156
159
|
"type": "object"
|
157
160
|
},
|
161
|
+
"image": {
|
162
|
+
"type": "string"
|
163
|
+
},
|
158
164
|
"instances": {
|
159
165
|
"type": "number"
|
160
166
|
},
|
@@ -172,6 +178,7 @@
|
|
172
178
|
"required": [
|
173
179
|
"name",
|
174
180
|
"instances",
|
181
|
+
"class_name",
|
175
182
|
"configuration"
|
176
183
|
],
|
177
184
|
"type": "object"
|
@@ -481,22 +488,12 @@
|
|
481
488
|
"type": "array"
|
482
489
|
},
|
483
490
|
"containers": {
|
484
|
-
"
|
491
|
+
"default": [],
|
485
492
|
"description": "Container related configuration",
|
486
|
-
"
|
487
|
-
"
|
488
|
-
"default": {},
|
489
|
-
"description": "Container app configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
490
|
-
"items": {
|
491
|
-
"$ref": "#/definitions/ContainerApp"
|
492
|
-
},
|
493
|
-
"type": "array"
|
494
|
-
}
|
493
|
+
"items": {
|
494
|
+
"$ref": "#/definitions/ContainerApp"
|
495
495
|
},
|
496
|
-
"
|
497
|
-
"app"
|
498
|
-
],
|
499
|
-
"type": "object"
|
496
|
+
"type": "array"
|
500
497
|
},
|
501
498
|
"d1_databases": {
|
502
499
|
"default": [],
|
@@ -1436,22 +1433,12 @@
|
|
1436
1433
|
"type": "array"
|
1437
1434
|
},
|
1438
1435
|
"containers": {
|
1439
|
-
"
|
1436
|
+
"default": [],
|
1440
1437
|
"description": "Container related configuration",
|
1441
|
-
"
|
1442
|
-
"
|
1443
|
-
"default": {},
|
1444
|
-
"description": "Container app configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
1445
|
-
"items": {
|
1446
|
-
"$ref": "#/definitions/ContainerApp"
|
1447
|
-
},
|
1448
|
-
"type": "array"
|
1449
|
-
}
|
1438
|
+
"items": {
|
1439
|
+
"$ref": "#/definitions/ContainerApp"
|
1450
1440
|
},
|
1451
|
-
"
|
1452
|
-
"app"
|
1453
|
-
],
|
1454
|
-
"type": "object"
|
1441
|
+
"type": "array"
|
1455
1442
|
},
|
1456
1443
|
"d1_databases": {
|
1457
1444
|
"default": [],
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.2.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -55,14 +55,14 @@
|
|
55
55
|
"esbuild": "0.24.2",
|
56
56
|
"path-to-regexp": "6.3.0",
|
57
57
|
"unenv": "2.0.0-rc.14",
|
58
|
-
"workerd": "1.
|
59
|
-
"
|
60
|
-
"
|
58
|
+
"workerd": "1.20250317.0",
|
59
|
+
"@cloudflare/kv-asset-handler": "0.4.0",
|
60
|
+
"miniflare": "4.20250317.1"
|
61
61
|
},
|
62
62
|
"devDependencies": {
|
63
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
64
64
|
"@cloudflare/types": "6.18.4",
|
65
|
-
"@cloudflare/workers-types": "^4.
|
65
|
+
"@cloudflare/workers-types": "^4.20250317.0",
|
66
66
|
"@cspotcode/source-map-support": "0.8.1",
|
67
67
|
"@iarna/toml": "^3.0.0",
|
68
68
|
"@microsoft/api-extractor": "^7.47.0",
|
@@ -137,12 +137,12 @@
|
|
137
137
|
"yargs": "^17.7.2",
|
138
138
|
"@cloudflare/cli": "1.1.1",
|
139
139
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
140
|
+
"@cloudflare/pages-shared": "^0.13.16",
|
140
141
|
"@cloudflare/workers-shared": "0.16.0",
|
141
|
-
"@cloudflare/pages-shared": "^0.13.14",
|
142
142
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
143
143
|
},
|
144
144
|
"peerDependencies": {
|
145
|
-
"@cloudflare/workers-types": "^4.
|
145
|
+
"@cloudflare/workers-types": "^4.20250317.0"
|
146
146
|
},
|
147
147
|
"peerDependenciesMeta": {
|
148
148
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -1038,6 +1038,8 @@ options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.ConnectOptions, 'origin'
|
|
1038
1038
|
declare type ContainerApp = {
|
1039
1039
|
name: string;
|
1040
1040
|
instances: number;
|
1041
|
+
image?: string;
|
1042
|
+
class_name: string;
|
1041
1043
|
scheduling_policy?: "regional" | "moon";
|
1042
1044
|
configuration: {
|
1043
1045
|
image: string;
|
@@ -1928,19 +1930,11 @@ declare interface EnvironmentNonInheritable {
|
|
1928
1930
|
cloudchamber: CloudchamberConfig;
|
1929
1931
|
/**
|
1930
1932
|
* Container related configuration
|
1933
|
+
*
|
1934
|
+
* @default []
|
1935
|
+
* @nonInheritable
|
1931
1936
|
*/
|
1932
|
-
containers
|
1933
|
-
/**
|
1934
|
-
* Container app configuration
|
1935
|
-
*
|
1936
|
-
* NOTE: This field is not automatically inherited from the top level environment,
|
1937
|
-
* and so must be specified in every named environment.
|
1938
|
-
*
|
1939
|
-
* @default {}
|
1940
|
-
* @nonInheritable
|
1941
|
-
*/
|
1942
|
-
app: ContainerApp[];
|
1943
|
-
};
|
1937
|
+
containers?: ContainerApp[];
|
1944
1938
|
/**
|
1945
1939
|
* These specify any Workers KV Namespaces you want to
|
1946
1940
|
* access from inside your Worker.
|
@@ -26512,9 +26506,13 @@ export declare interface Unstable_DevWorker {
|
|
26512
26506
|
|
26513
26507
|
export declare const unstable_generateASSETSBinding: (opts: Unstable_ASSETSBindingsOptions) => (request: Request_3) => Promise<Response_3>;
|
26514
26508
|
|
26515
|
-
export declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: string
|
26509
|
+
export declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: string, options?: {
|
26510
|
+
imagesLocalMode: boolean;
|
26511
|
+
}): Unstable_MiniflareWorkerOptions;
|
26516
26512
|
|
26517
|
-
export declare function unstable_getMiniflareWorkerOptions(config: Unstable_Config, env?: string
|
26513
|
+
export declare function unstable_getMiniflareWorkerOptions(config: Unstable_Config, env?: string, options?: {
|
26514
|
+
imagesLocalMode: boolean;
|
26515
|
+
}): Unstable_MiniflareWorkerOptions;
|
26518
26516
|
|
26519
26517
|
export declare interface Unstable_MiniflareWorkerOptions {
|
26520
26518
|
workerOptions: SourcelessWorkerOptions;
|