wrangler 0.0.0-bd306d705 → 0.0.0-bd66d511a
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 +97 -86
- package/package.json +17 -17
- package/wrangler-dist/cli.d.ts +158 -119
- package/wrangler-dist/cli.js +28931 -28657
package/config-schema.json
CHANGED
|
@@ -2,6 +2,39 @@
|
|
|
2
2
|
"$ref": "#/definitions/RawConfig",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"definitions": {
|
|
5
|
+
"Assets": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"binding": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"directory": {
|
|
12
|
+
"description": "Absolute path to assets directory",
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"html_handling": {
|
|
16
|
+
"enum": [
|
|
17
|
+
"auto-trailing-slash",
|
|
18
|
+
"force-trailing-slash",
|
|
19
|
+
"drop-trailing-slash",
|
|
20
|
+
"none"
|
|
21
|
+
],
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"not_found_handling": {
|
|
25
|
+
"enum": [
|
|
26
|
+
"single-page-application",
|
|
27
|
+
"404-page",
|
|
28
|
+
"none"
|
|
29
|
+
],
|
|
30
|
+
"type": "string"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"directory"
|
|
35
|
+
],
|
|
36
|
+
"type": "object"
|
|
37
|
+
},
|
|
5
38
|
"CloudchamberConfig": {
|
|
6
39
|
"additionalProperties": false,
|
|
7
40
|
"description": "Configuration in wrangler for Cloudchamber",
|
|
@@ -239,6 +272,10 @@
|
|
|
239
272
|
},
|
|
240
273
|
"type": "array"
|
|
241
274
|
},
|
|
275
|
+
"assets": {
|
|
276
|
+
"$ref": "#/definitions/Assets",
|
|
277
|
+
"description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
|
|
278
|
+
},
|
|
242
279
|
"base_dir": {
|
|
243
280
|
"description": "The directory in which module rules should be evaluated when including additional files into a Worker deployment. This defaults to the directory containing the `main` entry point of the Worker if not specified.",
|
|
244
281
|
"type": "string"
|
|
@@ -404,10 +441,6 @@
|
|
|
404
441
|
],
|
|
405
442
|
"type": "object"
|
|
406
443
|
},
|
|
407
|
-
"experimental_assets": {
|
|
408
|
-
"$ref": "#/definitions/ExperimentalAssets",
|
|
409
|
-
"description": "Specify the directory of static assets to deploy/serve"
|
|
410
|
-
},
|
|
411
444
|
"find_additional_modules": {
|
|
412
445
|
"description": "If true then Wrangler will traverse the file tree below `base_dir`; Any files that match `rules` will be included in the deployed Worker. Defaults to true if `no_bundle` is true, otherwise false.",
|
|
413
446
|
"type": "boolean"
|
|
@@ -983,6 +1016,14 @@
|
|
|
983
1016
|
"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",
|
|
984
1017
|
"type": "boolean"
|
|
985
1018
|
},
|
|
1019
|
+
"workflows": {
|
|
1020
|
+
"default": "`[]`",
|
|
1021
|
+
"description": "A list of workflows that your Worker should be bound to.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1022
|
+
"items": {
|
|
1023
|
+
"$ref": "#/definitions/WorkflowBinding"
|
|
1024
|
+
},
|
|
1025
|
+
"type": "array"
|
|
1026
|
+
},
|
|
986
1027
|
"zone_id": {
|
|
987
1028
|
"description": "TODO: remove this as it has been deprecated.\n\nThis is just here for now because the `route` commands use it. So we need to include it in this type so it is available.",
|
|
988
1029
|
"type": "string"
|
|
@@ -1012,40 +1053,8 @@
|
|
|
1012
1053
|
"triggers",
|
|
1013
1054
|
"unsafe",
|
|
1014
1055
|
"vars",
|
|
1015
|
-
"vectorize"
|
|
1016
|
-
|
|
1017
|
-
"type": "object"
|
|
1018
|
-
},
|
|
1019
|
-
"ExperimentalAssets": {
|
|
1020
|
-
"additionalProperties": false,
|
|
1021
|
-
"properties": {
|
|
1022
|
-
"binding": {
|
|
1023
|
-
"type": "string"
|
|
1024
|
-
},
|
|
1025
|
-
"directory": {
|
|
1026
|
-
"description": "Absolute path to assets directory",
|
|
1027
|
-
"type": "string"
|
|
1028
|
-
},
|
|
1029
|
-
"html_handling": {
|
|
1030
|
-
"enum": [
|
|
1031
|
-
"auto-trailing-slash",
|
|
1032
|
-
"force-trailing-slash",
|
|
1033
|
-
"drop-trailing-slash",
|
|
1034
|
-
"none"
|
|
1035
|
-
],
|
|
1036
|
-
"type": "string"
|
|
1037
|
-
},
|
|
1038
|
-
"not_found_handling": {
|
|
1039
|
-
"enum": [
|
|
1040
|
-
"single-page-application",
|
|
1041
|
-
"404-page",
|
|
1042
|
-
"none"
|
|
1043
|
-
],
|
|
1044
|
-
"type": "string"
|
|
1045
|
-
}
|
|
1046
|
-
},
|
|
1047
|
-
"required": [
|
|
1048
|
-
"directory"
|
|
1056
|
+
"vectorize",
|
|
1057
|
+
"workflows"
|
|
1049
1058
|
],
|
|
1050
1059
|
"type": "object"
|
|
1051
1060
|
},
|
|
@@ -1145,45 +1154,8 @@
|
|
|
1145
1154
|
"type": "array"
|
|
1146
1155
|
},
|
|
1147
1156
|
"assets": {
|
|
1148
|
-
"
|
|
1149
|
-
|
|
1150
|
-
"additionalProperties": false,
|
|
1151
|
-
"properties": {
|
|
1152
|
-
"browser_TTL": {
|
|
1153
|
-
"type": "number"
|
|
1154
|
-
},
|
|
1155
|
-
"bucket": {
|
|
1156
|
-
"type": "string"
|
|
1157
|
-
},
|
|
1158
|
-
"exclude": {
|
|
1159
|
-
"items": {
|
|
1160
|
-
"type": "string"
|
|
1161
|
-
},
|
|
1162
|
-
"type": "array"
|
|
1163
|
-
},
|
|
1164
|
-
"include": {
|
|
1165
|
-
"items": {
|
|
1166
|
-
"type": "string"
|
|
1167
|
-
},
|
|
1168
|
-
"type": "array"
|
|
1169
|
-
},
|
|
1170
|
-
"serve_single_page_app": {
|
|
1171
|
-
"type": "boolean"
|
|
1172
|
-
}
|
|
1173
|
-
},
|
|
1174
|
-
"required": [
|
|
1175
|
-
"bucket",
|
|
1176
|
-
"include",
|
|
1177
|
-
"exclude",
|
|
1178
|
-
"serve_single_page_app"
|
|
1179
|
-
],
|
|
1180
|
-
"type": "object"
|
|
1181
|
-
},
|
|
1182
|
-
{
|
|
1183
|
-
"type": "string"
|
|
1184
|
-
}
|
|
1185
|
-
],
|
|
1186
|
-
"description": "Serve a folder of static assets with your Worker, without any additional code. This can either be a string, or an object with additional config fields. Only one of assets and legacy_assets can be used."
|
|
1157
|
+
"$ref": "#/definitions/Assets",
|
|
1158
|
+
"description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
|
|
1187
1159
|
},
|
|
1188
1160
|
"base_dir": {
|
|
1189
1161
|
"description": "The directory in which module rules should be evaluated when including additional files into a Worker deployment. This defaults to the directory containing the `main` entry point of the Worker if not specified.",
|
|
@@ -1372,10 +1344,6 @@
|
|
|
1372
1344
|
"description": "The `env` section defines overrides for the configuration for different environments.\n\nAll environment fields can be specified at the top level of the config indicating the default environment settings.\n\n- Some fields are inherited and overridable in each environment.\n- But some are not inherited and must be explicitly specified in every environment, if they are specified at the top level.\n\nFor more information, see the documentation at https://developers.cloudflare.com/workers/cli-wrangler/configuration#environments",
|
|
1373
1345
|
"type": "object"
|
|
1374
1346
|
},
|
|
1375
|
-
"experimental_assets": {
|
|
1376
|
-
"$ref": "#/definitions/ExperimentalAssets",
|
|
1377
|
-
"description": "Specify the directory of static assets to deploy/serve"
|
|
1378
|
-
},
|
|
1379
1347
|
"experimental_services": {
|
|
1380
1348
|
"default": "`[]`",
|
|
1381
1349
|
"deprecated": "DO NOT USE. We'd added this to test the new service binding system, but the proper way to test experimental features is to use `unsafe.bindings` configuration.",
|
|
@@ -1526,7 +1494,7 @@
|
|
|
1526
1494
|
"type": "string"
|
|
1527
1495
|
}
|
|
1528
1496
|
],
|
|
1529
|
-
"description": "
|
|
1497
|
+
"description": "Old behaviour of serving a folder of static assets with your Worker, without any additional code. This can either be a string, or an object with additional config fields. Will be deprecated in the near future in favor of `assets`."
|
|
1530
1498
|
},
|
|
1531
1499
|
"legacy_env": {
|
|
1532
1500
|
"description": "A boolean to enable \"legacy\" style wrangler environments (from Wrangler v1). These have been superseded by Services, but there may be projects that won't (or can't) use them. If you're using a legacy environment, you can set this to `true` to enable it.",
|
|
@@ -2111,6 +2079,14 @@
|
|
|
2111
2079
|
"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",
|
|
2112
2080
|
"type": "boolean"
|
|
2113
2081
|
},
|
|
2082
|
+
"workflows": {
|
|
2083
|
+
"default": "`[]`",
|
|
2084
|
+
"description": "A list of workflows that your Worker should be bound to.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2085
|
+
"items": {
|
|
2086
|
+
"$ref": "#/definitions/WorkflowBinding"
|
|
2087
|
+
},
|
|
2088
|
+
"type": "array"
|
|
2089
|
+
},
|
|
2114
2090
|
"zone_id": {
|
|
2115
2091
|
"description": "TODO: remove this as it has been deprecated.\n\nThis is just here for now because the `route` commands use it. So we need to include it in this type so it is available.",
|
|
2116
2092
|
"type": "string"
|
|
@@ -2208,6 +2184,10 @@
|
|
|
2208
2184
|
},
|
|
2209
2185
|
"type": "array"
|
|
2210
2186
|
},
|
|
2187
|
+
"assets": {
|
|
2188
|
+
"$ref": "#/definitions/Assets",
|
|
2189
|
+
"description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
|
|
2190
|
+
},
|
|
2211
2191
|
"base_dir": {
|
|
2212
2192
|
"description": "The directory in which module rules should be evaluated when including additional files into a Worker deployment. This defaults to the directory containing the `main` entry point of the Worker if not specified.",
|
|
2213
2193
|
"type": "string"
|
|
@@ -2373,10 +2353,6 @@
|
|
|
2373
2353
|
],
|
|
2374
2354
|
"type": "object"
|
|
2375
2355
|
},
|
|
2376
|
-
"experimental_assets": {
|
|
2377
|
-
"$ref": "#/definitions/ExperimentalAssets",
|
|
2378
|
-
"description": "Specify the directory of static assets to deploy/serve"
|
|
2379
|
-
},
|
|
2380
2356
|
"experimental_services": {
|
|
2381
2357
|
"default": "`[]`",
|
|
2382
2358
|
"deprecated": "DO NOT USE. We'd added this to test the new service binding system, but the proper way to test experimental features is to use `unsafe.bindings` configuration.",
|
|
@@ -2986,6 +2962,14 @@
|
|
|
2986
2962
|
"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",
|
|
2987
2963
|
"type": "boolean"
|
|
2988
2964
|
},
|
|
2965
|
+
"workflows": {
|
|
2966
|
+
"default": "`[]`",
|
|
2967
|
+
"description": "A list of workflows that your Worker should be bound to.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2968
|
+
"items": {
|
|
2969
|
+
"$ref": "#/definitions/WorkflowBinding"
|
|
2970
|
+
},
|
|
2971
|
+
"type": "array"
|
|
2972
|
+
},
|
|
2989
2973
|
"zone_id": {
|
|
2990
2974
|
"description": "TODO: remove this as it has been deprecated.\n\nThis is just here for now because the `route` commands use it. So we need to include it in this type so it is available.",
|
|
2991
2975
|
"type": "string"
|
|
@@ -3073,6 +3057,33 @@
|
|
|
3073
3057
|
],
|
|
3074
3058
|
"type": "object"
|
|
3075
3059
|
},
|
|
3060
|
+
"WorkflowBinding": {
|
|
3061
|
+
"additionalProperties": false,
|
|
3062
|
+
"properties": {
|
|
3063
|
+
"binding": {
|
|
3064
|
+
"description": "The name of the binding used to refer to the Workflow",
|
|
3065
|
+
"type": "string"
|
|
3066
|
+
},
|
|
3067
|
+
"class_name": {
|
|
3068
|
+
"description": "The exported class name of the Workflow",
|
|
3069
|
+
"type": "string"
|
|
3070
|
+
},
|
|
3071
|
+
"name": {
|
|
3072
|
+
"description": "The name of the Workflow",
|
|
3073
|
+
"type": "string"
|
|
3074
|
+
},
|
|
3075
|
+
"script_name": {
|
|
3076
|
+
"description": "The script where the Workflow is defined (if it's external to this Worker)",
|
|
3077
|
+
"type": "string"
|
|
3078
|
+
}
|
|
3079
|
+
},
|
|
3080
|
+
"required": [
|
|
3081
|
+
"binding",
|
|
3082
|
+
"name",
|
|
3083
|
+
"class_name"
|
|
3084
|
+
],
|
|
3085
|
+
"type": "object"
|
|
3086
|
+
},
|
|
3076
3087
|
"ZoneIdRoute": {
|
|
3077
3088
|
"additionalProperties": false,
|
|
3078
3089
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-bd66d511a",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wrangler",
|
|
@@ -54,24 +54,25 @@
|
|
|
54
54
|
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
|
55
55
|
"blake3-wasm": "^2.1.5",
|
|
56
56
|
"chokidar": "^3.5.3",
|
|
57
|
-
"date-fns": "^
|
|
57
|
+
"date-fns": "^4.1.0",
|
|
58
58
|
"esbuild": "0.17.19",
|
|
59
|
+
"itty-time": "^1.0.6",
|
|
59
60
|
"nanoid": "^3.3.3",
|
|
60
|
-
"path-to-regexp": "^6.
|
|
61
|
+
"path-to-regexp": "^6.3.0",
|
|
61
62
|
"resolve": "^1.22.8",
|
|
62
63
|
"resolve.exports": "^2.0.2",
|
|
63
64
|
"selfsigned": "^2.0.1",
|
|
64
65
|
"source-map": "^0.6.1",
|
|
65
|
-
"unenv": "npm:unenv-nightly@2.0.0-
|
|
66
|
-
"workerd": "1.
|
|
66
|
+
"unenv": "npm:unenv-nightly@2.0.0-20241024-111401-d4156ac",
|
|
67
|
+
"workerd": "1.20241022.0",
|
|
67
68
|
"xxhash-wasm": "^1.0.1",
|
|
68
69
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
|
69
|
-
"@cloudflare/workers-shared": "0.0.0-
|
|
70
|
-
"miniflare": "0.0.0-
|
|
70
|
+
"@cloudflare/workers-shared": "0.0.0-bd66d511a",
|
|
71
|
+
"miniflare": "0.0.0-bd66d511a"
|
|
71
72
|
},
|
|
72
73
|
"devDependencies": {
|
|
73
|
-
"@cloudflare/types": "
|
|
74
|
-
"@cloudflare/workers-types": "^4.
|
|
74
|
+
"@cloudflare/types": "6.18.4",
|
|
75
|
+
"@cloudflare/workers-types": "^4.20241022.0",
|
|
75
76
|
"@cspotcode/source-map-support": "0.8.1",
|
|
76
77
|
"@iarna/toml": "^3.0.0",
|
|
77
78
|
"@microsoft/api-extractor": "^7.47.0",
|
|
@@ -95,7 +96,7 @@
|
|
|
95
96
|
"@types/supports-color": "^8.1.1",
|
|
96
97
|
"@types/ws": "^8.5.7",
|
|
97
98
|
"@types/yargs": "^17.0.22",
|
|
98
|
-
"@vitest/ui": "
|
|
99
|
+
"@vitest/ui": "~2.1.3",
|
|
99
100
|
"@webcontainer/env": "^1.1.0",
|
|
100
101
|
"body-parser": "^1.20.0",
|
|
101
102
|
"chalk": "^5.2.0",
|
|
@@ -106,7 +107,6 @@
|
|
|
106
107
|
"concurrently": "^8.2.2",
|
|
107
108
|
"devtools-protocol": "^0.0.1182435",
|
|
108
109
|
"dotenv": "^16.0.0",
|
|
109
|
-
"es-module-lexer": "^1.3.0",
|
|
110
110
|
"execa": "^6.1.0",
|
|
111
111
|
"express": "^4.18.1",
|
|
112
112
|
"find-up": "^6.3.0",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"mime": "^3.0.0",
|
|
126
126
|
"minimatch": "^5.1.0",
|
|
127
127
|
"mock-socket": "^9.3.1",
|
|
128
|
-
"msw": "
|
|
128
|
+
"msw": "2.4.3",
|
|
129
129
|
"open": "^8.4.0",
|
|
130
130
|
"p-queue": "^7.2.0",
|
|
131
131
|
"patch-console": "^1.0.0",
|
|
@@ -146,19 +146,19 @@
|
|
|
146
146
|
"ts-json-schema-generator": "^1.5.0",
|
|
147
147
|
"undici": "^5.28.4",
|
|
148
148
|
"update-check": "^1.5.4",
|
|
149
|
-
"vitest": "
|
|
150
|
-
"vitest-websocket-mock": "^0.
|
|
151
|
-
"ws": "^8.
|
|
149
|
+
"vitest": "~2.1.3",
|
|
150
|
+
"vitest-websocket-mock": "^0.4.0",
|
|
151
|
+
"ws": "^8.18.0",
|
|
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
155
|
"@cloudflare/cli": "1.1.1",
|
|
156
|
-
"@cloudflare/pages-shared": "^0.11.56",
|
|
157
156
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
|
157
|
+
"@cloudflare/pages-shared": "^0.11.67",
|
|
158
158
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
159
159
|
},
|
|
160
160
|
"peerDependencies": {
|
|
161
|
-
"@cloudflare/workers-types": "^4.
|
|
161
|
+
"@cloudflare/workers-types": "^4.20241022.0"
|
|
162
162
|
},
|
|
163
163
|
"peerDependenciesMeta": {
|
|
164
164
|
"@cloudflare/workers-types": {
|