wrangler 3.66.0 → 3.67.1
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 +27 -70
- package/package.json +5 -5
- package/wrangler-dist/cli.d.ts +15 -25
- package/wrangler-dist/cli.js +37533 -37835
- package/wrangler-dist/cli.js.map +0 -7
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.",
|
@@ -363,6 +340,10 @@
|
|
363
340
|
],
|
364
341
|
"type": "object"
|
365
342
|
},
|
343
|
+
"experimental_assets": {
|
344
|
+
"$ref": "#/definitions/ExperimentalAssets",
|
345
|
+
"description": "Specify the directory of static assets to deploy/serve"
|
346
|
+
},
|
366
347
|
"find_additional_modules": {
|
367
348
|
"description": "If true then Wrangler will traverse the file tree below `base_dir`; Any files that match `rules` will be included in the deployed Worker. Defaults to true if `no_bundle` is true, otherwise false.",
|
368
349
|
"type": "boolean"
|
@@ -962,7 +943,6 @@
|
|
962
943
|
"build",
|
963
944
|
"cloudchamber",
|
964
945
|
"compatibility_flags",
|
965
|
-
"constellation",
|
966
946
|
"d1_databases",
|
967
947
|
"define",
|
968
948
|
"dispatch_namespaces",
|
@@ -985,6 +965,21 @@
|
|
985
965
|
],
|
986
966
|
"type": "object"
|
987
967
|
},
|
968
|
+
"ExperimentalAssets": {
|
969
|
+
"additionalProperties": false,
|
970
|
+
"properties": {
|
971
|
+
"binding": {
|
972
|
+
"type": "string"
|
973
|
+
},
|
974
|
+
"directory": {
|
975
|
+
"type": "string"
|
976
|
+
}
|
977
|
+
},
|
978
|
+
"required": [
|
979
|
+
"directory"
|
980
|
+
],
|
981
|
+
"type": "object"
|
982
|
+
},
|
988
983
|
"Json": {
|
989
984
|
"anyOf": [
|
990
985
|
{
|
@@ -1179,29 +1174,6 @@
|
|
1179
1174
|
"configPath": {
|
1180
1175
|
"type": "string"
|
1181
1176
|
},
|
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
1177
|
"d1_databases": {
|
1206
1178
|
"default": "`[]`",
|
1207
1179
|
"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.",
|
@@ -1314,6 +1286,10 @@
|
|
1314
1286
|
"description": "The `env` section defines overrides for the configuration for different environments.\n\nAll environment fields can be specified at the top level of the config indicating the default environment settings.\n\n- Some fields are inherited and overridable in each environment.\n- But some are not inherited and must be explicitly specified in every environment, if they are specified at the top level.\n\nFor more information, see the documentation at https://developers.cloudflare.com/workers/cli-wrangler/configuration#environments",
|
1315
1287
|
"type": "object"
|
1316
1288
|
},
|
1289
|
+
"experimental_assets": {
|
1290
|
+
"$ref": "#/definitions/ExperimentalAssets",
|
1291
|
+
"description": "Specify the directory of static assets to deploy/serve"
|
1292
|
+
},
|
1317
1293
|
"experimental_services": {
|
1318
1294
|
"default": "`[]`",
|
1319
1295
|
"deprecated": "DO NOT USE. We'd added this to test the new service binding system, but the proper way to test experimental features is to use `unsafe.bindings` configuration.",
|
@@ -2232,29 +2208,6 @@
|
|
2232
2208
|
},
|
2233
2209
|
"type": "array"
|
2234
2210
|
},
|
2235
|
-
"constellation": {
|
2236
|
-
"default": "`[]`",
|
2237
|
-
"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.",
|
2238
|
-
"items": {
|
2239
|
-
"additionalProperties": false,
|
2240
|
-
"properties": {
|
2241
|
-
"binding": {
|
2242
|
-
"description": "The binding name used to refer to the project in the Worker.",
|
2243
|
-
"type": "string"
|
2244
|
-
},
|
2245
|
-
"project_id": {
|
2246
|
-
"description": "The id of the project.",
|
2247
|
-
"type": "string"
|
2248
|
-
}
|
2249
|
-
},
|
2250
|
-
"required": [
|
2251
|
-
"binding",
|
2252
|
-
"project_id"
|
2253
|
-
],
|
2254
|
-
"type": "object"
|
2255
|
-
},
|
2256
|
-
"type": "array"
|
2257
|
-
},
|
2258
2211
|
"d1_databases": {
|
2259
2212
|
"default": "`[]`",
|
2260
2213
|
"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.",
|
@@ -2348,6 +2301,10 @@
|
|
2348
2301
|
],
|
2349
2302
|
"type": "object"
|
2350
2303
|
},
|
2304
|
+
"experimental_assets": {
|
2305
|
+
"$ref": "#/definitions/ExperimentalAssets",
|
2306
|
+
"description": "Specify the directory of static assets to deploy/serve"
|
2307
|
+
},
|
2351
2308
|
"experimental_services": {
|
2352
2309
|
"default": "`[]`",
|
2353
2310
|
"deprecated": "DO NOT USE. We'd added this to test the new service binding system, but the proper way to test experimental features is to use `unsafe.bindings` configuration.",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.67.1",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -66,7 +66,7 @@
|
|
66
66
|
"workerd": "1.20240718.0",
|
67
67
|
"xxhash-wasm": "^1.0.1",
|
68
68
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
69
|
-
"miniflare": "3.20240718.
|
69
|
+
"miniflare": "3.20240718.1"
|
70
70
|
},
|
71
71
|
"devDependencies": {
|
72
72
|
"@cloudflare/types": "^6.18.4",
|
@@ -152,10 +152,10 @@
|
|
152
152
|
"xdg-app-paths": "^8.3.0",
|
153
153
|
"yargs": "^17.7.2",
|
154
154
|
"yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
|
155
|
+
"@cloudflare/pages-shared": "^0.11.49",
|
155
156
|
"@cloudflare/cli": "1.1.1",
|
156
|
-
"@cloudflare/
|
157
|
-
"@cloudflare/
|
158
|
-
"@cloudflare/workers-tsconfig": "0.0.0"
|
157
|
+
"@cloudflare/workers-tsconfig": "0.0.0",
|
158
|
+
"@cloudflare/eslint-config-worker": "1.1.0"
|
159
159
|
},
|
160
160
|
"peerDependencies": {
|
161
161
|
"@cloudflare/workers-types": "^4.20240718.0"
|
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;
|
@@ -941,8 +934,6 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
|
|
941
934
|
url: string;
|
942
935
|
id: string;
|
943
936
|
environment: "production" | "preview";
|
944
|
-
project_id: string;
|
945
|
-
project_name: string;
|
946
937
|
build_config: {
|
947
938
|
build_command: string;
|
948
939
|
destination_dir: string;
|
@@ -953,6 +944,8 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
|
|
953
944
|
};
|
954
945
|
created_on: string;
|
955
946
|
production_branch: string;
|
947
|
+
project_id: string;
|
948
|
+
project_name: string;
|
956
949
|
deployment_trigger: {
|
957
950
|
metadata: {
|
958
951
|
branch: string;
|
@@ -1698,6 +1691,12 @@ declare interface EnvironmentInheritable {
|
|
1698
1691
|
placement: {
|
1699
1692
|
mode: "off" | "smart";
|
1700
1693
|
} | undefined;
|
1694
|
+
/**
|
1695
|
+
* Specify the directory of static assets to deploy/serve
|
1696
|
+
*
|
1697
|
+
* @inheritable
|
1698
|
+
*/
|
1699
|
+
experimental_assets: ExperimentalAssets | undefined;
|
1701
1700
|
}
|
1702
1701
|
|
1703
1702
|
/**
|
@@ -1891,21 +1890,6 @@ declare interface EnvironmentNonInheritable {
|
|
1891
1890
|
/** The name of the index. */
|
1892
1891
|
index_name: string;
|
1893
1892
|
}[];
|
1894
|
-
/**
|
1895
|
-
* Specifies Constellation projects that are bound to this Worker environment.
|
1896
|
-
*
|
1897
|
-
* NOTE: This field is not automatically inherited from the top level environment,
|
1898
|
-
* and so must be specified in every named environment.
|
1899
|
-
*
|
1900
|
-
* @default `[]`
|
1901
|
-
* @nonInheritable
|
1902
|
-
*/
|
1903
|
-
constellation: {
|
1904
|
-
/** The binding name used to refer to the project in the Worker. */
|
1905
|
-
binding: string;
|
1906
|
-
/** The id of the project. */
|
1907
|
-
project_id: string;
|
1908
|
-
}[];
|
1909
1893
|
/**
|
1910
1894
|
* Specifies Hyperdrive configs that are bound to this Worker environment.
|
1911
1895
|
*
|
@@ -2281,6 +2265,11 @@ declare class ExecutionContext {
|
|
2281
2265
|
passThroughOnException(): void;
|
2282
2266
|
}
|
2283
2267
|
|
2268
|
+
declare type ExperimentalAssets = {
|
2269
|
+
directory: string;
|
2270
|
+
binding?: string;
|
2271
|
+
};
|
2272
|
+
|
2284
2273
|
declare function fetch (
|
2285
2274
|
input: RequestInfo,
|
2286
2275
|
init?: RequestInit
|
@@ -2508,7 +2497,7 @@ export declare type GetPlatformProxyOptions = {
|
|
2508
2497
|
*/
|
2509
2498
|
configPath?: string;
|
2510
2499
|
/**
|
2511
|
-
* Flag to indicate the utility to read a json config file (`wrangler.json`)
|
2500
|
+
* Flag to indicate the utility to read a json config file (`wrangler.json`/`wrangler.jsonc`)
|
2512
2501
|
* instead of the toml one (`wrangler.toml`)
|
2513
2502
|
*
|
2514
2503
|
* Note: this feature is experimental
|
@@ -26188,6 +26177,7 @@ export declare interface UnstableDevOptions {
|
|
26188
26177
|
localProtocol?: "http" | "https";
|
26189
26178
|
httpsKeyPath?: string;
|
26190
26179
|
httpsCertPath?: string;
|
26180
|
+
experimentalAssets?: string;
|
26191
26181
|
legacyAssets?: string;
|
26192
26182
|
site?: string;
|
26193
26183
|
siteInclude?: string[];
|