wrangler 4.68.0 → 4.69.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.
@@ -345,6 +345,21 @@
345
345
  "description": "A map of environment variables to set when deploying your Worker.\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/#environment-variables",
346
346
  "default": {}
347
347
  },
348
+ "secrets": {
349
+ "type": "object",
350
+ "properties": {
351
+ "required": {
352
+ "type": "array",
353
+ "items": {
354
+ "type": "string"
355
+ },
356
+ "description": "List of secret names that are required by your Worker. When defined, this property:\n- Replaces .dev.vars/.env inference for type generation\n- Enables deploy-time validation to ensure secrets are configured\n- Enables local dev validation with warnings for missing secrets"
357
+ }
358
+ },
359
+ "additionalProperties": false,
360
+ "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.",
361
+ "default": "undefined"
362
+ },
348
363
  "durable_objects": {
349
364
  "type": "object",
350
365
  "properties": {
@@ -1594,6 +1609,21 @@
1594
1609
  "description": "A map of environment variables to set when deploying your Worker.\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/#environment-variables",
1595
1610
  "default": {}
1596
1611
  },
1612
+ "secrets": {
1613
+ "type": "object",
1614
+ "properties": {
1615
+ "required": {
1616
+ "type": "array",
1617
+ "items": {
1618
+ "type": "string"
1619
+ },
1620
+ "description": "List of secret names that are required by your Worker. When defined, this property:\n- Replaces .dev.vars/.env inference for type generation\n- Enables deploy-time validation to ensure secrets are configured\n- Enables local dev validation with warnings for missing secrets"
1621
+ }
1622
+ },
1623
+ "additionalProperties": false,
1624
+ "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.",
1625
+ "default": "undefined"
1626
+ },
1597
1627
  "durable_objects": {
1598
1628
  "type": "object",
1599
1629
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.68.0",
3
+ "version": "4.69.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -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.20260302.0",
57
+ "workerd": "1.20260305.0",
58
58
  "@cloudflare/kv-asset-handler": "0.4.2",
59
- "@cloudflare/unenv-preset": "2.14.0",
60
- "miniflare": "4.20260302.0"
59
+ "miniflare": "4.20260305.0",
60
+ "@cloudflare/unenv-preset": "2.14.0"
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.20260302.0",
66
+ "@cloudflare/workers-types": "^4.20260305.0",
67
67
  "@cspotcode/source-map-support": "0.8.1",
68
68
  "@netlify/build-info": "^10.2.0",
69
69
  "@sentry/node": "^7.86.0",
@@ -147,17 +147,17 @@
147
147
  "xxhash-wasm": "^1.0.1",
148
148
  "yaml": "^2.8.1",
149
149
  "yargs": "^17.7.2",
150
- "@cloudflare/containers-shared": "0.9.0",
151
150
  "@cloudflare/cli": "1.2.1",
151
+ "@cloudflare/containers-shared": "0.9.0",
152
152
  "@cloudflare/eslint-config-shared": "1.2.1",
153
- "@cloudflare/workers-shared": "0.19.0",
153
+ "@cloudflare/pages-shared": "^0.13.111",
154
154
  "@cloudflare/workers-tsconfig": "0.0.0",
155
- "@cloudflare/workflows-shared": "0.4.0",
156
- "@cloudflare/workers-utils": "0.11.1",
157
- "@cloudflare/pages-shared": "^0.13.110"
155
+ "@cloudflare/workers-utils": "0.12.0",
156
+ "@cloudflare/workers-shared": "0.19.0",
157
+ "@cloudflare/workflows-shared": "0.4.0"
158
158
  },
159
159
  "peerDependencies": {
160
- "@cloudflare/workers-types": "^4.20260302.0"
160
+ "@cloudflare/workers-types": "^4.20260305.0"
161
161
  },
162
162
  "peerDependenciesMeta": {
163
163
  "@cloudflare/workers-types": {
@@ -1364,6 +1364,13 @@ interface EnvironmentInheritable {
1364
1364
  * @inheritable
1365
1365
  */
1366
1366
  observability: Observability | undefined;
1367
+ /**
1368
+ * Specify the cache behavior of the Worker.
1369
+ *
1370
+ * @inheritable
1371
+ * @hidden
1372
+ */
1373
+ cache: CacheOptions | undefined;
1367
1374
  /**
1368
1375
  * Specify the compliance region mode of the Worker.
1369
1376
  *
@@ -1439,6 +1446,25 @@ interface EnvironmentNonInheritable {
1439
1446
  * @nonInheritable
1440
1447
  */
1441
1448
  vars: Record<string, string | Json>;
1449
+ /**
1450
+ * Secrets configuration.
1451
+ *
1452
+ * NOTE: This field is not automatically inherited from the top level environment,
1453
+ * and so must be specified in every named environment.
1454
+ *
1455
+ * @default undefined
1456
+ * @nonInheritable
1457
+ */
1458
+ secrets?: {
1459
+ /**
1460
+ * List of secret names that are required by your Worker.
1461
+ * When defined, this property:
1462
+ * - Replaces .dev.vars/.env inference for type generation
1463
+ * - Enables deploy-time validation to ensure secrets are configured
1464
+ * - Enables local dev validation with warnings for missing secrets
1465
+ */
1466
+ required?: string[];
1467
+ };
1442
1468
  /**
1443
1469
  * A list of durable objects that your Worker should be bound to.
1444
1470
  *
@@ -2088,6 +2114,10 @@ interface Observability {
2088
2114
  destinations?: string[];
2089
2115
  };
2090
2116
  }
2117
+ interface CacheOptions {
2118
+ /** If cache is enabled for this Worker */
2119
+ enabled: boolean;
2120
+ }
2091
2121
  type DockerConfiguration = {
2092
2122
  /** Socket used by miniflare to communicate with Docker */
2093
2123
  socketPath: string;