wrangler 4.159.0 → 4.160.1
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/package.json +19 -19
- package/wrangler-dist/cli.d.ts +47 -52
- package/wrangler-dist/cli.js +6124 -1268
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.160.1",
|
|
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
|
-
"
|
|
78
|
-
"
|
|
77
|
+
"miniflare": "5.20261110.1-beta",
|
|
78
|
+
"@cloudflare/unenv-preset": "2.16.2"
|
|
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/autoconfig": "0.
|
|
168
|
-
"@cloudflare/build-output-utils": "0.9.
|
|
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/pages-shared": "^0.13.
|
|
175
|
-
"@cloudflare/remote-bindings": "0.0.
|
|
176
|
-
"@cloudflare/runtime-types": "0.1.
|
|
167
|
+
"@cloudflare/autoconfig": "0.11.1",
|
|
168
|
+
"@cloudflare/build-output-utils": "0.9.13",
|
|
169
|
+
"@cloudflare/cli-shared-helpers": "0.3.7",
|
|
170
|
+
"@cloudflare/config": "0.32.0",
|
|
171
|
+
"@cloudflare/containers-shared": "0.26.0",
|
|
172
|
+
"@cloudflare/deploy-helpers": "0.26.3",
|
|
173
|
+
"@cloudflare/pages-functions": "0.1.8",
|
|
174
|
+
"@cloudflare/pages-shared": "^0.13.212",
|
|
175
|
+
"@cloudflare/remote-bindings": "0.0.63",
|
|
176
|
+
"@cloudflare/runtime-types": "0.1.26",
|
|
177
177
|
"@cloudflare/shared-ast-primitives": "1.1.0",
|
|
178
|
-
"@cloudflare/workers-auth": "0.
|
|
179
|
-
"@cloudflare/workers-shared": "0.20.2",
|
|
178
|
+
"@cloudflare/workers-auth": "0.18.1",
|
|
180
179
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
181
|
-
"@cloudflare/workers-
|
|
180
|
+
"@cloudflare/workers-shared": "0.20.2",
|
|
181
|
+
"@cloudflare/workers-utils": "0.53.1",
|
|
182
182
|
"@cloudflare/workflows-shared": "0.15.3"
|
|
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": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -652,50 +652,50 @@ declare const dev: {
|
|
|
652
652
|
experimentalAutoCreate: boolean;
|
|
653
653
|
installSkills: boolean;
|
|
654
654
|
profile: string | undefined;
|
|
655
|
-
script: string | undefined;
|
|
656
|
-
name: string | undefined;
|
|
657
|
-
compatibilityDate: string | undefined;
|
|
658
|
-
compatibilityFlags: string[] | undefined;
|
|
659
|
-
latest: boolean;
|
|
660
|
-
assets: string | undefined;
|
|
661
|
-
bundle: boolean | undefined;
|
|
662
|
-
noBundle: boolean;
|
|
663
|
-
ip: string | undefined;
|
|
664
|
-
port: number | undefined;
|
|
665
|
-
inspectorPort: number | undefined;
|
|
666
|
-
inspectorIp: string | undefined;
|
|
667
|
-
routes: string[] | undefined;
|
|
668
|
-
host: string | undefined;
|
|
669
|
-
localProtocol: "http" | "https" | undefined;
|
|
670
|
-
httpsKeyPath: string | undefined;
|
|
671
|
-
httpsCertPath: string | undefined;
|
|
672
|
-
localUpstream: string | undefined;
|
|
673
|
-
inferOriginFromRoutes: boolean | undefined;
|
|
674
|
-
enableContainers: boolean | undefined;
|
|
675
|
-
site: string | undefined;
|
|
676
|
-
siteInclude: string[] | undefined;
|
|
677
|
-
siteExclude: string[] | undefined;
|
|
678
|
-
upstreamProtocol: "http" | "https" | undefined;
|
|
679
|
-
var: string[] | undefined;
|
|
680
|
-
define: string[] | undefined;
|
|
681
|
-
alias: string[] | undefined;
|
|
682
|
-
jsxFactory: string | undefined;
|
|
683
|
-
jsxFragment: string | undefined;
|
|
684
|
-
tsconfig: string | undefined;
|
|
685
|
-
remote: boolean;
|
|
686
|
-
local: boolean | undefined;
|
|
687
|
-
minify: boolean | undefined;
|
|
688
|
-
nodeCompat: boolean | undefined;
|
|
689
|
-
persistTo: string | undefined;
|
|
690
|
-
liveReload: boolean | undefined;
|
|
691
|
-
testScheduled: boolean;
|
|
692
|
-
logLevel: "debug" | "none" | "error" | "log" | "info" | "warn" | undefined;
|
|
693
|
-
showInteractiveDevSession: boolean | undefined;
|
|
694
|
-
types: boolean | undefined;
|
|
695
|
-
tunnel: boolean | undefined;
|
|
696
|
-
tunnelName: string | undefined;
|
|
697
|
-
tunnelAllowedMail: string[] | undefined;
|
|
698
|
-
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;
|
|
699
699
|
_: (string | number)[];
|
|
700
700
|
$0: string;
|
|
701
701
|
};
|
|
@@ -3586,19 +3586,14 @@ declare function resolveNamedTunnel(name: string, origin: URL, options: {
|
|
|
3586
3586
|
token: string;
|
|
3587
3587
|
}>;
|
|
3588
3588
|
|
|
3589
|
-
interface DevArgs {
|
|
3590
|
-
mode?: string;
|
|
3591
|
-
port?: number;
|
|
3592
|
-
host?: string;
|
|
3593
|
-
local?: boolean;
|
|
3594
|
-
}
|
|
3595
3589
|
interface BuildArgs {
|
|
3596
3590
|
mode?: string;
|
|
3597
3591
|
}
|
|
3598
3592
|
declare class ArgParseError extends Error {
|
|
3599
3593
|
constructor(message: string);
|
|
3600
3594
|
}
|
|
3601
|
-
|
|
3595
|
+
/** Parse forwarded server arguments into options consumed directly by startDev. */
|
|
3596
|
+
declare function parseArgs(argv: string[]): StartDevOptions;
|
|
3602
3597
|
declare function parseBuildArgs(argv: string[]): BuildArgs;
|
|
3603
3598
|
|
|
3604
3599
|
declare function runCfWranglerBuild(args: BuildArgs): Promise<number>;
|
|
@@ -3609,7 +3604,7 @@ declare function runCfWranglerBuild(args: BuildArgs): Promise<number>;
|
|
|
3609
3604
|
* handler and installs no signal handlers of its own, so signal handling
|
|
3610
3605
|
* and exit codes match `wrangler dev` exactly.
|
|
3611
3606
|
*
|
|
3612
|
-
* @param options
|
|
3607
|
+
* @param options Parsed development server options.
|
|
3613
3608
|
* @returns `0` on a clean teardown.
|
|
3614
3609
|
*/
|
|
3615
3610
|
declare function runCfWranglerDev(options: StartDevOptions): Promise<number>;
|