wrangler 4.129.1 → 4.131.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.
@@ -3609,6 +3609,31 @@
3609
3609
  "description": "The Durable Objects being renamed.",
3610
3610
  "markdownDescription": "The Durable Objects being renamed."
3611
3611
  },
3612
+ "transferred_classes": {
3613
+ "type": "array",
3614
+ "items": {
3615
+ "type": "object",
3616
+ "properties": {
3617
+ "from": {
3618
+ "type": "string"
3619
+ },
3620
+ "from_script": {
3621
+ "type": "string"
3622
+ },
3623
+ "to": {
3624
+ "type": "string"
3625
+ }
3626
+ },
3627
+ "required": [
3628
+ "from",
3629
+ "from_script",
3630
+ "to"
3631
+ ],
3632
+ "additionalProperties": false
3633
+ },
3634
+ "description": "The Durable Objects being transferred from another Worker.",
3635
+ "markdownDescription": "The Durable Objects being transferred from another Worker."
3636
+ },
3612
3637
  "deleted_classes": {
3613
3638
  "type": "array",
3614
3639
  "items": {
@@ -4106,16 +4131,16 @@
4106
4131
  "additionalProperties": false,
4107
4132
  "properties": {
4108
4133
  "logpush": {
4109
- "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-567642004818536"
4134
+ "$ref": "#/definitions/interface-769040647-13628-23990-769040647-0-585492004818536"
4110
4135
  },
4111
4136
  "observability": {
4112
- "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-567642004818536"
4137
+ "$ref": "#/definitions/interface-769040647-13628-23990-769040647-0-585492004818536"
4113
4138
  },
4114
4139
  "limits": {
4115
- "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-567642004818536"
4140
+ "$ref": "#/definitions/interface-769040647-13628-23990-769040647-0-585492004818536"
4116
4141
  },
4117
4142
  "cache": {
4118
- "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-567642004818536"
4143
+ "$ref": "#/definitions/interface-769040647-13628-23990-769040647-0-585492004818536"
4119
4144
  },
4120
4145
  "define": {
4121
4146
  "type": "object",
@@ -5419,7 +5444,7 @@
5419
5444
  "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`",
5420
5445
  "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`"
5421
5446
  },
5422
- "interface-769040647-11843-22205-769040647-0-567642004818536": {
5447
+ "interface-769040647-13628-23990-769040647-0-585492004818536": {
5423
5448
  "type": "object",
5424
5449
  "properties": {
5425
5450
  "name": {
@@ -6020,6 +6045,14 @@
6020
6045
  "description": "The path to a Dockerfile, or an image URI for the Cloudflare registry.",
6021
6046
  "markdownDescription": "The path to a Dockerfile, or an image URI for the Cloudflare registry."
6022
6047
  },
6048
+ "images": {
6049
+ "type": "object",
6050
+ "additionalProperties": {
6051
+ "$ref": "#/definitions/DurableObjectContainerImage"
6052
+ },
6053
+ "description": "Named images available to a Durable Object-managed container through `ctx.container.images` and `env.EXPERIMENTAL_CLOUDFLARE_CONTAINER_IMAGES[className]`.\n\nOnly supported when `scheduling_policy` is `\"durable_object\"`.",
6054
+ "markdownDescription": "Named images available to a Durable Object-managed container through\n`ctx.container.images` and\n`env.EXPERIMENTAL_CLOUDFLARE_CONTAINER_IMAGES[className]`.\n\nOnly supported when `scheduling_policy` is `\"durable_object\"`."
6055
+ },
6023
6056
  "image_build_context": {
6024
6057
  "type": "string",
6025
6058
  "description": "Build context of the application.",
@@ -6038,10 +6071,16 @@
6038
6071
  "description": "The class name of the Durable Object the container is connected to.",
6039
6072
  "markdownDescription": "The class name of the Durable Object the container is connected to."
6040
6073
  },
6074
+ "observability": {
6075
+ "$ref": "#/definitions/ContainerObservability",
6076
+ "description": "Specify the observability behavior of this container application.\n\nWhen set, this overrides the root `observability` config for this container.",
6077
+ "markdownDescription": "Specify the observability behavior of this container application.\n\nWhen set, this overrides the root `observability` config for this container."
6078
+ },
6041
6079
  "scheduling_policy": {
6042
6080
  "type": "string",
6043
6081
  "enum": [
6044
6082
  "default",
6083
+ "durable_object",
6045
6084
  "moon",
6046
6085
  "regional"
6047
6086
  ],
@@ -6226,12 +6265,73 @@
6226
6265
  "default": 0
6227
6266
  }
6228
6267
  },
6229
- "required": [
6230
- "image"
6268
+ "additionalProperties": false
6269
+ },
6270
+ "DurableObjectContainerImage": {
6271
+ "anyOf": [
6272
+ {
6273
+ "type": "object",
6274
+ "properties": {
6275
+ "dockerfile": {
6276
+ "type": "string",
6277
+ "description": "Path to the Dockerfile Wrangler builds and pushes.",
6278
+ "markdownDescription": "Path to the Dockerfile Wrangler builds and pushes."
6279
+ }
6280
+ },
6281
+ "required": [
6282
+ "dockerfile"
6283
+ ],
6284
+ "additionalProperties": false
6285
+ },
6286
+ {
6287
+ "type": "object",
6288
+ "properties": {
6289
+ "image": {
6290
+ "type": "string",
6291
+ "description": "Digest-pinned image in the account's managed registry.",
6292
+ "markdownDescription": "Digest-pinned image in the account's managed registry."
6293
+ }
6294
+ },
6295
+ "required": [
6296
+ "image"
6297
+ ],
6298
+ "additionalProperties": false
6299
+ }
6231
6300
  ],
6301
+ "description": "An image Wrangler prepares for a Durable Object-managed container.",
6302
+ "markdownDescription": "An image Wrangler prepares for a Durable Object-managed container."
6303
+ },
6304
+ "ContainerObservability": {
6305
+ "type": "object",
6306
+ "properties": {
6307
+ "enabled": {
6308
+ "type": "boolean",
6309
+ "description": "If observability is enabled for this container application",
6310
+ "markdownDescription": "If observability is enabled for this container application"
6311
+ },
6312
+ "logs": {
6313
+ "type": "object",
6314
+ "properties": {
6315
+ "enabled": {
6316
+ "type": "boolean"
6317
+ }
6318
+ },
6319
+ "additionalProperties": false
6320
+ },
6321
+ "target_instance_percentage": {
6322
+ "type": "number",
6323
+ "description": "Percentage of instances to target with application-level observability hot reloads. Mutually exclusive with `target_instance_count`.",
6324
+ "markdownDescription": "Percentage of instances to target with application-level observability hot reloads.\nMutually exclusive with `target_instance_count`."
6325
+ },
6326
+ "target_instance_count": {
6327
+ "type": "number",
6328
+ "description": "Number of instances to target with application-level observability hot reloads. Mutually exclusive with `target_instance_percentage`.",
6329
+ "markdownDescription": "Number of instances to target with application-level observability hot reloads.\nMutually exclusive with `target_instance_percentage`."
6330
+ }
6331
+ },
6232
6332
  "additionalProperties": false,
6233
- "description": "Configuration for a container application",
6234
- "markdownDescription": "Configuration for a container application"
6333
+ "description": "Configuration for a container application.",
6334
+ "markdownDescription": "Configuration for a container application."
6235
6335
  },
6236
6336
  "LocalS3Credentials": {
6237
6337
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.129.1",
3
+ "version": "4.131.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "assembly",
@@ -66,17 +66,17 @@
66
66
  "esbuild": "0.28.1",
67
67
  "path-to-regexp": "6.3.0",
68
68
  "unenv": "2.0.0-rc.24",
69
- "workerd": "1.20260907.1",
69
+ "workerd": "1.20260910.1",
70
70
  "@cloudflare/kv-asset-handler": "0.5.0",
71
- "@cloudflare/unenv-preset": "2.16.1",
72
- "miniflare": "5.20260907.0-alpha"
71
+ "miniflare": "5.20260910.0-alpha",
72
+ "@cloudflare/unenv-preset": "2.16.1"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@aws-sdk/client-s3": "^3.721.0",
76
76
  "@aws-sdk/s3-request-presigner": "^3.721.0",
77
77
  "@bomb.sh/tab": "^0.0.12",
78
78
  "@cloudflare/types": "6.18.4",
79
- "@cloudflare/workers-types": "^5.20260907.1",
79
+ "@cloudflare/workers-types": "^5.20260910.1",
80
80
  "@cspotcode/source-map-support": "0.8.1",
81
81
  "@netlify/build-info": "10.5.1",
82
82
  "@sentry/node": "^7.86.0",
@@ -137,7 +137,7 @@
137
137
  "resolve": "^1.22.8",
138
138
  "rosie-skills": "^0.8.1",
139
139
  "semiver": "^1.1.0",
140
- "shell-quote": "^1.8.1",
140
+ "shell-quote": "^1.9.0",
141
141
  "signal-exit": "4.1.0",
142
142
  "smol-toml": "1.5.2",
143
143
  "supports-color": "^9.2.2",
@@ -156,25 +156,25 @@
156
156
  "yaml": "^2.8.1",
157
157
  "yargs": "^17.7.2",
158
158
  "zod": "4.4.3",
159
- "@cloudflare/build-output-utils": "0.4.0",
160
- "@cloudflare/autoconfig": "0.4.2",
161
- "@cloudflare/cli-shared-helpers": "0.1.27",
162
- "@cloudflare/config": "0.10.0",
159
+ "@cloudflare/cli-shared-helpers": "0.1.29",
160
+ "@cloudflare/autoconfig": "0.4.4",
161
+ "@cloudflare/build-output-utils": "0.4.1",
162
+ "@cloudflare/config": "0.11.0",
163
163
  "@cloudflare/containers-shared": "0.16.0",
164
+ "@cloudflare/deploy-helpers": "0.11.0",
164
165
  "@cloudflare/pages-functions": "0.1.0",
165
- "@cloudflare/pages-shared": "^0.13.177",
166
- "@cloudflare/remote-bindings": "0.0.20",
167
- "@cloudflare/runtime-types": "0.0.22",
168
- "@cloudflare/deploy-helpers": "0.10.2",
166
+ "@cloudflare/pages-shared": "^0.13.179",
167
+ "@cloudflare/remote-bindings": "0.0.22",
168
+ "@cloudflare/runtime-types": "0.0.24",
169
169
  "@cloudflare/shared-ast-primitives": "1.1.0",
170
- "@cloudflare/workers-auth": "0.6.9",
171
170
  "@cloudflare/workers-shared": "0.19.9",
172
- "@cloudflare/workers-utils": "0.36.0",
173
- "@cloudflare/workers-tsconfig": "0.0.0",
174
- "@cloudflare/workflows-shared": "0.13.0"
171
+ "@cloudflare/workers-auth": "0.6.11",
172
+ "@cloudflare/workers-utils": "0.38.0",
173
+ "@cloudflare/workflows-shared": "0.13.0",
174
+ "@cloudflare/workers-tsconfig": "0.0.0"
175
175
  },
176
176
  "peerDependencies": {
177
- "@cloudflare/workers-types": "^5.20260907.1"
177
+ "@cloudflare/workers-types": "^5.20260910.1"
178
178
  },
179
179
  "peerDependenciesMeta": {
180
180
  "@cloudflare/workers-types": {
@@ -1272,8 +1272,41 @@ type UnsafeBinding = {
1272
1272
  [key: string]: unknown;
1273
1273
  };
1274
1274
  /**
1275
- * Configuration for a container application
1275
+ * An image Wrangler prepares for a Durable Object-managed container.
1276
1276
  */
1277
+ type DurableObjectContainerImage = {
1278
+ /**
1279
+ * Path to the Dockerfile Wrangler builds and pushes.
1280
+ */
1281
+ dockerfile: string;
1282
+ image?: never;
1283
+ } | {
1284
+ /**
1285
+ * Digest-pinned image in the account's managed registry.
1286
+ */
1287
+ image: string;
1288
+ dockerfile?: never;
1289
+ };
1290
+ /**
1291
+ * Configuration for a container application.
1292
+ */
1293
+ type ContainerObservability = {
1294
+ /** If observability is enabled for this container application */
1295
+ enabled?: boolean;
1296
+ logs?: {
1297
+ enabled?: boolean;
1298
+ };
1299
+ /**
1300
+ * Percentage of instances to target with application-level observability hot reloads.
1301
+ * Mutually exclusive with `target_instance_count`.
1302
+ */
1303
+ target_instance_percentage?: number;
1304
+ /**
1305
+ * Number of instances to target with application-level observability hot reloads.
1306
+ * Mutually exclusive with `target_instance_percentage`.
1307
+ */
1308
+ target_instance_count?: number;
1309
+ };
1277
1310
  type ContainerApp = {
1278
1311
  /**
1279
1312
  * Name of the application.
@@ -1300,7 +1333,15 @@ type ContainerApp = {
1300
1333
  /**
1301
1334
  * The path to a Dockerfile, or an image URI for the Cloudflare registry.
1302
1335
  */
1303
- image: string;
1336
+ image?: string;
1337
+ /**
1338
+ * Named images available to a Durable Object-managed container through
1339
+ * `ctx.container.images` and
1340
+ * `env.EXPERIMENTAL_CLOUDFLARE_CONTAINER_IMAGES[className]`.
1341
+ *
1342
+ * Only supported when `scheduling_policy` is `"durable_object"`.
1343
+ */
1344
+ images?: Record<string, DurableObjectContainerImage>;
1304
1345
  /**
1305
1346
  * Build context of the application.
1306
1347
  * @optional - defaults to the directory of `image`.
@@ -1320,12 +1361,22 @@ type ContainerApp = {
1320
1361
  * field. Exactly one of the two directions must be configured.
1321
1362
  */
1322
1363
  class_name?: string;
1364
+ /**
1365
+ * Specify the observability behavior of this container application.
1366
+ *
1367
+ * When set, this overrides the root `observability` config for this container.
1368
+ */
1369
+ observability?: ContainerObservability;
1323
1370
  /**
1324
1371
  * The scheduling policy of the application
1325
1372
  * @optional
1373
+ * `"durable_object"` makes each Durable Object instance own its Container.
1374
+ * In that mode, only `name`, `class_name`, `scheduling_policy`, and `images` are
1375
+ * supported on this entry.
1376
+ *
1326
1377
  * @default "default"
1327
1378
  */
1328
- scheduling_policy?: "default" | "moon" | "regional";
1379
+ scheduling_policy?: "default" | "durable_object" | "moon" | "regional";
1329
1380
  /**
1330
1381
  * The instance type to be used for the container.
1331
1382
  * Select from one of the following named instance types:
@@ -1503,6 +1554,12 @@ type DurableObjectMigration = {
1503
1554
  from: string;
1504
1555
  to: string;
1505
1556
  }[];
1557
+ /** The Durable Objects being transferred from another Worker. */
1558
+ transferred_classes?: {
1559
+ from: string;
1560
+ from_script: string;
1561
+ to: string;
1562
+ }[];
1506
1563
  /** The Durable Objects being removed. */
1507
1564
  deleted_classes?: string[];
1508
1565
  };