wrangler 4.15.2 → 4.16.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 +64 -65
- package/package.json +6 -6
- package/templates/mixedMode/proxyServerWorker/index.ts +16 -2
- package/wrangler-dist/cli.d.ts +85 -9
- package/wrangler-dist/cli.js +163315 -144175
package/config-schema.json
CHANGED
@@ -55,7 +55,7 @@
|
|
55
55
|
},
|
56
56
|
"workers_dev": {
|
57
57
|
"type": "boolean",
|
58
|
-
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.",
|
58
|
+
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workersdev",
|
59
59
|
"default": true
|
60
60
|
},
|
61
61
|
"preview_urls": {
|
@@ -68,7 +68,7 @@
|
|
68
68
|
"items": {
|
69
69
|
"$ref": "#/definitions/Route"
|
70
70
|
},
|
71
|
-
"description": "A list of routes that your Worker should be published to. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled Worker (see `triggers`)"
|
71
|
+
"description": "A list of routes that your Worker should be published to. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled Worker (see `triggers`)\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#types-of-routes"
|
72
72
|
},
|
73
73
|
"route": {
|
74
74
|
"$ref": "#/definitions/Route",
|
@@ -106,25 +106,20 @@
|
|
106
106
|
}
|
107
107
|
}
|
108
108
|
},
|
109
|
-
"required": [
|
110
|
-
"crons"
|
111
|
-
],
|
112
109
|
"additionalProperties": false,
|
113
|
-
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers",
|
114
|
-
"default": {
|
115
|
-
"crons": []
|
116
|
-
}
|
110
|
+
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers",
|
111
|
+
"default": "{crons: undefined}"
|
117
112
|
},
|
118
113
|
"limits": {
|
119
114
|
"$ref": "#/definitions/UserLimits",
|
120
|
-
"description": "Specify limits for runtime behavior. Only supported for the \"standard\" Usage Model"
|
115
|
+
"description": "Specify limits for runtime behavior. Only supported for the \"standard\" Usage Model\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#limits"
|
121
116
|
},
|
122
117
|
"rules": {
|
123
118
|
"type": "array",
|
124
119
|
"items": {
|
125
120
|
"$ref": "#/definitions/Rule"
|
126
121
|
},
|
127
|
-
"description": "An ordered list of rules that define which modules to import, and what type to import them as. You will need to specify rules to use Text, Data, and CompiledWasm modules, or when you wish to have a .js file be treated as an ESModule instead of CommonJS."
|
122
|
+
"description": "An ordered list of rules that define which modules to import, and what type to import them as. You will need to specify rules to use Text, Data, and CompiledWasm modules, or when you wish to have a .js file be treated as an ESModule instead of CommonJS.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#bundling"
|
128
123
|
},
|
129
124
|
"build": {
|
130
125
|
"type": "object",
|
@@ -153,7 +148,7 @@
|
|
153
148
|
}
|
154
149
|
},
|
155
150
|
"additionalProperties": false,
|
156
|
-
"description": "Configures a custom build step to be run by Wrangler when building your Worker.\n\nRefer to the [custom builds documentation](https://developers.cloudflare.com/workers/cli-wrangler/configuration#build) for more details.",
|
151
|
+
"description": "Configures a custom build step to be run by Wrangler when building your Worker.\n\nRefer to the [custom builds documentation](https://developers.cloudflare.com/workers/cli-wrangler/configuration#build) for more details.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#custom-builds",
|
157
152
|
"default": {
|
158
153
|
"watch_dir": "./src"
|
159
154
|
}
|
@@ -215,7 +210,7 @@
|
|
215
210
|
},
|
216
211
|
"upload_source_maps": {
|
217
212
|
"type": "boolean",
|
218
|
-
"description": "Include source maps when uploading this worker."
|
213
|
+
"description": "Include source maps when uploading this worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps"
|
219
214
|
},
|
220
215
|
"placement": {
|
221
216
|
"type": "object",
|
@@ -239,11 +234,11 @@
|
|
239
234
|
},
|
240
235
|
"assets": {
|
241
236
|
"$ref": "#/definitions/Assets",
|
242
|
-
"description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
|
237
|
+
"description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#assets"
|
243
238
|
},
|
244
239
|
"observability": {
|
245
240
|
"$ref": "#/definitions/Observability",
|
246
|
-
"description": "Specify the observability behavior of the Worker."
|
241
|
+
"description": "Specify the observability behavior of the Worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability"
|
247
242
|
},
|
248
243
|
"define": {
|
249
244
|
"type": "object",
|
@@ -265,7 +260,7 @@
|
|
265
260
|
}
|
266
261
|
]
|
267
262
|
},
|
268
|
-
"description": "A map of environment variables to set when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
263
|
+
"description": "A map of environment variables to set when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables",
|
269
264
|
"default": {}
|
270
265
|
},
|
271
266
|
"durable_objects": {
|
@@ -279,7 +274,7 @@
|
|
279
274
|
"bindings"
|
280
275
|
],
|
281
276
|
"additionalProperties": false,
|
282
|
-
"description": "A list of durable objects that your Worker should be bound to.\n\nFor more information about Durable Objects, see the documentation at https://developers.cloudflare.com/workers/learning/using-durable-objects\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
277
|
+
"description": "A list of durable objects that your Worker should be bound to.\n\nFor more information about Durable Objects, see the documentation at https://developers.cloudflare.com/workers/learning/using-durable-objects\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects",
|
283
278
|
"default": {
|
284
279
|
"bindings": []
|
285
280
|
}
|
@@ -332,7 +327,7 @@
|
|
332
327
|
],
|
333
328
|
"additionalProperties": false
|
334
329
|
},
|
335
|
-
"description": "These specify any Workers KV Namespaces you want to access from inside your Worker.\n\nTo learn more about KV Namespaces, see the documentation at https://developers.cloudflare.com/workers/learning/how-kv-works\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
330
|
+
"description": "These specify any Workers KV Namespaces you want to access from inside your Worker.\n\nTo learn more about KV Namespaces, see the documentation at https://developers.cloudflare.com/workers/learning/how-kv-works\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces",
|
336
331
|
"default": []
|
337
332
|
},
|
338
333
|
"send_email": {
|
@@ -361,7 +356,7 @@
|
|
361
356
|
],
|
362
357
|
"additionalProperties": false
|
363
358
|
},
|
364
|
-
"description": "These specify bindings to send email from inside your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
359
|
+
"description": "These specify bindings to send email from inside your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#email-bindings",
|
365
360
|
"default": []
|
366
361
|
},
|
367
362
|
"queues": {
|
@@ -451,7 +446,7 @@
|
|
451
446
|
}
|
452
447
|
},
|
453
448
|
"additionalProperties": false,
|
454
|
-
"description": "Specifies Queues 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.",
|
449
|
+
"description": "Specifies Queues 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#queues",
|
455
450
|
"default": {
|
456
451
|
"consumers": [],
|
457
452
|
"producers": []
|
@@ -488,7 +483,7 @@
|
|
488
483
|
],
|
489
484
|
"additionalProperties": false
|
490
485
|
},
|
491
|
-
"description": "Specifies R2 buckets 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.",
|
486
|
+
"description": "Specifies R2 buckets 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets",
|
492
487
|
"default": []
|
493
488
|
},
|
494
489
|
"d1_databases": {
|
@@ -534,7 +529,7 @@
|
|
534
529
|
],
|
535
530
|
"additionalProperties": false
|
536
531
|
},
|
537
|
-
"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.",
|
532
|
+
"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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases",
|
538
533
|
"default": []
|
539
534
|
},
|
540
535
|
"vectorize": {
|
@@ -557,7 +552,7 @@
|
|
557
552
|
],
|
558
553
|
"additionalProperties": false
|
559
554
|
},
|
560
|
-
"description": "Specifies Vectorize indexes 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.",
|
555
|
+
"description": "Specifies Vectorize indexes 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes",
|
561
556
|
"default": []
|
562
557
|
},
|
563
558
|
"hyperdrive": {
|
@@ -584,7 +579,7 @@
|
|
584
579
|
],
|
585
580
|
"additionalProperties": false
|
586
581
|
},
|
587
|
-
"description": "Specifies Hyperdrive configs 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.",
|
582
|
+
"description": "Specifies Hyperdrive configs 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive",
|
588
583
|
"default": []
|
589
584
|
},
|
590
585
|
"services": {
|
@@ -624,7 +619,7 @@
|
|
624
619
|
],
|
625
620
|
"additionalProperties": false
|
626
621
|
},
|
627
|
-
"description": "Specifies service bindings (Worker-to-Worker) 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.",
|
622
|
+
"description": "Specifies service bindings (Worker-to-Worker) 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings",
|
628
623
|
"default": []
|
629
624
|
},
|
630
625
|
"analytics_engine_datasets": {
|
@@ -646,7 +641,7 @@
|
|
646
641
|
],
|
647
642
|
"additionalProperties": false
|
648
643
|
},
|
649
|
-
"description": "Specifies analytics engine datasets 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.",
|
644
|
+
"description": "Specifies analytics engine datasets 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets",
|
650
645
|
"default": []
|
651
646
|
},
|
652
647
|
"browser": {
|
@@ -660,7 +655,7 @@
|
|
660
655
|
"binding"
|
661
656
|
],
|
662
657
|
"additionalProperties": false,
|
663
|
-
"description": "A browser that will be usable from the Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
658
|
+
"description": "A browser that will be usable from the Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering",
|
664
659
|
"default": {}
|
665
660
|
},
|
666
661
|
"ai": {
|
@@ -677,7 +672,7 @@
|
|
677
672
|
"binding"
|
678
673
|
],
|
679
674
|
"additionalProperties": false,
|
680
|
-
"description": "Binding to the AI project.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
675
|
+
"description": "Binding to the AI project.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai",
|
681
676
|
"default": {}
|
682
677
|
},
|
683
678
|
"images": {
|
@@ -691,7 +686,7 @@
|
|
691
686
|
"binding"
|
692
687
|
],
|
693
688
|
"additionalProperties": false,
|
694
|
-
"description": "Binding to Cloudflare Images\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
689
|
+
"description": "Binding to Cloudflare Images\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#images",
|
695
690
|
"default": {}
|
696
691
|
},
|
697
692
|
"version_metadata": {
|
@@ -796,7 +791,7 @@
|
|
796
791
|
],
|
797
792
|
"additionalProperties": false
|
798
793
|
},
|
799
|
-
"description": "Specifies a list of mTLS certificates 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.",
|
794
|
+
"description": "Specifies a list of mTLS certificates 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates",
|
800
795
|
"default": []
|
801
796
|
},
|
802
797
|
"tail_consumers": {
|
@@ -831,7 +826,7 @@
|
|
831
826
|
],
|
832
827
|
"additionalProperties": false
|
833
828
|
},
|
834
|
-
"description": "Specifies namespace bindings 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.",
|
829
|
+
"description": "Specifies namespace bindings 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms",
|
835
830
|
"default": []
|
836
831
|
},
|
837
832
|
"pipelines": {
|
@@ -899,7 +894,7 @@
|
|
899
894
|
},
|
900
895
|
"dev": {
|
901
896
|
"$ref": "#/definitions/RawDevConfig",
|
902
|
-
"description": "Options to configure the development server that your worker will use."
|
897
|
+
"description": "Options to configure the development server that your worker will use.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#local-development-settings"
|
903
898
|
},
|
904
899
|
"site": {
|
905
900
|
"type": "object",
|
@@ -934,7 +929,7 @@
|
|
934
929
|
"bucket"
|
935
930
|
],
|
936
931
|
"additionalProperties": false,
|
937
|
-
"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"
|
932
|
+
"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\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workers-sites"
|
938
933
|
},
|
939
934
|
"wasm_modules": {
|
940
935
|
"type": "object",
|
@@ -962,7 +957,7 @@
|
|
962
957
|
"additionalProperties": {
|
963
958
|
"type": "string"
|
964
959
|
},
|
965
|
-
"description": "A map of module aliases. Lets you swap out a module for any others. Corresponds with esbuild's `alias` config"
|
960
|
+
"description": "A map of module aliases. Lets you swap out a module for any others. Corresponds with esbuild's `alias` config\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#module-aliasing"
|
966
961
|
},
|
967
962
|
"keep_vars": {
|
968
963
|
"type": "boolean",
|
@@ -1012,7 +1007,7 @@
|
|
1012
1007
|
},
|
1013
1008
|
"workers_dev": {
|
1014
1009
|
"type": "boolean",
|
1015
|
-
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.",
|
1010
|
+
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workersdev",
|
1016
1011
|
"default": true
|
1017
1012
|
},
|
1018
1013
|
"preview_urls": {
|
@@ -1025,7 +1020,7 @@
|
|
1025
1020
|
"items": {
|
1026
1021
|
"$ref": "#/definitions/Route"
|
1027
1022
|
},
|
1028
|
-
"description": "A list of routes that your Worker should be published to. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled Worker (see `triggers`)"
|
1023
|
+
"description": "A list of routes that your Worker should be published to. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled Worker (see `triggers`)\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#types-of-routes"
|
1029
1024
|
},
|
1030
1025
|
"route": {
|
1031
1026
|
"$ref": "#/definitions/Route",
|
@@ -1063,25 +1058,20 @@
|
|
1063
1058
|
}
|
1064
1059
|
}
|
1065
1060
|
},
|
1066
|
-
"required": [
|
1067
|
-
"crons"
|
1068
|
-
],
|
1069
1061
|
"additionalProperties": false,
|
1070
|
-
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers",
|
1071
|
-
"default": {
|
1072
|
-
"crons": []
|
1073
|
-
}
|
1062
|
+
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers",
|
1063
|
+
"default": "{crons: undefined}"
|
1074
1064
|
},
|
1075
1065
|
"limits": {
|
1076
1066
|
"$ref": "#/definitions/UserLimits",
|
1077
|
-
"description": "Specify limits for runtime behavior. Only supported for the \"standard\" Usage Model"
|
1067
|
+
"description": "Specify limits for runtime behavior. Only supported for the \"standard\" Usage Model\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#limits"
|
1078
1068
|
},
|
1079
1069
|
"rules": {
|
1080
1070
|
"type": "array",
|
1081
1071
|
"items": {
|
1082
1072
|
"$ref": "#/definitions/Rule"
|
1083
1073
|
},
|
1084
|
-
"description": "An ordered list of rules that define which modules to import, and what type to import them as. You will need to specify rules to use Text, Data, and CompiledWasm modules, or when you wish to have a .js file be treated as an ESModule instead of CommonJS."
|
1074
|
+
"description": "An ordered list of rules that define which modules to import, and what type to import them as. You will need to specify rules to use Text, Data, and CompiledWasm modules, or when you wish to have a .js file be treated as an ESModule instead of CommonJS.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#bundling"
|
1085
1075
|
},
|
1086
1076
|
"build": {
|
1087
1077
|
"type": "object",
|
@@ -1110,7 +1100,7 @@
|
|
1110
1100
|
}
|
1111
1101
|
},
|
1112
1102
|
"additionalProperties": false,
|
1113
|
-
"description": "Configures a custom build step to be run by Wrangler when building your Worker.\n\nRefer to the [custom builds documentation](https://developers.cloudflare.com/workers/cli-wrangler/configuration#build) for more details.",
|
1103
|
+
"description": "Configures a custom build step to be run by Wrangler when building your Worker.\n\nRefer to the [custom builds documentation](https://developers.cloudflare.com/workers/cli-wrangler/configuration#build) for more details.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#custom-builds",
|
1114
1104
|
"default": {
|
1115
1105
|
"watch_dir": "./src"
|
1116
1106
|
}
|
@@ -1172,7 +1162,7 @@
|
|
1172
1162
|
},
|
1173
1163
|
"upload_source_maps": {
|
1174
1164
|
"type": "boolean",
|
1175
|
-
"description": "Include source maps when uploading this worker."
|
1165
|
+
"description": "Include source maps when uploading this worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps"
|
1176
1166
|
},
|
1177
1167
|
"placement": {
|
1178
1168
|
"type": "object",
|
@@ -1196,11 +1186,11 @@
|
|
1196
1186
|
},
|
1197
1187
|
"assets": {
|
1198
1188
|
"$ref": "#/definitions/Assets",
|
1199
|
-
"description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
|
1189
|
+
"description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#assets"
|
1200
1190
|
},
|
1201
1191
|
"observability": {
|
1202
1192
|
"$ref": "#/definitions/Observability",
|
1203
|
-
"description": "Specify the observability behavior of the Worker."
|
1193
|
+
"description": "Specify the observability behavior of the Worker.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability"
|
1204
1194
|
},
|
1205
1195
|
"define": {
|
1206
1196
|
"type": "object",
|
@@ -1222,7 +1212,7 @@
|
|
1222
1212
|
}
|
1223
1213
|
]
|
1224
1214
|
},
|
1225
|
-
"description": "A map of environment variables to set when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
1215
|
+
"description": "A map of environment variables to set when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables",
|
1226
1216
|
"default": {}
|
1227
1217
|
},
|
1228
1218
|
"durable_objects": {
|
@@ -1236,7 +1226,7 @@
|
|
1236
1226
|
"bindings"
|
1237
1227
|
],
|
1238
1228
|
"additionalProperties": false,
|
1239
|
-
"description": "A list of durable objects that your Worker should be bound to.\n\nFor more information about Durable Objects, see the documentation at https://developers.cloudflare.com/workers/learning/using-durable-objects\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
1229
|
+
"description": "A list of durable objects that your Worker should be bound to.\n\nFor more information about Durable Objects, see the documentation at https://developers.cloudflare.com/workers/learning/using-durable-objects\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects",
|
1240
1230
|
"default": {
|
1241
1231
|
"bindings": []
|
1242
1232
|
}
|
@@ -1289,7 +1279,7 @@
|
|
1289
1279
|
],
|
1290
1280
|
"additionalProperties": false
|
1291
1281
|
},
|
1292
|
-
"description": "These specify any Workers KV Namespaces you want to access from inside your Worker.\n\nTo learn more about KV Namespaces, see the documentation at https://developers.cloudflare.com/workers/learning/how-kv-works\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
1282
|
+
"description": "These specify any Workers KV Namespaces you want to access from inside your Worker.\n\nTo learn more about KV Namespaces, see the documentation at https://developers.cloudflare.com/workers/learning/how-kv-works\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces",
|
1293
1283
|
"default": []
|
1294
1284
|
},
|
1295
1285
|
"send_email": {
|
@@ -1318,7 +1308,7 @@
|
|
1318
1308
|
],
|
1319
1309
|
"additionalProperties": false
|
1320
1310
|
},
|
1321
|
-
"description": "These specify bindings to send email from inside your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
1311
|
+
"description": "These specify bindings to send email from inside your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#email-bindings",
|
1322
1312
|
"default": []
|
1323
1313
|
},
|
1324
1314
|
"queues": {
|
@@ -1408,7 +1398,7 @@
|
|
1408
1398
|
}
|
1409
1399
|
},
|
1410
1400
|
"additionalProperties": false,
|
1411
|
-
"description": "Specifies Queues 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.",
|
1401
|
+
"description": "Specifies Queues 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#queues",
|
1412
1402
|
"default": {
|
1413
1403
|
"consumers": [],
|
1414
1404
|
"producers": []
|
@@ -1445,7 +1435,7 @@
|
|
1445
1435
|
],
|
1446
1436
|
"additionalProperties": false
|
1447
1437
|
},
|
1448
|
-
"description": "Specifies R2 buckets 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.",
|
1438
|
+
"description": "Specifies R2 buckets 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets",
|
1449
1439
|
"default": []
|
1450
1440
|
},
|
1451
1441
|
"d1_databases": {
|
@@ -1491,7 +1481,7 @@
|
|
1491
1481
|
],
|
1492
1482
|
"additionalProperties": false
|
1493
1483
|
},
|
1494
|
-
"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.",
|
1484
|
+
"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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases",
|
1495
1485
|
"default": []
|
1496
1486
|
},
|
1497
1487
|
"vectorize": {
|
@@ -1514,7 +1504,7 @@
|
|
1514
1504
|
],
|
1515
1505
|
"additionalProperties": false
|
1516
1506
|
},
|
1517
|
-
"description": "Specifies Vectorize indexes 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.",
|
1507
|
+
"description": "Specifies Vectorize indexes 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes",
|
1518
1508
|
"default": []
|
1519
1509
|
},
|
1520
1510
|
"hyperdrive": {
|
@@ -1541,7 +1531,7 @@
|
|
1541
1531
|
],
|
1542
1532
|
"additionalProperties": false
|
1543
1533
|
},
|
1544
|
-
"description": "Specifies Hyperdrive configs 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.",
|
1534
|
+
"description": "Specifies Hyperdrive configs 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive",
|
1545
1535
|
"default": []
|
1546
1536
|
},
|
1547
1537
|
"services": {
|
@@ -1581,7 +1571,7 @@
|
|
1581
1571
|
],
|
1582
1572
|
"additionalProperties": false
|
1583
1573
|
},
|
1584
|
-
"description": "Specifies service bindings (Worker-to-Worker) 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.",
|
1574
|
+
"description": "Specifies service bindings (Worker-to-Worker) 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings",
|
1585
1575
|
"default": []
|
1586
1576
|
},
|
1587
1577
|
"analytics_engine_datasets": {
|
@@ -1603,7 +1593,7 @@
|
|
1603
1593
|
],
|
1604
1594
|
"additionalProperties": false
|
1605
1595
|
},
|
1606
|
-
"description": "Specifies analytics engine datasets 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.",
|
1596
|
+
"description": "Specifies analytics engine datasets 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets",
|
1607
1597
|
"default": []
|
1608
1598
|
},
|
1609
1599
|
"browser": {
|
@@ -1617,7 +1607,7 @@
|
|
1617
1607
|
"binding"
|
1618
1608
|
],
|
1619
1609
|
"additionalProperties": false,
|
1620
|
-
"description": "A browser that will be usable from the Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
1610
|
+
"description": "A browser that will be usable from the Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering",
|
1621
1611
|
"default": {}
|
1622
1612
|
},
|
1623
1613
|
"ai": {
|
@@ -1634,7 +1624,7 @@
|
|
1634
1624
|
"binding"
|
1635
1625
|
],
|
1636
1626
|
"additionalProperties": false,
|
1637
|
-
"description": "Binding to the AI project.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
1627
|
+
"description": "Binding to the AI project.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai",
|
1638
1628
|
"default": {}
|
1639
1629
|
},
|
1640
1630
|
"images": {
|
@@ -1648,7 +1638,7 @@
|
|
1648
1638
|
"binding"
|
1649
1639
|
],
|
1650
1640
|
"additionalProperties": false,
|
1651
|
-
"description": "Binding to Cloudflare Images\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
1641
|
+
"description": "Binding to Cloudflare Images\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#images",
|
1652
1642
|
"default": {}
|
1653
1643
|
},
|
1654
1644
|
"version_metadata": {
|
@@ -1753,7 +1743,7 @@
|
|
1753
1743
|
],
|
1754
1744
|
"additionalProperties": false
|
1755
1745
|
},
|
1756
|
-
"description": "Specifies a list of mTLS certificates 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.",
|
1746
|
+
"description": "Specifies a list of mTLS certificates 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates",
|
1757
1747
|
"default": []
|
1758
1748
|
},
|
1759
1749
|
"tail_consumers": {
|
@@ -1788,7 +1778,7 @@
|
|
1788
1778
|
],
|
1789
1779
|
"additionalProperties": false
|
1790
1780
|
},
|
1791
|
-
"description": "Specifies namespace bindings 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.",
|
1781
|
+
"description": "Specifies namespace bindings 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms",
|
1792
1782
|
"default": []
|
1793
1783
|
},
|
1794
1784
|
"pipelines": {
|
@@ -2333,6 +2323,15 @@
|
|
2333
2323
|
"rollout_step_percentage": {
|
2334
2324
|
"type": "number",
|
2335
2325
|
"description": "How a rollout should be done, defining the size of it"
|
2326
|
+
},
|
2327
|
+
"rollout_kind": {
|
2328
|
+
"type": "string",
|
2329
|
+
"enum": [
|
2330
|
+
"full_auto",
|
2331
|
+
"none",
|
2332
|
+
"full_manual"
|
2333
|
+
],
|
2334
|
+
"description": "How a rollout should be created. It supports the following modes: - full_auto: The container application will be rolled out fully automatically. - none: The container application won't have a roll out or update. - manual: The container application will be rollout fully by manually actioning progress steps."
|
2336
2335
|
}
|
2337
2336
|
},
|
2338
2337
|
"required": [
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.16.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -50,14 +50,14 @@
|
|
50
50
|
"config-schema.json"
|
51
51
|
],
|
52
52
|
"dependencies": {
|
53
|
-
"@cloudflare/unenv-preset": "2.3.
|
53
|
+
"@cloudflare/unenv-preset": "2.3.2",
|
54
54
|
"blake3-wasm": "2.1.5",
|
55
55
|
"esbuild": "0.25.4",
|
56
56
|
"path-to-regexp": "6.3.0",
|
57
|
-
"unenv": "2.0.0-rc.
|
57
|
+
"unenv": "2.0.0-rc.17",
|
58
58
|
"workerd": "1.20250508.0",
|
59
|
-
"
|
60
|
-
"
|
59
|
+
"@cloudflare/kv-asset-handler": "0.4.0",
|
60
|
+
"miniflare": "4.20250508.3"
|
61
61
|
},
|
62
62
|
"devDependencies": {
|
63
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
@@ -137,7 +137,7 @@
|
|
137
137
|
"yargs": "^17.7.2",
|
138
138
|
"@cloudflare/cli": "1.1.1",
|
139
139
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
140
|
-
"@cloudflare/pages-shared": "^0.13.
|
140
|
+
"@cloudflare/pages-shared": "^0.13.40",
|
141
141
|
"@cloudflare/workers-shared": "0.17.5",
|
142
142
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
143
143
|
},
|
@@ -13,7 +13,21 @@ export default {
|
|
13
13
|
originalHeaders.set(name, value);
|
14
14
|
}
|
15
15
|
}
|
16
|
-
|
16
|
+
let fetcher = env[targetBinding];
|
17
|
+
|
18
|
+
// Special case the Dispatch Namespace binding because it has a top-level synchronous .get() call
|
19
|
+
const dispatchNamespaceOptions = originalHeaders.get(
|
20
|
+
"MF-Dispatch-Namespace-Options"
|
21
|
+
);
|
22
|
+
if (dispatchNamespaceOptions) {
|
23
|
+
const { name, args, options } = JSON.parse(dispatchNamespaceOptions);
|
24
|
+
fetcher = (env[targetBinding] as DispatchNamespace).get(
|
25
|
+
name,
|
26
|
+
args,
|
27
|
+
options
|
28
|
+
);
|
29
|
+
}
|
30
|
+
return (fetcher as Fetcher).fetch(
|
17
31
|
request.headers.get("MF-URL")!,
|
18
32
|
new Request(request, {
|
19
33
|
redirect: "manual",
|
@@ -23,4 +37,4 @@ export default {
|
|
23
37
|
}
|
24
38
|
return new Response("Provide a binding", { status: 400 });
|
25
39
|
},
|
26
|
-
} satisfies ExportedHandler<Record<string, Fetcher>>;
|
40
|
+
} satisfies ExportedHandler<Record<string, Fetcher | DispatchNamespace>>;
|