wrangler 4.93.1 → 4.95.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/config-schema.json +20 -5
- package/package.json +12 -9
- package/wrangler-dist/cli.d.ts +20 -37
- package/wrangler-dist/cli.js +23849 -21644
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
|
@@ -3559,16 +3559,16 @@
|
|
|
3559
3559
|
"additionalProperties": false,
|
|
3560
3560
|
"properties": {
|
|
3561
3561
|
"logpush": {
|
|
3562
|
-
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-
|
|
3562
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-477942004818536"
|
|
3563
3563
|
},
|
|
3564
3564
|
"observability": {
|
|
3565
|
-
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-
|
|
3565
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-477942004818536"
|
|
3566
3566
|
},
|
|
3567
3567
|
"limits": {
|
|
3568
|
-
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-
|
|
3568
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-477942004818536"
|
|
3569
3569
|
},
|
|
3570
3570
|
"cache": {
|
|
3571
|
-
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-
|
|
3571
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-477942004818536"
|
|
3572
3572
|
},
|
|
3573
3573
|
"define": {
|
|
3574
3574
|
"type": "object",
|
|
@@ -4767,7 +4767,7 @@
|
|
|
4767
4767
|
"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`, `cache`",
|
|
4768
4768
|
"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`, `cache`"
|
|
4769
4769
|
},
|
|
4770
|
-
"interface-769040647-8080-17950-769040647-0-
|
|
4770
|
+
"interface-769040647-8080-17950-769040647-0-477942004818536": {
|
|
4771
4771
|
"type": "object",
|
|
4772
4772
|
"properties": {
|
|
4773
4773
|
"name": {
|
|
@@ -5240,6 +5240,21 @@
|
|
|
5240
5240
|
"additionalProperties": false,
|
|
5241
5241
|
"description": "Optional limits for the Workflow",
|
|
5242
5242
|
"markdownDescription": "Optional limits for the Workflow"
|
|
5243
|
+
},
|
|
5244
|
+
"schedules": {
|
|
5245
|
+
"anyOf": [
|
|
5246
|
+
{
|
|
5247
|
+
"type": "string"
|
|
5248
|
+
},
|
|
5249
|
+
{
|
|
5250
|
+
"type": "array",
|
|
5251
|
+
"items": {
|
|
5252
|
+
"type": "string"
|
|
5253
|
+
}
|
|
5254
|
+
}
|
|
5255
|
+
],
|
|
5256
|
+
"description": "Optional cron schedule(s) for automatically triggering workflow instances",
|
|
5257
|
+
"markdownDescription": "Optional cron schedule(s) for automatically triggering workflow instances"
|
|
5243
5258
|
}
|
|
5244
5259
|
},
|
|
5245
5260
|
"required": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.95.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -53,17 +53,18 @@
|
|
|
53
53
|
"blake3-wasm": "2.1.5",
|
|
54
54
|
"esbuild": "0.27.3",
|
|
55
55
|
"path-to-regexp": "6.3.0",
|
|
56
|
+
"rosie-skills": "^0.6.3",
|
|
56
57
|
"unenv": "2.0.0-rc.24",
|
|
57
|
-
"workerd": "1.
|
|
58
|
+
"workerd": "1.20260526.1",
|
|
58
59
|
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
60
|
+
"@cloudflare/unenv-preset": "2.16.1",
|
|
61
|
+
"miniflare": "4.20260526.0"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
64
65
|
"@bomb.sh/tab": "^0.0.12",
|
|
65
66
|
"@cloudflare/types": "6.18.4",
|
|
66
|
-
"@cloudflare/workers-types": "^4.
|
|
67
|
+
"@cloudflare/workers-types": "^4.20260526.1",
|
|
67
68
|
"@cspotcode/source-map-support": "0.8.1",
|
|
68
69
|
"@netlify/build-info": "^10.5.1",
|
|
69
70
|
"@sentry/node": "^7.86.0",
|
|
@@ -122,6 +123,7 @@
|
|
|
122
123
|
"patch-console": "^1.0.0",
|
|
123
124
|
"pretty-bytes": "^6.0.0",
|
|
124
125
|
"prompts": "^2.4.2",
|
|
126
|
+
"qr": "^0.6.0",
|
|
125
127
|
"recast": "0.23.11",
|
|
126
128
|
"resolve": "^1.22.8",
|
|
127
129
|
"semiver": "^1.1.0",
|
|
@@ -144,17 +146,18 @@
|
|
|
144
146
|
"xxhash-wasm": "^1.0.1",
|
|
145
147
|
"yaml": "^2.8.1",
|
|
146
148
|
"yargs": "^17.7.2",
|
|
147
|
-
"@cloudflare/cli-shared-helpers": "0.1.
|
|
149
|
+
"@cloudflare/cli-shared-helpers": "0.1.4",
|
|
148
150
|
"@cloudflare/codemod": "1.1.0",
|
|
149
151
|
"@cloudflare/containers-shared": "0.15.1",
|
|
150
|
-
"@cloudflare/
|
|
152
|
+
"@cloudflare/deploy-helpers": "0.1.0",
|
|
153
|
+
"@cloudflare/pages-shared": "^0.13.140",
|
|
151
154
|
"@cloudflare/workers-shared": "0.19.6",
|
|
152
155
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
153
|
-
"@cloudflare/workers-utils": "0.21.
|
|
156
|
+
"@cloudflare/workers-utils": "0.21.1",
|
|
154
157
|
"@cloudflare/workflows-shared": "0.11.0"
|
|
155
158
|
},
|
|
156
159
|
"peerDependencies": {
|
|
157
|
-
"@cloudflare/workers-types": "^4.
|
|
160
|
+
"@cloudflare/workers-types": "^4.20260526.1"
|
|
158
161
|
},
|
|
159
162
|
"peerDependenciesMeta": {
|
|
160
163
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Rule as Rule$1, CfModule, Environment as Environment$1,
|
|
1
|
+
import { Rule as Rule$1, CfModule, Environment as Environment$1, Entry, CfModuleType, Config as Config$1, Binding, DurableObjectMigration as DurableObjectMigration$1, ContainerApp as ContainerApp$1, Trigger, CfTailConsumer, ServiceFetch, ContainerEngine as ContainerEngine$1, CfUnsafe, CfScriptFormat, AssetsOptions as AssetsOptions$1, ConfigBindingFieldName, NormalizeAndValidateConfigArgs, ResolveConfigPathOptions, RawConfig as RawConfig$1, PackageJSON, ParseError, ComplianceConfig, UserError, FatalError } from '@cloudflare/workers-utils';
|
|
2
2
|
export { Binding, experimental_patchConfig, experimental_readRawConfig, defaultWranglerConfig as unstable_defaultWranglerConfig } from '@cloudflare/workers-utils';
|
|
3
3
|
import { Json as Json$1, WorkerRegistry, Miniflare, MiniflareOptions, Mutex, Response as Response$1, NodeJSCompatMode, DispatchFetch, RemoteProxyConnectionString, WorkerOptions, ModuleRule, Request } from 'miniflare';
|
|
4
4
|
import * as undici from 'undici';
|
|
5
5
|
import { RequestInfo, RequestInit, Response, FormData } from 'undici';
|
|
6
|
-
import { RouterConfig, AssetConfig } from '@cloudflare/workers-shared';
|
|
7
6
|
import { Metafile } from 'esbuild';
|
|
8
7
|
import Protocol from 'devtools-protocol/types/protocol-mapping';
|
|
9
8
|
import { EventEmitter } from 'node:events';
|
|
10
9
|
import { ContainerNormalizedConfig } from '@cloudflare/containers-shared';
|
|
10
|
+
import { RouterConfig, AssetConfig } from '@cloudflare/workers-shared';
|
|
11
11
|
import { IncomingRequestCfProperties } from '@cloudflare/workers-types/experimental';
|
|
12
12
|
import { URLSearchParams } from 'node:url';
|
|
13
13
|
import { Argv, PositionalOptions, Options, ArgumentsCamelCase, InferredOptionTypes, InferredOptionType } from 'yargs';
|
|
@@ -237,30 +237,6 @@ declare const unstable_pages: {
|
|
|
237
237
|
deploy: typeof deploy;
|
|
238
238
|
};
|
|
239
239
|
|
|
240
|
-
/**
|
|
241
|
-
* An entry point for the Worker.
|
|
242
|
-
*
|
|
243
|
-
* It consists not just of a `file`, but also of a `directory` that is used to resolve relative paths.
|
|
244
|
-
*/
|
|
245
|
-
type Entry = {
|
|
246
|
-
/** A worker's entrypoint */
|
|
247
|
-
file: string;
|
|
248
|
-
/** A worker's directory. Usually where the Wrangler configuration file is located */
|
|
249
|
-
projectRoot: string;
|
|
250
|
-
/** The path to the config file, if it exists. */
|
|
251
|
-
configPath: string | undefined;
|
|
252
|
-
/** Is this a module worker or a service worker? */
|
|
253
|
-
format: CfScriptFormat;
|
|
254
|
-
/** The directory that contains all of a `--no-bundle` worker's modules. Usually `${directory}/src`. Defaults to path.dirname(file) */
|
|
255
|
-
moduleRoot: string;
|
|
256
|
-
/**
|
|
257
|
-
* A worker's name
|
|
258
|
-
*/
|
|
259
|
-
name?: string | undefined;
|
|
260
|
-
/** Export from a Worker's entrypoint */
|
|
261
|
-
exports: string[];
|
|
262
|
-
};
|
|
263
|
-
|
|
264
240
|
interface GenerateTypesOptions {
|
|
265
241
|
/**
|
|
266
242
|
* Path to the Wrangler config file to use. Can be an array for multi-config type resolution.
|
|
@@ -328,16 +304,6 @@ type Experimental_GenerateTypesResult = GenerateTypesResult;
|
|
|
328
304
|
*/
|
|
329
305
|
declare function generateTypes(options: Experimental_GenerateTypesOptions): Promise<Experimental_GenerateTypesResult>;
|
|
330
306
|
|
|
331
|
-
type AssetsOptions = {
|
|
332
|
-
directory: string;
|
|
333
|
-
binding?: string;
|
|
334
|
-
routerConfig: RouterConfig;
|
|
335
|
-
assetConfig: AssetConfig;
|
|
336
|
-
_redirects?: string;
|
|
337
|
-
_headers?: string;
|
|
338
|
-
run_worker_first?: boolean | string[];
|
|
339
|
-
};
|
|
340
|
-
|
|
341
307
|
type ApiCredentials = {
|
|
342
308
|
apiToken: string;
|
|
343
309
|
} | {
|
|
@@ -789,7 +755,7 @@ type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets" | "containers" |
|
|
|
789
755
|
auth?: AsyncHook<CfAccount>;
|
|
790
756
|
};
|
|
791
757
|
entrypoint: string;
|
|
792
|
-
assets?: AssetsOptions;
|
|
758
|
+
assets?: AssetsOptions$1;
|
|
793
759
|
containers?: ContainerNormalizedConfig[];
|
|
794
760
|
name: string;
|
|
795
761
|
complianceRegion: Config$1["compliance_region"];
|
|
@@ -882,6 +848,15 @@ declare class ExecutionContext {
|
|
|
882
848
|
type Json = string | number | boolean | null | Json[] | {
|
|
883
849
|
[id: string]: Json;
|
|
884
850
|
};
|
|
851
|
+
type AssetsOptions = {
|
|
852
|
+
directory: string;
|
|
853
|
+
binding?: string;
|
|
854
|
+
routerConfig: RouterConfig;
|
|
855
|
+
assetConfig: AssetConfig;
|
|
856
|
+
_redirects?: string;
|
|
857
|
+
_headers?: string;
|
|
858
|
+
run_worker_first?: boolean | string[];
|
|
859
|
+
};
|
|
885
860
|
|
|
886
861
|
/**
|
|
887
862
|
* The `Environment` interface declares all the configuration fields that
|
|
@@ -1531,6 +1506,8 @@ type WorkflowBinding = {
|
|
|
1531
1506
|
/** Maximum number of steps a Workflow instance can execute */
|
|
1532
1507
|
steps?: number;
|
|
1533
1508
|
};
|
|
1509
|
+
/** Optional cron schedule(s) for automatically triggering workflow instances */
|
|
1510
|
+
schedules?: string | string[];
|
|
1534
1511
|
};
|
|
1535
1512
|
/**
|
|
1536
1513
|
* The `EnvironmentNonInheritable` interface declares all the configuration fields for an environment
|
|
@@ -3078,6 +3055,7 @@ interface CommonYargsOptions {
|
|
|
3078
3055
|
"env-file": string[] | undefined;
|
|
3079
3056
|
"experimental-provision": boolean | undefined;
|
|
3080
3057
|
"experimental-auto-create": boolean;
|
|
3058
|
+
"install-skills": boolean;
|
|
3081
3059
|
}
|
|
3082
3060
|
type CommonYargsArgv = Argv<CommonYargsOptions>;
|
|
3083
3061
|
type RemoveIndex<T> = {
|
|
@@ -3404,6 +3382,11 @@ declare function createCLIParser(argv: string[]): {
|
|
|
3404
3382
|
readonly hidden: true;
|
|
3405
3383
|
readonly alias: "x-auto-create";
|
|
3406
3384
|
};
|
|
3385
|
+
readonly "install-skills": {
|
|
3386
|
+
readonly describe: "Install Cloudflare agents skills, if not already present, without asking the user for confirmation";
|
|
3387
|
+
readonly type: "boolean";
|
|
3388
|
+
readonly default: false;
|
|
3389
|
+
};
|
|
3407
3390
|
};
|
|
3408
3391
|
showHelpWithCategories: () => Promise<void>;
|
|
3409
3392
|
};
|