wrangler 3.77.0 → 3.78.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 +58 -156
- package/package.json +6 -6
- package/wrangler-dist/cli.d.ts +21 -15
- package/wrangler-dist/cli.js +559 -404
- package/wrangler-dist/cli.js.map +0 -7
package/config-schema.json
CHANGED
@@ -137,6 +137,61 @@
|
|
137
137
|
},
|
138
138
|
"type": "array"
|
139
139
|
},
|
140
|
+
"DurableObjectMigration": {
|
141
|
+
"additionalProperties": false,
|
142
|
+
"description": "Configuration in wrangler for Durable Object Migrations",
|
143
|
+
"properties": {
|
144
|
+
"deleted_classes": {
|
145
|
+
"description": "The Durable Objects being removed.",
|
146
|
+
"items": {
|
147
|
+
"type": "string"
|
148
|
+
},
|
149
|
+
"type": "array"
|
150
|
+
},
|
151
|
+
"new_classes": {
|
152
|
+
"description": "The new Durable Objects being defined.",
|
153
|
+
"items": {
|
154
|
+
"type": "string"
|
155
|
+
},
|
156
|
+
"type": "array"
|
157
|
+
},
|
158
|
+
"new_sqlite_classes": {
|
159
|
+
"description": "The new SQLite Durable Objects being defined.",
|
160
|
+
"items": {
|
161
|
+
"type": "string"
|
162
|
+
},
|
163
|
+
"type": "array"
|
164
|
+
},
|
165
|
+
"renamed_classes": {
|
166
|
+
"description": "The Durable Objects being renamed.",
|
167
|
+
"items": {
|
168
|
+
"additionalProperties": false,
|
169
|
+
"properties": {
|
170
|
+
"from": {
|
171
|
+
"type": "string"
|
172
|
+
},
|
173
|
+
"to": {
|
174
|
+
"type": "string"
|
175
|
+
}
|
176
|
+
},
|
177
|
+
"required": [
|
178
|
+
"from",
|
179
|
+
"to"
|
180
|
+
],
|
181
|
+
"type": "object"
|
182
|
+
},
|
183
|
+
"type": "array"
|
184
|
+
},
|
185
|
+
"tag": {
|
186
|
+
"description": "A unique identifier for this migration.",
|
187
|
+
"type": "string"
|
188
|
+
}
|
189
|
+
},
|
190
|
+
"required": [
|
191
|
+
"tag"
|
192
|
+
],
|
193
|
+
"type": "object"
|
194
|
+
},
|
140
195
|
"Environment": {
|
141
196
|
"additionalProperties": false,
|
142
197
|
"description": "The `Environment` interface declares all the configuration fields that can be specified for an environment.\n\nThis could be the top-level default environment, or a specific named environment.",
|
@@ -473,58 +528,7 @@
|
|
473
528
|
"default": [],
|
474
529
|
"description": "A list of migrations that should be uploaded with your Worker.\n\nThese define changes in your Durable Object declarations.\n\nMore details at https://developers.cloudflare.com/workers/learning/using-durable-objects#configuring-durable-object-classes-with-migrations",
|
475
530
|
"items": {
|
476
|
-
"
|
477
|
-
"properties": {
|
478
|
-
"deleted_classes": {
|
479
|
-
"description": "The Durable Objects being removed.",
|
480
|
-
"items": {
|
481
|
-
"type": "string"
|
482
|
-
},
|
483
|
-
"type": "array"
|
484
|
-
},
|
485
|
-
"new_classes": {
|
486
|
-
"description": "The new Durable Objects being defined.",
|
487
|
-
"items": {
|
488
|
-
"type": "string"
|
489
|
-
},
|
490
|
-
"type": "array"
|
491
|
-
},
|
492
|
-
"new_sqlite_classes": {
|
493
|
-
"description": "The new SQLite Durable Objects being defined.",
|
494
|
-
"items": {
|
495
|
-
"type": "string"
|
496
|
-
},
|
497
|
-
"type": "array"
|
498
|
-
},
|
499
|
-
"renamed_classes": {
|
500
|
-
"description": "The Durable Objects being renamed.",
|
501
|
-
"items": {
|
502
|
-
"additionalProperties": false,
|
503
|
-
"properties": {
|
504
|
-
"from": {
|
505
|
-
"type": "string"
|
506
|
-
},
|
507
|
-
"to": {
|
508
|
-
"type": "string"
|
509
|
-
}
|
510
|
-
},
|
511
|
-
"required": [
|
512
|
-
"from",
|
513
|
-
"to"
|
514
|
-
],
|
515
|
-
"type": "object"
|
516
|
-
},
|
517
|
-
"type": "array"
|
518
|
-
},
|
519
|
-
"tag": {
|
520
|
-
"description": "A unique identifier for this migration.",
|
521
|
-
"type": "string"
|
522
|
-
}
|
523
|
-
},
|
524
|
-
"required": [
|
525
|
-
"tag"
|
526
|
-
],
|
527
|
-
"type": "object"
|
531
|
+
"$ref": "#/definitions/DurableObjectMigration"
|
528
532
|
},
|
529
533
|
"type": "array"
|
530
534
|
},
|
@@ -1576,58 +1580,7 @@
|
|
1576
1580
|
"default": [],
|
1577
1581
|
"description": "A list of migrations that should be uploaded with your Worker.\n\nThese define changes in your Durable Object declarations.\n\nMore details at https://developers.cloudflare.com/workers/learning/using-durable-objects#configuring-durable-object-classes-with-migrations",
|
1578
1582
|
"items": {
|
1579
|
-
"
|
1580
|
-
"properties": {
|
1581
|
-
"deleted_classes": {
|
1582
|
-
"description": "The Durable Objects being removed.",
|
1583
|
-
"items": {
|
1584
|
-
"type": "string"
|
1585
|
-
},
|
1586
|
-
"type": "array"
|
1587
|
-
},
|
1588
|
-
"new_classes": {
|
1589
|
-
"description": "The new Durable Objects being defined.",
|
1590
|
-
"items": {
|
1591
|
-
"type": "string"
|
1592
|
-
},
|
1593
|
-
"type": "array"
|
1594
|
-
},
|
1595
|
-
"new_sqlite_classes": {
|
1596
|
-
"description": "The new SQLite Durable Objects being defined.",
|
1597
|
-
"items": {
|
1598
|
-
"type": "string"
|
1599
|
-
},
|
1600
|
-
"type": "array"
|
1601
|
-
},
|
1602
|
-
"renamed_classes": {
|
1603
|
-
"description": "The Durable Objects being renamed.",
|
1604
|
-
"items": {
|
1605
|
-
"additionalProperties": false,
|
1606
|
-
"properties": {
|
1607
|
-
"from": {
|
1608
|
-
"type": "string"
|
1609
|
-
},
|
1610
|
-
"to": {
|
1611
|
-
"type": "string"
|
1612
|
-
}
|
1613
|
-
},
|
1614
|
-
"required": [
|
1615
|
-
"from",
|
1616
|
-
"to"
|
1617
|
-
],
|
1618
|
-
"type": "object"
|
1619
|
-
},
|
1620
|
-
"type": "array"
|
1621
|
-
},
|
1622
|
-
"tag": {
|
1623
|
-
"description": "A unique identifier for this migration.",
|
1624
|
-
"type": "string"
|
1625
|
-
}
|
1626
|
-
},
|
1627
|
-
"required": [
|
1628
|
-
"tag"
|
1629
|
-
],
|
1630
|
-
"type": "object"
|
1583
|
+
"$ref": "#/definitions/DurableObjectMigration"
|
1631
1584
|
},
|
1632
1585
|
"type": "array"
|
1633
1586
|
},
|
@@ -2578,58 +2531,7 @@
|
|
2578
2531
|
"default": [],
|
2579
2532
|
"description": "A list of migrations that should be uploaded with your Worker.\n\nThese define changes in your Durable Object declarations.\n\nMore details at https://developers.cloudflare.com/workers/learning/using-durable-objects#configuring-durable-object-classes-with-migrations",
|
2580
2533
|
"items": {
|
2581
|
-
"
|
2582
|
-
"properties": {
|
2583
|
-
"deleted_classes": {
|
2584
|
-
"description": "The Durable Objects being removed.",
|
2585
|
-
"items": {
|
2586
|
-
"type": "string"
|
2587
|
-
},
|
2588
|
-
"type": "array"
|
2589
|
-
},
|
2590
|
-
"new_classes": {
|
2591
|
-
"description": "The new Durable Objects being defined.",
|
2592
|
-
"items": {
|
2593
|
-
"type": "string"
|
2594
|
-
},
|
2595
|
-
"type": "array"
|
2596
|
-
},
|
2597
|
-
"new_sqlite_classes": {
|
2598
|
-
"description": "The new SQLite Durable Objects being defined.",
|
2599
|
-
"items": {
|
2600
|
-
"type": "string"
|
2601
|
-
},
|
2602
|
-
"type": "array"
|
2603
|
-
},
|
2604
|
-
"renamed_classes": {
|
2605
|
-
"description": "The Durable Objects being renamed.",
|
2606
|
-
"items": {
|
2607
|
-
"additionalProperties": false,
|
2608
|
-
"properties": {
|
2609
|
-
"from": {
|
2610
|
-
"type": "string"
|
2611
|
-
},
|
2612
|
-
"to": {
|
2613
|
-
"type": "string"
|
2614
|
-
}
|
2615
|
-
},
|
2616
|
-
"required": [
|
2617
|
-
"from",
|
2618
|
-
"to"
|
2619
|
-
],
|
2620
|
-
"type": "object"
|
2621
|
-
},
|
2622
|
-
"type": "array"
|
2623
|
-
},
|
2624
|
-
"tag": {
|
2625
|
-
"description": "A unique identifier for this migration.",
|
2626
|
-
"type": "string"
|
2627
|
-
}
|
2628
|
-
},
|
2629
|
-
"required": [
|
2630
|
-
"tag"
|
2631
|
-
],
|
2632
|
-
"type": "object"
|
2534
|
+
"$ref": "#/definitions/DurableObjectMigration"
|
2633
2535
|
},
|
2634
2536
|
"type": "array"
|
2635
2537
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.78.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -66,8 +66,8 @@
|
|
66
66
|
"workerd": "1.20240909.0",
|
67
67
|
"xxhash-wasm": "^1.0.1",
|
68
68
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
69
|
-
"@cloudflare/workers-shared": "0.5.
|
70
|
-
"miniflare": "3.20240909.
|
69
|
+
"@cloudflare/workers-shared": "0.5.1",
|
70
|
+
"miniflare": "3.20240909.1"
|
71
71
|
},
|
72
72
|
"devDependencies": {
|
73
73
|
"@cloudflare/types": "^6.18.4",
|
@@ -146,7 +146,7 @@
|
|
146
146
|
"ts-json-schema-generator": "^1.5.0",
|
147
147
|
"undici": "^5.28.4",
|
148
148
|
"update-check": "^1.5.4",
|
149
|
-
"vitest": "
|
149
|
+
"vitest": "~2.0.5",
|
150
150
|
"vitest-websocket-mock": "^0.3.0",
|
151
151
|
"ws": "^8.17.1",
|
152
152
|
"xdg-app-paths": "^8.3.0",
|
@@ -154,8 +154,8 @@
|
|
154
154
|
"yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
|
155
155
|
"@cloudflare/cli": "1.1.1",
|
156
156
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
157
|
-
"@cloudflare/
|
158
|
-
"@cloudflare/
|
157
|
+
"@cloudflare/pages-shared": "^0.11.57",
|
158
|
+
"@cloudflare/workers-tsconfig": "0.0.0"
|
159
159
|
},
|
160
160
|
"peerDependencies": {
|
161
161
|
"@cloudflare/workers-types": "^4.20240909.0"
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -1411,6 +1411,25 @@ declare type DurableObjectBindings = {
|
|
1411
1411
|
environment?: string;
|
1412
1412
|
}[];
|
1413
1413
|
|
1414
|
+
/**
|
1415
|
+
* Configuration in wrangler for Durable Object Migrations
|
1416
|
+
*/
|
1417
|
+
declare type DurableObjectMigration = {
|
1418
|
+
/** A unique identifier for this migration. */
|
1419
|
+
tag: string;
|
1420
|
+
/** The new Durable Objects being defined. */
|
1421
|
+
new_classes?: string[];
|
1422
|
+
/** The new SQLite Durable Objects being defined. */
|
1423
|
+
new_sqlite_classes?: string[];
|
1424
|
+
/** The Durable Objects being renamed. */
|
1425
|
+
renamed_classes?: {
|
1426
|
+
from: string;
|
1427
|
+
to: string;
|
1428
|
+
}[];
|
1429
|
+
/** The Durable Objects being removed. */
|
1430
|
+
deleted_classes?: string[];
|
1431
|
+
};
|
1432
|
+
|
1414
1433
|
declare interface EnablePagesAssetsServiceBindingOptions {
|
1415
1434
|
proxyPort?: number;
|
1416
1435
|
directory?: string;
|
@@ -1575,21 +1594,7 @@ declare interface EnvironmentInheritable {
|
|
1575
1594
|
* @default []
|
1576
1595
|
* @inheritable
|
1577
1596
|
*/
|
1578
|
-
migrations:
|
1579
|
-
/** A unique identifier for this migration. */
|
1580
|
-
tag: string;
|
1581
|
-
/** The new Durable Objects being defined. */
|
1582
|
-
new_classes?: string[];
|
1583
|
-
/** The new SQLite Durable Objects being defined. */
|
1584
|
-
new_sqlite_classes?: string[];
|
1585
|
-
/** The Durable Objects being renamed. */
|
1586
|
-
renamed_classes?: {
|
1587
|
-
from: string;
|
1588
|
-
to: string;
|
1589
|
-
}[];
|
1590
|
-
/** The Durable Objects being removed. */
|
1591
|
-
deleted_classes?: string[];
|
1592
|
-
}[];
|
1597
|
+
migrations: DurableObjectMigration[];
|
1593
1598
|
/**
|
1594
1599
|
* "Cron" definitions to trigger a Worker's "scheduled" function.
|
1595
1600
|
*
|
@@ -25914,6 +25919,7 @@ declare interface StartDevWorkerInput {
|
|
25914
25919
|
env?: string;
|
25915
25920
|
/** The bindings available to the worker. The specified bindind type will be exposed to the worker on the `env` object under the same key. */
|
25916
25921
|
bindings?: Record<string, Binding>;
|
25922
|
+
migrations?: DurableObjectMigration[];
|
25917
25923
|
/** The triggers which will cause the worker's exported default handlers to be called. */
|
25918
25924
|
triggers?: Trigger[];
|
25919
25925
|
/**
|