wrangler 3.105.1 → 3.107.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 +47 -1
- package/package.json +8 -7
- package/wrangler-dist/cli.d.ts +34 -12
- package/wrangler-dist/cli.js +975 -480
- package/wrangler-dist/cli.js.map +4 -4
package/config-schema.json
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
"type": "string"
|
15
15
|
},
|
16
16
|
"experimental_serve_directly": {
|
17
|
-
"description": "
|
17
|
+
"description": "Deprecated; Inverse of run_worker_first. Should use run_worker_first instead",
|
18
18
|
"type": "boolean"
|
19
19
|
},
|
20
20
|
"html_handling": {
|
@@ -35,6 +35,10 @@
|
|
35
35
|
"none"
|
36
36
|
],
|
37
37
|
"type": "string"
|
38
|
+
},
|
39
|
+
"run_worker_first": {
|
40
|
+
"description": "If true, route every request to the User Worker, whether or not it matches an asset. If false, then respond to requests that match an asset with that asset directly.",
|
41
|
+
"type": "boolean"
|
38
42
|
}
|
39
43
|
},
|
40
44
|
"type": "object"
|
@@ -599,6 +603,20 @@
|
|
599
603
|
},
|
600
604
|
"type": "array"
|
601
605
|
},
|
606
|
+
"images": {
|
607
|
+
"additionalProperties": false,
|
608
|
+
"default": {},
|
609
|
+
"description": "Binding to Cloudflare Images\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
610
|
+
"properties": {
|
611
|
+
"binding": {
|
612
|
+
"type": "string"
|
613
|
+
}
|
614
|
+
},
|
615
|
+
"required": [
|
616
|
+
"binding"
|
617
|
+
],
|
618
|
+
"type": "object"
|
619
|
+
},
|
602
620
|
"jsx_factory": {
|
603
621
|
"default": "React.createElement",
|
604
622
|
"description": "The function to use to replace jsx syntax.",
|
@@ -1571,6 +1589,20 @@
|
|
1571
1589
|
},
|
1572
1590
|
"type": "array"
|
1573
1591
|
},
|
1592
|
+
"images": {
|
1593
|
+
"additionalProperties": false,
|
1594
|
+
"default": {},
|
1595
|
+
"description": "Binding to Cloudflare Images\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
1596
|
+
"properties": {
|
1597
|
+
"binding": {
|
1598
|
+
"type": "string"
|
1599
|
+
}
|
1600
|
+
},
|
1601
|
+
"required": [
|
1602
|
+
"binding"
|
1603
|
+
],
|
1604
|
+
"type": "object"
|
1605
|
+
},
|
1574
1606
|
"jsx_factory": {
|
1575
1607
|
"default": "React.createElement",
|
1576
1608
|
"description": "The function to use to replace jsx syntax.",
|
@@ -2608,6 +2640,20 @@
|
|
2608
2640
|
},
|
2609
2641
|
"type": "array"
|
2610
2642
|
},
|
2643
|
+
"images": {
|
2644
|
+
"additionalProperties": false,
|
2645
|
+
"default": {},
|
2646
|
+
"description": "Binding to Cloudflare Images\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
2647
|
+
"properties": {
|
2648
|
+
"binding": {
|
2649
|
+
"type": "string"
|
2650
|
+
}
|
2651
|
+
},
|
2652
|
+
"required": [
|
2653
|
+
"binding"
|
2654
|
+
],
|
2655
|
+
"type": "object"
|
2656
|
+
},
|
2611
2657
|
"jsx_factory": {
|
2612
2658
|
"default": "React.createElement",
|
2613
2659
|
"description": "The function to use to replace jsx syntax.",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.107.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -55,10 +55,11 @@
|
|
55
55
|
"blake3-wasm": "2.1.5",
|
56
56
|
"esbuild": "0.17.19",
|
57
57
|
"path-to-regexp": "6.3.0",
|
58
|
-
"
|
58
|
+
"sharp": "^0.33.5",
|
59
|
+
"unenv": "2.0.0-rc.1",
|
59
60
|
"workerd": "1.20250124.0",
|
60
61
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
61
|
-
"miniflare": "3.20250124.
|
62
|
+
"miniflare": "3.20250124.1"
|
62
63
|
},
|
63
64
|
"devDependencies": {
|
64
65
|
"@aws-sdk/client-s3": "^3.721.0",
|
@@ -76,7 +77,7 @@
|
|
76
77
|
"@types/javascript-time-ago": "^2.0.3",
|
77
78
|
"@types/mime": "^3.0.4",
|
78
79
|
"@types/minimatch": "^5.1.2",
|
79
|
-
"@types/node": "^18.19.
|
80
|
+
"@types/node": "^18.19.71",
|
80
81
|
"@types/node-forge": "^1.3.11",
|
81
82
|
"@types/prompts": "^2.0.14",
|
82
83
|
"@types/resolve": "^1.20.6",
|
@@ -128,7 +129,7 @@
|
|
128
129
|
"timeago.js": "^4.0.2",
|
129
130
|
"ts-dedent": "^2.2.0",
|
130
131
|
"ts-json-schema-generator": "^1.5.0",
|
131
|
-
"typescript": "
|
132
|
+
"typescript": "^5.7.2",
|
132
133
|
"undici": "^5.28.4",
|
133
134
|
"update-check": "^1.5.4",
|
134
135
|
"vitest": "~2.1.8",
|
@@ -139,8 +140,8 @@
|
|
139
140
|
"yargs": "^17.7.2",
|
140
141
|
"@cloudflare/cli": "1.1.1",
|
141
142
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
142
|
-
"@cloudflare/pages-shared": "^0.13.
|
143
|
-
"@cloudflare/workers-shared": "0.
|
143
|
+
"@cloudflare/pages-shared": "^0.13.4",
|
144
|
+
"@cloudflare/workers-shared": "0.13.0",
|
144
145
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
145
146
|
},
|
146
147
|
"peerDependencies": {
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -77,14 +77,17 @@ declare const AssetConfigSchema: z.ZodObject<{
|
|
77
77
|
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
78
78
|
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
79
79
|
serve_directly: z.ZodOptional<z.ZodBoolean>;
|
80
|
+
run_worker_first: z.ZodOptional<z.ZodBoolean>;
|
80
81
|
}, "strip", z.ZodTypeAny, {
|
81
82
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
82
83
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
83
84
|
serve_directly?: boolean;
|
85
|
+
run_worker_first?: boolean;
|
84
86
|
}, {
|
85
87
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
86
88
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
87
89
|
serve_directly?: boolean;
|
90
|
+
run_worker_first?: boolean;
|
88
91
|
}>;
|
89
92
|
|
90
93
|
declare type Assets = {
|
@@ -97,9 +100,11 @@ declare type Assets = {
|
|
97
100
|
/** How to handle requests that do not match an asset. */
|
98
101
|
not_found_handling?: "single-page-application" | "404-page" | "none";
|
99
102
|
/**
|
100
|
-
* If true,
|
101
|
-
* If false,
|
103
|
+
* If true, route every request to the User Worker, whether or not it matches an asset.
|
104
|
+
* If false, then respond to requests that match an asset with that asset directly.
|
102
105
|
* */
|
106
|
+
run_worker_first?: boolean;
|
107
|
+
/** Deprecated; Inverse of run_worker_first. Should use run_worker_first instead */
|
103
108
|
experimental_serve_directly?: boolean;
|
104
109
|
};
|
105
110
|
|
@@ -157,6 +162,8 @@ declare type Binding = {
|
|
157
162
|
type: "browser";
|
158
163
|
} | {
|
159
164
|
type: "ai";
|
165
|
+
} | {
|
166
|
+
type: "images";
|
160
167
|
} | {
|
161
168
|
type: "version_metadata";
|
162
169
|
} | {
|
@@ -172,24 +179,24 @@ declare type Binding = {
|
|
172
179
|
type: "r2_bucket";
|
173
180
|
} & BindingOmit<CfR2Bucket>) | ({
|
174
181
|
type: "d1";
|
175
|
-
} &
|
182
|
+
} & BindingOmit<CfD1Database>) | ({
|
176
183
|
type: "vectorize";
|
177
|
-
} &
|
184
|
+
} & BindingOmit<CfVectorize>) | ({
|
178
185
|
type: "hyperdrive";
|
179
|
-
} &
|
186
|
+
} & BindingOmit<CfHyperdrive>) | ({
|
180
187
|
type: "service";
|
181
|
-
} &
|
188
|
+
} & BindingOmit<CfService>) | {
|
182
189
|
type: "fetcher";
|
183
190
|
fetcher: ServiceFetch;
|
184
191
|
} | ({
|
185
192
|
type: "analytics_engine";
|
186
|
-
} &
|
193
|
+
} & BindingOmit<CfAnalyticsEngineDataset>) | ({
|
187
194
|
type: "dispatch_namespace";
|
188
|
-
} &
|
195
|
+
} & BindingOmit<CfDispatchNamespace>) | ({
|
189
196
|
type: "mtls_certificate";
|
190
|
-
} &
|
197
|
+
} & BindingOmit<CfMTlsCertificate>) | ({
|
191
198
|
type: "pipeline";
|
192
|
-
} &
|
199
|
+
} & BindingOmit<CfPipeline>) | ({
|
193
200
|
type: "logfwdr";
|
194
201
|
} & NameOmit<CfLogfwdrBinding>) | {
|
195
202
|
type: `unsafe_${string}`;
|
@@ -536,7 +543,7 @@ declare interface CfModule {
|
|
536
543
|
* }
|
537
544
|
* }
|
538
545
|
*/
|
539
|
-
content: string | Buffer
|
546
|
+
content: string | Buffer<ArrayBuffer>;
|
540
547
|
/**
|
541
548
|
* An optional sourcemap for this module if it's of a ESM or CJS type, this will only be present
|
542
549
|
* if we're deploying with sourcemaps enabled. Since we copy extra modules that aren't bundled
|
@@ -2169,6 +2176,18 @@ declare interface EnvironmentNonInheritable {
|
|
2169
2176
|
binding: string;
|
2170
2177
|
staging?: boolean;
|
2171
2178
|
} | undefined;
|
2179
|
+
/**
|
2180
|
+
* Binding to Cloudflare Images
|
2181
|
+
*
|
2182
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
2183
|
+
* and so must be specified in every named environment.
|
2184
|
+
*
|
2185
|
+
* @default {}
|
2186
|
+
* @nonInheritable
|
2187
|
+
*/
|
2188
|
+
images: {
|
2189
|
+
binding: string;
|
2190
|
+
} | undefined;
|
2172
2191
|
/**
|
2173
2192
|
* Binding to the Worker Version's metadata
|
2174
2193
|
*/
|
@@ -26185,6 +26204,8 @@ declare interface StartDevWorkerInput {
|
|
26185
26204
|
testScheduled?: boolean;
|
26186
26205
|
/** Whether to use Vectorize mixed mode -- the worker is run locally but accesses to Vectorize are made remotely */
|
26187
26206
|
bindVectorizeToProd?: boolean;
|
26207
|
+
/** Whether to use Images local mode -- this is lower fidelity, but doesn't require network access */
|
26208
|
+
imagesLocalMode?: boolean;
|
26188
26209
|
/** Treat this as the primary worker in a multiworker setup (i.e. the first Worker in Miniflare's options) */
|
26189
26210
|
multiworkerPrimary?: boolean;
|
26190
26211
|
};
|
@@ -26513,6 +26534,7 @@ export declare interface Unstable_DevOptions {
|
|
26513
26534
|
devEnv?: boolean;
|
26514
26535
|
fileBasedRegistry?: boolean;
|
26515
26536
|
vectorizeBindToProd?: boolean;
|
26537
|
+
imagesLocalMode?: boolean;
|
26516
26538
|
enableIpc?: boolean;
|
26517
26539
|
};
|
26518
26540
|
}
|
@@ -26529,7 +26551,7 @@ export declare const unstable_generateASSETSBinding: (opts: Unstable_ASSETSBindi
|
|
26529
26551
|
|
26530
26552
|
export declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: string): Unstable_MiniflareWorkerOptions;
|
26531
26553
|
|
26532
|
-
export declare function unstable_getMiniflareWorkerOptions(config: Unstable_Config): Unstable_MiniflareWorkerOptions;
|
26554
|
+
export declare function unstable_getMiniflareWorkerOptions(config: Unstable_Config, env?: string): Unstable_MiniflareWorkerOptions;
|
26533
26555
|
|
26534
26556
|
export declare interface Unstable_MiniflareWorkerOptions {
|
26535
26557
|
workerOptions: SourcelessWorkerOptions;
|