wrangler 0.0.0-ee305dd67 → 0.0.0-ee3ef6414
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 +21 -37
- package/config-schema.json +208 -31
- package/package.json +12 -13
- package/templates/init-tests/test-vitest-new-worker.ts +2 -2
- package/templates/middleware/middleware-patch-console-prefix.d.ts +3 -0
- package/templates/middleware/middleware-patch-console-prefix.ts +21 -0
- package/wrangler-dist/InspectorProxyWorker.js.map +1 -1
- package/wrangler-dist/cli.d.ts +288 -113
- package/wrangler-dist/cli.js +101911 -97612
package/README.md
CHANGED
|
@@ -14,42 +14,32 @@
|
|
|
14
14
|
|
|
15
15
|
## Quick Start
|
|
16
16
|
|
|
17
|
+
To get started quickly with a Hello World worker, run the command below:
|
|
18
|
+
|
|
17
19
|
```bash
|
|
18
|
-
|
|
19
|
-
echo "export default { fetch() { return new Response('hello world') } }" > index.js
|
|
20
|
-
# try it out
|
|
21
|
-
npx wrangler dev index.js
|
|
22
|
-
# and then deploy it
|
|
23
|
-
npx wrangler deploy index.js --name my-worker
|
|
24
|
-
# visit https://my-worker.<your workers subdomain>.workers.dev
|
|
20
|
+
npx wrangler init my-worker -y
|
|
25
21
|
```
|
|
26
22
|
|
|
27
|
-
|
|
23
|
+
For more info, visit our [Getting Started](https://developers.cloudflare.com/workers/get-started/guide/) guide.
|
|
28
24
|
|
|
29
|
-
|
|
30
|
-
# Generate a new project
|
|
31
|
-
npx wrangler init my-worker --no-delegate-c3
|
|
32
|
-
# try it out
|
|
33
|
-
cd my-worker && npm run start
|
|
34
|
-
# and then deploy it
|
|
35
|
-
npm run deploy
|
|
36
|
-
```
|
|
25
|
+
## Documentation
|
|
37
26
|
|
|
38
|
-
|
|
27
|
+
For the latest Wrangler documentation, [click here](https://developers.cloudflare.com/workers/wrangler/).
|
|
39
28
|
|
|
40
|
-
|
|
41
|
-
$ npm install wrangler --save-dev
|
|
42
|
-
```
|
|
29
|
+
To read more about Workers in general:
|
|
43
30
|
|
|
44
|
-
|
|
31
|
+
- [Getting Started](https://developers.cloudflare.com/workers/get-started/guide/)
|
|
32
|
+
- [How Workers works](https://developers.cloudflare.com/workers/reference/how-workers-works/)
|
|
33
|
+
- [Observability](https://developers.cloudflare.com/workers/observability/)
|
|
34
|
+
- [Platform](https://developers.cloudflare.com/workers/platform/)
|
|
45
35
|
|
|
46
|
-
|
|
36
|
+
## Configuration
|
|
47
37
|
|
|
48
|
-
|
|
38
|
+
Wrangler is configured via a `wrangler.toml` or `wrangler.json` file in the project root. An example configuration generated by `npx wrangler init` or `npx create cloudflare` is as follows:
|
|
49
39
|
|
|
50
40
|
```toml
|
|
51
41
|
name = "my-worker"
|
|
52
|
-
main = "./src/index.ts"
|
|
42
|
+
main = "./src/index.ts"
|
|
53
43
|
compatibility_date = "YYYY-MM-DD"
|
|
54
44
|
```
|
|
55
45
|
|
|
@@ -57,30 +47,24 @@ For more detailed information about configuration, refer to the [documentation](
|
|
|
57
47
|
|
|
58
48
|
## Commands
|
|
59
49
|
|
|
60
|
-
###
|
|
61
|
-
|
|
62
|
-
Creates a Worker project. For details on configuration keys and values, refer to the [documentation](https://developers.cloudflare.com/workers/wrangler/commands/#init).
|
|
50
|
+
### Workers
|
|
63
51
|
|
|
64
|
-
|
|
52
|
+
#### `wrangler dev`
|
|
65
53
|
|
|
66
54
|
Start a local development server, with live reloading and devtools.
|
|
67
55
|
|
|
68
|
-
|
|
56
|
+
#### `wrangler deploy`
|
|
69
57
|
|
|
70
|
-
Publish the given script to
|
|
58
|
+
Publish the given script to Cloudflare's global network.
|
|
71
59
|
|
|
72
60
|
For more commands and options, refer to the [documentation](https://developers.cloudflare.com/workers/wrangler/commands/).
|
|
73
61
|
|
|
74
|
-
|
|
62
|
+
### Pages
|
|
75
63
|
|
|
76
|
-
|
|
64
|
+
#### `wrangler pages dev [directory]`
|
|
77
65
|
|
|
78
|
-
|
|
66
|
+
Serves a static build asset directory.
|
|
79
67
|
|
|
80
68
|
Builds and runs functions from a `./functions` directory or uses a `_worker.js` file inside the static build asset directory.
|
|
81
69
|
|
|
82
70
|
For more commands and options, refer to the [documentation](https://developers.cloudflare.com/pages/platform/functions#develop-and-preview-locally) or run `wrangler pages dev --help`.
|
|
83
|
-
|
|
84
|
-
## Documentation
|
|
85
|
-
|
|
86
|
-
For the latest Wrangler documentation, [click here](https://developers.cloudflare.com/workers/wrangler/).
|
package/config-schema.json
CHANGED
|
@@ -6,13 +6,19 @@
|
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"properties": {
|
|
8
8
|
"binding": {
|
|
9
|
+
"description": "Name of `env` binding property in the User Worker.",
|
|
9
10
|
"type": "string"
|
|
10
11
|
},
|
|
11
12
|
"directory": {
|
|
12
13
|
"description": "Absolute path to assets directory",
|
|
13
14
|
"type": "string"
|
|
14
15
|
},
|
|
16
|
+
"experimental_serve_directly": {
|
|
17
|
+
"description": "If true, then respond to requests that match an asset with that asset directly. If false, route every request to the User Worker, whether or not it matches an asset.",
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
15
20
|
"html_handling": {
|
|
21
|
+
"description": "How to handle HTML requests.",
|
|
16
22
|
"enum": [
|
|
17
23
|
"auto-trailing-slash",
|
|
18
24
|
"force-trailing-slash",
|
|
@@ -22,6 +28,7 @@
|
|
|
22
28
|
"type": "string"
|
|
23
29
|
},
|
|
24
30
|
"not_found_handling": {
|
|
31
|
+
"description": "How to handle requests that do not match an asset.",
|
|
25
32
|
"enum": [
|
|
26
33
|
"single-page-application",
|
|
27
34
|
"404-page",
|
|
@@ -30,9 +37,6 @@
|
|
|
30
37
|
"type": "string"
|
|
31
38
|
}
|
|
32
39
|
},
|
|
33
|
-
"required": [
|
|
34
|
-
"directory"
|
|
35
|
-
],
|
|
36
40
|
"type": "object"
|
|
37
41
|
},
|
|
38
42
|
"CloudchamberConfig": {
|
|
@@ -71,6 +75,107 @@
|
|
|
71
75
|
],
|
|
72
76
|
"type": "string"
|
|
73
77
|
},
|
|
78
|
+
"ContainerApp": {
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"description": "Configuration for a container application",
|
|
81
|
+
"properties": {
|
|
82
|
+
"configuration": {
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"properties": {
|
|
85
|
+
"image": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"labels": {
|
|
89
|
+
"items": {
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"properties": {
|
|
92
|
+
"name": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"value": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": [
|
|
100
|
+
"name",
|
|
101
|
+
"value"
|
|
102
|
+
],
|
|
103
|
+
"type": "object"
|
|
104
|
+
},
|
|
105
|
+
"type": "array"
|
|
106
|
+
},
|
|
107
|
+
"secrets": {
|
|
108
|
+
"items": {
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"properties": {
|
|
111
|
+
"name": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"secret": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
"type": {
|
|
118
|
+
"const": "env",
|
|
119
|
+
"type": "string"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"required": [
|
|
123
|
+
"name",
|
|
124
|
+
"type",
|
|
125
|
+
"secret"
|
|
126
|
+
],
|
|
127
|
+
"type": "object"
|
|
128
|
+
},
|
|
129
|
+
"type": "array"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"required": [
|
|
133
|
+
"image"
|
|
134
|
+
],
|
|
135
|
+
"type": "object"
|
|
136
|
+
},
|
|
137
|
+
"constraints": {
|
|
138
|
+
"additionalProperties": false,
|
|
139
|
+
"properties": {
|
|
140
|
+
"cities": {
|
|
141
|
+
"items": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"type": "array"
|
|
145
|
+
},
|
|
146
|
+
"regions": {
|
|
147
|
+
"items": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"type": "array"
|
|
151
|
+
},
|
|
152
|
+
"tier": {
|
|
153
|
+
"type": "number"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"type": "object"
|
|
157
|
+
},
|
|
158
|
+
"instances": {
|
|
159
|
+
"type": "number"
|
|
160
|
+
},
|
|
161
|
+
"name": {
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
"scheduling_policy": {
|
|
165
|
+
"enum": [
|
|
166
|
+
"regional",
|
|
167
|
+
"moon"
|
|
168
|
+
],
|
|
169
|
+
"type": "string"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"required": [
|
|
173
|
+
"name",
|
|
174
|
+
"instances",
|
|
175
|
+
"configuration"
|
|
176
|
+
],
|
|
177
|
+
"type": "object"
|
|
178
|
+
},
|
|
74
179
|
"CustomDomainRoute": {
|
|
75
180
|
"additionalProperties": false,
|
|
76
181
|
"properties": {
|
|
@@ -93,7 +198,7 @@
|
|
|
93
198
|
"properties": {
|
|
94
199
|
"dir": {
|
|
95
200
|
"deprecated": true,
|
|
96
|
-
"description": "The directory you wish to upload your Worker from, relative to the
|
|
201
|
+
"description": "The directory you wish to upload your Worker from, relative to the Wrangler configuration file.\n\nDefaults to the directory containing the Wrangler configuration file.",
|
|
97
202
|
"type": "string"
|
|
98
203
|
},
|
|
99
204
|
"format": {
|
|
@@ -348,6 +453,24 @@
|
|
|
348
453
|
},
|
|
349
454
|
"type": "array"
|
|
350
455
|
},
|
|
456
|
+
"containers": {
|
|
457
|
+
"additionalProperties": false,
|
|
458
|
+
"description": "Container related configuration",
|
|
459
|
+
"properties": {
|
|
460
|
+
"app": {
|
|
461
|
+
"default": "`{}`",
|
|
462
|
+
"description": "Container app configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
463
|
+
"items": {
|
|
464
|
+
"$ref": "#/definitions/ContainerApp"
|
|
465
|
+
},
|
|
466
|
+
"type": "array"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"required": [
|
|
470
|
+
"app"
|
|
471
|
+
],
|
|
472
|
+
"type": "object"
|
|
473
|
+
},
|
|
351
474
|
"d1_databases": {
|
|
352
475
|
"default": "`[]`",
|
|
353
476
|
"description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
@@ -384,9 +507,7 @@
|
|
|
384
507
|
}
|
|
385
508
|
},
|
|
386
509
|
"required": [
|
|
387
|
-
"binding"
|
|
388
|
-
"database_name",
|
|
389
|
-
"database_id"
|
|
510
|
+
"binding"
|
|
390
511
|
],
|
|
391
512
|
"type": "object"
|
|
392
513
|
},
|
|
@@ -506,8 +627,7 @@
|
|
|
506
627
|
}
|
|
507
628
|
},
|
|
508
629
|
"required": [
|
|
509
|
-
"binding"
|
|
510
|
-
"id"
|
|
630
|
+
"binding"
|
|
511
631
|
],
|
|
512
632
|
"type": "object"
|
|
513
633
|
},
|
|
@@ -655,6 +775,11 @@
|
|
|
655
775
|
"description": "Determines whether Wrangler will preserve bundled file names. Defaults to false. If left unset, files will be named using the pattern ${fileHash}-${basename}, for example, `34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico`.",
|
|
656
776
|
"type": "boolean"
|
|
657
777
|
},
|
|
778
|
+
"preview_urls": {
|
|
779
|
+
"default": "`true`",
|
|
780
|
+
"description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
|
|
781
|
+
"type": "boolean"
|
|
782
|
+
},
|
|
658
783
|
"queues": {
|
|
659
784
|
"additionalProperties": false,
|
|
660
785
|
"default": "`{consumers:[],producers:[]}`",
|
|
@@ -765,8 +890,7 @@
|
|
|
765
890
|
}
|
|
766
891
|
},
|
|
767
892
|
"required": [
|
|
768
|
-
"binding"
|
|
769
|
-
"bucket_name"
|
|
893
|
+
"binding"
|
|
770
894
|
],
|
|
771
895
|
"type": "object"
|
|
772
896
|
},
|
|
@@ -1034,6 +1158,7 @@
|
|
|
1034
1158
|
"build",
|
|
1035
1159
|
"cloudchamber",
|
|
1036
1160
|
"compatibility_flags",
|
|
1161
|
+
"containers",
|
|
1037
1162
|
"d1_databases",
|
|
1038
1163
|
"define",
|
|
1039
1164
|
"dispatch_namespaces",
|
|
@@ -1090,11 +1215,25 @@
|
|
|
1090
1215
|
"head_sampling_rate": {
|
|
1091
1216
|
"description": "The sampling rate",
|
|
1092
1217
|
"type": "number"
|
|
1218
|
+
},
|
|
1219
|
+
"logs": {
|
|
1220
|
+
"additionalProperties": false,
|
|
1221
|
+
"properties": {
|
|
1222
|
+
"enabled": {
|
|
1223
|
+
"type": "boolean"
|
|
1224
|
+
},
|
|
1225
|
+
"head_sampling_rate": {
|
|
1226
|
+
"description": "The sampling rate",
|
|
1227
|
+
"type": "number"
|
|
1228
|
+
},
|
|
1229
|
+
"invocation_logs": {
|
|
1230
|
+
"description": "Set to false to disable invocation logs",
|
|
1231
|
+
"type": "boolean"
|
|
1232
|
+
}
|
|
1233
|
+
},
|
|
1234
|
+
"type": "object"
|
|
1093
1235
|
}
|
|
1094
1236
|
},
|
|
1095
|
-
"required": [
|
|
1096
|
-
"enabled"
|
|
1097
|
-
],
|
|
1098
1237
|
"type": "object"
|
|
1099
1238
|
},
|
|
1100
1239
|
"RawConfig": {
|
|
@@ -1232,6 +1371,24 @@
|
|
|
1232
1371
|
"configPath": {
|
|
1233
1372
|
"type": "string"
|
|
1234
1373
|
},
|
|
1374
|
+
"containers": {
|
|
1375
|
+
"additionalProperties": false,
|
|
1376
|
+
"description": "Container related configuration",
|
|
1377
|
+
"properties": {
|
|
1378
|
+
"app": {
|
|
1379
|
+
"default": "`{}`",
|
|
1380
|
+
"description": "Container app configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1381
|
+
"items": {
|
|
1382
|
+
"$ref": "#/definitions/ContainerApp"
|
|
1383
|
+
},
|
|
1384
|
+
"type": "array"
|
|
1385
|
+
}
|
|
1386
|
+
},
|
|
1387
|
+
"required": [
|
|
1388
|
+
"app"
|
|
1389
|
+
],
|
|
1390
|
+
"type": "object"
|
|
1391
|
+
},
|
|
1235
1392
|
"d1_databases": {
|
|
1236
1393
|
"default": "`[]`",
|
|
1237
1394
|
"description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
@@ -1268,9 +1425,7 @@
|
|
|
1268
1425
|
}
|
|
1269
1426
|
},
|
|
1270
1427
|
"required": [
|
|
1271
|
-
"binding"
|
|
1272
|
-
"database_name",
|
|
1273
|
-
"database_id"
|
|
1428
|
+
"binding"
|
|
1274
1429
|
],
|
|
1275
1430
|
"type": "object"
|
|
1276
1431
|
},
|
|
@@ -1420,7 +1575,7 @@
|
|
|
1420
1575
|
},
|
|
1421
1576
|
"keep_vars": {
|
|
1422
1577
|
"default": false,
|
|
1423
|
-
"description": "By default,
|
|
1578
|
+
"description": "By default, the Wrangler configuration file is the source of truth for your environment configuration, like a terraform file.\n\nIf you change your vars in the dashboard, wrangler *will* override/delete them on its next deploy.\n\nIf you want to keep your dashboard vars when wrangler deploys, set this field to true.",
|
|
1424
1579
|
"type": "boolean"
|
|
1425
1580
|
},
|
|
1426
1581
|
"kv-namespaces": {
|
|
@@ -1448,8 +1603,7 @@
|
|
|
1448
1603
|
}
|
|
1449
1604
|
},
|
|
1450
1605
|
"required": [
|
|
1451
|
-
"binding"
|
|
1452
|
-
"id"
|
|
1606
|
+
"binding"
|
|
1453
1607
|
],
|
|
1454
1608
|
"type": "object"
|
|
1455
1609
|
},
|
|
@@ -1600,7 +1754,7 @@
|
|
|
1600
1754
|
"description": "Specify the observability behavior of the Worker."
|
|
1601
1755
|
},
|
|
1602
1756
|
"pages_build_output_dir": {
|
|
1603
|
-
"description": "The directory of static assets to serve.\n\nThe presence of this field in
|
|
1757
|
+
"description": "The directory of static assets to serve.\n\nThe presence of this field in a Wrangler configuration file indicates a Pages project, and will prompt the handling of the configuration file according to the Pages-specific validation rules.",
|
|
1604
1758
|
"type": "string"
|
|
1605
1759
|
},
|
|
1606
1760
|
"pipelines": {
|
|
@@ -1650,6 +1804,11 @@
|
|
|
1650
1804
|
"description": "Determines whether Wrangler will preserve bundled file names. Defaults to false. If left unset, files will be named using the pattern ${fileHash}-${basename}, for example, `34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico`.",
|
|
1651
1805
|
"type": "boolean"
|
|
1652
1806
|
},
|
|
1807
|
+
"preview_urls": {
|
|
1808
|
+
"default": "`true`",
|
|
1809
|
+
"description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
|
|
1810
|
+
"type": "boolean"
|
|
1811
|
+
},
|
|
1653
1812
|
"queues": {
|
|
1654
1813
|
"additionalProperties": false,
|
|
1655
1814
|
"default": "`{consumers:[],producers:[]}`",
|
|
@@ -1760,8 +1919,7 @@
|
|
|
1760
1919
|
}
|
|
1761
1920
|
},
|
|
1762
1921
|
"required": [
|
|
1763
|
-
"binding"
|
|
1764
|
-
"bucket_name"
|
|
1922
|
+
"binding"
|
|
1765
1923
|
],
|
|
1766
1924
|
"type": "object"
|
|
1767
1925
|
},
|
|
@@ -1854,7 +2012,7 @@
|
|
|
1854
2012
|
"description": "The definition of a Worker Site, a feature that lets you upload static assets with your Worker.\n\nMore details at https://developers.cloudflare.com/workers/platform/sites",
|
|
1855
2013
|
"properties": {
|
|
1856
2014
|
"bucket": {
|
|
1857
|
-
"description": "The directory containing your static assets.\n\nIt must be a path relative to your
|
|
2015
|
+
"description": "The directory containing your static assets.\n\nIt must be a path relative to your Wrangler configuration file. Example: bucket = \"./public\"\n\nIf there is a `site` field then it must contain this `bucket` field.",
|
|
1858
2016
|
"type": "string"
|
|
1859
2017
|
},
|
|
1860
2018
|
"entry-point": {
|
|
@@ -2260,6 +2418,24 @@
|
|
|
2260
2418
|
},
|
|
2261
2419
|
"type": "array"
|
|
2262
2420
|
},
|
|
2421
|
+
"containers": {
|
|
2422
|
+
"additionalProperties": false,
|
|
2423
|
+
"description": "Container related configuration",
|
|
2424
|
+
"properties": {
|
|
2425
|
+
"app": {
|
|
2426
|
+
"default": "`{}`",
|
|
2427
|
+
"description": "Container app configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2428
|
+
"items": {
|
|
2429
|
+
"$ref": "#/definitions/ContainerApp"
|
|
2430
|
+
},
|
|
2431
|
+
"type": "array"
|
|
2432
|
+
}
|
|
2433
|
+
},
|
|
2434
|
+
"required": [
|
|
2435
|
+
"app"
|
|
2436
|
+
],
|
|
2437
|
+
"type": "object"
|
|
2438
|
+
},
|
|
2263
2439
|
"d1_databases": {
|
|
2264
2440
|
"default": "`[]`",
|
|
2265
2441
|
"description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
@@ -2296,9 +2472,7 @@
|
|
|
2296
2472
|
}
|
|
2297
2473
|
},
|
|
2298
2474
|
"required": [
|
|
2299
|
-
"binding"
|
|
2300
|
-
"database_name",
|
|
2301
|
-
"database_id"
|
|
2475
|
+
"binding"
|
|
2302
2476
|
],
|
|
2303
2477
|
"type": "object"
|
|
2304
2478
|
},
|
|
@@ -2452,8 +2626,7 @@
|
|
|
2452
2626
|
}
|
|
2453
2627
|
},
|
|
2454
2628
|
"required": [
|
|
2455
|
-
"binding"
|
|
2456
|
-
"id"
|
|
2629
|
+
"binding"
|
|
2457
2630
|
],
|
|
2458
2631
|
"type": "object"
|
|
2459
2632
|
},
|
|
@@ -2601,6 +2774,11 @@
|
|
|
2601
2774
|
"description": "Determines whether Wrangler will preserve bundled file names. Defaults to false. If left unset, files will be named using the pattern ${fileHash}-${basename}, for example, `34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico`.",
|
|
2602
2775
|
"type": "boolean"
|
|
2603
2776
|
},
|
|
2777
|
+
"preview_urls": {
|
|
2778
|
+
"default": "`true`",
|
|
2779
|
+
"description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
|
|
2780
|
+
"type": "boolean"
|
|
2781
|
+
},
|
|
2604
2782
|
"queues": {
|
|
2605
2783
|
"additionalProperties": false,
|
|
2606
2784
|
"default": "`{consumers:[],producers:[]}`",
|
|
@@ -2711,8 +2889,7 @@
|
|
|
2711
2889
|
}
|
|
2712
2890
|
},
|
|
2713
2891
|
"required": [
|
|
2714
|
-
"binding"
|
|
2715
|
-
"bucket_name"
|
|
2892
|
+
"binding"
|
|
2716
2893
|
],
|
|
2717
2894
|
"type": "object"
|
|
2718
2895
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-ee3ef6414",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wrangler",
|
|
@@ -53,26 +53,24 @@
|
|
|
53
53
|
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
|
54
54
|
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
|
55
55
|
"blake3-wasm": "^2.1.5",
|
|
56
|
-
"chokidar": "^
|
|
56
|
+
"chokidar": "^4.0.1",
|
|
57
57
|
"date-fns": "^4.1.0",
|
|
58
58
|
"esbuild": "0.17.19",
|
|
59
59
|
"itty-time": "^1.0.6",
|
|
60
60
|
"nanoid": "^3.3.3",
|
|
61
61
|
"path-to-regexp": "^6.3.0",
|
|
62
62
|
"resolve": "^1.22.8",
|
|
63
|
-
"resolve.exports": "^2.0.2",
|
|
64
63
|
"selfsigned": "^2.0.1",
|
|
65
64
|
"source-map": "^0.6.1",
|
|
66
|
-
"unenv": "npm:unenv-nightly@2.0.0-
|
|
67
|
-
"workerd": "1.
|
|
65
|
+
"unenv": "npm:unenv-nightly@2.0.0-20241204-140205-a5d5190",
|
|
66
|
+
"workerd": "1.20241205.0",
|
|
68
67
|
"xxhash-wasm": "^1.0.1",
|
|
69
68
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
|
70
|
-
"miniflare": "0.0.0-
|
|
71
|
-
"@cloudflare/workers-shared": "0.0.0-ee305dd67"
|
|
69
|
+
"miniflare": "0.0.0-ee3ef6414"
|
|
72
70
|
},
|
|
73
71
|
"devDependencies": {
|
|
74
72
|
"@cloudflare/types": "6.18.4",
|
|
75
|
-
"@cloudflare/workers-types": "^4.
|
|
73
|
+
"@cloudflare/workers-types": "^4.20241205.0",
|
|
76
74
|
"@cspotcode/source-map-support": "0.8.1",
|
|
77
75
|
"@iarna/toml": "^3.0.0",
|
|
78
76
|
"@microsoft/api-extractor": "^7.47.0",
|
|
@@ -94,7 +92,7 @@
|
|
|
94
92
|
"@types/supports-color": "^8.1.1",
|
|
95
93
|
"@types/ws": "^8.5.7",
|
|
96
94
|
"@types/yargs": "^17.0.22",
|
|
97
|
-
"@vitest/ui": "~2.1.
|
|
95
|
+
"@vitest/ui": "~2.1.8",
|
|
98
96
|
"@webcontainer/env": "^1.1.0",
|
|
99
97
|
"body-parser": "^1.20.0",
|
|
100
98
|
"chalk": "^5.2.0",
|
|
@@ -134,18 +132,19 @@
|
|
|
134
132
|
"ts-json-schema-generator": "^1.5.0",
|
|
135
133
|
"undici": "^5.28.4",
|
|
136
134
|
"update-check": "^1.5.4",
|
|
137
|
-
"vitest": "~2.1.
|
|
135
|
+
"vitest": "~2.1.8",
|
|
138
136
|
"vitest-websocket-mock": "^0.4.0",
|
|
139
137
|
"ws": "^8.18.0",
|
|
140
138
|
"xdg-app-paths": "^8.3.0",
|
|
141
139
|
"yargs": "^17.7.2",
|
|
142
140
|
"@cloudflare/cli": "1.1.1",
|
|
141
|
+
"@cloudflare/workers-shared": "0.0.0-ee3ef6414",
|
|
143
142
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
|
144
|
-
"@cloudflare/
|
|
145
|
-
"@cloudflare/
|
|
143
|
+
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
144
|
+
"@cloudflare/pages-shared": "^0.11.71"
|
|
146
145
|
},
|
|
147
146
|
"peerDependencies": {
|
|
148
|
-
"@cloudflare/workers-types": "^4.
|
|
147
|
+
"@cloudflare/workers-types": "^4.20241205.0"
|
|
149
148
|
},
|
|
150
149
|
"peerDependenciesMeta": {
|
|
151
150
|
"@cloudflare/workers-types": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
|
2
2
|
import { unstable_dev } from "wrangler";
|
|
3
|
-
import type {
|
|
3
|
+
import type { Unstable_DevWorker } from "wrangler";
|
|
4
4
|
|
|
5
5
|
describe("Worker", () => {
|
|
6
|
-
let worker:
|
|
6
|
+
let worker: Unstable_DevWorker;
|
|
7
7
|
|
|
8
8
|
beforeAll(async () => {
|
|
9
9
|
worker = await unstable_dev("src/index.ts", {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference path="middleware-patch-console-prefix.d.ts"/>
|
|
2
|
+
|
|
3
|
+
import { prefix } from "config:middleware/patch-console-prefix";
|
|
4
|
+
import type { Middleware } from "./common";
|
|
5
|
+
|
|
6
|
+
// @ts-expect-error globalThis.console _does_ exist
|
|
7
|
+
globalThis.console = new Proxy(globalThis.console, {
|
|
8
|
+
get(target, p, receiver) {
|
|
9
|
+
if (p === "log" || p === "debug" || p === "info") {
|
|
10
|
+
return (...args: unknown[]) =>
|
|
11
|
+
Reflect.get(target, p, receiver)(prefix, ...args);
|
|
12
|
+
}
|
|
13
|
+
return Reflect.get(target, p, receiver);
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const passthrough: Middleware = (request, env, _ctx, middlewareCtx) => {
|
|
18
|
+
return middlewareCtx.next(request, env);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default passthrough;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../templates/startDevWorker/InspectorProxyWorker.ts", "../src/api/startDevWorker/events.ts", "../src/api/startDevWorker/utils.ts"],
|
|
4
|
-
"mappings": ";AAAA,OAAOA,aAAY;;;
|
|
4
|
+
"mappings": ";AAAA,OAAOA,aAAY;;;ACiIZ,SAAS,eAAe,GAA6B;AAC3D,MAAI,aAAa,OAAO;AACvB,WAAO;AAAA,MACN,SAAS,EAAE;AAAA,MACX,MAAM,EAAE;AAAA,MACR,OAAO,EAAE;AAAA,MACT,OAAO,EAAE,SAAS,eAAe,EAAE,KAAK;AAAA,IACzC;AAAA,EACD,OAAO;AACN,WAAO,EAAE,SAAS,OAAO,CAAC,EAAE;AAAA,EAC7B;AACD;;;AC5IA,OAAO,YAAY;AAoBZ,SAAS,eACf,kBACqB;AACrB,MAAI,SAAS;AACb,QAAM,aAAa,IAAI,QAAW,CAAC,UAAU,YAAY;AACxD,cAAU;AACV,aAAS;AAAA,EACV,CAAC;AACD,SAAO,OAAO;AACd,SAAO,MAAM;AAIb,oBAAkB,QAAQ,UAAU;AAEpC,SAAO;AAAA,IACN,SAAS;AAAA,IACT;AAAA,IACA;AAAA,EACD;AACD;AAEO,SAAS,YAAY,QAAe;AAAC;AAErC,SAAS,aACf,OACA,OAAO,oBACD;AACN,QAAM,MAAM,IAAI,IAAI,IAAI;AAExB,SAAO,OAAO,KAAK,KAAK;AAExB,SAAO;AACR;;;AF9BA,IAAM,yBAAyB,CAAC,aAAa,SAAS,WAAW;AACjE,IAAM,2BAA2B;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AASA,IAAO,+BAAQ;AAAA,EACd,MAAM,KAAK,KAAK;AACf,UAAM,YAAY,IAAI,eAAe,WAAW,EAAE;AAClD,UAAM,iBAAiB,IA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