wrangler 4.20.4 → 4.21.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.
@@ -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.4",
3
+ "version": "4.21.0",
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.2"
60
+ "miniflare": "4.20250617.3"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@aws-sdk/client-s3": "^3.721.0",
@@ -136,11 +136,11 @@
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.2.0",
140
139
  "@cloudflare/eslint-config-worker": "1.1.0",
141
- "@cloudflare/pages-shared": "^0.13.49",
142
- "@cloudflare/workers-shared": "0.18.0",
143
- "@cloudflare/workers-tsconfig": "0.0.0"
140
+ "@cloudflare/containers-shared": "0.2.1",
141
+ "@cloudflare/workers-tsconfig": "0.0.0",
142
+ "@cloudflare/pages-shared": "^0.13.50",
143
+ "@cloudflare/workers-shared": "0.18.0"
144
144
  },
145
145
  "peerDependencies": {
146
146
  "@cloudflare/workers-types": "^4.20250617.0"
@@ -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
  /**
@@ -2374,6 +2374,13 @@ type GetPlatformProxyOptions = {
2374
2374
  persist?: boolean | {
2375
2375
  path: string;
2376
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
+ };
2377
2384
  };
2378
2385
  /**
2379
2386
  * Result of the `getPlatformProxy` utility
@@ -2455,14 +2462,15 @@ declare function pickRemoteBindings(bindings: Record<string, Binding>): Record<s
2455
2462
  *
2456
2463
  * @param configPathOrWorkerConfig either a file path to a wrangler configuration file or an object containing the name of
2457
2464
  * the target worker alongside its bindings.
2458
- * @param preExistingRemoteProxySessionData the data of a pre-existing remote proxy session if there was one null otherwise
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
2459
2467
  * @returns null if no existing remote proxy session was provided and one should not be created (because the worker is not
2460
2468
  * defining any remote bindings), the data associated to the created/updated remote proxy session otherwise.
2461
2469
  */
2462
2470
  declare function maybeStartOrUpdateRemoteProxySession(configPathOrWorkerConfig: string | {
2463
2471
  name?: string;
2464
2472
  bindings: NonNullable<StartDevWorkerInput["bindings"]>;
2465
- }, preExistingRemoteProxySessionData: {
2473
+ }, preExistingRemoteProxySessionData?: {
2466
2474
  session: RemoteProxySession;
2467
2475
  remoteBindings: Record<string, Binding>;
2468
2476
  } | null): Promise<{