wrangler 4.87.0 → 4.89.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 +44 -12
- package/package.json +10 -10
- package/wrangler-dist/cli.d.ts +5 -4
- package/wrangler-dist/cli.js +1794 -1418
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
|
@@ -330,6 +330,11 @@
|
|
|
330
330
|
"description": "Specify the observability behavior of the Worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability",
|
|
331
331
|
"markdownDescription": "Specify the observability behavior of the Worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability"
|
|
332
332
|
},
|
|
333
|
+
"cache": {
|
|
334
|
+
"$ref": "#/definitions/CacheOptions",
|
|
335
|
+
"description": "Specify the cache behavior of the Worker.",
|
|
336
|
+
"markdownDescription": "Specify the cache behavior of the Worker."
|
|
337
|
+
},
|
|
333
338
|
"compliance_region": {
|
|
334
339
|
"type": "string",
|
|
335
340
|
"enum": [
|
|
@@ -404,8 +409,8 @@
|
|
|
404
409
|
}
|
|
405
410
|
},
|
|
406
411
|
"additionalProperties": false,
|
|
407
|
-
"description": "Secrets configuration
|
|
408
|
-
"markdownDescription": "Secrets configuration
|
|
412
|
+
"description": "Secrets configuration.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#secrets-configuration-property",
|
|
413
|
+
"markdownDescription": "Secrets configuration.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#secrets-configuration-property"
|
|
409
414
|
},
|
|
410
415
|
"durable_objects": {
|
|
411
416
|
"type": "object",
|
|
@@ -1974,6 +1979,11 @@
|
|
|
1974
1979
|
"description": "Specify the observability behavior of the Worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability",
|
|
1975
1980
|
"markdownDescription": "Specify the observability behavior of the Worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability"
|
|
1976
1981
|
},
|
|
1982
|
+
"cache": {
|
|
1983
|
+
"$ref": "#/definitions/CacheOptions",
|
|
1984
|
+
"description": "Specify the cache behavior of the Worker.",
|
|
1985
|
+
"markdownDescription": "Specify the cache behavior of the Worker."
|
|
1986
|
+
},
|
|
1977
1987
|
"compliance_region": {
|
|
1978
1988
|
"type": "string",
|
|
1979
1989
|
"enum": [
|
|
@@ -2048,8 +2058,8 @@
|
|
|
2048
2058
|
}
|
|
2049
2059
|
},
|
|
2050
2060
|
"additionalProperties": false,
|
|
2051
|
-
"description": "Secrets configuration
|
|
2052
|
-
"markdownDescription": "Secrets configuration
|
|
2061
|
+
"description": "Secrets configuration.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#secrets-configuration-property",
|
|
2062
|
+
"markdownDescription": "Secrets configuration.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#secrets-configuration-property"
|
|
2053
2063
|
},
|
|
2054
2064
|
"durable_objects": {
|
|
2055
2065
|
"type": "object",
|
|
@@ -3530,18 +3540,35 @@
|
|
|
3530
3540
|
},
|
|
3531
3541
|
"additionalProperties": false
|
|
3532
3542
|
},
|
|
3543
|
+
"CacheOptions": {
|
|
3544
|
+
"type": "object",
|
|
3545
|
+
"properties": {
|
|
3546
|
+
"enabled": {
|
|
3547
|
+
"type": "boolean",
|
|
3548
|
+
"description": "If cache is enabled for this Worker",
|
|
3549
|
+
"markdownDescription": "If cache is enabled for this Worker"
|
|
3550
|
+
}
|
|
3551
|
+
},
|
|
3552
|
+
"required": [
|
|
3553
|
+
"enabled"
|
|
3554
|
+
],
|
|
3555
|
+
"additionalProperties": false
|
|
3556
|
+
},
|
|
3533
3557
|
"PreviewsConfig": {
|
|
3534
3558
|
"type": "object",
|
|
3535
3559
|
"additionalProperties": false,
|
|
3536
3560
|
"properties": {
|
|
3537
3561
|
"logpush": {
|
|
3538
|
-
"$ref": "#/definitions/interface-769040647-8080-
|
|
3562
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-476802004818536"
|
|
3539
3563
|
},
|
|
3540
3564
|
"observability": {
|
|
3541
|
-
"$ref": "#/definitions/interface-769040647-8080-
|
|
3565
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-476802004818536"
|
|
3542
3566
|
},
|
|
3543
3567
|
"limits": {
|
|
3544
|
-
"$ref": "#/definitions/interface-769040647-8080-
|
|
3568
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-476802004818536"
|
|
3569
|
+
},
|
|
3570
|
+
"cache": {
|
|
3571
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-476802004818536"
|
|
3545
3572
|
},
|
|
3546
3573
|
"define": {
|
|
3547
3574
|
"type": "object",
|
|
@@ -3581,8 +3608,8 @@
|
|
|
3581
3608
|
}
|
|
3582
3609
|
},
|
|
3583
3610
|
"additionalProperties": false,
|
|
3584
|
-
"description": "Secrets configuration
|
|
3585
|
-
"markdownDescription": "Secrets configuration
|
|
3611
|
+
"description": "Secrets configuration.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#secrets-configuration-property",
|
|
3612
|
+
"markdownDescription": "Secrets configuration.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#secrets-configuration-property"
|
|
3586
3613
|
},
|
|
3587
3614
|
"durable_objects": {
|
|
3588
3615
|
"type": "object",
|
|
@@ -4737,10 +4764,10 @@
|
|
|
4737
4764
|
"default": []
|
|
4738
4765
|
}
|
|
4739
4766
|
},
|
|
4740
|
-
"description": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments. Previews are branches of your Worker's main instance used to test features during feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`",
|
|
4741
|
-
"markdownDescription": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments.\nPreviews are branches of your Worker's main instance used to test features\nduring feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`"
|
|
4767
|
+
"description": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments. Previews are branches of your Worker's main instance used to test features during feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`, `cache`",
|
|
4768
|
+
"markdownDescription": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments.\nPreviews are branches of your Worker's main instance used to test features\nduring feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`, `cache`"
|
|
4742
4769
|
},
|
|
4743
|
-
"interface-769040647-8080-
|
|
4770
|
+
"interface-769040647-8080-17950-769040647-0-476802004818536": {
|
|
4744
4771
|
"type": "object",
|
|
4745
4772
|
"properties": {
|
|
4746
4773
|
"name": {
|
|
@@ -5055,6 +5082,11 @@
|
|
|
5055
5082
|
"description": "Specify the observability behavior of the Worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability",
|
|
5056
5083
|
"markdownDescription": "Specify the observability behavior of the Worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability"
|
|
5057
5084
|
},
|
|
5085
|
+
"cache": {
|
|
5086
|
+
"$ref": "#/definitions/CacheOptions",
|
|
5087
|
+
"description": "Specify the cache behavior of the Worker.",
|
|
5088
|
+
"markdownDescription": "Specify the cache behavior of the Worker."
|
|
5089
|
+
},
|
|
5058
5090
|
"compliance_region": {
|
|
5059
5091
|
"type": "string",
|
|
5060
5092
|
"enum": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.89.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"esbuild": "0.27.3",
|
|
55
55
|
"path-to-regexp": "6.3.0",
|
|
56
56
|
"unenv": "2.0.0-rc.24",
|
|
57
|
-
"workerd": "1.
|
|
57
|
+
"workerd": "1.20260507.1",
|
|
58
58
|
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
59
|
+
"miniflare": "4.20260507.0",
|
|
60
|
+
"@cloudflare/unenv-preset": "2.16.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
64
64
|
"@bomb.sh/tab": "^0.0.12",
|
|
65
65
|
"@cloudflare/types": "6.18.4",
|
|
66
|
-
"@cloudflare/workers-types": "^4.
|
|
66
|
+
"@cloudflare/workers-types": "^4.20260507.1",
|
|
67
67
|
"@cspotcode/source-map-support": "0.8.1",
|
|
68
68
|
"@netlify/build-info": "^10.5.1",
|
|
69
69
|
"@sentry/node": "^7.86.0",
|
|
@@ -144,17 +144,17 @@
|
|
|
144
144
|
"xxhash-wasm": "^1.0.1",
|
|
145
145
|
"yaml": "^2.8.1",
|
|
146
146
|
"yargs": "^17.7.2",
|
|
147
|
-
"@cloudflare/cli-shared-helpers": "0.1.
|
|
147
|
+
"@cloudflare/cli-shared-helpers": "0.1.2",
|
|
148
148
|
"@cloudflare/codemod": "1.1.0",
|
|
149
149
|
"@cloudflare/containers-shared": "0.14.1",
|
|
150
|
-
"@cloudflare/pages-shared": "^0.13.
|
|
151
|
-
"@cloudflare/workers-
|
|
150
|
+
"@cloudflare/pages-shared": "^0.13.132",
|
|
151
|
+
"@cloudflare/workers-utils": "0.20.0",
|
|
152
152
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
153
|
-
"@cloudflare/workers-
|
|
153
|
+
"@cloudflare/workers-shared": "0.19.5",
|
|
154
154
|
"@cloudflare/workflows-shared": "0.10.0"
|
|
155
155
|
},
|
|
156
156
|
"peerDependencies": {
|
|
157
|
-
"@cloudflare/workers-types": "^4.
|
|
157
|
+
"@cloudflare/workers-types": "^4.20260507.1"
|
|
158
158
|
},
|
|
159
159
|
"peerDependenciesMeta": {
|
|
160
160
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1461,7 +1461,6 @@ interface EnvironmentInheritable {
|
|
|
1461
1461
|
* Specify the cache behavior of the Worker.
|
|
1462
1462
|
*
|
|
1463
1463
|
* @inheritable
|
|
1464
|
-
* @hidden
|
|
1465
1464
|
*/
|
|
1466
1465
|
cache: CacheOptions | undefined;
|
|
1467
1466
|
/**
|
|
@@ -1557,11 +1556,13 @@ interface EnvironmentNonInheritable {
|
|
|
1557
1556
|
*/
|
|
1558
1557
|
vars: Record<string, string | Json>;
|
|
1559
1558
|
/**
|
|
1560
|
-
* Secrets configuration
|
|
1559
|
+
* Secrets configuration.
|
|
1561
1560
|
*
|
|
1562
1561
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1563
1562
|
* and so must be specified in every named environment.
|
|
1564
1563
|
*
|
|
1564
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#secrets-configuration-property
|
|
1565
|
+
*
|
|
1565
1566
|
* @nonInheritable
|
|
1566
1567
|
*/
|
|
1567
1568
|
secrets?: {
|
|
@@ -2353,11 +2354,11 @@ type ContainerEngine = {
|
|
|
2353
2354
|
*
|
|
2354
2355
|
* The `previews` block contains any intentionally divergent configuration intended solely for Previews, including:
|
|
2355
2356
|
* - All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)
|
|
2356
|
-
* - Select inheritable properties: `logpush`, `observability`, `limits`
|
|
2357
|
+
* - Select inheritable properties: `logpush`, `observability`, `limits`, `cache`
|
|
2357
2358
|
*
|
|
2358
2359
|
* @inheritable
|
|
2359
2360
|
*/
|
|
2360
|
-
interface PreviewsConfig extends Partial<EnvironmentNonInheritable>, Partial<Pick<EnvironmentInheritable, "logpush" | "observability" | "limits">> {
|
|
2361
|
+
interface PreviewsConfig extends Partial<EnvironmentNonInheritable>, Partial<Pick<EnvironmentInheritable, "logpush" | "observability" | "limits" | "cache">> {
|
|
2361
2362
|
}
|
|
2362
2363
|
|
|
2363
2364
|
/**
|