wrangler 4.100.0 → 4.101.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 +63 -6
- package/wrangler-dist/cli.js +213622 -204905
- package/wrangler-dist/experimental-config.d.mts +4 -4
- package/wrangler-dist/experimental-config.d.mts.map +1 -1
- 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.101.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -66,16 +66,16 @@
|
|
|
66
66
|
"esbuild": "0.27.3",
|
|
67
67
|
"path-to-regexp": "6.3.0",
|
|
68
68
|
"unenv": "2.0.0-rc.24",
|
|
69
|
-
"workerd": "1.
|
|
70
|
-
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
69
|
+
"workerd": "1.20260616.1",
|
|
71
70
|
"@cloudflare/unenv-preset": "2.16.1",
|
|
72
|
-
"
|
|
71
|
+
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
72
|
+
"miniflare": "4.20260616.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
76
76
|
"@bomb.sh/tab": "^0.0.12",
|
|
77
77
|
"@cloudflare/types": "6.18.4",
|
|
78
|
-
"@cloudflare/workers-types": "^4.
|
|
78
|
+
"@cloudflare/workers-types": "^4.20260616.1",
|
|
79
79
|
"@cspotcode/source-map-support": "0.8.1",
|
|
80
80
|
"@netlify/build-info": "^10.5.1",
|
|
81
81
|
"@sentry/node": "^7.86.0",
|
|
@@ -156,20 +156,20 @@
|
|
|
156
156
|
"yaml": "^2.8.1",
|
|
157
157
|
"yargs": "^17.7.2",
|
|
158
158
|
"zod": "^4.4.3",
|
|
159
|
-
"@cloudflare/cli-shared-helpers": "0.1.
|
|
159
|
+
"@cloudflare/cli-shared-helpers": "0.1.8",
|
|
160
160
|
"@cloudflare/codemod": "1.1.0",
|
|
161
161
|
"@cloudflare/config": "0.0.0",
|
|
162
|
+
"@cloudflare/deploy-helpers": "0.2.0",
|
|
162
163
|
"@cloudflare/containers-shared": "0.15.1",
|
|
163
|
-
"@cloudflare/
|
|
164
|
-
"@cloudflare/pages-shared": "^0.13.145",
|
|
165
|
-
"@cloudflare/workers-shared": "0.19.6",
|
|
166
|
-
"@cloudflare/workers-auth": "0.2.0",
|
|
164
|
+
"@cloudflare/pages-shared": "^0.13.146",
|
|
167
165
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
168
|
-
"@cloudflare/workers-
|
|
166
|
+
"@cloudflare/workers-auth": "0.3.0",
|
|
167
|
+
"@cloudflare/workers-shared": "0.19.6",
|
|
168
|
+
"@cloudflare/workers-utils": "0.23.1",
|
|
169
169
|
"@cloudflare/workflows-shared": "0.11.1"
|
|
170
170
|
},
|
|
171
171
|
"peerDependencies": {
|
|
172
|
-
"@cloudflare/workers-types": "^4.
|
|
172
|
+
"@cloudflare/workers-types": "^4.20260616.1"
|
|
173
173
|
},
|
|
174
174
|
"peerDependenciesMeta": {
|
|
175
175
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -764,6 +764,47 @@ type WorkerHandle = {
|
|
|
764
764
|
* ```
|
|
765
765
|
*/
|
|
766
766
|
scheduled(options: FetcherScheduledOptions): Promise<FetcherScheduledResult>;
|
|
767
|
+
/**
|
|
768
|
+
* Returns a KV namespace binding configured on this Worker.
|
|
769
|
+
*
|
|
770
|
+
* @example
|
|
771
|
+
* ```ts
|
|
772
|
+
* const store = await worker.getKVNamespace("STORE");
|
|
773
|
+
* const value = await store.get("key");
|
|
774
|
+
* ```
|
|
775
|
+
*/
|
|
776
|
+
getKVNamespace(bindingName: string): ReturnType<Miniflare["getKVNamespace"]>;
|
|
777
|
+
/**
|
|
778
|
+
* Returns an R2 bucket binding configured on this Worker.
|
|
779
|
+
*
|
|
780
|
+
* @example
|
|
781
|
+
* ```ts
|
|
782
|
+
* const bucket = await worker.getR2Bucket("BUCKET");
|
|
783
|
+
* const object = await bucket.get("key");
|
|
784
|
+
* ```
|
|
785
|
+
*/
|
|
786
|
+
getR2Bucket(bindingName: string): ReturnType<Miniflare["getR2Bucket"]>;
|
|
787
|
+
/**
|
|
788
|
+
* Returns a D1 database binding configured on this Worker.
|
|
789
|
+
*
|
|
790
|
+
* @example
|
|
791
|
+
* ```ts
|
|
792
|
+
* const db = await worker.getD1Database("DB");
|
|
793
|
+
* const value = await db.prepare("SELECT value FROM entries").first("value");
|
|
794
|
+
* ```
|
|
795
|
+
*/
|
|
796
|
+
getD1Database(bindingName: string): ReturnType<Miniflare["getD1Database"]>;
|
|
797
|
+
/**
|
|
798
|
+
* Returns a Durable Object namespace binding configured on this Worker.
|
|
799
|
+
*
|
|
800
|
+
* @example
|
|
801
|
+
* ```ts
|
|
802
|
+
* const namespace = await worker.getDurableObjectNamespace("OBJECT");
|
|
803
|
+
* const stub = namespace.getByName("counter");
|
|
804
|
+
* const response = await stub.fetch("http://example.com/");
|
|
805
|
+
* ```
|
|
806
|
+
*/
|
|
807
|
+
getDurableObjectNamespace(bindingName: string): ReturnType<Miniflare["getDurableObjectNamespace"]>;
|
|
767
808
|
};
|
|
768
809
|
type TestHarness = {
|
|
769
810
|
/**
|
|
@@ -3462,12 +3503,25 @@ type CommandDefinition<NamedArgDefs extends NamedArgDefinitions = NamedArgDefini
|
|
|
3462
3503
|
*/
|
|
3463
3504
|
sendMetrics?: boolean;
|
|
3464
3505
|
/**
|
|
3465
|
-
*
|
|
3466
|
-
*
|
|
3467
|
-
*
|
|
3506
|
+
* After the command handler completes successfully, suggest installing
|
|
3507
|
+
* Cloudflare skills for detected AI coding agents that don't have them.
|
|
3508
|
+
*
|
|
3509
|
+
* When set to `true`, the suggestion always runs after the handler.
|
|
3510
|
+
* When set to a function, it receives the parsed args and should return
|
|
3511
|
+
* `true` to enable the suggestion — use this to skip the prompt in modes
|
|
3512
|
+
* where interactive output is inappropriate (e.g. `--json`).
|
|
3513
|
+
*
|
|
3468
3514
|
* @default false
|
|
3469
3515
|
*/
|
|
3470
|
-
|
|
3516
|
+
suggestSkillsAfterHandler?: boolean | ((args: HandlerArgs<NamedArgDefs>) => boolean);
|
|
3517
|
+
/**
|
|
3518
|
+
* Whether this command can authenticate with a temporary preview account
|
|
3519
|
+
* (via the hidden `--temporary` flag) when no real credentials are available.
|
|
3520
|
+
* Only enable this for commands whose API calls are covered by the temporary
|
|
3521
|
+
* preview-account deploy token (Workers, KV, D1, Hyperdrive, Queues, SSL/Certs).
|
|
3522
|
+
* @default false
|
|
3523
|
+
*/
|
|
3524
|
+
supportTemporary?: boolean;
|
|
3471
3525
|
};
|
|
3472
3526
|
/**
|
|
3473
3527
|
* A plain key-value object describing the CLI args for this command.
|
|
@@ -3485,8 +3539,11 @@ type CommandDefinition<NamedArgDefs extends NamedArgDefinitions = NamedArgDefini
|
|
|
3485
3539
|
* A hook to implement custom validation of the args before the handler is called.
|
|
3486
3540
|
* Throw `CommandLineArgsError` with actionable error message if args are invalid.
|
|
3487
3541
|
* The return value is ignored.
|
|
3542
|
+
*
|
|
3543
|
+
* @param args - The parsed CLI arguments
|
|
3544
|
+
* @param def - The command definition, useful for passing to helpers like `demandOneOfOption`
|
|
3488
3545
|
*/
|
|
3489
|
-
validateArgs?: (args: HandlerArgs<NamedArgDefs>) => void | Promise<void>;
|
|
3546
|
+
validateArgs?: (args: HandlerArgs<NamedArgDefs>, def: CommandDefinition<NamedArgDefs>) => void | Promise<void>;
|
|
3490
3547
|
/**
|
|
3491
3548
|
* The implementation of the command which is given camelCase'd args
|
|
3492
3549
|
* and a ctx object of convenience properties
|
|
@@ -3630,7 +3687,7 @@ declare function createCLIParser(argv: string[]): {
|
|
|
3630
3687
|
readonly alias: "x-auto-create";
|
|
3631
3688
|
};
|
|
3632
3689
|
readonly "install-skills": {
|
|
3633
|
-
readonly describe: "Install Cloudflare
|
|
3690
|
+
readonly describe: "Install Cloudflare skills for detected AI coding agents before running the command";
|
|
3634
3691
|
readonly type: "boolean";
|
|
3635
3692
|
readonly default: false;
|
|
3636
3693
|
};
|