wrangler 3.74.0 → 3.76.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/README.md +4 -0
- package/config-schema.json +24 -3
- package/package.json +5 -5
- package/wrangler-dist/cli.d.ts +5 -1
- package/wrangler-dist/cli.js +760 -143
package/README.md
CHANGED
@@ -8,6 +8,10 @@
|
|
8
8
|
|
9
9
|
`wrangler` is a command line tool for building [Cloudflare Workers](https://workers.cloudflare.com/).
|
10
10
|
|
11
|
+
> [!WARNING]
|
12
|
+
>
|
13
|
+
> Wrangler v2 is **only receiving critical security updates.** We recommend you [migrate to Wrangler v3](https://developers.cloudflare.com/workers/wrangler/migration/update-v2-to-v3/) if you can.
|
14
|
+
|
11
15
|
## Quick Start
|
12
16
|
|
13
17
|
```bash
|
package/config-schema.json
CHANGED
@@ -489,6 +489,13 @@
|
|
489
489
|
},
|
490
490
|
"type": "array"
|
491
491
|
},
|
492
|
+
"new_sqlite_classes": {
|
493
|
+
"description": "The new SQLite Durable Objects being defined.",
|
494
|
+
"items": {
|
495
|
+
"type": "string"
|
496
|
+
},
|
497
|
+
"type": "array"
|
498
|
+
},
|
492
499
|
"renamed_classes": {
|
493
500
|
"description": "The Durable Objects being renamed.",
|
494
501
|
"items": {
|
@@ -939,7 +946,7 @@
|
|
939
946
|
},
|
940
947
|
"workers_dev": {
|
941
948
|
"default": "`true` (This is a breaking change from Wrangler v1)",
|
942
|
-
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined",
|
949
|
+
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined // warning: you must force \"workers_dev: true\" in tests to match expected behavior",
|
943
950
|
"type": "boolean"
|
944
951
|
},
|
945
952
|
"zone_id": {
|
@@ -1520,6 +1527,13 @@
|
|
1520
1527
|
},
|
1521
1528
|
"type": "array"
|
1522
1529
|
},
|
1530
|
+
"new_sqlite_classes": {
|
1531
|
+
"description": "The new SQLite Durable Objects being defined.",
|
1532
|
+
"items": {
|
1533
|
+
"type": "string"
|
1534
|
+
},
|
1535
|
+
"type": "array"
|
1536
|
+
},
|
1523
1537
|
"renamed_classes": {
|
1524
1538
|
"description": "The Durable Objects being renamed.",
|
1525
1539
|
"items": {
|
@@ -2046,7 +2060,7 @@
|
|
2046
2060
|
},
|
2047
2061
|
"workers_dev": {
|
2048
2062
|
"default": "`true` (This is a breaking change from Wrangler v1)",
|
2049
|
-
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined",
|
2063
|
+
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined // warning: you must force \"workers_dev: true\" in tests to match expected behavior",
|
2050
2064
|
"type": "boolean"
|
2051
2065
|
},
|
2052
2066
|
"zone_id": {
|
@@ -2485,6 +2499,13 @@
|
|
2485
2499
|
},
|
2486
2500
|
"type": "array"
|
2487
2501
|
},
|
2502
|
+
"new_sqlite_classes": {
|
2503
|
+
"description": "The new SQLite Durable Objects being defined.",
|
2504
|
+
"items": {
|
2505
|
+
"type": "string"
|
2506
|
+
},
|
2507
|
+
"type": "array"
|
2508
|
+
},
|
2488
2509
|
"renamed_classes": {
|
2489
2510
|
"description": "The Durable Objects being renamed.",
|
2490
2511
|
"items": {
|
@@ -2935,7 +2956,7 @@
|
|
2935
2956
|
},
|
2936
2957
|
"workers_dev": {
|
2937
2958
|
"default": "`true` (This is a breaking change from Wrangler v1)",
|
2938
|
-
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined",
|
2959
|
+
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined // warning: you must force \"workers_dev: true\" in tests to match expected behavior",
|
2939
2960
|
"type": "boolean"
|
2940
2961
|
},
|
2941
2962
|
"zone_id": {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.76.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -65,9 +65,9 @@
|
|
65
65
|
"unenv": "npm:unenv-nightly@2.0.0-1724863496.70db6f1",
|
66
66
|
"workerd": "1.20240821.1",
|
67
67
|
"xxhash-wasm": "^1.0.1",
|
68
|
-
"@cloudflare/workers-shared": "0.4.1",
|
69
68
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
70
|
-
"miniflare": "3.20240821.
|
69
|
+
"miniflare": "3.20240821.2",
|
70
|
+
"@cloudflare/workers-shared": "0.4.1"
|
71
71
|
},
|
72
72
|
"devDependencies": {
|
73
73
|
"@cloudflare/types": "^6.18.4",
|
@@ -152,9 +152,9 @@
|
|
152
152
|
"xdg-app-paths": "^8.3.0",
|
153
153
|
"yargs": "^17.7.2",
|
154
154
|
"yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
|
155
|
-
"@cloudflare/eslint-config-worker": "1.1.0",
|
156
155
|
"@cloudflare/cli": "1.1.1",
|
157
|
-
"@cloudflare/pages-shared": "^0.11.
|
156
|
+
"@cloudflare/pages-shared": "^0.11.55",
|
157
|
+
"@cloudflare/eslint-config-worker": "1.1.0",
|
158
158
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
159
159
|
},
|
160
160
|
"peerDependencies": {
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -1499,6 +1499,7 @@ declare interface EnvironmentInheritable {
|
|
1499
1499
|
* test and deploy your Worker.
|
1500
1500
|
*
|
1501
1501
|
* // Carmen according to our tests the default is undefined
|
1502
|
+
* // warning: you must force "workers_dev: true" in tests to match expected behavior
|
1502
1503
|
* @default `true` (This is a breaking change from Wrangler v1)
|
1503
1504
|
* @breaking
|
1504
1505
|
* @inheritable
|
@@ -1558,6 +1559,8 @@ declare interface EnvironmentInheritable {
|
|
1558
1559
|
tag: string;
|
1559
1560
|
/** The new Durable Objects being defined. */
|
1560
1561
|
new_classes?: string[];
|
1562
|
+
/** The new SQLite Durable Objects being defined. */
|
1563
|
+
new_sqlite_classes?: string[];
|
1561
1564
|
/** The Durable Objects being renamed. */
|
1562
1565
|
renamed_classes?: {
|
1563
1566
|
from: string;
|
@@ -2828,11 +2831,12 @@ declare interface MultiCacheQueryOptions extends CacheQueryOptions {
|
|
2828
2831
|
/**
|
2829
2832
|
* Wrangler can provide Node.js compatibility in a number of different modes:
|
2830
2833
|
* - "legacy" - this mode adds compile-time polyfills that are not well maintained and cannot work with workerd runtime builtins.
|
2834
|
+
* - "als": this mode tells the workerd runtime to enable only the Async Local Storage builtin library (accessible via `node:async_hooks`).
|
2831
2835
|
* - "v1" - this mode tells the workerd runtime to enable some Node.js builtin libraries (accessible only via `node:...` imports) but no globals.
|
2832
2836
|
* - "v2" - this mode tells the workerd runtime to enable more Node.js builtin libraries (accessible both with and without the `node:` prefix)
|
2833
2837
|
* and also some Node.js globals such as `Buffer`; it also turns on additional compile-time polyfills for those that are not provided by the runtime.
|
2834
2838
|
*/
|
2835
|
-
declare type NodeJSCompatMode = "legacy" | "v1" | "v2" | null;
|
2839
|
+
declare type NodeJSCompatMode = "legacy" | "als" | "v1" | "v2" | null;
|
2836
2840
|
|
2837
2841
|
declare interface PagesConfigFields {
|
2838
2842
|
/**
|