wrangler 3.93.0 → 3.95.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 +156 -0
- package/package.json +4 -4
- package/wrangler-dist/cli.d.ts +46 -9
- package/wrangler-dist/cli.js +1969 -749
- package/wrangler-dist/cli.js.map +4 -4
package/config-schema.json
CHANGED
@@ -75,6 +75,107 @@
|
|
75
75
|
],
|
76
76
|
"type": "string"
|
77
77
|
},
|
78
|
+
"ContainerApp": {
|
79
|
+
"additionalProperties": false,
|
80
|
+
"description": "Configuration for a container application",
|
81
|
+
"properties": {
|
82
|
+
"configuration": {
|
83
|
+
"additionalProperties": false,
|
84
|
+
"properties": {
|
85
|
+
"image": {
|
86
|
+
"type": "string"
|
87
|
+
},
|
88
|
+
"labels": {
|
89
|
+
"items": {
|
90
|
+
"additionalProperties": false,
|
91
|
+
"properties": {
|
92
|
+
"name": {
|
93
|
+
"type": "string"
|
94
|
+
},
|
95
|
+
"value": {
|
96
|
+
"type": "string"
|
97
|
+
}
|
98
|
+
},
|
99
|
+
"required": [
|
100
|
+
"name",
|
101
|
+
"value"
|
102
|
+
],
|
103
|
+
"type": "object"
|
104
|
+
},
|
105
|
+
"type": "array"
|
106
|
+
},
|
107
|
+
"secrets": {
|
108
|
+
"items": {
|
109
|
+
"additionalProperties": false,
|
110
|
+
"properties": {
|
111
|
+
"name": {
|
112
|
+
"type": "string"
|
113
|
+
},
|
114
|
+
"secret": {
|
115
|
+
"type": "string"
|
116
|
+
},
|
117
|
+
"type": {
|
118
|
+
"const": "env",
|
119
|
+
"type": "string"
|
120
|
+
}
|
121
|
+
},
|
122
|
+
"required": [
|
123
|
+
"name",
|
124
|
+
"type",
|
125
|
+
"secret"
|
126
|
+
],
|
127
|
+
"type": "object"
|
128
|
+
},
|
129
|
+
"type": "array"
|
130
|
+
}
|
131
|
+
},
|
132
|
+
"required": [
|
133
|
+
"image"
|
134
|
+
],
|
135
|
+
"type": "object"
|
136
|
+
},
|
137
|
+
"constraints": {
|
138
|
+
"additionalProperties": false,
|
139
|
+
"properties": {
|
140
|
+
"cities": {
|
141
|
+
"items": {
|
142
|
+
"type": "string"
|
143
|
+
},
|
144
|
+
"type": "array"
|
145
|
+
},
|
146
|
+
"regions": {
|
147
|
+
"items": {
|
148
|
+
"type": "string"
|
149
|
+
},
|
150
|
+
"type": "array"
|
151
|
+
},
|
152
|
+
"tier": {
|
153
|
+
"type": "number"
|
154
|
+
}
|
155
|
+
},
|
156
|
+
"type": "object"
|
157
|
+
},
|
158
|
+
"instances": {
|
159
|
+
"type": "number"
|
160
|
+
},
|
161
|
+
"name": {
|
162
|
+
"type": "string"
|
163
|
+
},
|
164
|
+
"scheduling_policy": {
|
165
|
+
"enum": [
|
166
|
+
"regional",
|
167
|
+
"moon"
|
168
|
+
],
|
169
|
+
"type": "string"
|
170
|
+
}
|
171
|
+
},
|
172
|
+
"required": [
|
173
|
+
"name",
|
174
|
+
"instances",
|
175
|
+
"configuration"
|
176
|
+
],
|
177
|
+
"type": "object"
|
178
|
+
},
|
78
179
|
"CustomDomainRoute": {
|
79
180
|
"additionalProperties": false,
|
80
181
|
"properties": {
|
@@ -352,6 +453,24 @@
|
|
352
453
|
},
|
353
454
|
"type": "array"
|
354
455
|
},
|
456
|
+
"containers": {
|
457
|
+
"additionalProperties": false,
|
458
|
+
"description": "Container related configuration",
|
459
|
+
"properties": {
|
460
|
+
"app": {
|
461
|
+
"default": "`{}`",
|
462
|
+
"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.",
|
463
|
+
"items": {
|
464
|
+
"$ref": "#/definitions/ContainerApp"
|
465
|
+
},
|
466
|
+
"type": "array"
|
467
|
+
}
|
468
|
+
},
|
469
|
+
"required": [
|
470
|
+
"app"
|
471
|
+
],
|
472
|
+
"type": "object"
|
473
|
+
},
|
355
474
|
"d1_databases": {
|
356
475
|
"default": "`[]`",
|
357
476
|
"description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
@@ -1039,6 +1158,7 @@
|
|
1039
1158
|
"build",
|
1040
1159
|
"cloudchamber",
|
1041
1160
|
"compatibility_flags",
|
1161
|
+
"containers",
|
1042
1162
|
"d1_databases",
|
1043
1163
|
"define",
|
1044
1164
|
"dispatch_namespaces",
|
@@ -1251,6 +1371,24 @@
|
|
1251
1371
|
"configPath": {
|
1252
1372
|
"type": "string"
|
1253
1373
|
},
|
1374
|
+
"containers": {
|
1375
|
+
"additionalProperties": false,
|
1376
|
+
"description": "Container related configuration",
|
1377
|
+
"properties": {
|
1378
|
+
"app": {
|
1379
|
+
"default": "`{}`",
|
1380
|
+
"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.",
|
1381
|
+
"items": {
|
1382
|
+
"$ref": "#/definitions/ContainerApp"
|
1383
|
+
},
|
1384
|
+
"type": "array"
|
1385
|
+
}
|
1386
|
+
},
|
1387
|
+
"required": [
|
1388
|
+
"app"
|
1389
|
+
],
|
1390
|
+
"type": "object"
|
1391
|
+
},
|
1254
1392
|
"d1_databases": {
|
1255
1393
|
"default": "`[]`",
|
1256
1394
|
"description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
@@ -2280,6 +2418,24 @@
|
|
2280
2418
|
},
|
2281
2419
|
"type": "array"
|
2282
2420
|
},
|
2421
|
+
"containers": {
|
2422
|
+
"additionalProperties": false,
|
2423
|
+
"description": "Container related configuration",
|
2424
|
+
"properties": {
|
2425
|
+
"app": {
|
2426
|
+
"default": "`{}`",
|
2427
|
+
"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.",
|
2428
|
+
"items": {
|
2429
|
+
"$ref": "#/definitions/ContainerApp"
|
2430
|
+
},
|
2431
|
+
"type": "array"
|
2432
|
+
}
|
2433
|
+
},
|
2434
|
+
"required": [
|
2435
|
+
"app"
|
2436
|
+
],
|
2437
|
+
"type": "object"
|
2438
|
+
},
|
2283
2439
|
"d1_databases": {
|
2284
2440
|
"default": "`[]`",
|
2285
2441
|
"description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.95.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -66,8 +66,8 @@
|
|
66
66
|
"workerd": "1.20241205.0",
|
67
67
|
"xxhash-wasm": "^1.0.1",
|
68
68
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
69
|
-
"
|
70
|
-
"
|
69
|
+
"@cloudflare/workers-shared": "0.11.0",
|
70
|
+
"miniflare": "3.20241205.0"
|
71
71
|
},
|
72
72
|
"devDependencies": {
|
73
73
|
"@cloudflare/types": "6.18.4",
|
@@ -139,8 +139,8 @@
|
|
139
139
|
"xdg-app-paths": "^8.3.0",
|
140
140
|
"yargs": "^17.7.2",
|
141
141
|
"@cloudflare/cli": "1.1.1",
|
142
|
-
"@cloudflare/eslint-config-worker": "1.1.0",
|
143
142
|
"@cloudflare/pages-shared": "^0.11.71",
|
143
|
+
"@cloudflare/eslint-config-worker": "1.1.0",
|
144
144
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
145
145
|
},
|
146
146
|
"peerDependencies": {
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -922,6 +922,32 @@ url: string | URL_2 | UrlObject,
|
|
922
922
|
options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.ConnectOptions, 'origin' | 'path'>
|
923
923
|
): Promise<Dispatcher.ConnectData>;
|
924
924
|
|
925
|
+
/**
|
926
|
+
* Configuration for a container application
|
927
|
+
*/
|
928
|
+
declare type ContainerApp = {
|
929
|
+
name: string;
|
930
|
+
instances: number;
|
931
|
+
scheduling_policy?: "regional" | "moon";
|
932
|
+
configuration: {
|
933
|
+
image: string;
|
934
|
+
labels?: {
|
935
|
+
name: string;
|
936
|
+
value: string;
|
937
|
+
}[];
|
938
|
+
secrets?: {
|
939
|
+
name: string;
|
940
|
+
type: "env";
|
941
|
+
secret: string;
|
942
|
+
}[];
|
943
|
+
};
|
944
|
+
constraints?: {
|
945
|
+
regions?: string[];
|
946
|
+
cities?: string[];
|
947
|
+
tier?: number;
|
948
|
+
};
|
949
|
+
};
|
950
|
+
|
925
951
|
declare abstract class Controller<EventMap extends ControllerEventMap = ControllerEventMap> extends TypedEventEmitterImpl<EventMap> {
|
926
952
|
emitErrorEvent(data: ErrorEvent): void;
|
927
953
|
}
|
@@ -1905,6 +1931,21 @@ declare interface EnvironmentNonInheritable {
|
|
1905
1931
|
* @nonInheritable
|
1906
1932
|
*/
|
1907
1933
|
cloudchamber: CloudchamberConfig;
|
1934
|
+
/**
|
1935
|
+
* Container related configuration
|
1936
|
+
*/
|
1937
|
+
containers: {
|
1938
|
+
/**
|
1939
|
+
* Container app configuration
|
1940
|
+
*
|
1941
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
1942
|
+
* and so must be specified in every named environment.
|
1943
|
+
*
|
1944
|
+
* @default `{}`
|
1945
|
+
* @nonInheritable
|
1946
|
+
*/
|
1947
|
+
app: ContainerApp[];
|
1948
|
+
};
|
1908
1949
|
/**
|
1909
1950
|
* These specify any Workers KV Namespaces you want to
|
1910
1951
|
* access from inside your Worker.
|
@@ -25650,7 +25691,10 @@ declare type QueueConsumer = NonNullable<Unstable_Config["queues"]["consumers"]>
|
|
25650
25691
|
|
25651
25692
|
declare type RawDevConfig = Partial<DevConfig>;
|
25652
25693
|
|
25653
|
-
declare type ReadConfigCommandArgs = NormalizeAndValidateConfigArgs
|
25694
|
+
declare type ReadConfigCommandArgs = NormalizeAndValidateConfigArgs & {
|
25695
|
+
config?: string;
|
25696
|
+
script?: string;
|
25697
|
+
};
|
25654
25698
|
|
25655
25699
|
declare type ReadyEvent = {
|
25656
25700
|
type: "ready";
|
@@ -26493,14 +26537,7 @@ export declare type Unstable_RawEnvironment = Partial<Environment> & Environment
|
|
26493
26537
|
/**
|
26494
26538
|
* Get the Wrangler configuration; read it from the give `configPath` if available.
|
26495
26539
|
*/
|
26496
|
-
export declare function unstable_readConfig(
|
26497
|
-
requirePagesConfig: true;
|
26498
|
-
}): Omit<Unstable_Config, "pages_build_output_dir"> & {
|
26499
|
-
pages_build_output_dir: string;
|
26500
|
-
};
|
26501
|
-
|
26502
|
-
export declare function unstable_readConfig(configPath: string | undefined, args: ReadConfigCommandArgs, options?: {
|
26503
|
-
requirePagesConfig?: boolean;
|
26540
|
+
export declare function unstable_readConfig(args: ReadConfigCommandArgs, options?: {
|
26504
26541
|
hideWarnings?: boolean;
|
26505
26542
|
}): Unstable_Config;
|
26506
26543
|
|