wrangler 3.103.2 → 3.105.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 +122 -95
- package/package.json +9 -5
- package/wrangler-dist/cli.d.ts +39 -34
- package/wrangler-dist/cli.js +1281 -953
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.105.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -55,7 +55,7 @@
|
|
55
55
|
"blake3-wasm": "2.1.5",
|
56
56
|
"esbuild": "0.17.19",
|
57
57
|
"path-to-regexp": "6.3.0",
|
58
|
-
"unenv": "
|
58
|
+
"unenv": "2.0.0-rc.0",
|
59
59
|
"workerd": "1.20241230.0",
|
60
60
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
61
61
|
"miniflare": "3.20241230.2"
|
@@ -76,6 +76,8 @@
|
|
76
76
|
"@types/javascript-time-ago": "^2.0.3",
|
77
77
|
"@types/mime": "^3.0.4",
|
78
78
|
"@types/minimatch": "^5.1.2",
|
79
|
+
"@types/node": "^18.19.59",
|
80
|
+
"@types/node-forge": "^1.3.11",
|
79
81
|
"@types/prompts": "^2.0.14",
|
80
82
|
"@types/resolve": "^1.20.6",
|
81
83
|
"@types/shell-quote": "^1.7.2",
|
@@ -108,6 +110,7 @@
|
|
108
110
|
"minimatch": "^5.1.0",
|
109
111
|
"mock-socket": "^9.3.1",
|
110
112
|
"msw": "2.4.3",
|
113
|
+
"node-forge": "^1.3.1",
|
111
114
|
"open": "^8.4.0",
|
112
115
|
"p-queue": "^7.2.0",
|
113
116
|
"patch-console": "^1.0.0",
|
@@ -125,6 +128,7 @@
|
|
125
128
|
"timeago.js": "^4.0.2",
|
126
129
|
"ts-dedent": "^2.2.0",
|
127
130
|
"ts-json-schema-generator": "^1.5.0",
|
131
|
+
"typescript": "~5.6.3",
|
128
132
|
"undici": "^5.28.4",
|
129
133
|
"update-check": "^1.5.4",
|
130
134
|
"vitest": "~2.1.8",
|
@@ -133,11 +137,11 @@
|
|
133
137
|
"xdg-app-paths": "^8.3.0",
|
134
138
|
"xxhash-wasm": "^1.0.1",
|
135
139
|
"yargs": "^17.7.2",
|
136
|
-
"@cloudflare/cli": "1.1.1",
|
137
140
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
138
|
-
"@cloudflare/workers-tsconfig": "0.0.0",
|
139
141
|
"@cloudflare/pages-shared": "^0.13.2",
|
140
|
-
"@cloudflare/
|
142
|
+
"@cloudflare/cli": "1.1.1",
|
143
|
+
"@cloudflare/workers-shared": "0.12.3",
|
144
|
+
"@cloudflare/workers-tsconfig": "0.0.0"
|
141
145
|
},
|
142
146
|
"peerDependencies": {
|
143
147
|
"@cloudflare/workers-types": "^4.20241230.0"
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -1561,7 +1561,7 @@ declare interface EnvironmentDeprecated {
|
|
1561
1561
|
/**
|
1562
1562
|
* A list of services that your Worker should be bound to.
|
1563
1563
|
*
|
1564
|
-
* @default
|
1564
|
+
* @default []
|
1565
1565
|
* @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.
|
1566
1566
|
*/
|
1567
1567
|
experimental_services?: {
|
@@ -1606,11 +1606,11 @@ declare interface EnvironmentInheritable {
|
|
1606
1606
|
compatibility_date: string | undefined;
|
1607
1607
|
/**
|
1608
1608
|
* A list of flags that enable features from upcoming features of
|
1609
|
-
* the Workers runtime, usually used together with
|
1609
|
+
* the Workers runtime, usually used together with compatibility_date.
|
1610
1610
|
*
|
1611
|
-
* More details at https://developers.cloudflare.com/workers/platform/compatibility-
|
1611
|
+
* More details at https://developers.cloudflare.com/workers/platform/compatibility-flags
|
1612
1612
|
*
|
1613
|
-
* @default
|
1613
|
+
* @default []
|
1614
1614
|
* @inheritable
|
1615
1615
|
*/
|
1616
1616
|
compatibility_flags: string[];
|
@@ -1648,9 +1648,8 @@ declare interface EnvironmentInheritable {
|
|
1648
1648
|
* Whether we use <name>.<subdomain>.workers.dev to
|
1649
1649
|
* test and deploy your Worker.
|
1650
1650
|
*
|
1651
|
-
*
|
1652
|
-
*
|
1653
|
-
* @default `true` (This is a breaking change from Wrangler v1)
|
1651
|
+
*
|
1652
|
+
* @default true
|
1654
1653
|
* @breaking
|
1655
1654
|
* @inheritable
|
1656
1655
|
*/
|
@@ -1659,7 +1658,7 @@ declare interface EnvironmentInheritable {
|
|
1659
1658
|
* Whether we use <version>-<name>.<subdomain>.workers.dev to
|
1660
1659
|
* serve Preview URLs for your Worker.
|
1661
1660
|
*
|
1662
|
-
* @default
|
1661
|
+
* @default true
|
1663
1662
|
* @inheritable
|
1664
1663
|
*/
|
1665
1664
|
preview_urls: boolean | undefined;
|
@@ -1691,14 +1690,14 @@ declare interface EnvironmentInheritable {
|
|
1691
1690
|
/**
|
1692
1691
|
* The function to use to replace jsx syntax.
|
1693
1692
|
*
|
1694
|
-
* @default
|
1693
|
+
* @default "React.createElement"
|
1695
1694
|
* @inheritable
|
1696
1695
|
*/
|
1697
1696
|
jsx_factory: string;
|
1698
1697
|
/**
|
1699
1698
|
* The function to use to replace jsx fragment syntax.
|
1700
1699
|
*
|
1701
|
-
* @default
|
1700
|
+
* @default "React.Fragment"
|
1702
1701
|
* @inheritable
|
1703
1702
|
*/
|
1704
1703
|
jsx_fragment: string;
|
@@ -1720,7 +1719,7 @@ declare interface EnvironmentInheritable {
|
|
1720
1719
|
*
|
1721
1720
|
* More details here https://developers.cloudflare.com/workers/platform/cron-triggers
|
1722
1721
|
*
|
1723
|
-
* @default
|
1722
|
+
* @default {crons:[]}
|
1724
1723
|
* @inheritable
|
1725
1724
|
*/
|
1726
1725
|
triggers: {
|
@@ -1806,7 +1805,7 @@ declare interface EnvironmentInheritable {
|
|
1806
1805
|
/**
|
1807
1806
|
* List of bindings that you will send to logfwdr
|
1808
1807
|
*
|
1809
|
-
* @default
|
1808
|
+
* @default {bindings:[]}
|
1810
1809
|
* @inheritable
|
1811
1810
|
*/
|
1812
1811
|
logfwdr: {
|
@@ -1892,7 +1891,7 @@ declare interface EnvironmentNonInheritable {
|
|
1892
1891
|
* NOTE: This field is not automatically inherited from the top level environment,
|
1893
1892
|
* and so must be specified in every named environment.
|
1894
1893
|
*
|
1895
|
-
* @default
|
1894
|
+
* @default {}
|
1896
1895
|
* @nonInheritable
|
1897
1896
|
*/
|
1898
1897
|
define: Record<string, string>;
|
@@ -1902,7 +1901,7 @@ declare interface EnvironmentNonInheritable {
|
|
1902
1901
|
* NOTE: This field is not automatically inherited from the top level environment,
|
1903
1902
|
* and so must be specified in every named environment.
|
1904
1903
|
*
|
1905
|
-
* @default
|
1904
|
+
* @default {}
|
1906
1905
|
* @nonInheritable
|
1907
1906
|
*/
|
1908
1907
|
vars: Record<string, string | Json>;
|
@@ -1915,7 +1914,7 @@ declare interface EnvironmentNonInheritable {
|
|
1915
1914
|
* NOTE: This field is not automatically inherited from the top level environment,
|
1916
1915
|
* and so must be specified in every named environment.
|
1917
1916
|
*
|
1918
|
-
* @default
|
1917
|
+
* @default {bindings:[]}
|
1919
1918
|
* @nonInheritable
|
1920
1919
|
*/
|
1921
1920
|
durable_objects: {
|
@@ -1927,7 +1926,7 @@ declare interface EnvironmentNonInheritable {
|
|
1927
1926
|
* NOTE: This field is not automatically inherited from the top level environment,
|
1928
1927
|
* and so must be specified in every named environment.
|
1929
1928
|
*
|
1930
|
-
* @default
|
1929
|
+
* @default []
|
1931
1930
|
* @nonInheritable
|
1932
1931
|
*/
|
1933
1932
|
workflows: WorkflowBinding[];
|
@@ -1937,7 +1936,7 @@ declare interface EnvironmentNonInheritable {
|
|
1937
1936
|
* NOTE: This field is not automatically inherited from the top level environment,
|
1938
1937
|
* and so must be specified in every named environment.
|
1939
1938
|
*
|
1940
|
-
* @default
|
1939
|
+
* @default {}
|
1941
1940
|
* @nonInheritable
|
1942
1941
|
*/
|
1943
1942
|
cloudchamber: CloudchamberConfig;
|
@@ -1951,7 +1950,7 @@ declare interface EnvironmentNonInheritable {
|
|
1951
1950
|
* NOTE: This field is not automatically inherited from the top level environment,
|
1952
1951
|
* and so must be specified in every named environment.
|
1953
1952
|
*
|
1954
|
-
* @default
|
1953
|
+
* @default {}
|
1955
1954
|
* @nonInheritable
|
1956
1955
|
*/
|
1957
1956
|
app: ContainerApp[];
|
@@ -1966,7 +1965,7 @@ declare interface EnvironmentNonInheritable {
|
|
1966
1965
|
* NOTE: This field is not automatically inherited from the top level environment,
|
1967
1966
|
* and so must be specified in every named environment.
|
1968
1967
|
*
|
1969
|
-
* @default
|
1968
|
+
* @default []
|
1970
1969
|
* @nonInheritable
|
1971
1970
|
*/
|
1972
1971
|
kv_namespaces: {
|
@@ -1983,7 +1982,7 @@ declare interface EnvironmentNonInheritable {
|
|
1983
1982
|
* NOTE: This field is not automatically inherited from the top level environment,
|
1984
1983
|
* and so must be specified in every named environment.
|
1985
1984
|
*
|
1986
|
-
* @default
|
1985
|
+
* @default []
|
1987
1986
|
* @nonInheritable
|
1988
1987
|
*/
|
1989
1988
|
send_email: {
|
@@ -2000,7 +1999,7 @@ declare interface EnvironmentNonInheritable {
|
|
2000
1999
|
* NOTE: This field is not automatically inherited from the top level environment,
|
2001
2000
|
* and so must be specified in every named environment.
|
2002
2001
|
*
|
2003
|
-
* @default
|
2002
|
+
* @default {consumers:[],producers:[]}
|
2004
2003
|
* @nonInheritable
|
2005
2004
|
*/
|
2006
2005
|
queues: {
|
@@ -2041,7 +2040,7 @@ declare interface EnvironmentNonInheritable {
|
|
2041
2040
|
* NOTE: This field is not automatically inherited from the top level environment,
|
2042
2041
|
* and so must be specified in every named environment.
|
2043
2042
|
*
|
2044
|
-
* @default
|
2043
|
+
* @default []
|
2045
2044
|
* @nonInheritable
|
2046
2045
|
*/
|
2047
2046
|
r2_buckets: {
|
@@ -2060,7 +2059,7 @@ declare interface EnvironmentNonInheritable {
|
|
2060
2059
|
* NOTE: This field is not automatically inherited from the top level environment,
|
2061
2060
|
* and so must be specified in every named environment.
|
2062
2061
|
*
|
2063
|
-
* @default
|
2062
|
+
* @default []
|
2064
2063
|
* @nonInheritable
|
2065
2064
|
*/
|
2066
2065
|
d1_databases: {
|
@@ -2085,7 +2084,7 @@ declare interface EnvironmentNonInheritable {
|
|
2085
2084
|
* NOTE: This field is not automatically inherited from the top level environment,
|
2086
2085
|
* and so must be specified in every named environment.
|
2087
2086
|
*
|
2088
|
-
* @default
|
2087
|
+
* @default []
|
2089
2088
|
* @nonInheritable
|
2090
2089
|
*/
|
2091
2090
|
vectorize: {
|
@@ -2100,7 +2099,7 @@ declare interface EnvironmentNonInheritable {
|
|
2100
2099
|
* NOTE: This field is not automatically inherited from the top level environment,
|
2101
2100
|
* and so must be specified in every named environment.
|
2102
2101
|
*
|
2103
|
-
* @default
|
2102
|
+
* @default []
|
2104
2103
|
* @nonInheritable
|
2105
2104
|
*/
|
2106
2105
|
hyperdrive: {
|
@@ -2117,7 +2116,7 @@ declare interface EnvironmentNonInheritable {
|
|
2117
2116
|
* NOTE: This field is not automatically inherited from the top level environment,
|
2118
2117
|
* and so must be specified in every named environment.
|
2119
2118
|
*
|
2120
|
-
* @default
|
2119
|
+
* @default []
|
2121
2120
|
* @nonInheritable
|
2122
2121
|
*/
|
2123
2122
|
services: {
|
@@ -2136,7 +2135,7 @@ declare interface EnvironmentNonInheritable {
|
|
2136
2135
|
* NOTE: This field is not automatically inherited from the top level environment,
|
2137
2136
|
* and so must be specified in every named environment.
|
2138
2137
|
*
|
2139
|
-
* @default
|
2138
|
+
* @default []
|
2140
2139
|
* @nonInheritable
|
2141
2140
|
*/
|
2142
2141
|
analytics_engine_datasets: {
|
@@ -2151,7 +2150,7 @@ declare interface EnvironmentNonInheritable {
|
|
2151
2150
|
* NOTE: This field is not automatically inherited from the top level environment,
|
2152
2151
|
* and so must be specified in every named environment.
|
2153
2152
|
*
|
2154
|
-
* @default
|
2153
|
+
* @default {}
|
2155
2154
|
* @nonInheritable
|
2156
2155
|
*/
|
2157
2156
|
browser: {
|
@@ -2163,7 +2162,7 @@ declare interface EnvironmentNonInheritable {
|
|
2163
2162
|
* NOTE: This field is not automatically inherited from the top level environment,
|
2164
2163
|
* and so must be specified in every named environment.
|
2165
2164
|
*
|
2166
|
-
* @default
|
2165
|
+
* @default {}
|
2167
2166
|
* @nonInheritable
|
2168
2167
|
*/
|
2169
2168
|
ai: {
|
@@ -2182,7 +2181,7 @@ declare interface EnvironmentNonInheritable {
|
|
2182
2181
|
* NOTE: This field is not automatically inherited from the top level environment,
|
2183
2182
|
* and so must be specified in every named environment.
|
2184
2183
|
*
|
2185
|
-
* @default
|
2184
|
+
* @default {}
|
2186
2185
|
* @nonInheritable
|
2187
2186
|
*/
|
2188
2187
|
unsafe: {
|
@@ -2222,7 +2221,7 @@ declare interface EnvironmentNonInheritable {
|
|
2222
2221
|
* NOTE: This field is not automatically inherited from the top level environment,
|
2223
2222
|
* and so must be specified in every named environment.
|
2224
2223
|
*
|
2225
|
-
* @default
|
2224
|
+
* @default []
|
2226
2225
|
* @nonInheritable
|
2227
2226
|
*/
|
2228
2227
|
mtls_certificates: {
|
@@ -2237,7 +2236,7 @@ declare interface EnvironmentNonInheritable {
|
|
2237
2236
|
* NOTE: This field is not automatically inherited from the top level environment,
|
2238
2237
|
* and so must be specified in every named environment.
|
2239
2238
|
*
|
2240
|
-
* @default
|
2239
|
+
* @default []
|
2241
2240
|
* @nonInheritable
|
2242
2241
|
*/
|
2243
2242
|
tail_consumers?: TailConsumer[];
|
@@ -2247,7 +2246,7 @@ declare interface EnvironmentNonInheritable {
|
|
2247
2246
|
* NOTE: This field is not automatically inherited from the top level environment,
|
2248
2247
|
* and so must be specified in every named environment.
|
2249
2248
|
*
|
2250
|
-
* @default
|
2249
|
+
* @default []
|
2251
2250
|
* @nonInheritable
|
2252
2251
|
*/
|
2253
2252
|
dispatch_namespaces: {
|
@@ -2264,7 +2263,7 @@ declare interface EnvironmentNonInheritable {
|
|
2264
2263
|
* NOTE: This field is not automatically inherited from the top level environment,
|
2265
2264
|
* and so must be specified in every named environment.
|
2266
2265
|
*
|
2267
|
-
* @default
|
2266
|
+
* @default []
|
2268
2267
|
* @nonInheritable
|
2269
2268
|
*/
|
2270
2269
|
pipelines: {
|
@@ -26001,12 +26000,18 @@ declare type RoutingConfig = z.infer<typeof RoutingConfigSchema>;
|
|
26001
26000
|
declare const RoutingConfigSchema: z.ZodObject<{
|
26002
26001
|
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
26003
26002
|
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
26003
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
26004
|
+
script_id: z.ZodOptional<z.ZodNumber>;
|
26004
26005
|
}, "strip", z.ZodTypeAny, {
|
26005
26006
|
has_user_worker?: boolean;
|
26006
26007
|
invoke_user_worker_ahead_of_assets?: boolean;
|
26008
|
+
account_id?: number;
|
26009
|
+
script_id?: number;
|
26007
26010
|
}, {
|
26008
26011
|
has_user_worker?: boolean;
|
26009
26012
|
invoke_user_worker_ahead_of_assets?: boolean;
|
26013
|
+
account_id?: number;
|
26014
|
+
script_id?: number;
|
26010
26015
|
}>;
|
26011
26016
|
|
26012
26017
|
/**
|