wrangler 4.72.0 → 4.74.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/package.json +12 -12
- package/wrangler-dist/cli.d.ts +11 -7
- package/wrangler-dist/cli.js +1442 -871
- package/wrangler-dist/metafile-cjs.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.74.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wrangler",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"esbuild": "0.27.3",
|
|
55
55
|
"path-to-regexp": "6.3.0",
|
|
56
56
|
"unenv": "2.0.0-rc.24",
|
|
57
|
-
"workerd": "1.
|
|
57
|
+
"workerd": "1.20260312.1",
|
|
58
58
|
"@cloudflare/kv-asset-handler": "0.4.2",
|
|
59
59
|
"@cloudflare/unenv-preset": "2.15.0",
|
|
60
|
-
"miniflare": "4.
|
|
60
|
+
"miniflare": "4.20260312.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
64
64
|
"@bomb.sh/tab": "^0.0.12",
|
|
65
65
|
"@cloudflare/types": "6.18.4",
|
|
66
|
-
"@cloudflare/workers-types": "^4.
|
|
66
|
+
"@cloudflare/workers-types": "^4.20260312.1",
|
|
67
67
|
"@cspotcode/source-map-support": "0.8.1",
|
|
68
68
|
"@netlify/build-info": "^10.2.0",
|
|
69
69
|
"@sentry/node": "^7.86.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@types/supports-color": "^8.1.1",
|
|
87
87
|
"@types/ws": "^8.5.7",
|
|
88
88
|
"@types/yargs": "^17.0.22",
|
|
89
|
-
"@vitest/ui": "
|
|
89
|
+
"@vitest/ui": "3.2.4",
|
|
90
90
|
"@webcontainer/env": "^1.1.0",
|
|
91
91
|
"am-i-vibing": "^0.1.0",
|
|
92
92
|
"capnweb": "^0.5.0",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"mime": "^3.0.0",
|
|
119
119
|
"minimatch": "^5.1.0",
|
|
120
120
|
"mock-socket": "^9.3.1",
|
|
121
|
-
"msw": "2.12.
|
|
121
|
+
"msw": "2.12.4",
|
|
122
122
|
"node-forge": "^1.3.2",
|
|
123
123
|
"open": "^8.4.0",
|
|
124
124
|
"p-queue": "^9.0.0",
|
|
@@ -141,23 +141,23 @@
|
|
|
141
141
|
"typescript": "~5.8.3",
|
|
142
142
|
"undici": "7.18.2",
|
|
143
143
|
"update-check": "^1.5.4",
|
|
144
|
-
"vitest": "
|
|
144
|
+
"vitest": "3.2.4",
|
|
145
145
|
"vitest-websocket-mock": "^0.4.0",
|
|
146
146
|
"ws": "8.18.0",
|
|
147
147
|
"xxhash-wasm": "^1.0.1",
|
|
148
148
|
"yaml": "^2.8.1",
|
|
149
149
|
"yargs": "^17.7.2",
|
|
150
150
|
"@cloudflare/cli": "1.2.1",
|
|
151
|
-
"@cloudflare/containers-shared": "0.
|
|
152
|
-
"@cloudflare/
|
|
153
|
-
"@cloudflare/pages-shared": "^0.13.113",
|
|
151
|
+
"@cloudflare/containers-shared": "0.12.0",
|
|
152
|
+
"@cloudflare/pages-shared": "^0.13.115",
|
|
154
153
|
"@cloudflare/workers-shared": "0.19.1",
|
|
155
154
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
156
155
|
"@cloudflare/workers-utils": "0.12.0",
|
|
157
|
-
"@cloudflare/workflows-shared": "0.6.0"
|
|
156
|
+
"@cloudflare/workflows-shared": "0.6.0",
|
|
157
|
+
"@cloudflare/eslint-config-shared": "1.2.1"
|
|
158
158
|
},
|
|
159
159
|
"peerDependencies": {
|
|
160
|
-
"@cloudflare/workers-types": "^4.
|
|
160
|
+
"@cloudflare/workers-types": "^4.20260312.1"
|
|
161
161
|
},
|
|
162
162
|
"peerDependenciesMeta": {
|
|
163
163
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -169,8 +169,8 @@ interface PagesDeployOptions {
|
|
|
169
169
|
*/
|
|
170
170
|
declare function deploy({ directory, accountId, projectName, branch, skipCaching, commitMessage, commitHash, commitDirty, functionsDirectory: customFunctionsDirectory, bundle, sourceMaps, args, }: PagesDeployOptions): Promise<{
|
|
171
171
|
deploymentResponse: {
|
|
172
|
-
id: string;
|
|
173
172
|
url: string;
|
|
173
|
+
id: string;
|
|
174
174
|
environment: "production" | "preview";
|
|
175
175
|
build_config: {
|
|
176
176
|
build_command: string;
|
|
@@ -642,8 +642,8 @@ interface StartDevWorkerInput {
|
|
|
642
642
|
remote?: boolean | "minimal";
|
|
643
643
|
/** Cloudflare Account credentials. Can be provided upfront or as a function which will be called only when required. */
|
|
644
644
|
auth?: AsyncHook<CfAccount, [Pick<Config$1, "account_id">]>;
|
|
645
|
-
/** Whether local storage (KV, Durable Objects, R2, D1, etc) is persisted. You can also specify the directory to persist data to. */
|
|
646
|
-
persist?: string;
|
|
645
|
+
/** Whether local storage (KV, Durable Objects, R2, D1, etc) is persisted. You can also specify the directory to persist data to. Set to `false` to disable persistence. */
|
|
646
|
+
persist?: string | false;
|
|
647
647
|
/** Controls which logs are logged 🤙. */
|
|
648
648
|
logLevel?: LogLevel;
|
|
649
649
|
/** Whether the worker server restarts upon source/config file changes. */
|
|
@@ -690,7 +690,7 @@ interface StartDevWorkerInput {
|
|
|
690
690
|
assets?: string;
|
|
691
691
|
experimental?: Record<string, never>;
|
|
692
692
|
}
|
|
693
|
-
type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets" | "containers"> & {
|
|
693
|
+
type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets" | "containers" | "dev"> & {
|
|
694
694
|
/** A worker's directory. Usually where the Wrangler configuration file is located */
|
|
695
695
|
projectRoot: string;
|
|
696
696
|
build: StartDevWorkerInput["build"] & {
|
|
@@ -707,7 +707,7 @@ type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets" | "containers">
|
|
|
707
707
|
site?: Config$1["site"];
|
|
708
708
|
};
|
|
709
709
|
dev: StartDevWorkerInput["dev"] & {
|
|
710
|
-
persist: string;
|
|
710
|
+
persist: string | false;
|
|
711
711
|
auth?: AsyncHook<CfAccount>;
|
|
712
712
|
};
|
|
713
713
|
entrypoint: string;
|
|
@@ -2442,6 +2442,7 @@ type ConfigurationOptions = {
|
|
|
2442
2442
|
workerName: string;
|
|
2443
2443
|
dryRun: boolean;
|
|
2444
2444
|
packageManager: PackageManager;
|
|
2445
|
+
isWorkspaceRoot: boolean;
|
|
2445
2446
|
};
|
|
2446
2447
|
type PackageJsonScriptsOverrides = {
|
|
2447
2448
|
preview?: string;
|
|
@@ -2450,7 +2451,7 @@ type PackageJsonScriptsOverrides = {
|
|
|
2450
2451
|
};
|
|
2451
2452
|
type ConfigurationResults = {
|
|
2452
2453
|
/** The wrangler configuration that the framework's `configure()` hook should generate. `null` if autoconfig should not create the wrangler file (in case an external tool already does that) */
|
|
2453
|
-
wranglerConfig: RawConfig$1;
|
|
2454
|
+
wranglerConfig: RawConfig$1 | null;
|
|
2454
2455
|
packageJsonScriptsOverrides?: PackageJsonScriptsOverrides;
|
|
2455
2456
|
buildCommandOverride?: string;
|
|
2456
2457
|
deployCommandOverride?: string;
|
|
@@ -2483,6 +2484,8 @@ type AutoConfigDetailsBase = {
|
|
|
2483
2484
|
outputDir: string;
|
|
2484
2485
|
/** The detected package manager for the project */
|
|
2485
2486
|
packageManager: PackageManager;
|
|
2487
|
+
/** Whether the current path is at the root of a workspace */
|
|
2488
|
+
isWorkspaceRoot?: boolean;
|
|
2486
2489
|
};
|
|
2487
2490
|
type AutoConfigDetailsForConfiguredProject = Optional<AutoConfigDetailsBase, "framework" | "outputDir"> & {
|
|
2488
2491
|
configured: true;
|
|
@@ -2514,7 +2517,7 @@ type AutoConfigOptions = {
|
|
|
2514
2517
|
type AutoConfigSummary = {
|
|
2515
2518
|
scripts: Record<string, string>;
|
|
2516
2519
|
wranglerInstall: boolean;
|
|
2517
|
-
wranglerConfig
|
|
2520
|
+
wranglerConfig?: RawConfig$1;
|
|
2518
2521
|
frameworkConfiguration?: string;
|
|
2519
2522
|
outputDir: string;
|
|
2520
2523
|
frameworkId?: string;
|
|
@@ -3143,6 +3146,7 @@ interface Unstable_ASSETSBindingsOptions {
|
|
|
3143
3146
|
log: Logger;
|
|
3144
3147
|
proxyPort?: number;
|
|
3145
3148
|
directory?: string;
|
|
3149
|
+
signal?: AbortSignal;
|
|
3146
3150
|
}
|
|
3147
3151
|
declare const unstable_generateASSETSBinding: (opts: Unstable_ASSETSBindingsOptions) => (request: Request) => Promise<Response$1>;
|
|
3148
3152
|
|