wrangler 4.130.0 → 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-12589-22951-769040647-0-575102004818536"
4134
+ "$ref": "#/definitions/interface-769040647-13628-23990-769040647-0-585492004818536"
4110
4135
  },
4111
4136
  "observability": {
4112
- "$ref": "#/definitions/interface-769040647-12589-22951-769040647-0-575102004818536"
4137
+ "$ref": "#/definitions/interface-769040647-13628-23990-769040647-0-585492004818536"
4113
4138
  },
4114
4139
  "limits": {
4115
- "$ref": "#/definitions/interface-769040647-12589-22951-769040647-0-575102004818536"
4140
+ "$ref": "#/definitions/interface-769040647-13628-23990-769040647-0-585492004818536"
4116
4141
  },
4117
4142
  "cache": {
4118
- "$ref": "#/definitions/interface-769040647-12589-22951-769040647-0-575102004818536"
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-12589-22951-769040647-0-575102004818536": {
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.",
@@ -6047,6 +6080,7 @@
6047
6080
  "type": "string",
6048
6081
  "enum": [
6049
6082
  "default",
6083
+ "durable_object",
6050
6084
  "moon",
6051
6085
  "regional"
6052
6086
  ],
@@ -6231,11 +6265,42 @@
6231
6265
  "default": 0
6232
6266
  }
6233
6267
  },
6234
- "required": [
6235
- "image"
6236
- ],
6237
6268
  "additionalProperties": false
6238
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
+ }
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
+ },
6239
6304
  "ContainerObservability": {
6240
6305
  "type": "object",
6241
6306
  "properties": {
@@ -6265,8 +6330,8 @@
6265
6330
  }
6266
6331
  },
6267
6332
  "additionalProperties": false,
6268
- "description": "Configuration for a container application",
6269
- "markdownDescription": "Configuration for a container application"
6333
+ "description": "Configuration for a container application.",
6334
+ "markdownDescription": "Configuration for a container application."
6270
6335
  },
6271
6336
  "LocalS3Credentials": {
6272
6337
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.130.0",
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.20260908.1",
70
- "miniflare": "5.20260908.0-alpha",
71
- "@cloudflare/unenv-preset": "2.16.1",
72
- "@cloudflare/kv-asset-handler": "0.5.0"
69
+ "workerd": "1.20260910.1",
70
+ "@cloudflare/kv-asset-handler": "0.5.0",
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.20260908.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/autoconfig": "0.4.3",
159
+ "@cloudflare/cli-shared-helpers": "0.1.29",
160
+ "@cloudflare/autoconfig": "0.4.4",
160
161
  "@cloudflare/build-output-utils": "0.4.1",
161
- "@cloudflare/cli-shared-helpers": "0.1.28",
162
- "@cloudflare/deploy-helpers": "0.10.3",
163
162
  "@cloudflare/config": "0.11.0",
164
163
  "@cloudflare/containers-shared": "0.16.0",
165
- "@cloudflare/pages-shared": "^0.13.178",
166
- "@cloudflare/runtime-types": "0.0.23",
164
+ "@cloudflare/deploy-helpers": "0.11.0",
167
165
  "@cloudflare/pages-functions": "0.1.0",
168
- "@cloudflare/remote-bindings": "0.0.21",
169
- "@cloudflare/workers-auth": "0.6.10",
170
- "@cloudflare/workers-shared": "0.19.9",
166
+ "@cloudflare/pages-shared": "^0.13.179",
167
+ "@cloudflare/remote-bindings": "0.0.22",
168
+ "@cloudflare/runtime-types": "0.0.24",
171
169
  "@cloudflare/shared-ast-primitives": "1.1.0",
172
- "@cloudflare/workers-tsconfig": "0.0.0",
173
- "@cloudflare/workers-utils": "0.37.0",
174
- "@cloudflare/workflows-shared": "0.13.0"
170
+ "@cloudflare/workers-shared": "0.19.9",
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.20260908.1"
177
+ "@cloudflare/workers-types": "^5.20260910.1"
178
178
  },
179
179
  "peerDependenciesMeta": {
180
180
  "@cloudflare/workers-types": {
@@ -1272,7 +1272,23 @@ 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
+ */
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.
1276
1292
  */
1277
1293
  type ContainerObservability = {
1278
1294
  /** If observability is enabled for this container application */
@@ -1317,7 +1333,15 @@ type ContainerApp = {
1317
1333
  /**
1318
1334
  * The path to a Dockerfile, or an image URI for the Cloudflare registry.
1319
1335
  */
1320
- 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>;
1321
1345
  /**
1322
1346
  * Build context of the application.
1323
1347
  * @optional - defaults to the directory of `image`.
@@ -1346,9 +1370,13 @@ type ContainerApp = {
1346
1370
  /**
1347
1371
  * The scheduling policy of the application
1348
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
+ *
1349
1377
  * @default "default"
1350
1378
  */
1351
- scheduling_policy?: "default" | "moon" | "regional";
1379
+ scheduling_policy?: "default" | "durable_object" | "moon" | "regional";
1352
1380
  /**
1353
1381
  * The instance type to be used for the container.
1354
1382
  * Select from one of the following named instance types:
@@ -1526,6 +1554,12 @@ type DurableObjectMigration = {
1526
1554
  from: string;
1527
1555
  to: string;
1528
1556
  }[];
1557
+ /** The Durable Objects being transferred from another Worker. */
1558
+ transferred_classes?: {
1559
+ from: string;
1560
+ from_script: string;
1561
+ to: string;
1562
+ }[];
1529
1563
  /** The Durable Objects being removed. */
1530
1564
  deleted_classes?: string[];
1531
1565
  };