wrangler 4.37.1 → 4.39.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 +137 -25
- package/package.json +10 -10
- package/templates/remoteBindings/ProxyServerWorker.ts +3 -3
- package/wrangler-dist/ProxyServerWorker.js +2010 -650
- package/wrangler-dist/cli.d.ts +88 -23
- package/wrangler-dist/cli.js +8541 -5551
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
@@ -327,7 +327,7 @@
|
|
327
327
|
},
|
328
328
|
"remote": {
|
329
329
|
"type": "boolean",
|
330
|
-
"description": "Whether the KV namespace should be remote or not"
|
330
|
+
"description": "Whether the KV namespace should be remote or not in local development"
|
331
331
|
}
|
332
332
|
},
|
333
333
|
"required": [
|
@@ -358,9 +358,16 @@
|
|
358
358
|
},
|
359
359
|
"description": "If this binding should be restricted to a set of verified addresses"
|
360
360
|
},
|
361
|
+
"allowed_sender_addresses": {
|
362
|
+
"type": "array",
|
363
|
+
"items": {
|
364
|
+
"type": "string"
|
365
|
+
},
|
366
|
+
"description": "If this binding should be restricted to a set of sender addresses"
|
367
|
+
},
|
361
368
|
"remote": {
|
362
369
|
"type": "boolean",
|
363
|
-
"description": "Whether the binding should be remote or not"
|
370
|
+
"description": "Whether the binding should be remote or not in local development"
|
364
371
|
}
|
365
372
|
},
|
366
373
|
"required": [
|
@@ -393,7 +400,7 @@
|
|
393
400
|
},
|
394
401
|
"remote": {
|
395
402
|
"type": "boolean",
|
396
|
-
"description": "Whether the Queue producer should be remote or not"
|
403
|
+
"description": "Whether the Queue producer should be remote or not in local development"
|
397
404
|
}
|
398
405
|
},
|
399
406
|
"required": [
|
@@ -487,7 +494,7 @@
|
|
487
494
|
},
|
488
495
|
"remote": {
|
489
496
|
"type": "boolean",
|
490
|
-
"description": "Whether the R2 bucket should be remote or not"
|
497
|
+
"description": "Whether the R2 bucket should be remote or not in local development"
|
491
498
|
}
|
492
499
|
},
|
493
500
|
"required": [
|
@@ -533,7 +540,7 @@
|
|
533
540
|
},
|
534
541
|
"remote": {
|
535
542
|
"type": "boolean",
|
536
|
-
"description": "Whether the D1 database should be remote or not"
|
543
|
+
"description": "Whether the D1 database should be remote or not in local development"
|
537
544
|
}
|
538
545
|
},
|
539
546
|
"required": [
|
@@ -559,7 +566,7 @@
|
|
559
566
|
},
|
560
567
|
"remote": {
|
561
568
|
"type": "boolean",
|
562
|
-
"description": "Whether the Vectorize index should be remote or not"
|
569
|
+
"description": "Whether the Vectorize index should be remote or not in local development"
|
563
570
|
}
|
564
571
|
},
|
565
572
|
"required": [
|
@@ -622,7 +629,7 @@
|
|
622
629
|
},
|
623
630
|
"remote": {
|
624
631
|
"type": "boolean",
|
625
|
-
"description": "Whether the service binding should be remote or not"
|
632
|
+
"description": "Whether the service binding should be remote or not in local development"
|
626
633
|
}
|
627
634
|
},
|
628
635
|
"required": [
|
@@ -664,7 +671,7 @@
|
|
664
671
|
},
|
665
672
|
"remote": {
|
666
673
|
"type": "boolean",
|
667
|
-
"description": "Whether the Browser binding should be remote or not"
|
674
|
+
"description": "Whether the Browser binding should be remote or not in local development"
|
668
675
|
}
|
669
676
|
},
|
670
677
|
"required": [
|
@@ -685,7 +692,7 @@
|
|
685
692
|
},
|
686
693
|
"remote": {
|
687
694
|
"type": "boolean",
|
688
|
-
"description": "Whether the AI binding should be remote or not"
|
695
|
+
"description": "Whether the AI binding should be remote or not in local development"
|
689
696
|
}
|
690
697
|
},
|
691
698
|
"required": [
|
@@ -703,7 +710,7 @@
|
|
703
710
|
},
|
704
711
|
"remote": {
|
705
712
|
"type": "boolean",
|
706
|
-
"description": "Whether the Images binding should be remote or not"
|
713
|
+
"description": "Whether the Images binding should be remote or not in local development"
|
707
714
|
}
|
708
715
|
},
|
709
716
|
"required": [
|
@@ -850,7 +857,7 @@
|
|
850
857
|
},
|
851
858
|
"remote": {
|
852
859
|
"type": "boolean",
|
853
|
-
"description": "Whether the mtls fetcher should be remote or not"
|
860
|
+
"description": "Whether the mtls fetcher should be remote or not in local development"
|
854
861
|
}
|
855
862
|
},
|
856
863
|
"required": [
|
@@ -889,7 +896,7 @@
|
|
889
896
|
},
|
890
897
|
"remote": {
|
891
898
|
"type": "boolean",
|
892
|
-
"description": "Whether the Dispatch Namespace should be remote or not"
|
899
|
+
"description": "Whether the Dispatch Namespace should be remote or not in local development"
|
893
900
|
}
|
894
901
|
},
|
895
902
|
"required": [
|
@@ -913,6 +920,10 @@
|
|
913
920
|
"pipeline": {
|
914
921
|
"type": "string",
|
915
922
|
"description": "Name of the Pipeline to bind"
|
923
|
+
},
|
924
|
+
"remote": {
|
925
|
+
"type": "boolean",
|
926
|
+
"description": "Whether the pipeline should be remote or not in local development"
|
916
927
|
}
|
917
928
|
},
|
918
929
|
"required": [
|
@@ -1021,6 +1032,51 @@
|
|
1021
1032
|
"description": "Specifies rate limit 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.",
|
1022
1033
|
"default": []
|
1023
1034
|
},
|
1035
|
+
"worker_loaders": {
|
1036
|
+
"type": "array",
|
1037
|
+
"items": {
|
1038
|
+
"type": "object",
|
1039
|
+
"properties": {
|
1040
|
+
"binding": {
|
1041
|
+
"type": "string",
|
1042
|
+
"description": "The binding name used to refer to the Worker Loader in the Worker."
|
1043
|
+
}
|
1044
|
+
},
|
1045
|
+
"required": [
|
1046
|
+
"binding"
|
1047
|
+
],
|
1048
|
+
"additionalProperties": false
|
1049
|
+
},
|
1050
|
+
"description": "Specifies Worker Loader 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.",
|
1051
|
+
"default": []
|
1052
|
+
},
|
1053
|
+
"vpc_services": {
|
1054
|
+
"type": "array",
|
1055
|
+
"items": {
|
1056
|
+
"type": "object",
|
1057
|
+
"properties": {
|
1058
|
+
"binding": {
|
1059
|
+
"type": "string",
|
1060
|
+
"description": "The binding name used to refer to the VPC service in the Worker."
|
1061
|
+
},
|
1062
|
+
"service_id": {
|
1063
|
+
"type": "string",
|
1064
|
+
"description": "The service ID of the VPC connectivity service."
|
1065
|
+
},
|
1066
|
+
"remote": {
|
1067
|
+
"type": "boolean",
|
1068
|
+
"description": "Whether the VPC service is remote or not"
|
1069
|
+
}
|
1070
|
+
},
|
1071
|
+
"required": [
|
1072
|
+
"binding",
|
1073
|
+
"service_id"
|
1074
|
+
],
|
1075
|
+
"additionalProperties": false
|
1076
|
+
},
|
1077
|
+
"description": "Specifies VPC services 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.",
|
1078
|
+
"default": []
|
1079
|
+
},
|
1024
1080
|
"pages_build_output_dir": {
|
1025
1081
|
"type": "string",
|
1026
1082
|
"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."
|
@@ -1420,7 +1476,7 @@
|
|
1420
1476
|
},
|
1421
1477
|
"remote": {
|
1422
1478
|
"type": "boolean",
|
1423
|
-
"description": "Whether the KV namespace should be remote or not"
|
1479
|
+
"description": "Whether the KV namespace should be remote or not in local development"
|
1424
1480
|
}
|
1425
1481
|
},
|
1426
1482
|
"required": [
|
@@ -1451,9 +1507,16 @@
|
|
1451
1507
|
},
|
1452
1508
|
"description": "If this binding should be restricted to a set of verified addresses"
|
1453
1509
|
},
|
1510
|
+
"allowed_sender_addresses": {
|
1511
|
+
"type": "array",
|
1512
|
+
"items": {
|
1513
|
+
"type": "string"
|
1514
|
+
},
|
1515
|
+
"description": "If this binding should be restricted to a set of sender addresses"
|
1516
|
+
},
|
1454
1517
|
"remote": {
|
1455
1518
|
"type": "boolean",
|
1456
|
-
"description": "Whether the binding should be remote or not"
|
1519
|
+
"description": "Whether the binding should be remote or not in local development"
|
1457
1520
|
}
|
1458
1521
|
},
|
1459
1522
|
"required": [
|
@@ -1486,7 +1549,7 @@
|
|
1486
1549
|
},
|
1487
1550
|
"remote": {
|
1488
1551
|
"type": "boolean",
|
1489
|
-
"description": "Whether the Queue producer should be remote or not"
|
1552
|
+
"description": "Whether the Queue producer should be remote or not in local development"
|
1490
1553
|
}
|
1491
1554
|
},
|
1492
1555
|
"required": [
|
@@ -1580,7 +1643,7 @@
|
|
1580
1643
|
},
|
1581
1644
|
"remote": {
|
1582
1645
|
"type": "boolean",
|
1583
|
-
"description": "Whether the R2 bucket should be remote or not"
|
1646
|
+
"description": "Whether the R2 bucket should be remote or not in local development"
|
1584
1647
|
}
|
1585
1648
|
},
|
1586
1649
|
"required": [
|
@@ -1626,7 +1689,7 @@
|
|
1626
1689
|
},
|
1627
1690
|
"remote": {
|
1628
1691
|
"type": "boolean",
|
1629
|
-
"description": "Whether the D1 database should be remote or not"
|
1692
|
+
"description": "Whether the D1 database should be remote or not in local development"
|
1630
1693
|
}
|
1631
1694
|
},
|
1632
1695
|
"required": [
|
@@ -1652,7 +1715,7 @@
|
|
1652
1715
|
},
|
1653
1716
|
"remote": {
|
1654
1717
|
"type": "boolean",
|
1655
|
-
"description": "Whether the Vectorize index should be remote or not"
|
1718
|
+
"description": "Whether the Vectorize index should be remote or not in local development"
|
1656
1719
|
}
|
1657
1720
|
},
|
1658
1721
|
"required": [
|
@@ -1715,7 +1778,7 @@
|
|
1715
1778
|
},
|
1716
1779
|
"remote": {
|
1717
1780
|
"type": "boolean",
|
1718
|
-
"description": "Whether the service binding should be remote or not"
|
1781
|
+
"description": "Whether the service binding should be remote or not in local development"
|
1719
1782
|
}
|
1720
1783
|
},
|
1721
1784
|
"required": [
|
@@ -1757,7 +1820,7 @@
|
|
1757
1820
|
},
|
1758
1821
|
"remote": {
|
1759
1822
|
"type": "boolean",
|
1760
|
-
"description": "Whether the Browser binding should be remote or not"
|
1823
|
+
"description": "Whether the Browser binding should be remote or not in local development"
|
1761
1824
|
}
|
1762
1825
|
},
|
1763
1826
|
"required": [
|
@@ -1778,7 +1841,7 @@
|
|
1778
1841
|
},
|
1779
1842
|
"remote": {
|
1780
1843
|
"type": "boolean",
|
1781
|
-
"description": "Whether the AI binding should be remote or not"
|
1844
|
+
"description": "Whether the AI binding should be remote or not in local development"
|
1782
1845
|
}
|
1783
1846
|
},
|
1784
1847
|
"required": [
|
@@ -1796,7 +1859,7 @@
|
|
1796
1859
|
},
|
1797
1860
|
"remote": {
|
1798
1861
|
"type": "boolean",
|
1799
|
-
"description": "Whether the Images binding should be remote or not"
|
1862
|
+
"description": "Whether the Images binding should be remote or not in local development"
|
1800
1863
|
}
|
1801
1864
|
},
|
1802
1865
|
"required": [
|
@@ -1943,7 +2006,7 @@
|
|
1943
2006
|
},
|
1944
2007
|
"remote": {
|
1945
2008
|
"type": "boolean",
|
1946
|
-
"description": "Whether the mtls fetcher should be remote or not"
|
2009
|
+
"description": "Whether the mtls fetcher should be remote or not in local development"
|
1947
2010
|
}
|
1948
2011
|
},
|
1949
2012
|
"required": [
|
@@ -1982,7 +2045,7 @@
|
|
1982
2045
|
},
|
1983
2046
|
"remote": {
|
1984
2047
|
"type": "boolean",
|
1985
|
-
"description": "Whether the Dispatch Namespace should be remote or not"
|
2048
|
+
"description": "Whether the Dispatch Namespace should be remote or not in local development"
|
1986
2049
|
}
|
1987
2050
|
},
|
1988
2051
|
"required": [
|
@@ -2006,6 +2069,10 @@
|
|
2006
2069
|
"pipeline": {
|
2007
2070
|
"type": "string",
|
2008
2071
|
"description": "Name of the Pipeline to bind"
|
2072
|
+
},
|
2073
|
+
"remote": {
|
2074
|
+
"type": "boolean",
|
2075
|
+
"description": "Whether the pipeline should be remote or not in local development"
|
2009
2076
|
}
|
2010
2077
|
},
|
2011
2078
|
"required": [
|
@@ -2113,6 +2180,51 @@
|
|
2113
2180
|
},
|
2114
2181
|
"description": "Specifies rate limit 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.",
|
2115
2182
|
"default": []
|
2183
|
+
},
|
2184
|
+
"worker_loaders": {
|
2185
|
+
"type": "array",
|
2186
|
+
"items": {
|
2187
|
+
"type": "object",
|
2188
|
+
"properties": {
|
2189
|
+
"binding": {
|
2190
|
+
"type": "string",
|
2191
|
+
"description": "The binding name used to refer to the Worker Loader in the Worker."
|
2192
|
+
}
|
2193
|
+
},
|
2194
|
+
"required": [
|
2195
|
+
"binding"
|
2196
|
+
],
|
2197
|
+
"additionalProperties": false
|
2198
|
+
},
|
2199
|
+
"description": "Specifies Worker Loader 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.",
|
2200
|
+
"default": []
|
2201
|
+
},
|
2202
|
+
"vpc_services": {
|
2203
|
+
"type": "array",
|
2204
|
+
"items": {
|
2205
|
+
"type": "object",
|
2206
|
+
"properties": {
|
2207
|
+
"binding": {
|
2208
|
+
"type": "string",
|
2209
|
+
"description": "The binding name used to refer to the VPC service in the Worker."
|
2210
|
+
},
|
2211
|
+
"service_id": {
|
2212
|
+
"type": "string",
|
2213
|
+
"description": "The service ID of the VPC connectivity service."
|
2214
|
+
},
|
2215
|
+
"remote": {
|
2216
|
+
"type": "boolean",
|
2217
|
+
"description": "Whether the VPC service is remote or not"
|
2218
|
+
}
|
2219
|
+
},
|
2220
|
+
"required": [
|
2221
|
+
"binding",
|
2222
|
+
"service_id"
|
2223
|
+
],
|
2224
|
+
"additionalProperties": false
|
2225
|
+
},
|
2226
|
+
"description": "Specifies VPC services 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.",
|
2227
|
+
"default": []
|
2116
2228
|
}
|
2117
2229
|
},
|
2118
2230
|
"additionalProperties": false,
|
@@ -2489,7 +2601,7 @@
|
|
2489
2601
|
},
|
2490
2602
|
"remote": {
|
2491
2603
|
"type": "boolean",
|
2492
|
-
"description": "Whether the Workflow should be remote or not"
|
2604
|
+
"description": "Whether the Workflow should be remote or not in local development"
|
2493
2605
|
}
|
2494
2606
|
},
|
2495
2607
|
"required": [
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.39.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -54,16 +54,15 @@
|
|
54
54
|
"esbuild": "0.25.4",
|
55
55
|
"path-to-regexp": "6.3.0",
|
56
56
|
"unenv": "2.0.0-rc.21",
|
57
|
-
"workerd": "1.
|
57
|
+
"workerd": "1.20250923.0",
|
58
58
|
"@cloudflare/kv-asset-handler": "0.4.0",
|
59
|
-
"@cloudflare/unenv-preset": "2.7.
|
60
|
-
"miniflare": "4.
|
59
|
+
"@cloudflare/unenv-preset": "2.7.4",
|
60
|
+
"miniflare": "4.20250923.0"
|
61
61
|
},
|
62
62
|
"devDependencies": {
|
63
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
64
|
-
"@cloudflare/jsrpc": "link:../../vendor/jsrpc",
|
65
64
|
"@cloudflare/types": "6.18.4",
|
66
|
-
"@cloudflare/workers-types": "^4.
|
65
|
+
"@cloudflare/workers-types": "^4.20250923.0",
|
67
66
|
"@cspotcode/source-map-support": "0.8.1",
|
68
67
|
"@iarna/toml": "^3.0.0",
|
69
68
|
"@sentry/node": "^7.86.0",
|
@@ -86,10 +85,11 @@
|
|
86
85
|
"@types/yargs": "^17.0.22",
|
87
86
|
"@vitest/ui": "~3.2.0",
|
88
87
|
"@webcontainer/env": "^1.1.0",
|
88
|
+
"capnweb": "^0.1.0",
|
89
89
|
"chalk": "^5.2.0",
|
90
90
|
"chokidar": "^4.0.1",
|
91
91
|
"cli-table3": "^0.6.3",
|
92
|
-
"cloudflare": "^
|
92
|
+
"cloudflare": "^5.1.0",
|
93
93
|
"cmd-shim": "^4.1.0",
|
94
94
|
"command-exists": "^1.2.9",
|
95
95
|
"concurrently": "^8.2.2",
|
@@ -139,14 +139,14 @@
|
|
139
139
|
"xxhash-wasm": "^1.0.1",
|
140
140
|
"yargs": "^17.7.2",
|
141
141
|
"@cloudflare/cli": "1.1.2",
|
142
|
-
"@cloudflare/eslint-config-shared": "1.1.0",
|
143
142
|
"@cloudflare/containers-shared": "0.2.10",
|
144
|
-
"@cloudflare/
|
143
|
+
"@cloudflare/eslint-config-shared": "1.1.0",
|
144
|
+
"@cloudflare/pages-shared": "^0.13.74",
|
145
145
|
"@cloudflare/workers-shared": "0.18.8",
|
146
146
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
147
147
|
},
|
148
148
|
"peerDependencies": {
|
149
|
-
"@cloudflare/workers-types": "^4.
|
149
|
+
"@cloudflare/workers-types": "^4.20250923.0"
|
150
150
|
},
|
151
151
|
"peerDependenciesMeta": {
|
152
152
|
"@cloudflare/workers-types": {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { newWorkersRpcResponse } from "
|
1
|
+
import { newWorkersRpcResponse } from "capnweb";
|
2
2
|
import { EmailMessage } from "cloudflare:email";
|
3
3
|
|
4
4
|
interface Env extends Record<string, unknown> {}
|
@@ -11,7 +11,7 @@ class BindingNotFoundError extends Error {
|
|
11
11
|
|
12
12
|
/**
|
13
13
|
* For most bindings, we expose them as
|
14
|
-
* - RPC stubs directly to
|
14
|
+
* - RPC stubs directly to capnweb, or
|
15
15
|
* - HTTP based fetchers
|
16
16
|
* However, there are some special cases:
|
17
17
|
* - SendEmail bindings need to take EmailMessage as their first parameter,
|
@@ -86,7 +86,7 @@ function getExposedFetcher(request: Request, env: Env) {
|
|
86
86
|
* This Worker can proxy two types of remote binding:
|
87
87
|
* 1. "raw" bindings, where this Worker has been configured to pass through the raw
|
88
88
|
* fetch from a local workerd instance to the relevant binding
|
89
|
-
* 2. JSRPC bindings, where this Worker uses
|
89
|
+
* 2. JSRPC bindings, where this Worker uses capnweb to proxy RPC
|
90
90
|
* communication in userland. This is always over a WebSocket connection
|
91
91
|
*/
|
92
92
|
function isJSRPCBinding(request: Request): boolean {
|