wrangler 4.158.0 → 4.160.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/bin/cf-wrangler.js +1 -77
- package/bin/wrangler.js +24 -10
- package/config-schema.json +21 -6
- package/package.json +20 -20
- package/wrangler-dist/cli.d.ts +54 -52
- package/wrangler-dist/cli.js +8042 -3019
- package/wrangler-dist/experimental-config.d.mts +1 -1
- package/wrangler-dist/experimental-config.d.mts.map +1 -1
package/bin/cf-wrangler.js
CHANGED
|
@@ -18,7 +18,7 @@ const verb = argv[0];
|
|
|
18
18
|
const verbHandlers = {
|
|
19
19
|
dev: {
|
|
20
20
|
parse: parseCfWranglerArgs,
|
|
21
|
-
run:
|
|
21
|
+
run: runCfWranglerDev,
|
|
22
22
|
},
|
|
23
23
|
build: {
|
|
24
24
|
parse: parseCfWranglerBuildArgs,
|
|
@@ -54,79 +54,3 @@ verbHandler
|
|
|
54
54
|
process.stderr.write(`${(err && err.stack) || err}\n`);
|
|
55
55
|
process.exit(1);
|
|
56
56
|
});
|
|
57
|
-
|
|
58
|
-
function runCfWranglerDevFromArgs(parsedArgs) {
|
|
59
|
-
return runCfWranglerDev(createDevOptions(parsedArgs));
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function createDevOptions(parsedArgs) {
|
|
63
|
-
// Build wrangler dev's full (yargs-derived) options object. Every field
|
|
64
|
-
// must be present; we set the four accepted flags, force cf's new config
|
|
65
|
-
// format, and otherwise use `wrangler dev`'s defaults.
|
|
66
|
-
return {
|
|
67
|
-
_: [],
|
|
68
|
-
$0: "",
|
|
69
|
-
env: parsedArgs.mode,
|
|
70
|
-
port: parsedArgs.port,
|
|
71
|
-
host: parsedArgs.host,
|
|
72
|
-
local: parsedArgs.local,
|
|
73
|
-
remote: false,
|
|
74
|
-
latest: true,
|
|
75
|
-
noBundle: false,
|
|
76
|
-
testScheduled: false,
|
|
77
|
-
processEntrypoint: false,
|
|
78
|
-
experimentalAutoCreate: false,
|
|
79
|
-
experimentalNewConfig: true,
|
|
80
|
-
types: false,
|
|
81
|
-
disableDevRegistry: false,
|
|
82
|
-
config: undefined,
|
|
83
|
-
script: undefined,
|
|
84
|
-
name: undefined,
|
|
85
|
-
accountId: undefined,
|
|
86
|
-
forceLocal: undefined,
|
|
87
|
-
compatibilityDate: undefined,
|
|
88
|
-
compatibilityFlags: undefined,
|
|
89
|
-
ip: undefined,
|
|
90
|
-
inspectorPort: undefined,
|
|
91
|
-
inspectorIp: undefined,
|
|
92
|
-
v: undefined,
|
|
93
|
-
cwd: undefined,
|
|
94
|
-
localProtocol: undefined,
|
|
95
|
-
httpsKeyPath: undefined,
|
|
96
|
-
httpsCertPath: undefined,
|
|
97
|
-
assets: undefined,
|
|
98
|
-
site: undefined,
|
|
99
|
-
siteInclude: undefined,
|
|
100
|
-
siteExclude: undefined,
|
|
101
|
-
persist: undefined,
|
|
102
|
-
persistTo: undefined,
|
|
103
|
-
routes: undefined,
|
|
104
|
-
localUpstream: undefined,
|
|
105
|
-
upstreamProtocol: undefined,
|
|
106
|
-
var: undefined,
|
|
107
|
-
define: undefined,
|
|
108
|
-
alias: undefined,
|
|
109
|
-
jsxFactory: undefined,
|
|
110
|
-
jsxFragment: undefined,
|
|
111
|
-
tsconfig: undefined,
|
|
112
|
-
minify: undefined,
|
|
113
|
-
logLevel: undefined,
|
|
114
|
-
showInteractiveDevSession: undefined,
|
|
115
|
-
liveReload: undefined,
|
|
116
|
-
bundle: undefined,
|
|
117
|
-
additionalModules: undefined,
|
|
118
|
-
enablePagesAssetsServiceBinding: undefined,
|
|
119
|
-
d1Databases: undefined,
|
|
120
|
-
experimentalProvision: undefined,
|
|
121
|
-
enableIpc: undefined,
|
|
122
|
-
nodeCompat: undefined,
|
|
123
|
-
enableContainers: undefined,
|
|
124
|
-
dockerPath: undefined,
|
|
125
|
-
containerEngine: undefined,
|
|
126
|
-
tunnel: undefined,
|
|
127
|
-
tunnelName: undefined,
|
|
128
|
-
tunnelAllowedMail: undefined,
|
|
129
|
-
envFile: undefined,
|
|
130
|
-
onReady: undefined,
|
|
131
|
-
};
|
|
132
|
-
}
|
package/bin/wrangler.js
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const { spawn } = require("child_process");
|
|
3
|
+
const { constants } = require("node:os");
|
|
3
4
|
const path = require("path");
|
|
4
5
|
|
|
5
|
-
const MIN_NODE_VERSION = "22.
|
|
6
|
+
const MIN_NODE_VERSION = "22.12.0";
|
|
6
7
|
let wranglerProcess;
|
|
7
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Convert a child's exit result to the status expected by shell callers.
|
|
11
|
+
*
|
|
12
|
+
* @param {number | null | undefined} code
|
|
13
|
+
* @param {string | null} signal
|
|
14
|
+
* @returns {number}
|
|
15
|
+
*/
|
|
16
|
+
function getExitCode(code, signal) {
|
|
17
|
+
if (code !== undefined && code !== null) {
|
|
18
|
+
return code;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const signalNumber = signal && constants.signals[signal];
|
|
22
|
+
return signalNumber ? 128 + signalNumber : 1;
|
|
23
|
+
}
|
|
24
|
+
|
|
8
25
|
/**
|
|
9
26
|
* Executes ../wrangler-dist/cli.js
|
|
10
27
|
*/
|
|
@@ -33,9 +50,7 @@ Consider using a Node.js version manager such as https://volta.sh/ or https://gi
|
|
|
33
50
|
stdio: ["inherit", "inherit", "inherit", "ipc"],
|
|
34
51
|
}
|
|
35
52
|
)
|
|
36
|
-
.on("exit", (code) =>
|
|
37
|
-
process.exit(code === undefined || code === null ? 0 : code)
|
|
38
|
-
)
|
|
53
|
+
.on("exit", (code, signal) => process.exit(getExitCode(code, signal)))
|
|
39
54
|
.on("message", (message) => {
|
|
40
55
|
if (process.send) {
|
|
41
56
|
process.send(message);
|
|
@@ -82,10 +97,9 @@ function semiver(a, b, bool) {
|
|
|
82
97
|
|
|
83
98
|
if (module === require.main) {
|
|
84
99
|
wranglerProcess = runWrangler();
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
});
|
|
100
|
+
for (const signal of ["SIGINT", "SIGTERM"]) {
|
|
101
|
+
process.on(signal, () => {
|
|
102
|
+
wranglerProcess && wranglerProcess.kill(signal);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
91
105
|
}
|
package/config-schema.json
CHANGED
|
@@ -786,6 +786,11 @@
|
|
|
786
786
|
"description": "The UUID of this D1 database (not required).",
|
|
787
787
|
"markdownDescription": "The UUID of this D1 database (not required)."
|
|
788
788
|
},
|
|
789
|
+
"jurisdiction": {
|
|
790
|
+
"type": "string",
|
|
791
|
+
"description": "The jurisdiction where an automatically provisioned D1 database will be created.",
|
|
792
|
+
"markdownDescription": "The jurisdiction where an automatically provisioned D1 database will be created."
|
|
793
|
+
},
|
|
789
794
|
"preview_database_id": {
|
|
790
795
|
"type": "string",
|
|
791
796
|
"description": "The UUID of this D1 database for Wrangler Dev (if specified).",
|
|
@@ -2646,6 +2651,11 @@
|
|
|
2646
2651
|
"description": "The UUID of this D1 database (not required).",
|
|
2647
2652
|
"markdownDescription": "The UUID of this D1 database (not required)."
|
|
2648
2653
|
},
|
|
2654
|
+
"jurisdiction": {
|
|
2655
|
+
"type": "string",
|
|
2656
|
+
"description": "The jurisdiction where an automatically provisioned D1 database will be created.",
|
|
2657
|
+
"markdownDescription": "The jurisdiction where an automatically provisioned D1 database will be created."
|
|
2658
|
+
},
|
|
2649
2659
|
"preview_database_id": {
|
|
2650
2660
|
"type": "string",
|
|
2651
2661
|
"description": "The UUID of this D1 database for Wrangler Dev (if specified).",
|
|
@@ -4442,19 +4452,19 @@
|
|
|
4442
4452
|
"type": "object",
|
|
4443
4453
|
"properties": {
|
|
4444
4454
|
"logpush": {
|
|
4445
|
-
"$ref": "#/definitions/interface-769040647-14884-25493-769040647-0-
|
|
4455
|
+
"$ref": "#/definitions/interface-769040647-14884-25493-769040647-0-628442004818536"
|
|
4446
4456
|
},
|
|
4447
4457
|
"observability": {
|
|
4448
|
-
"$ref": "#/definitions/interface-769040647-14884-25493-769040647-0-
|
|
4458
|
+
"$ref": "#/definitions/interface-769040647-14884-25493-769040647-0-628442004818536"
|
|
4449
4459
|
},
|
|
4450
4460
|
"limits": {
|
|
4451
|
-
"$ref": "#/definitions/interface-769040647-14884-25493-769040647-0-
|
|
4461
|
+
"$ref": "#/definitions/interface-769040647-14884-25493-769040647-0-628442004818536"
|
|
4452
4462
|
},
|
|
4453
4463
|
"placement": {
|
|
4454
|
-
"$ref": "#/definitions/interface-769040647-14884-25493-769040647-0-
|
|
4464
|
+
"$ref": "#/definitions/interface-769040647-14884-25493-769040647-0-628442004818536"
|
|
4455
4465
|
},
|
|
4456
4466
|
"cache": {
|
|
4457
|
-
"$ref": "#/definitions/interface-769040647-14884-25493-769040647-0-
|
|
4467
|
+
"$ref": "#/definitions/interface-769040647-14884-25493-769040647-0-628442004818536"
|
|
4458
4468
|
},
|
|
4459
4469
|
"define": {
|
|
4460
4470
|
"type": "object",
|
|
@@ -4852,6 +4862,11 @@
|
|
|
4852
4862
|
"description": "The UUID of this D1 database (not required).",
|
|
4853
4863
|
"markdownDescription": "The UUID of this D1 database (not required)."
|
|
4854
4864
|
},
|
|
4865
|
+
"jurisdiction": {
|
|
4866
|
+
"type": "string",
|
|
4867
|
+
"description": "The jurisdiction where an automatically provisioned D1 database will be created.",
|
|
4868
|
+
"markdownDescription": "The jurisdiction where an automatically provisioned D1 database will be created."
|
|
4869
|
+
},
|
|
4855
4870
|
"preview_database_id": {
|
|
4856
4871
|
"type": "string",
|
|
4857
4872
|
"description": "The UUID of this D1 database for Wrangler Dev (if specified).",
|
|
@@ -5829,7 +5844,7 @@
|
|
|
5829
5844
|
"description": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments. Previews are branches of your Worker's main instance used to test features during feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`, `placement`, `cache`",
|
|
5830
5845
|
"markdownDescription": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments.\nPreviews are branches of your Worker's main instance used to test features\nduring feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`, `placement`, `cache`"
|
|
5831
5846
|
},
|
|
5832
|
-
"interface-769040647-14884-25493-769040647-0-
|
|
5847
|
+
"interface-769040647-14884-25493-769040647-0-628442004818536": {
|
|
5833
5848
|
"type": "object",
|
|
5834
5849
|
"properties": {
|
|
5835
5850
|
"name": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.160.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -72,17 +72,17 @@
|
|
|
72
72
|
"esbuild": "0.28.2",
|
|
73
73
|
"path-to-regexp": "6.3.0",
|
|
74
74
|
"unenv": "2.0.0-rc.24",
|
|
75
|
-
"workerd": "1.
|
|
75
|
+
"workerd": "1.20261110.1",
|
|
76
76
|
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
77
77
|
"@cloudflare/unenv-preset": "2.16.2",
|
|
78
|
-
"miniflare": "5.
|
|
78
|
+
"miniflare": "5.20261110.0-beta"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
82
82
|
"@aws-sdk/s3-request-presigner": "^3.721.0",
|
|
83
83
|
"@bomb.sh/tab": "^0.0.12",
|
|
84
84
|
"@cloudflare/types": "6.18.4",
|
|
85
|
-
"@cloudflare/workers-types": "^5.
|
|
85
|
+
"@cloudflare/workers-types": "^5.20261110.1",
|
|
86
86
|
"@netlify/build-info": "10.5.1",
|
|
87
87
|
"@sentry/node": "^7.86.0",
|
|
88
88
|
"@sentry/types": "^7.86.0",
|
|
@@ -164,25 +164,25 @@
|
|
|
164
164
|
"yaml": "^2.8.3",
|
|
165
165
|
"yargs": "^17.7.2",
|
|
166
166
|
"zod": "4.6.6",
|
|
167
|
-
"@cloudflare/
|
|
168
|
-
"@cloudflare/
|
|
169
|
-
"@cloudflare/cli-shared-helpers": "0.3.
|
|
170
|
-
"@cloudflare/config": "0.
|
|
171
|
-
"@cloudflare/containers-shared": "0.
|
|
172
|
-
"@cloudflare/deploy-helpers": "0.26.
|
|
173
|
-
"@cloudflare/pages-functions": "0.1.
|
|
174
|
-
"@cloudflare/
|
|
175
|
-
"@cloudflare/
|
|
176
|
-
"@cloudflare/
|
|
177
|
-
"@cloudflare/workers-auth": "0.16.0",
|
|
178
|
-
"@cloudflare/workers-shared": "0.20.2",
|
|
167
|
+
"@cloudflare/autoconfig": "0.11.0",
|
|
168
|
+
"@cloudflare/build-output-utils": "0.9.12",
|
|
169
|
+
"@cloudflare/cli-shared-helpers": "0.3.6",
|
|
170
|
+
"@cloudflare/config": "0.31.1",
|
|
171
|
+
"@cloudflare/containers-shared": "0.25.0",
|
|
172
|
+
"@cloudflare/deploy-helpers": "0.26.2",
|
|
173
|
+
"@cloudflare/pages-functions": "0.1.8",
|
|
174
|
+
"@cloudflare/pages-shared": "^0.13.211",
|
|
175
|
+
"@cloudflare/remote-bindings": "0.0.62",
|
|
176
|
+
"@cloudflare/runtime-types": "0.1.25",
|
|
179
177
|
"@cloudflare/shared-ast-primitives": "1.1.0",
|
|
178
|
+
"@cloudflare/workers-auth": "0.18.0",
|
|
179
|
+
"@cloudflare/workers-utils": "0.53.0",
|
|
180
|
+
"@cloudflare/workflows-shared": "0.15.3",
|
|
180
181
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
181
|
-
"@cloudflare/workers-
|
|
182
|
-
"@cloudflare/workflows-shared": "0.15.3"
|
|
182
|
+
"@cloudflare/workers-shared": "0.20.2"
|
|
183
183
|
},
|
|
184
184
|
"peerDependencies": {
|
|
185
|
-
"@cloudflare/workers-types": "^5.
|
|
185
|
+
"@cloudflare/workers-types": "^5.20261110.1"
|
|
186
186
|
},
|
|
187
187
|
"peerDependenciesMeta": {
|
|
188
188
|
"@cloudflare/workers-types": {
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
"fsevents": "2.3.3"
|
|
194
194
|
},
|
|
195
195
|
"engines": {
|
|
196
|
-
"node": ">=22.
|
|
196
|
+
"node": ">=22.12.0"
|
|
197
197
|
},
|
|
198
198
|
"volta": {
|
|
199
199
|
"extends": "../../package.json"
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -265,6 +265,11 @@ interface GenerateTypesOptions {
|
|
|
265
265
|
* Whether to include runtime types in the output.
|
|
266
266
|
*/
|
|
267
267
|
includeRuntime?: boolean;
|
|
268
|
+
/**
|
|
269
|
+
* Whether to infer `Cloudflare.GlobalProps.mainModule` from the Worker entrypoint.
|
|
270
|
+
* Defaults to true. Disabling this opts out of module-derived `ctx.exports` types.
|
|
271
|
+
*/
|
|
272
|
+
includeMainModule?: boolean;
|
|
268
273
|
/**
|
|
269
274
|
* Path to the declaration file for generated types.
|
|
270
275
|
*/
|
|
@@ -647,50 +652,50 @@ declare const dev: {
|
|
|
647
652
|
experimentalAutoCreate: boolean;
|
|
648
653
|
installSkills: boolean;
|
|
649
654
|
profile: string | undefined;
|
|
650
|
-
script: string | undefined;
|
|
651
|
-
name: string | undefined;
|
|
652
|
-
compatibilityDate: string | undefined;
|
|
653
|
-
compatibilityFlags: string[] | undefined;
|
|
654
|
-
latest: boolean;
|
|
655
|
-
assets: string | undefined;
|
|
656
|
-
bundle: boolean | undefined;
|
|
657
|
-
noBundle: boolean;
|
|
658
|
-
ip: string | undefined;
|
|
659
|
-
port: number | undefined;
|
|
660
|
-
inspectorPort: number | undefined;
|
|
661
|
-
inspectorIp: string | undefined;
|
|
662
|
-
routes: string[] | undefined;
|
|
663
|
-
host: string | undefined;
|
|
664
|
-
localProtocol: "http" | "https" | undefined;
|
|
665
|
-
httpsKeyPath: string | undefined;
|
|
666
|
-
httpsCertPath: string | undefined;
|
|
667
|
-
localUpstream: string | undefined;
|
|
668
|
-
inferOriginFromRoutes: boolean | undefined;
|
|
669
|
-
enableContainers: boolean | undefined;
|
|
670
|
-
site: string | undefined;
|
|
671
|
-
siteInclude: string[] | undefined;
|
|
672
|
-
siteExclude: string[] | undefined;
|
|
673
|
-
upstreamProtocol: "http" | "https" | undefined;
|
|
674
|
-
var: string[] | undefined;
|
|
675
|
-
define: string[] | undefined;
|
|
676
|
-
alias: string[] | undefined;
|
|
677
|
-
jsxFactory: string | undefined;
|
|
678
|
-
jsxFragment: string | undefined;
|
|
679
|
-
tsconfig: string | undefined;
|
|
680
|
-
remote: boolean;
|
|
681
|
-
local: boolean | undefined;
|
|
682
|
-
minify: boolean | undefined;
|
|
683
|
-
nodeCompat: boolean | undefined;
|
|
684
|
-
persistTo: string | undefined;
|
|
685
|
-
liveReload: boolean | undefined;
|
|
686
|
-
testScheduled: boolean;
|
|
687
|
-
logLevel: "debug" | "none" | "error" | "log" | "info" | "warn" | undefined;
|
|
688
|
-
showInteractiveDevSession: boolean | undefined;
|
|
689
|
-
types: boolean | undefined;
|
|
690
|
-
tunnel: boolean | undefined;
|
|
691
|
-
tunnelName: string | undefined;
|
|
692
|
-
tunnelAllowedMail: string[] | undefined;
|
|
693
|
-
experimentalNewConfig: boolean;
|
|
655
|
+
readonly script: string | undefined;
|
|
656
|
+
readonly name: string | undefined;
|
|
657
|
+
readonly compatibilityDate: string | undefined;
|
|
658
|
+
readonly compatibilityFlags: string[] | undefined;
|
|
659
|
+
readonly latest: boolean;
|
|
660
|
+
readonly assets: string | undefined;
|
|
661
|
+
readonly bundle: boolean | undefined;
|
|
662
|
+
readonly noBundle: boolean;
|
|
663
|
+
readonly ip: string | undefined;
|
|
664
|
+
readonly port: number | undefined;
|
|
665
|
+
readonly inspectorPort: number | undefined;
|
|
666
|
+
readonly inspectorIp: string | undefined;
|
|
667
|
+
readonly routes: string[] | undefined;
|
|
668
|
+
readonly host: string | undefined;
|
|
669
|
+
readonly localProtocol: "http" | "https" | undefined;
|
|
670
|
+
readonly httpsKeyPath: string | undefined;
|
|
671
|
+
readonly httpsCertPath: string | undefined;
|
|
672
|
+
readonly localUpstream: string | undefined;
|
|
673
|
+
readonly inferOriginFromRoutes: boolean | undefined;
|
|
674
|
+
readonly enableContainers: boolean | undefined;
|
|
675
|
+
readonly site: string | undefined;
|
|
676
|
+
readonly siteInclude: string[] | undefined;
|
|
677
|
+
readonly siteExclude: string[] | undefined;
|
|
678
|
+
readonly upstreamProtocol: "http" | "https" | undefined;
|
|
679
|
+
readonly var: string[] | undefined;
|
|
680
|
+
readonly define: string[] | undefined;
|
|
681
|
+
readonly alias: string[] | undefined;
|
|
682
|
+
readonly jsxFactory: string | undefined;
|
|
683
|
+
readonly jsxFragment: string | undefined;
|
|
684
|
+
readonly tsconfig: string | undefined;
|
|
685
|
+
readonly remote: boolean;
|
|
686
|
+
readonly local: boolean | undefined;
|
|
687
|
+
readonly minify: boolean | undefined;
|
|
688
|
+
readonly nodeCompat: boolean | undefined;
|
|
689
|
+
readonly persistTo: string | undefined;
|
|
690
|
+
readonly liveReload: boolean | undefined;
|
|
691
|
+
readonly testScheduled: boolean;
|
|
692
|
+
readonly logLevel: "debug" | "none" | "error" | "log" | "info" | "warn" | undefined;
|
|
693
|
+
readonly showInteractiveDevSession: boolean | undefined;
|
|
694
|
+
readonly types: boolean | undefined;
|
|
695
|
+
readonly tunnel: boolean | undefined;
|
|
696
|
+
readonly tunnelName: string | undefined;
|
|
697
|
+
readonly tunnelAllowedMail: string[] | undefined;
|
|
698
|
+
readonly experimentalNewConfig: boolean;
|
|
694
699
|
_: (string | number)[];
|
|
695
700
|
$0: string;
|
|
696
701
|
};
|
|
@@ -2372,6 +2377,8 @@ interface EnvironmentNonInheritable {
|
|
|
2372
2377
|
database_name?: string;
|
|
2373
2378
|
/** The UUID of this D1 database (not required). */
|
|
2374
2379
|
database_id?: string;
|
|
2380
|
+
/** The jurisdiction where an automatically provisioned D1 database will be created. */
|
|
2381
|
+
jurisdiction?: string;
|
|
2375
2382
|
/** The UUID of this D1 database for Wrangler Dev (if specified). */
|
|
2376
2383
|
preview_database_id?: string;
|
|
2377
2384
|
/** The name of the migrations table for this D1 database (defaults to 'd1_migrations'). */
|
|
@@ -3579,19 +3586,14 @@ declare function resolveNamedTunnel(name: string, origin: URL, options: {
|
|
|
3579
3586
|
token: string;
|
|
3580
3587
|
}>;
|
|
3581
3588
|
|
|
3582
|
-
interface DevArgs {
|
|
3583
|
-
mode?: string;
|
|
3584
|
-
port?: number;
|
|
3585
|
-
host?: string;
|
|
3586
|
-
local?: boolean;
|
|
3587
|
-
}
|
|
3588
3589
|
interface BuildArgs {
|
|
3589
3590
|
mode?: string;
|
|
3590
3591
|
}
|
|
3591
3592
|
declare class ArgParseError extends Error {
|
|
3592
3593
|
constructor(message: string);
|
|
3593
3594
|
}
|
|
3594
|
-
|
|
3595
|
+
/** Parse forwarded server arguments into options consumed directly by startDev. */
|
|
3596
|
+
declare function parseArgs(argv: string[]): StartDevOptions;
|
|
3595
3597
|
declare function parseBuildArgs(argv: string[]): BuildArgs;
|
|
3596
3598
|
|
|
3597
3599
|
declare function runCfWranglerBuild(args: BuildArgs): Promise<number>;
|
|
@@ -3602,7 +3604,7 @@ declare function runCfWranglerBuild(args: BuildArgs): Promise<number>;
|
|
|
3602
3604
|
* handler and installs no signal handlers of its own, so signal handling
|
|
3603
3605
|
* and exit codes match `wrangler dev` exactly.
|
|
3604
3606
|
*
|
|
3605
|
-
* @param options
|
|
3607
|
+
* @param options Parsed development server options.
|
|
3606
3608
|
* @returns `0` on a clean teardown.
|
|
3607
3609
|
*/
|
|
3608
3610
|
declare function runCfWranglerDev(options: StartDevOptions): Promise<number>;
|