wrangler 3.65.1 → 3.67.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 +42 -71
- package/package.json +4 -3
- package/wrangler-dist/cli.d.ts +8 -29
- package/wrangler-dist/cli.js +32886 -33072
- package/wrangler-dist/cli.js.map +4 -4
package/config-schema.json
CHANGED
@@ -247,29 +247,6 @@
|
|
247
247
|
},
|
248
248
|
"type": "array"
|
249
249
|
},
|
250
|
-
"constellation": {
|
251
|
-
"default": "`[]`",
|
252
|
-
"description": "Specifies Constellation projects 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.",
|
253
|
-
"items": {
|
254
|
-
"additionalProperties": false,
|
255
|
-
"properties": {
|
256
|
-
"binding": {
|
257
|
-
"description": "The binding name used to refer to the project in the Worker.",
|
258
|
-
"type": "string"
|
259
|
-
},
|
260
|
-
"project_id": {
|
261
|
-
"description": "The id of the project.",
|
262
|
-
"type": "string"
|
263
|
-
}
|
264
|
-
},
|
265
|
-
"required": [
|
266
|
-
"binding",
|
267
|
-
"project_id"
|
268
|
-
],
|
269
|
-
"type": "object"
|
270
|
-
},
|
271
|
-
"type": "array"
|
272
|
-
},
|
273
250
|
"d1_databases": {
|
274
251
|
"default": "`[]`",
|
275
252
|
"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.",
|
@@ -962,7 +939,6 @@
|
|
962
939
|
"build",
|
963
940
|
"cloudchamber",
|
964
941
|
"compatibility_flags",
|
965
|
-
"constellation",
|
966
942
|
"d1_databases",
|
967
943
|
"define",
|
968
944
|
"dispatch_namespaces",
|
@@ -1102,7 +1078,7 @@
|
|
1102
1078
|
"type": "string"
|
1103
1079
|
}
|
1104
1080
|
],
|
1105
|
-
"description": "Serve a folder of static assets with your Worker, without any additional code. This can either be a string, or an object with additional config fields."
|
1081
|
+
"description": "Serve a folder of static assets with your Worker, without any additional code. This can either be a string, or an object with additional config fields. Only one of assets and legacy_assets can be used."
|
1106
1082
|
},
|
1107
1083
|
"base_dir": {
|
1108
1084
|
"description": "The directory in which module rules should be evaluated when including additional files into a Worker deployment. This defaults to the directory containing the `main` entry point of the Worker if not specified.",
|
@@ -1179,29 +1155,6 @@
|
|
1179
1155
|
"configPath": {
|
1180
1156
|
"type": "string"
|
1181
1157
|
},
|
1182
|
-
"constellation": {
|
1183
|
-
"default": "`[]`",
|
1184
|
-
"description": "Specifies Constellation projects 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.",
|
1185
|
-
"items": {
|
1186
|
-
"additionalProperties": false,
|
1187
|
-
"properties": {
|
1188
|
-
"binding": {
|
1189
|
-
"description": "The binding name used to refer to the project in the Worker.",
|
1190
|
-
"type": "string"
|
1191
|
-
},
|
1192
|
-
"project_id": {
|
1193
|
-
"description": "The id of the project.",
|
1194
|
-
"type": "string"
|
1195
|
-
}
|
1196
|
-
},
|
1197
|
-
"required": [
|
1198
|
-
"binding",
|
1199
|
-
"project_id"
|
1200
|
-
],
|
1201
|
-
"type": "object"
|
1202
|
-
},
|
1203
|
-
"type": "array"
|
1204
|
-
},
|
1205
1158
|
"d1_databases": {
|
1206
1159
|
"default": "`[]`",
|
1207
1160
|
"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.",
|
@@ -1425,6 +1378,47 @@
|
|
1425
1378
|
},
|
1426
1379
|
"type": "array"
|
1427
1380
|
},
|
1381
|
+
"legacy_assets": {
|
1382
|
+
"anyOf": [
|
1383
|
+
{
|
1384
|
+
"additionalProperties": false,
|
1385
|
+
"properties": {
|
1386
|
+
"browser_TTL": {
|
1387
|
+
"type": "number"
|
1388
|
+
},
|
1389
|
+
"bucket": {
|
1390
|
+
"type": "string"
|
1391
|
+
},
|
1392
|
+
"exclude": {
|
1393
|
+
"items": {
|
1394
|
+
"type": "string"
|
1395
|
+
},
|
1396
|
+
"type": "array"
|
1397
|
+
},
|
1398
|
+
"include": {
|
1399
|
+
"items": {
|
1400
|
+
"type": "string"
|
1401
|
+
},
|
1402
|
+
"type": "array"
|
1403
|
+
},
|
1404
|
+
"serve_single_page_app": {
|
1405
|
+
"type": "boolean"
|
1406
|
+
}
|
1407
|
+
},
|
1408
|
+
"required": [
|
1409
|
+
"bucket",
|
1410
|
+
"include",
|
1411
|
+
"exclude",
|
1412
|
+
"serve_single_page_app"
|
1413
|
+
],
|
1414
|
+
"type": "object"
|
1415
|
+
},
|
1416
|
+
{
|
1417
|
+
"type": "string"
|
1418
|
+
}
|
1419
|
+
],
|
1420
|
+
"description": "Serve a folder of static assets with your Worker, without any additional code. This can either be a string, or an object with additional config fields. Only one of assets and legacy_assets can be used."
|
1421
|
+
},
|
1428
1422
|
"legacy_env": {
|
1429
1423
|
"description": "A boolean to enable \"legacy\" style wrangler environments (from Wrangler v1). These have been superseded by Services, but there may be projects that won't (or can't) use them. If you're using a legacy environment, you can set this to `true` to enable it.",
|
1430
1424
|
"type": "boolean"
|
@@ -2191,29 +2185,6 @@
|
|
2191
2185
|
},
|
2192
2186
|
"type": "array"
|
2193
2187
|
},
|
2194
|
-
"constellation": {
|
2195
|
-
"default": "`[]`",
|
2196
|
-
"description": "Specifies Constellation projects 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.",
|
2197
|
-
"items": {
|
2198
|
-
"additionalProperties": false,
|
2199
|
-
"properties": {
|
2200
|
-
"binding": {
|
2201
|
-
"description": "The binding name used to refer to the project in the Worker.",
|
2202
|
-
"type": "string"
|
2203
|
-
},
|
2204
|
-
"project_id": {
|
2205
|
-
"description": "The id of the project.",
|
2206
|
-
"type": "string"
|
2207
|
-
}
|
2208
|
-
},
|
2209
|
-
"required": [
|
2210
|
-
"binding",
|
2211
|
-
"project_id"
|
2212
|
-
],
|
2213
|
-
"type": "object"
|
2214
|
-
},
|
2215
|
-
"type": "array"
|
2216
|
-
},
|
2217
2188
|
"d1_databases": {
|
2218
2189
|
"default": "`[]`",
|
2219
2190
|
"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.67.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -63,9 +63,10 @@
|
|
63
63
|
"selfsigned": "^2.0.1",
|
64
64
|
"source-map": "^0.6.1",
|
65
65
|
"unenv": "npm:unenv-nightly@1.10.0-1717606461.a117952",
|
66
|
+
"workerd": "1.20240718.0",
|
66
67
|
"xxhash-wasm": "^1.0.1",
|
67
|
-
"
|
68
|
-
"
|
68
|
+
"miniflare": "3.20240718.0",
|
69
|
+
"@cloudflare/kv-asset-handler": "0.3.4"
|
69
70
|
},
|
70
71
|
"devDependencies": {
|
71
72
|
"@cloudflare/types": "^6.18.4",
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -135,8 +135,6 @@ declare type Binding = {
|
|
135
135
|
} & Omit<CfD1Database, "binding">) | ({
|
136
136
|
type: "vectorize";
|
137
137
|
} & Omit<CfVectorize, "binding">) | ({
|
138
|
-
type: "constellation";
|
139
|
-
} & Omit<CfConstellation, "binding">) | ({
|
140
138
|
type: "hyperdrive";
|
141
139
|
} & Omit<CfHyperdrive, "binding">) | ({
|
142
140
|
type: "service";
|
@@ -415,11 +413,6 @@ declare type CfCapnp = {
|
|
415
413
|
compiled_schema?: never;
|
416
414
|
};
|
417
415
|
|
418
|
-
declare interface CfConstellation {
|
419
|
-
binding: string;
|
420
|
-
project_id: string;
|
421
|
-
}
|
422
|
-
|
423
416
|
declare interface CfD1Database {
|
424
417
|
binding: string;
|
425
418
|
database_id: string;
|
@@ -819,8 +812,9 @@ declare interface ConfigFields<Dev extends RawDevConfig> {
|
|
819
812
|
/**
|
820
813
|
* Serve a folder of static assets with your Worker, without any additional code.
|
821
814
|
* This can either be a string, or an object with additional config fields.
|
815
|
+
* Only one of assets and legacy_assets can be used.
|
822
816
|
*/
|
823
|
-
|
817
|
+
legacy_assets: {
|
824
818
|
bucket: string;
|
825
819
|
include: string[];
|
826
820
|
exclude: string[];
|
@@ -940,8 +934,6 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
|
|
940
934
|
url: string;
|
941
935
|
id: string;
|
942
936
|
environment: "production" | "preview";
|
943
|
-
project_id: string;
|
944
|
-
project_name: string;
|
945
937
|
build_config: {
|
946
938
|
build_command: string;
|
947
939
|
destination_dir: string;
|
@@ -952,6 +944,8 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
|
|
952
944
|
};
|
953
945
|
created_on: string;
|
954
946
|
production_branch: string;
|
947
|
+
project_id: string;
|
948
|
+
project_name: string;
|
955
949
|
deployment_trigger: {
|
956
950
|
metadata: {
|
957
951
|
branch: string;
|
@@ -1890,21 +1884,6 @@ declare interface EnvironmentNonInheritable {
|
|
1890
1884
|
/** The name of the index. */
|
1891
1885
|
index_name: string;
|
1892
1886
|
}[];
|
1893
|
-
/**
|
1894
|
-
* Specifies Constellation projects that are bound to this Worker environment.
|
1895
|
-
*
|
1896
|
-
* NOTE: This field is not automatically inherited from the top level environment,
|
1897
|
-
* and so must be specified in every named environment.
|
1898
|
-
*
|
1899
|
-
* @default `[]`
|
1900
|
-
* @nonInheritable
|
1901
|
-
*/
|
1902
|
-
constellation: {
|
1903
|
-
/** The binding name used to refer to the project in the Worker. */
|
1904
|
-
binding: string;
|
1905
|
-
/** The id of the project. */
|
1906
|
-
project_id: string;
|
1907
|
-
}[];
|
1908
1887
|
/**
|
1909
1888
|
* Specifies Hyperdrive configs that are bound to this Worker environment.
|
1910
1889
|
*
|
@@ -2507,7 +2486,7 @@ export declare type GetPlatformProxyOptions = {
|
|
2507
2486
|
*/
|
2508
2487
|
configPath?: string;
|
2509
2488
|
/**
|
2510
|
-
* Flag to indicate the utility to read a json config file (`wrangler.json`)
|
2489
|
+
* Flag to indicate the utility to read a json config file (`wrangler.json`/`wrangler.jsonc`)
|
2511
2490
|
* instead of the toml one (`wrangler.toml`)
|
2512
2491
|
*
|
2513
2492
|
* Note: this feature is experimental
|
@@ -25929,7 +25908,7 @@ declare interface StartDevWorkerInput {
|
|
25929
25908
|
};
|
25930
25909
|
legacy?: {
|
25931
25910
|
site?: Hook<Config["site"], [Config]>;
|
25932
|
-
|
25911
|
+
legacyAssets?: Hook<Config["legacy_assets"], [Config]>;
|
25933
25912
|
enableServiceEnvironments?: boolean;
|
25934
25913
|
};
|
25935
25914
|
unsafe?: Omit<CfUnsafe, "bindings">;
|
@@ -25948,7 +25927,7 @@ declare type StartDevWorkerOptions = StartDevWorkerInput & {
|
|
25948
25927
|
processEntrypoint: boolean;
|
25949
25928
|
};
|
25950
25929
|
legacy: StartDevWorkerInput["legacy"] & {
|
25951
|
-
|
25930
|
+
legacyAssets?: Config["legacy_assets"];
|
25952
25931
|
site?: Config["site"];
|
25953
25932
|
};
|
25954
25933
|
dev: StartDevWorkerInput["dev"] & {
|
@@ -26187,7 +26166,7 @@ export declare interface UnstableDevOptions {
|
|
26187
26166
|
localProtocol?: "http" | "https";
|
26188
26167
|
httpsKeyPath?: string;
|
26189
26168
|
httpsCertPath?: string;
|
26190
|
-
|
26169
|
+
legacyAssets?: string;
|
26191
26170
|
site?: string;
|
26192
26171
|
siteInclude?: string[];
|
26193
26172
|
siteExclude?: string[];
|