wrangler 4.40.3 → 4.41.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 +27 -2
- package/package.json +11 -11
- package/wrangler-dist/cli.d.ts +42 -8
- package/wrangler-dist/cli.js +443 -205
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
@@ -2625,7 +2625,12 @@
|
|
2625
2625
|
"enum": [
|
2626
2626
|
"dev",
|
2627
2627
|
"basic",
|
2628
|
-
"standard"
|
2628
|
+
"standard",
|
2629
|
+
"lite",
|
2630
|
+
"standard-1",
|
2631
|
+
"standard-2",
|
2632
|
+
"standard-3",
|
2633
|
+
"standard-4"
|
2629
2634
|
]
|
2630
2635
|
},
|
2631
2636
|
"vcpu": {
|
@@ -2695,6 +2700,26 @@
|
|
2695
2700
|
"type": "string",
|
2696
2701
|
"const": "standard"
|
2697
2702
|
},
|
2703
|
+
{
|
2704
|
+
"type": "string",
|
2705
|
+
"const": "lite"
|
2706
|
+
},
|
2707
|
+
{
|
2708
|
+
"type": "string",
|
2709
|
+
"const": "standard-1"
|
2710
|
+
},
|
2711
|
+
{
|
2712
|
+
"type": "string",
|
2713
|
+
"const": "standard-2"
|
2714
|
+
},
|
2715
|
+
{
|
2716
|
+
"type": "string",
|
2717
|
+
"const": "standard-3"
|
2718
|
+
},
|
2719
|
+
{
|
2720
|
+
"type": "string",
|
2721
|
+
"const": "standard-4"
|
2722
|
+
},
|
2698
2723
|
{
|
2699
2724
|
"type": "object",
|
2700
2725
|
"properties": {
|
@@ -2711,7 +2736,7 @@
|
|
2711
2736
|
"additionalProperties": false
|
2712
2737
|
}
|
2713
2738
|
],
|
2714
|
-
"description": "The instance type to be used for the container. Select from one of the following named instance types: -
|
2739
|
+
"description": "The instance type to be used for the container. Select from one of the following named instance types: - lite: 1/16 vCPU, 256 MiB memory, and 2 GB disk - basic: 1/4 vCPU, 1 GiB memory, and 4 GB disk - standard-1: 1/2 vCPU, 4 GiB memory, and 8 GB disk - standard-2: 1 vCPU, 6 GiB memory, and 12 GB disk - standard-3: 2 vCPU, 8 GiB memory, and 16 GB disk - standard-4: 4 vCPU, 12 GiB memory, and 20 GB disk - dev: 1/16 vCPU, 256 MiB memory, and 2 GB disk (deprecated, use \"lite\" instead) - standard: 1 vCPU, 4 GiB memory, and 4 GB disk (deprecated, use \"standard-1\" instead)\n\nCustomers on an enterprise plan have the additional option to set custom limits.",
|
2715
2740
|
"default": "dev"
|
2716
2741
|
},
|
2717
2742
|
"rollout_step_percentage": {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.41.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -54,15 +54,15 @@
|
|
54
54
|
"esbuild": "0.25.4",
|
55
55
|
"path-to-regexp": "6.3.0",
|
56
56
|
"unenv": "2.0.0-rc.21",
|
57
|
-
"workerd": "1.
|
57
|
+
"workerd": "1.20251001.0",
|
58
|
+
"@cloudflare/unenv-preset": "2.7.5",
|
58
59
|
"@cloudflare/kv-asset-handler": "0.4.0",
|
59
|
-
"miniflare": "4.
|
60
|
-
"@cloudflare/unenv-preset": "2.7.5"
|
60
|
+
"miniflare": "4.20251001.0"
|
61
61
|
},
|
62
62
|
"devDependencies": {
|
63
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
64
64
|
"@cloudflare/types": "6.18.4",
|
65
|
-
"@cloudflare/workers-types": "^4.
|
65
|
+
"@cloudflare/workers-types": "^4.20251001.0",
|
66
66
|
"@cspotcode/source-map-support": "0.8.1",
|
67
67
|
"@iarna/toml": "^3.0.0",
|
68
68
|
"@sentry/node": "^7.86.0",
|
@@ -139,16 +139,16 @@
|
|
139
139
|
"xxhash-wasm": "^1.0.1",
|
140
140
|
"yaml": "^2.8.1",
|
141
141
|
"yargs": "^17.7.2",
|
142
|
-
"@cloudflare/cli": "1.1.
|
143
|
-
"@cloudflare/containers-shared": "0.2.
|
142
|
+
"@cloudflare/cli": "1.1.3",
|
143
|
+
"@cloudflare/containers-shared": "0.2.12",
|
144
144
|
"@cloudflare/eslint-config-shared": "1.1.0",
|
145
|
+
"@cloudflare/pages-shared": "^0.13.77",
|
145
146
|
"@cloudflare/workers-shared": "0.18.8",
|
146
|
-
"@cloudflare/
|
147
|
-
"@cloudflare/
|
148
|
-
"@cloudflare/workers-tsconfig": "0.0.0"
|
147
|
+
"@cloudflare/workers-tsconfig": "0.0.0",
|
148
|
+
"@cloudflare/workflows-shared": "0.3.7"
|
149
149
|
},
|
150
150
|
"peerDependencies": {
|
151
|
-
"@cloudflare/workers-types": "^4.
|
151
|
+
"@cloudflare/workers-types": "^4.20251001.0"
|
152
152
|
},
|
153
153
|
"peerDependenciesMeta": {
|
154
154
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -41,7 +41,7 @@ type Route = SimpleRoute | ZoneIdRoute | ZoneNameRoute | CustomDomainRoute;
|
|
41
41
|
type CloudchamberConfig = {
|
42
42
|
image?: string;
|
43
43
|
location?: string;
|
44
|
-
instance_type?: "dev" | "basic" | "standard";
|
44
|
+
instance_type?: "dev" | "basic" | "standard" | "lite" | "standard-1" | "standard-2" | "standard-3" | "standard-4";
|
45
45
|
vcpu?: number;
|
46
46
|
memory?: string;
|
47
47
|
ipv4?: boolean;
|
@@ -123,16 +123,21 @@ type ContainerApp = {
|
|
123
123
|
/**
|
124
124
|
* The instance type to be used for the container.
|
125
125
|
* Select from one of the following named instance types:
|
126
|
-
* -
|
126
|
+
* - lite: 1/16 vCPU, 256 MiB memory, and 2 GB disk
|
127
127
|
* - basic: 1/4 vCPU, 1 GiB memory, and 4 GB disk
|
128
|
-
* - standard: 1/2 vCPU, 4 GiB memory, and
|
128
|
+
* - standard-1: 1/2 vCPU, 4 GiB memory, and 8 GB disk
|
129
|
+
* - standard-2: 1 vCPU, 6 GiB memory, and 12 GB disk
|
130
|
+
* - standard-3: 2 vCPU, 8 GiB memory, and 16 GB disk
|
131
|
+
* - standard-4: 4 vCPU, 12 GiB memory, and 20 GB disk
|
132
|
+
* - dev: 1/16 vCPU, 256 MiB memory, and 2 GB disk (deprecated, use "lite" instead)
|
133
|
+
* - standard: 1 vCPU, 4 GiB memory, and 4 GB disk (deprecated, use "standard-1" instead)
|
129
134
|
*
|
130
135
|
* Customers on an enterprise plan have the additional option to set custom limits.
|
131
136
|
*
|
132
137
|
* @optional
|
133
138
|
* @default "dev"
|
134
139
|
*/
|
135
|
-
instance_type?: "dev" | "basic" | "standard" | {
|
140
|
+
instance_type?: "dev" | "basic" | "standard" | "lite" | "standard-1" | "standard-2" | "standard-3" | "standard-4" | {
|
136
141
|
/** @defaults to 0.0625 (1/16 vCPU) */
|
137
142
|
vcpu?: number;
|
138
143
|
/** @defaults to 256 MiB */
|
@@ -2311,13 +2316,13 @@ type Hook<T extends HookValues, Args extends unknown[] = []> = T | ((...args: Ar
|
|
2311
2316
|
type AsyncHook<T extends HookValues, Args extends unknown[] = []> = Hook<T, Args> | Hook<Promise<T>, Args>;
|
2312
2317
|
type Bundle = EsbuildBundle;
|
2313
2318
|
type LogLevel = "debug" | "info" | "log" | "warn" | "error" | "none";
|
2314
|
-
type File<Contents = string, Path = string> = {
|
2319
|
+
type File$1<Contents = string, Path = string> = {
|
2315
2320
|
path: Path;
|
2316
2321
|
} | {
|
2317
2322
|
contents: Contents;
|
2318
2323
|
path?: Path;
|
2319
2324
|
};
|
2320
|
-
type BinaryFile = File<Uint8Array>;
|
2325
|
+
type BinaryFile = File$1<Uint8Array>;
|
2321
2326
|
type QueueConsumer = NonNullable<Config["queues"]["consumers"]>[number];
|
2322
2327
|
type Trigger = {
|
2323
2328
|
type: "workers.dev";
|
@@ -2353,7 +2358,7 @@ type Binding = {
|
|
2353
2358
|
source: BinaryFile;
|
2354
2359
|
} | {
|
2355
2360
|
type: "text_blob";
|
2356
|
-
source: File;
|
2361
|
+
source: File$1;
|
2357
2362
|
} | ({
|
2358
2363
|
type: "browser";
|
2359
2364
|
} & BindingOmit<CfBrowserBinding>) | ({
|
@@ -2862,6 +2867,34 @@ declare function maybeStartOrUpdateRemoteProxySession(wranglerOrWorkerConfigObje
|
|
2862
2867
|
remoteBindings: Record<string, Binding>;
|
2863
2868
|
} | null>;
|
2864
2869
|
|
2870
|
+
type Message = {
|
2871
|
+
text: string;
|
2872
|
+
location?: Location;
|
2873
|
+
notes?: Message[];
|
2874
|
+
kind?: "warning" | "error";
|
2875
|
+
} & TelemetryMessage;
|
2876
|
+
type Location = File & {
|
2877
|
+
line: number;
|
2878
|
+
column: number;
|
2879
|
+
length?: number;
|
2880
|
+
lineText?: string;
|
2881
|
+
suggestion?: string;
|
2882
|
+
};
|
2883
|
+
type File = {
|
2884
|
+
file?: string;
|
2885
|
+
fileText?: string;
|
2886
|
+
};
|
2887
|
+
/**
|
2888
|
+
* An error that's thrown when something fails to parse.
|
2889
|
+
*/
|
2890
|
+
declare class ParseError extends UserError implements Message {
|
2891
|
+
readonly text: string;
|
2892
|
+
readonly notes: Message[];
|
2893
|
+
readonly location?: Location;
|
2894
|
+
readonly kind: "warning" | "error";
|
2895
|
+
constructor({ text, notes, location, kind, telemetryMessage }: Message);
|
2896
|
+
}
|
2897
|
+
|
2865
2898
|
declare const LOGGER_LEVELS: {
|
2866
2899
|
readonly none: -1;
|
2867
2900
|
readonly error: 0;
|
@@ -2887,7 +2920,8 @@ declare class Logger {
|
|
2887
2920
|
info: (...args: unknown[]) => void;
|
2888
2921
|
log: (...args: unknown[]) => void;
|
2889
2922
|
warn: (...args: unknown[]) => void;
|
2890
|
-
error
|
2923
|
+
error(...args: unknown[]): void;
|
2924
|
+
error(error: ParseError): void;
|
2891
2925
|
table<Keys extends string>(data: TableRow<Keys>[], options?: {
|
2892
2926
|
wordWrap: boolean;
|
2893
2927
|
head?: Keys[];
|