wrangler 3.65.1 → 3.66.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 -1
- package/package.json +2 -1
- package/wrangler-dist/cli.d.ts +5 -4
- package/wrangler-dist/cli.js +1379 -1153
- package/wrangler-dist/cli.js.map +4 -4
package/config-schema.json
CHANGED
@@ -1102,7 +1102,7 @@
|
|
1102
1102
|
"type": "string"
|
1103
1103
|
}
|
1104
1104
|
],
|
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."
|
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. Only one of assets and legacy_assets can be used."
|
1106
1106
|
},
|
1107
1107
|
"base_dir": {
|
1108
1108
|
"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.",
|
@@ -1425,6 +1425,47 @@
|
|
1425
1425
|
},
|
1426
1426
|
"type": "array"
|
1427
1427
|
},
|
1428
|
+
"legacy_assets": {
|
1429
|
+
"anyOf": [
|
1430
|
+
{
|
1431
|
+
"additionalProperties": false,
|
1432
|
+
"properties": {
|
1433
|
+
"browser_TTL": {
|
1434
|
+
"type": "number"
|
1435
|
+
},
|
1436
|
+
"bucket": {
|
1437
|
+
"type": "string"
|
1438
|
+
},
|
1439
|
+
"exclude": {
|
1440
|
+
"items": {
|
1441
|
+
"type": "string"
|
1442
|
+
},
|
1443
|
+
"type": "array"
|
1444
|
+
},
|
1445
|
+
"include": {
|
1446
|
+
"items": {
|
1447
|
+
"type": "string"
|
1448
|
+
},
|
1449
|
+
"type": "array"
|
1450
|
+
},
|
1451
|
+
"serve_single_page_app": {
|
1452
|
+
"type": "boolean"
|
1453
|
+
}
|
1454
|
+
},
|
1455
|
+
"required": [
|
1456
|
+
"bucket",
|
1457
|
+
"include",
|
1458
|
+
"exclude",
|
1459
|
+
"serve_single_page_app"
|
1460
|
+
],
|
1461
|
+
"type": "object"
|
1462
|
+
},
|
1463
|
+
{
|
1464
|
+
"type": "string"
|
1465
|
+
}
|
1466
|
+
],
|
1467
|
+
"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."
|
1468
|
+
},
|
1428
1469
|
"legacy_env": {
|
1429
1470
|
"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
1471
|
"type": "boolean"
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.66.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -63,6 +63,7 @@
|
|
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
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
68
69
|
"miniflare": "3.20240718.0"
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -819,8 +819,9 @@ declare interface ConfigFields<Dev extends RawDevConfig> {
|
|
819
819
|
/**
|
820
820
|
* Serve a folder of static assets with your Worker, without any additional code.
|
821
821
|
* This can either be a string, or an object with additional config fields.
|
822
|
+
* Only one of assets and legacy_assets can be used.
|
822
823
|
*/
|
823
|
-
|
824
|
+
legacy_assets: {
|
824
825
|
bucket: string;
|
825
826
|
include: string[];
|
826
827
|
exclude: string[];
|
@@ -25929,7 +25930,7 @@ declare interface StartDevWorkerInput {
|
|
25929
25930
|
};
|
25930
25931
|
legacy?: {
|
25931
25932
|
site?: Hook<Config["site"], [Config]>;
|
25932
|
-
|
25933
|
+
legacyAssets?: Hook<Config["legacy_assets"], [Config]>;
|
25933
25934
|
enableServiceEnvironments?: boolean;
|
25934
25935
|
};
|
25935
25936
|
unsafe?: Omit<CfUnsafe, "bindings">;
|
@@ -25948,7 +25949,7 @@ declare type StartDevWorkerOptions = StartDevWorkerInput & {
|
|
25948
25949
|
processEntrypoint: boolean;
|
25949
25950
|
};
|
25950
25951
|
legacy: StartDevWorkerInput["legacy"] & {
|
25951
|
-
|
25952
|
+
legacyAssets?: Config["legacy_assets"];
|
25952
25953
|
site?: Config["site"];
|
25953
25954
|
};
|
25954
25955
|
dev: StartDevWorkerInput["dev"] & {
|
@@ -26187,7 +26188,7 @@ export declare interface UnstableDevOptions {
|
|
26187
26188
|
localProtocol?: "http" | "https";
|
26188
26189
|
httpsKeyPath?: string;
|
26189
26190
|
httpsCertPath?: string;
|
26190
|
-
|
26191
|
+
legacyAssets?: string;
|
26191
26192
|
site?: string;
|
26192
26193
|
siteInclude?: string[];
|
26193
26194
|
siteExclude?: string[];
|