wrangler 4.52.1 → 4.53.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.
@@ -213,23 +213,75 @@
213
213
  "description": "Include source maps when uploading this worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps"
214
214
  },
215
215
  "placement": {
216
- "type": "object",
217
- "properties": {
218
- "mode": {
219
- "type": "string",
220
- "enum": [
221
- "off",
222
- "smart"
223
- ]
216
+ "anyOf": [
217
+ {
218
+ "type": "object",
219
+ "properties": {
220
+ "mode": {
221
+ "type": "string",
222
+ "enum": [
223
+ "off",
224
+ "smart"
225
+ ]
226
+ },
227
+ "hint": {
228
+ "type": "string"
229
+ }
230
+ },
231
+ "required": [
232
+ "mode"
233
+ ],
234
+ "additionalProperties": false
224
235
  },
225
- "hint": {
226
- "type": "string"
236
+ {
237
+ "type": "object",
238
+ "properties": {
239
+ "mode": {
240
+ "type": "string",
241
+ "const": "targeted"
242
+ },
243
+ "region": {
244
+ "type": "string"
245
+ }
246
+ },
247
+ "required": [
248
+ "region"
249
+ ],
250
+ "additionalProperties": false
251
+ },
252
+ {
253
+ "type": "object",
254
+ "properties": {
255
+ "mode": {
256
+ "type": "string",
257
+ "const": "targeted"
258
+ },
259
+ "host": {
260
+ "type": "string"
261
+ }
262
+ },
263
+ "required": [
264
+ "host"
265
+ ],
266
+ "additionalProperties": false
267
+ },
268
+ {
269
+ "type": "object",
270
+ "properties": {
271
+ "mode": {
272
+ "type": "string",
273
+ "const": "targeted"
274
+ },
275
+ "hostname": {
276
+ "type": "string"
277
+ }
278
+ },
279
+ "required": [
280
+ "hostname"
281
+ ],
282
+ "additionalProperties": false
227
283
  }
228
- },
229
- "required": [
230
- "mode"
231
284
  ],
232
- "additionalProperties": false,
233
285
  "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/"
234
286
  },
235
287
  "assets": {
@@ -1408,23 +1460,75 @@
1408
1460
  "description": "Include source maps when uploading this worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps"
1409
1461
  },
1410
1462
  "placement": {
1411
- "type": "object",
1412
- "properties": {
1413
- "mode": {
1414
- "type": "string",
1415
- "enum": [
1416
- "off",
1417
- "smart"
1418
- ]
1463
+ "anyOf": [
1464
+ {
1465
+ "type": "object",
1466
+ "properties": {
1467
+ "mode": {
1468
+ "type": "string",
1469
+ "enum": [
1470
+ "off",
1471
+ "smart"
1472
+ ]
1473
+ },
1474
+ "hint": {
1475
+ "type": "string"
1476
+ }
1477
+ },
1478
+ "required": [
1479
+ "mode"
1480
+ ],
1481
+ "additionalProperties": false
1419
1482
  },
1420
- "hint": {
1421
- "type": "string"
1483
+ {
1484
+ "type": "object",
1485
+ "properties": {
1486
+ "mode": {
1487
+ "type": "string",
1488
+ "const": "targeted"
1489
+ },
1490
+ "region": {
1491
+ "type": "string"
1492
+ }
1493
+ },
1494
+ "required": [
1495
+ "region"
1496
+ ],
1497
+ "additionalProperties": false
1498
+ },
1499
+ {
1500
+ "type": "object",
1501
+ "properties": {
1502
+ "mode": {
1503
+ "type": "string",
1504
+ "const": "targeted"
1505
+ },
1506
+ "host": {
1507
+ "type": "string"
1508
+ }
1509
+ },
1510
+ "required": [
1511
+ "host"
1512
+ ],
1513
+ "additionalProperties": false
1514
+ },
1515
+ {
1516
+ "type": "object",
1517
+ "properties": {
1518
+ "mode": {
1519
+ "type": "string",
1520
+ "const": "targeted"
1521
+ },
1522
+ "hostname": {
1523
+ "type": "string"
1524
+ }
1525
+ },
1526
+ "required": [
1527
+ "hostname"
1528
+ ],
1529
+ "additionalProperties": false
1422
1530
  }
1423
- },
1424
- "required": [
1425
- "mode"
1426
1531
  ],
1427
- "additionalProperties": false,
1428
1532
  "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/"
1429
1533
  },
1430
1534
  "assets": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.52.1",
3
+ "version": "4.53.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -56,8 +56,8 @@
56
56
  "unenv": "2.0.0-rc.24",
57
57
  "workerd": "1.20251202.0",
58
58
  "@cloudflare/kv-asset-handler": "0.4.1",
59
- "miniflare": "4.20251202.0",
60
- "@cloudflare/unenv-preset": "2.7.12"
59
+ "@cloudflare/unenv-preset": "2.7.13",
60
+ "miniflare": "4.20251202.1"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@aws-sdk/client-s3": "^3.721.0",
@@ -124,7 +124,7 @@
124
124
  "patch-console": "^1.0.0",
125
125
  "pretty-bytes": "^6.0.0",
126
126
  "prompts": "^2.4.2",
127
- "recast": "0.22.0",
127
+ "recast": "0.23.11",
128
128
  "resolve": "^1.22.8",
129
129
  "rimraf": "^6.0.1",
130
130
  "semiver": "^1.1.0",
@@ -150,10 +150,10 @@
150
150
  "@cloudflare/cli": "1.1.4",
151
151
  "@cloudflare/containers-shared": "0.4.0",
152
152
  "@cloudflare/eslint-config-shared": "1.1.0",
153
- "@cloudflare/pages-shared": "^0.13.91",
154
- "@cloudflare/workers-tsconfig": "0.0.0",
153
+ "@cloudflare/pages-shared": "^0.13.92",
155
154
  "@cloudflare/workers-shared": "0.18.9",
156
- "@cloudflare/workers-utils": "0.3.0",
155
+ "@cloudflare/workers-tsconfig": "0.0.0",
156
+ "@cloudflare/workers-utils": "0.4.0",
157
157
  "@cloudflare/workflows-shared": "0.3.9"
158
158
  },
159
159
  "peerDependencies": {