wrangler 4.20.3 → 4.20.5
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 +17 -0
- package/package.json +5 -5
- package/wrangler-dist/cli.d.ts +18 -9
- package/wrangler-dist/cli.js +37050 -36447
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
@@ -2295,6 +2295,14 @@
|
|
2295
2295
|
"location": {
|
2296
2296
|
"type": "string"
|
2297
2297
|
},
|
2298
|
+
"instance_type": {
|
2299
|
+
"type": "string",
|
2300
|
+
"enum": [
|
2301
|
+
"dev",
|
2302
|
+
"basic",
|
2303
|
+
"standard"
|
2304
|
+
]
|
2305
|
+
},
|
2298
2306
|
"vcpu": {
|
2299
2307
|
"type": "number"
|
2300
2308
|
},
|
@@ -2350,6 +2358,15 @@
|
|
2350
2358
|
],
|
2351
2359
|
"description": "The scheduling policy of the application, default is regional"
|
2352
2360
|
},
|
2361
|
+
"instance_type": {
|
2362
|
+
"type": "string",
|
2363
|
+
"enum": [
|
2364
|
+
"dev",
|
2365
|
+
"basic",
|
2366
|
+
"standard"
|
2367
|
+
],
|
2368
|
+
"description": "The instance type to be used for the container. This sets preconfigured options for vcpu and memory"
|
2369
|
+
},
|
2353
2370
|
"configuration": {
|
2354
2371
|
"type": "object",
|
2355
2372
|
"properties": {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "4.20.
|
3
|
+
"version": "4.20.5",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -57,7 +57,7 @@
|
|
57
57
|
"unenv": "2.0.0-rc.17",
|
58
58
|
"workerd": "1.20250617.0",
|
59
59
|
"@cloudflare/kv-asset-handler": "0.4.0",
|
60
|
-
"miniflare": "4.20250617.
|
60
|
+
"miniflare": "4.20250617.3"
|
61
61
|
},
|
62
62
|
"devDependencies": {
|
63
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
@@ -136,10 +136,10 @@
|
|
136
136
|
"xxhash-wasm": "^1.0.1",
|
137
137
|
"yargs": "^17.7.2",
|
138
138
|
"@cloudflare/cli": "1.1.1",
|
139
|
-
"@cloudflare/containers-shared": "0.1
|
139
|
+
"@cloudflare/containers-shared": "0.2.1",
|
140
140
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
141
|
-
"@cloudflare/pages-shared": "^0.13.
|
142
|
-
"@cloudflare/workers-shared": "0.
|
141
|
+
"@cloudflare/pages-shared": "^0.13.50",
|
142
|
+
"@cloudflare/workers-shared": "0.18.0",
|
143
143
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
144
144
|
},
|
145
145
|
"peerDependencies": {
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Json, Request, Response as Response$1, DispatchFetch,
|
1
|
+
import { Json, Request, Response as Response$1, DispatchFetch, NodeJSCompatMode, Miniflare, MiniflareOptions, Mutex, WorkerOptions, ModuleRule, RemoteProxyConnectionString } from 'miniflare';
|
2
2
|
import * as undici from 'undici';
|
3
3
|
import { RequestInfo, RequestInit, Response, FormData } from 'undici';
|
4
4
|
import { RouterConfig, AssetConfig } from '@cloudflare/workers-shared';
|
@@ -37,6 +37,7 @@ type Route = SimpleRoute | ZoneIdRoute | ZoneNameRoute | CustomDomainRoute;
|
|
37
37
|
type CloudchamberConfig = {
|
38
38
|
image?: string;
|
39
39
|
location?: string;
|
40
|
+
instance_type?: "dev" | "basic" | "standard";
|
40
41
|
vcpu?: number;
|
41
42
|
memory?: string;
|
42
43
|
ipv4?: boolean;
|
@@ -67,6 +68,8 @@ type ContainerApp = {
|
|
67
68
|
class_name: string;
|
68
69
|
/** The scheduling policy of the application, default is regional */
|
69
70
|
scheduling_policy?: "regional" | "moon" | "default";
|
71
|
+
/** The instance type to be used for the container. This sets preconfigured options for vcpu and memory */
|
72
|
+
instance_type?: "dev" | "basic" | "standard";
|
70
73
|
configuration: {
|
71
74
|
image: string;
|
72
75
|
labels?: {
|
@@ -1247,9 +1250,6 @@ type ReadConfigCommandArgs = NormalizeAndValidateConfigArgs & {
|
|
1247
1250
|
};
|
1248
1251
|
type ReadConfigOptions = ResolveConfigPathOptions & {
|
1249
1252
|
hideWarnings?: boolean;
|
1250
|
-
experimental?: {
|
1251
|
-
remoteBindingsEnabled?: boolean;
|
1252
|
-
};
|
1253
1253
|
};
|
1254
1254
|
type ConfigBindingOptions = Pick<Config, "ai" | "browser" | "d1_databases" | "dispatch_namespaces" | "durable_objects" | "queues" | "r2_buckets" | "services" | "kv_namespaces" | "mtls_certificates" | "vectorize" | "workflows">;
|
1255
1255
|
/**
|
@@ -1666,14 +1666,14 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
|
|
1666
1666
|
type: string;
|
1667
1667
|
};
|
1668
1668
|
latest_stage: {
|
1669
|
-
status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
|
1670
1669
|
name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
|
1670
|
+
status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
|
1671
1671
|
started_on: string | null;
|
1672
1672
|
ended_on: string | null;
|
1673
1673
|
};
|
1674
1674
|
stages: {
|
1675
|
-
status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
|
1676
1675
|
name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
|
1676
|
+
status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
|
1677
1677
|
started_on: string | null;
|
1678
1678
|
ended_on: string | null;
|
1679
1679
|
}[];
|
@@ -1862,7 +1862,7 @@ interface StartDevWorkerInput {
|
|
1862
1862
|
/** The bindings available to the worker. The specified bindind type will be exposed to the worker on the `env` object under the same key. */
|
1863
1863
|
bindings?: Record<string, Binding>;
|
1864
1864
|
migrations?: DurableObjectMigration[];
|
1865
|
-
containers?:
|
1865
|
+
containers?: ContainerApp[];
|
1866
1866
|
/** The triggers which will cause the worker's exported default handlers to be called. */
|
1867
1867
|
triggers?: Trigger[];
|
1868
1868
|
tailConsumers?: CfTailConsumer[];
|
@@ -1953,6 +1953,7 @@ interface StartDevWorkerInput {
|
|
1953
1953
|
multiworkerPrimary?: boolean;
|
1954
1954
|
/** Whether the experimental remote bindings feature should be enabled */
|
1955
1955
|
experimentalRemoteBindings?: boolean;
|
1956
|
+
containerBuildId?: string;
|
1956
1957
|
/** Whether to build and connect to containers during local dev. Requires Docker daemon to be running. Defaults to true. */
|
1957
1958
|
enableContainers?: boolean;
|
1958
1959
|
/** Path to the docker executable. Defaults to 'docker' */
|
@@ -2373,6 +2374,13 @@ type GetPlatformProxyOptions = {
|
|
2373
2374
|
persist?: boolean | {
|
2374
2375
|
path: string;
|
2375
2376
|
};
|
2377
|
+
/**
|
2378
|
+
* Experimental flags (note: these can change at any time and are not version-controlled use at your own risk)
|
2379
|
+
*/
|
2380
|
+
experimental?: {
|
2381
|
+
/** whether access to remove bindings should be enabled */
|
2382
|
+
remoteBindings?: boolean;
|
2383
|
+
};
|
2376
2384
|
};
|
2377
2385
|
/**
|
2378
2386
|
* Result of the `getPlatformProxy` utility
|
@@ -2454,14 +2462,15 @@ declare function pickRemoteBindings(bindings: Record<string, Binding>): Record<s
|
|
2454
2462
|
*
|
2455
2463
|
* @param configPathOrWorkerConfig either a file path to a wrangler configuration file or an object containing the name of
|
2456
2464
|
* the target worker alongside its bindings.
|
2457
|
-
* @param preExistingRemoteProxySessionData the data of a pre-existing remote proxy session if there was one
|
2465
|
+
* @param preExistingRemoteProxySessionData the optional data of a pre-existing remote proxy session if there was one, this
|
2466
|
+
* argument can be omitted or set to null if there is no pre-existing remote proxy session
|
2458
2467
|
* @returns null if no existing remote proxy session was provided and one should not be created (because the worker is not
|
2459
2468
|
* defining any remote bindings), the data associated to the created/updated remote proxy session otherwise.
|
2460
2469
|
*/
|
2461
2470
|
declare function maybeStartOrUpdateRemoteProxySession(configPathOrWorkerConfig: string | {
|
2462
2471
|
name?: string;
|
2463
2472
|
bindings: NonNullable<StartDevWorkerInput["bindings"]>;
|
2464
|
-
}, preExistingRemoteProxySessionData
|
2473
|
+
}, preExistingRemoteProxySessionData?: {
|
2465
2474
|
session: RemoteProxySession;
|
2466
2475
|
remoteBindings: Record<string, Binding>;
|
2467
2476
|
} | null): Promise<{
|