wrangler 3.51.2 → 3.53.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/README.md +1 -1
- package/config-schema.json +126 -87
- package/package.json +7 -14
- package/wrangler-dist/cli.d.ts +98 -50
- package/wrangler-dist/cli.js +35698 -2976
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.53.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wrangler",
|
|
@@ -89,16 +89,14 @@
|
|
|
89
89
|
"resolve.exports": "^2.0.2",
|
|
90
90
|
"selfsigned": "^2.0.1",
|
|
91
91
|
"source-map": "0.6.1",
|
|
92
|
-
"ts-json-schema-generator": "^1.5.0",
|
|
93
92
|
"xxhash-wasm": "^1.0.1",
|
|
94
|
-
"@cloudflare/kv-asset-handler": "0.3.
|
|
95
|
-
"miniflare": "3.
|
|
93
|
+
"@cloudflare/kv-asset-handler": "0.3.2",
|
|
94
|
+
"miniflare": "3.20240419.0"
|
|
96
95
|
},
|
|
97
96
|
"devDependencies": {
|
|
98
|
-
"@cloudflare/ai": "^1.0.35",
|
|
99
97
|
"@cloudflare/eslint-config-worker": "*",
|
|
100
98
|
"@cloudflare/types": "^6.18.4",
|
|
101
|
-
"@cloudflare/workers-types": "^4.
|
|
99
|
+
"@cloudflare/workers-types": "^4.20240419.0",
|
|
102
100
|
"@cspotcode/source-map-support": "0.8.1",
|
|
103
101
|
"@iarna/toml": "^3.0.0",
|
|
104
102
|
"@microsoft/api-extractor": "^7.28.3",
|
|
@@ -106,7 +104,6 @@
|
|
|
106
104
|
"@sentry/types": "^7.86.0",
|
|
107
105
|
"@sentry/utils": "^7.86.0",
|
|
108
106
|
"@types/body-parser": "^1.19.2",
|
|
109
|
-
"@types/busboy": "^1.5.0",
|
|
110
107
|
"@types/command-exists": "^1.2.0",
|
|
111
108
|
"@types/express": "^4.17.13",
|
|
112
109
|
"@types/glob-to-regexp": "0.4.1",
|
|
@@ -121,7 +118,6 @@
|
|
|
121
118
|
"@types/serve-static": "^1.13.10",
|
|
122
119
|
"@types/shell-quote": "^1.7.2",
|
|
123
120
|
"@types/signal-exit": "^3.0.1",
|
|
124
|
-
"@types/source-map-support": "^0.5.7",
|
|
125
121
|
"@types/supports-color": "^8.1.1",
|
|
126
122
|
"@types/ws": "^8.5.3",
|
|
127
123
|
"@types/yargs": "^17.0.10",
|
|
@@ -139,7 +135,6 @@
|
|
|
139
135
|
"esbuild-jest": "0.5.0",
|
|
140
136
|
"execa": "^6.1.0",
|
|
141
137
|
"express": "^4.18.1",
|
|
142
|
-
"finalhandler": "^1.2.0",
|
|
143
138
|
"find-up": "^6.3.0",
|
|
144
139
|
"get-port": "^6.1.2",
|
|
145
140
|
"glob-to-regexp": "0.4.1",
|
|
@@ -150,8 +145,6 @@
|
|
|
150
145
|
"ink-select-input": "^4.2.1",
|
|
151
146
|
"ink-spinner": "^4.0.3",
|
|
152
147
|
"ink-table": "^3.0.0",
|
|
153
|
-
"ink-testing-library": "^2.1.0",
|
|
154
|
-
"ink-text-input": "^4.0.3",
|
|
155
148
|
"is-ci": "^3.0.1",
|
|
156
149
|
"javascript-time-ago": "^2.5.4",
|
|
157
150
|
"jest": "^29.7.0",
|
|
@@ -167,7 +160,6 @@
|
|
|
167
160
|
"prompts": "^2.4.2",
|
|
168
161
|
"react": "^17.0.2",
|
|
169
162
|
"react-error-boundary": "^3.1.4",
|
|
170
|
-
"remove-accents-esm": "^0.0.1",
|
|
171
163
|
"semiver": "^1.1.0",
|
|
172
164
|
"serve-static": "^1.15.0",
|
|
173
165
|
"shell-quote": "^1.8.1",
|
|
@@ -177,6 +169,7 @@
|
|
|
177
169
|
"supports-color": "^9.2.2",
|
|
178
170
|
"timeago.js": "^4.0.2",
|
|
179
171
|
"ts-dedent": "^2.2.0",
|
|
172
|
+
"ts-json-schema-generator": "^1.5.0",
|
|
180
173
|
"undici": "5.28.3",
|
|
181
174
|
"update-check": "^1.5.4",
|
|
182
175
|
"ws": "^8.5.0",
|
|
@@ -184,14 +177,14 @@
|
|
|
184
177
|
"yargs": "^17.7.2",
|
|
185
178
|
"yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
|
|
186
179
|
"@cloudflare/cli": "1.1.1",
|
|
187
|
-
"@cloudflare/pages-shared": "^0.11.
|
|
180
|
+
"@cloudflare/pages-shared": "^0.11.31",
|
|
188
181
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
189
182
|
},
|
|
190
183
|
"optionalDependencies": {
|
|
191
184
|
"fsevents": "~2.3.2"
|
|
192
185
|
},
|
|
193
186
|
"peerDependencies": {
|
|
194
|
-
"@cloudflare/workers-types": "^4.
|
|
187
|
+
"@cloudflare/workers-types": "^4.20240419.0"
|
|
195
188
|
},
|
|
196
189
|
"peerDependenciesMeta": {
|
|
197
190
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -854,7 +854,7 @@ declare interface DeprecatedUpload {
|
|
|
854
854
|
*/
|
|
855
855
|
format?: "modules" | "service-worker";
|
|
856
856
|
/**
|
|
857
|
-
* The directory you wish to upload your
|
|
857
|
+
* The directory you wish to upload your Worker from,
|
|
858
858
|
* relative to the wrangler.toml file.
|
|
859
859
|
*
|
|
860
860
|
* Defaults to the directory containing the wrangler.toml file.
|
|
@@ -1227,7 +1227,7 @@ declare interface DispatchNamespaceOutbound {
|
|
|
1227
1227
|
service: string;
|
|
1228
1228
|
/** (Optional) Name of the environment handling the outbound requests. */
|
|
1229
1229
|
environment?: string;
|
|
1230
|
-
/** (Optional) List of parameter names, for sending context from your dispatch
|
|
1230
|
+
/** (Optional) List of parameter names, for sending context from your dispatch Worker to the outbound handler */
|
|
1231
1231
|
parameters?: string[];
|
|
1232
1232
|
}
|
|
1233
1233
|
|
|
@@ -1240,7 +1240,7 @@ declare type DurableObjectBindings = {
|
|
|
1240
1240
|
name: string;
|
|
1241
1241
|
/** The exported class name of the Durable Object */
|
|
1242
1242
|
class_name: string;
|
|
1243
|
-
/** The script where the Durable Object is defined (if it's external to this
|
|
1243
|
+
/** The script where the Durable Object is defined (if it's external to this Worker) */
|
|
1244
1244
|
script_name?: string;
|
|
1245
1245
|
/** The service environment of the script_name to bind to */
|
|
1246
1246
|
environment?: string;
|
|
@@ -1298,7 +1298,7 @@ declare interface EnvironmentDeprecated {
|
|
|
1298
1298
|
*/
|
|
1299
1299
|
"kv-namespaces"?: string;
|
|
1300
1300
|
/**
|
|
1301
|
-
* A list of services that your
|
|
1301
|
+
* A list of services that your Worker should be bound to.
|
|
1302
1302
|
*
|
|
1303
1303
|
* @default `[]`
|
|
1304
1304
|
* @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.
|
|
@@ -1319,7 +1319,7 @@ declare interface EnvironmentDeprecated {
|
|
|
1319
1319
|
*/
|
|
1320
1320
|
declare interface EnvironmentInheritable {
|
|
1321
1321
|
/**
|
|
1322
|
-
* The name of your
|
|
1322
|
+
* The name of your Worker. Alphanumeric + dashes only.
|
|
1323
1323
|
*
|
|
1324
1324
|
* @inheritable
|
|
1325
1325
|
*/
|
|
@@ -1349,16 +1349,19 @@ declare interface EnvironmentInheritable {
|
|
|
1349
1349
|
*
|
|
1350
1350
|
* More details at https://developers.cloudflare.com/workers/platform/compatibility-dates
|
|
1351
1351
|
*
|
|
1352
|
+
* @default `[]`
|
|
1352
1353
|
* @inheritable
|
|
1353
1354
|
*/
|
|
1354
1355
|
compatibility_flags: string[];
|
|
1355
1356
|
/**
|
|
1356
1357
|
* The entrypoint/path to the JavaScript file that will be executed.
|
|
1358
|
+
*
|
|
1359
|
+
* @inheritable
|
|
1357
1360
|
*/
|
|
1358
1361
|
main: string | undefined;
|
|
1359
1362
|
/**
|
|
1360
1363
|
* If true then Wrangler will traverse the file tree below `base_dir`;
|
|
1361
|
-
* Any files that match `rules` will be included in the deployed
|
|
1364
|
+
* Any files that match `rules` will be included in the deployed Worker.
|
|
1362
1365
|
* Defaults to true if `no_bundle` is true, otherwise false.
|
|
1363
1366
|
*
|
|
1364
1367
|
* @inheritable
|
|
@@ -1369,45 +1372,50 @@ declare interface EnvironmentInheritable {
|
|
|
1369
1372
|
* Defaults to false.
|
|
1370
1373
|
* If left unset, files will be named using the pattern ${fileHash}-${basename},
|
|
1371
1374
|
* for example, `34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico`.
|
|
1375
|
+
*
|
|
1376
|
+
* @inheritable
|
|
1372
1377
|
*/
|
|
1373
1378
|
preserve_file_names: boolean | undefined;
|
|
1374
1379
|
/**
|
|
1375
|
-
* The directory in which module rules should be evaluated when including additional files into a
|
|
1376
|
-
* This defaults to the directory containing the `main` entry point of the
|
|
1380
|
+
* The directory in which module rules should be evaluated when including additional files into a Worker deployment.
|
|
1381
|
+
* This defaults to the directory containing the `main` entry point of the Worker if not specified.
|
|
1377
1382
|
*
|
|
1378
1383
|
* @inheritable
|
|
1379
1384
|
*/
|
|
1380
1385
|
base_dir: string | undefined;
|
|
1381
1386
|
/**
|
|
1382
1387
|
* Whether we use <name>.<subdomain>.workers.dev to
|
|
1383
|
-
* test and deploy your
|
|
1388
|
+
* test and deploy your Worker.
|
|
1384
1389
|
*
|
|
1390
|
+
* // Carmen according to our tests the default is undefined
|
|
1385
1391
|
* @default `true` (This is a breaking change from Wrangler v1)
|
|
1386
1392
|
* @breaking
|
|
1387
1393
|
* @inheritable
|
|
1388
1394
|
*/
|
|
1389
1395
|
workers_dev: boolean | undefined;
|
|
1390
1396
|
/**
|
|
1391
|
-
* A list of routes that your
|
|
1397
|
+
* A list of routes that your Worker should be published to.
|
|
1392
1398
|
* Only one of `routes` or `route` is required.
|
|
1393
1399
|
*
|
|
1394
|
-
* Only required when workers_dev is false, and there's no scheduled
|
|
1400
|
+
* Only required when workers_dev is false, and there's no scheduled Worker (see `triggers`)
|
|
1395
1401
|
*
|
|
1396
1402
|
* @inheritable
|
|
1397
1403
|
*/
|
|
1398
1404
|
routes: Route[] | undefined;
|
|
1399
1405
|
/**
|
|
1400
|
-
* A route that your
|
|
1406
|
+
* A route that your Worker should be published to. Literally
|
|
1401
1407
|
* the same as routes, but only one.
|
|
1402
1408
|
* Only one of `routes` or `route` is required.
|
|
1403
1409
|
*
|
|
1404
|
-
* Only required when workers_dev is false, and there's no scheduled
|
|
1410
|
+
* Only required when workers_dev is false, and there's no scheduled Worker
|
|
1405
1411
|
*
|
|
1406
1412
|
* @inheritable
|
|
1407
1413
|
*/
|
|
1408
1414
|
route: Route | undefined;
|
|
1409
1415
|
/**
|
|
1410
1416
|
* Path to a custom tsconfig
|
|
1417
|
+
*
|
|
1418
|
+
* @inheritable
|
|
1411
1419
|
*/
|
|
1412
1420
|
tsconfig: string | undefined;
|
|
1413
1421
|
/**
|
|
@@ -1425,9 +1433,9 @@ declare interface EnvironmentInheritable {
|
|
|
1425
1433
|
*/
|
|
1426
1434
|
jsx_fragment: string;
|
|
1427
1435
|
/**
|
|
1428
|
-
* "Cron" definitions to trigger a
|
|
1436
|
+
* "Cron" definitions to trigger a Worker's "scheduled" function.
|
|
1429
1437
|
*
|
|
1430
|
-
* Lets you call
|
|
1438
|
+
* Lets you call Workers periodically, much like a cron job.
|
|
1431
1439
|
*
|
|
1432
1440
|
* More details here https://developers.cloudflare.com/workers/platform/cron-triggers
|
|
1433
1441
|
*
|
|
@@ -1471,7 +1479,7 @@ declare interface EnvironmentInheritable {
|
|
|
1471
1479
|
* Refer to the [custom builds documentation](https://developers.cloudflare.com/workers/cli-wrangler/configuration#build)
|
|
1472
1480
|
* for more details.
|
|
1473
1481
|
*
|
|
1474
|
-
* @default {}
|
|
1482
|
+
* @default {watch_dir:"./src"}
|
|
1475
1483
|
*/
|
|
1476
1484
|
build: {
|
|
1477
1485
|
/** The command used to build your Worker. On Linux and macOS, the command is executed in the `sh` shell and the `cmd` shell for Windows. The `&&` and `||` shell operators may be used. */
|
|
@@ -1502,24 +1510,9 @@ declare interface EnvironmentInheritable {
|
|
|
1502
1510
|
*/
|
|
1503
1511
|
node_compat: boolean | undefined;
|
|
1504
1512
|
/**
|
|
1505
|
-
*
|
|
1513
|
+
* Designates this Worker as an internal-only "first-party" Worker.
|
|
1506
1514
|
*
|
|
1507
|
-
*
|
|
1508
|
-
* and so must be specified in every named environment.
|
|
1509
|
-
*
|
|
1510
|
-
* @default `[]`
|
|
1511
|
-
* @nonInheritable
|
|
1512
|
-
*/
|
|
1513
|
-
dispatch_namespaces: {
|
|
1514
|
-
/** The binding name used to refer to the bound service. */
|
|
1515
|
-
binding: string;
|
|
1516
|
-
/** The namespace to bind to. */
|
|
1517
|
-
namespace: string;
|
|
1518
|
-
/** Details about the outbound worker which will handle outbound requests from your namespace */
|
|
1519
|
-
outbound?: DispatchNamespaceOutbound;
|
|
1520
|
-
}[];
|
|
1521
|
-
/**
|
|
1522
|
-
* Designates this worker as an internal-only "first-party" worker.
|
|
1515
|
+
* @inheritable
|
|
1523
1516
|
*/
|
|
1524
1517
|
first_party_worker: boolean | undefined;
|
|
1525
1518
|
/**
|
|
@@ -1544,7 +1537,7 @@ declare interface EnvironmentInheritable {
|
|
|
1544
1537
|
}[];
|
|
1545
1538
|
};
|
|
1546
1539
|
/**
|
|
1547
|
-
* Send Trace Events from this
|
|
1540
|
+
* Send Trace Events from this Worker to Workers Logpush.
|
|
1548
1541
|
*
|
|
1549
1542
|
* This will not configure a corresponding Logpush job automatically.
|
|
1550
1543
|
*
|
|
@@ -1560,9 +1553,11 @@ declare interface EnvironmentInheritable {
|
|
|
1560
1553
|
*/
|
|
1561
1554
|
upload_source_maps: boolean | undefined;
|
|
1562
1555
|
/**
|
|
1563
|
-
* Specify how the
|
|
1556
|
+
* Specify how the Worker should be located to minimize round-trip time.
|
|
1564
1557
|
*
|
|
1565
1558
|
* More details: https://developers.cloudflare.com/workers/platform/smart-placement/
|
|
1559
|
+
*
|
|
1560
|
+
* @inheritable
|
|
1566
1561
|
*/
|
|
1567
1562
|
placement: {
|
|
1568
1563
|
mode: "off" | "smart";
|
|
@@ -1596,7 +1591,7 @@ declare interface EnvironmentMap {
|
|
|
1596
1591
|
*/
|
|
1597
1592
|
declare interface EnvironmentNonInheritable {
|
|
1598
1593
|
/**
|
|
1599
|
-
* A map of values to substitute when deploying your
|
|
1594
|
+
* A map of values to substitute when deploying your Worker.
|
|
1600
1595
|
*
|
|
1601
1596
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1602
1597
|
* and so must be specified in every named environment.
|
|
@@ -1606,7 +1601,7 @@ declare interface EnvironmentNonInheritable {
|
|
|
1606
1601
|
*/
|
|
1607
1602
|
define: Record<string, string>;
|
|
1608
1603
|
/**
|
|
1609
|
-
* A map of environment variables to set when deploying your
|
|
1604
|
+
* A map of environment variables to set when deploying your Worker.
|
|
1610
1605
|
*
|
|
1611
1606
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1612
1607
|
* and so must be specified in every named environment.
|
|
@@ -1616,7 +1611,7 @@ declare interface EnvironmentNonInheritable {
|
|
|
1616
1611
|
*/
|
|
1617
1612
|
vars: Record<string, string | Json>;
|
|
1618
1613
|
/**
|
|
1619
|
-
* A list of durable objects that your
|
|
1614
|
+
* A list of durable objects that your Worker should be bound to.
|
|
1620
1615
|
*
|
|
1621
1616
|
* For more information about Durable Objects, see the documentation at
|
|
1622
1617
|
* https://developers.cloudflare.com/workers/learning/using-durable-objects
|
|
@@ -1684,13 +1679,13 @@ declare interface EnvironmentNonInheritable {
|
|
|
1684
1679
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1685
1680
|
* and so must be specified in every named environment.
|
|
1686
1681
|
*
|
|
1687
|
-
* @default `{}`
|
|
1682
|
+
* @default `{consumers:[],producers:[]}`
|
|
1688
1683
|
* @nonInheritable
|
|
1689
1684
|
*/
|
|
1690
1685
|
queues: {
|
|
1691
1686
|
/** Producer bindings */
|
|
1692
1687
|
producers?: {
|
|
1693
|
-
/** The binding name used to refer to the Queue in the
|
|
1688
|
+
/** The binding name used to refer to the Queue in the Worker. */
|
|
1694
1689
|
binding: string;
|
|
1695
1690
|
/** The name of this Queue. */
|
|
1696
1691
|
queue: string;
|
|
@@ -1729,7 +1724,7 @@ declare interface EnvironmentNonInheritable {
|
|
|
1729
1724
|
* @nonInheritable
|
|
1730
1725
|
*/
|
|
1731
1726
|
r2_buckets: {
|
|
1732
|
-
/** The binding name used to refer to the R2 bucket in the
|
|
1727
|
+
/** The binding name used to refer to the R2 bucket in the Worker. */
|
|
1733
1728
|
binding: string;
|
|
1734
1729
|
/** The name of this R2 bucket at the edge. */
|
|
1735
1730
|
bucket_name: string;
|
|
@@ -1748,7 +1743,7 @@ declare interface EnvironmentNonInheritable {
|
|
|
1748
1743
|
* @nonInheritable
|
|
1749
1744
|
*/
|
|
1750
1745
|
d1_databases: {
|
|
1751
|
-
/** The binding name used to refer to the D1 database in the
|
|
1746
|
+
/** The binding name used to refer to the D1 database in the Worker. */
|
|
1752
1747
|
binding: string;
|
|
1753
1748
|
/** The name of this D1 database. */
|
|
1754
1749
|
database_name: string;
|
|
@@ -1773,7 +1768,7 @@ declare interface EnvironmentNonInheritable {
|
|
|
1773
1768
|
* @nonInheritable
|
|
1774
1769
|
*/
|
|
1775
1770
|
vectorize: {
|
|
1776
|
-
/** The binding name used to refer to the Vectorize index in the
|
|
1771
|
+
/** The binding name used to refer to the Vectorize index in the Worker. */
|
|
1777
1772
|
binding: string;
|
|
1778
1773
|
/** The name of the index. */
|
|
1779
1774
|
index_name: string;
|
|
@@ -1788,7 +1783,7 @@ declare interface EnvironmentNonInheritable {
|
|
|
1788
1783
|
* @nonInheritable
|
|
1789
1784
|
*/
|
|
1790
1785
|
constellation: {
|
|
1791
|
-
/** The binding name used to refer to the project in the
|
|
1786
|
+
/** The binding name used to refer to the project in the Worker. */
|
|
1792
1787
|
binding: string;
|
|
1793
1788
|
/** The id of the project. */
|
|
1794
1789
|
project_id: string;
|
|
@@ -1803,7 +1798,7 @@ declare interface EnvironmentNonInheritable {
|
|
|
1803
1798
|
* @nonInheritable
|
|
1804
1799
|
*/
|
|
1805
1800
|
hyperdrive: {
|
|
1806
|
-
/** The binding name used to refer to the project in the
|
|
1801
|
+
/** The binding name used to refer to the project in the Worker. */
|
|
1807
1802
|
binding: string;
|
|
1808
1803
|
/** The id of the database. */
|
|
1809
1804
|
id: string;
|
|
@@ -1811,7 +1806,7 @@ declare interface EnvironmentNonInheritable {
|
|
|
1811
1806
|
localConnectionString?: string;
|
|
1812
1807
|
}[];
|
|
1813
1808
|
/**
|
|
1814
|
-
* Specifies service bindings (
|
|
1809
|
+
* Specifies service bindings (Worker-to-Worker) that are bound to this Worker environment.
|
|
1815
1810
|
*
|
|
1816
1811
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1817
1812
|
* and so must be specified in every named environment.
|
|
@@ -1839,22 +1834,35 @@ declare interface EnvironmentNonInheritable {
|
|
|
1839
1834
|
* @nonInheritable
|
|
1840
1835
|
*/
|
|
1841
1836
|
analytics_engine_datasets: {
|
|
1842
|
-
/** The binding name used to refer to the dataset in the
|
|
1837
|
+
/** The binding name used to refer to the dataset in the Worker. */
|
|
1843
1838
|
binding: string;
|
|
1844
1839
|
/** The name of this dataset to write to. */
|
|
1845
1840
|
dataset?: string;
|
|
1846
1841
|
}[];
|
|
1847
1842
|
/**
|
|
1848
|
-
* A browser that will be usable from the
|
|
1843
|
+
* A browser that will be usable from the Worker.
|
|
1844
|
+
*
|
|
1845
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1846
|
+
* and so must be specified in every named environment.
|
|
1847
|
+
*
|
|
1848
|
+
* @default `{}`
|
|
1849
|
+
* @nonInheritable
|
|
1849
1850
|
*/
|
|
1850
1851
|
browser: {
|
|
1851
1852
|
binding: string;
|
|
1852
1853
|
} | undefined;
|
|
1853
1854
|
/**
|
|
1854
1855
|
* Binding to the AI project.
|
|
1856
|
+
*
|
|
1857
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1858
|
+
* and so must be specified in every named environment.
|
|
1859
|
+
*
|
|
1860
|
+
* @default `{}`
|
|
1861
|
+
* @nonInheritable
|
|
1855
1862
|
*/
|
|
1856
1863
|
ai: {
|
|
1857
1864
|
binding: string;
|
|
1865
|
+
staging?: boolean;
|
|
1858
1866
|
} | undefined;
|
|
1859
1867
|
/**
|
|
1860
1868
|
* Binding to the Worker Version's metadata
|
|
@@ -1868,6 +1876,7 @@ declare interface EnvironmentNonInheritable {
|
|
|
1868
1876
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1869
1877
|
* and so must be specified in every named environment.
|
|
1870
1878
|
*
|
|
1879
|
+
* @default `{}`
|
|
1871
1880
|
* @nonInheritable
|
|
1872
1881
|
*/
|
|
1873
1882
|
unsafe: {
|
|
@@ -1901,13 +1910,48 @@ declare interface EnvironmentNonInheritable {
|
|
|
1901
1910
|
compiled_schema: string;
|
|
1902
1911
|
};
|
|
1903
1912
|
};
|
|
1913
|
+
/**
|
|
1914
|
+
* Specifies a list of mTLS certificates that are bound to this Worker environment.
|
|
1915
|
+
*
|
|
1916
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1917
|
+
* and so must be specified in every named environment.
|
|
1918
|
+
*
|
|
1919
|
+
* @default `[]`
|
|
1920
|
+
* @nonInheritable
|
|
1921
|
+
*/
|
|
1904
1922
|
mtls_certificates: {
|
|
1905
|
-
/** The binding name used to refer to the certificate in the
|
|
1923
|
+
/** The binding name used to refer to the certificate in the Worker */
|
|
1906
1924
|
binding: string;
|
|
1907
1925
|
/** The uuid of the uploaded mTLS certificate */
|
|
1908
1926
|
certificate_id: string;
|
|
1909
1927
|
}[];
|
|
1928
|
+
/**
|
|
1929
|
+
* Specifies a list of Tail Workers that are bound to this Worker environment
|
|
1930
|
+
*
|
|
1931
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1932
|
+
* and so must be specified in every named environment.
|
|
1933
|
+
*
|
|
1934
|
+
* @default `[]`
|
|
1935
|
+
* @nonInheritable
|
|
1936
|
+
*/
|
|
1910
1937
|
tail_consumers?: TailConsumer[];
|
|
1938
|
+
/**
|
|
1939
|
+
* Specifies namespace bindings that are bound to this Worker environment.
|
|
1940
|
+
*
|
|
1941
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1942
|
+
* and so must be specified in every named environment.
|
|
1943
|
+
*
|
|
1944
|
+
* @default `[]`
|
|
1945
|
+
* @nonInheritable
|
|
1946
|
+
*/
|
|
1947
|
+
dispatch_namespaces: {
|
|
1948
|
+
/** The binding name used to refer to the bound service. */
|
|
1949
|
+
binding: string;
|
|
1950
|
+
/** The namespace to bind to. */
|
|
1951
|
+
namespace: string;
|
|
1952
|
+
/** Details about the outbound Worker which will handle outbound requests from your namespace */
|
|
1953
|
+
outbound?: DispatchNamespaceOutbound;
|
|
1954
|
+
}[];
|
|
1911
1955
|
}
|
|
1912
1956
|
|
|
1913
1957
|
declare type ErrorEvent = BaseErrorEvent<"ConfigController" | "BundlerController" | "LocalRuntimeController" | "RemoteRuntimeController" | "ProxyWorker" | "InspectorProxyWorker"> | BaseErrorEvent<"ProxyController", {
|
|
@@ -2328,6 +2372,10 @@ export declare function getPlatformProxy<Env = Record<string, unknown>, CfProper
|
|
|
2328
2372
|
* Options for the `getPlatformProxy` utility
|
|
2329
2373
|
*/
|
|
2330
2374
|
export declare type GetPlatformProxyOptions = {
|
|
2375
|
+
/**
|
|
2376
|
+
* The name of the environment to use
|
|
2377
|
+
*/
|
|
2378
|
+
environment?: string;
|
|
2331
2379
|
/**
|
|
2332
2380
|
* The path to the config object to use (default `wrangler.toml`)
|
|
2333
2381
|
*/
|
|
@@ -23892,7 +23940,7 @@ declare type UrlOriginAndPathnameParts = Pick<URL, "protocol" | "hostname" | "po
|
|
|
23892
23940
|
declare type UrlOriginParts = Pick<URL, "protocol" | "hostname" | "port">;
|
|
23893
23941
|
|
|
23894
23942
|
declare interface UserLimits {
|
|
23895
|
-
/** Maximum allowed CPU time for a
|
|
23943
|
+
/** Maximum allowed CPU time for a Worker's invocation in milliseconds */
|
|
23896
23944
|
cpu_ms: number;
|
|
23897
23945
|
}
|
|
23898
23946
|
|