wrangler 4.1.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.
@@ -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
- "additionalProperties": false,
491
+ "default": [],
485
492
  "description": "Container related configuration",
486
- "properties": {
487
- "app": {
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
- "required": [
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
- "additionalProperties": false,
1436
+ "default": [],
1440
1437
  "description": "Container related configuration",
1441
- "properties": {
1442
- "app": {
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
- "required": [
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.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -57,7 +57,7 @@
57
57
  "unenv": "2.0.0-rc.14",
58
58
  "workerd": "1.20250317.0",
59
59
  "@cloudflare/kv-asset-handler": "0.4.0",
60
- "miniflare": "4.20250317.0"
60
+ "miniflare": "4.20250317.1"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@aws-sdk/client-s3": "^3.721.0",
@@ -137,7 +137,7 @@
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.15",
140
+ "@cloudflare/pages-shared": "^0.13.16",
141
141
  "@cloudflare/workers-shared": "0.16.0",
142
142
  "@cloudflare/workers-tsconfig": "0.0.0"
143
143
  },
@@ -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.