wrangler 4.27.0 → 4.28.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.27.0",
3
+ "version": "4.28.1",
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.19",
57
- "workerd": "1.20250730.0",
57
+ "workerd": "1.20250803.0",
58
58
  "@cloudflare/kv-asset-handler": "0.4.0",
59
- "@cloudflare/unenv-preset": "2.5.0",
60
- "miniflare": "4.20250730.0"
59
+ "@cloudflare/unenv-preset": "2.6.0",
60
+ "miniflare": "4.20250803.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.20250730.0",
65
+ "@cloudflare/workers-types": "^4.20250803.0",
66
66
  "@cspotcode/source-map-support": "0.8.1",
67
67
  "@iarna/toml": "^3.0.0",
68
68
  "@sentry/node": "^7.86.0",
@@ -136,15 +136,15 @@
136
136
  "xdg-app-paths": "^8.3.0",
137
137
  "xxhash-wasm": "^1.0.1",
138
138
  "yargs": "^17.7.2",
139
- "@cloudflare/cli": "1.1.1",
140
139
  "@cloudflare/containers-shared": "0.2.8",
140
+ "@cloudflare/cli": "1.1.1",
141
141
  "@cloudflare/eslint-config-worker": "1.1.0",
142
- "@cloudflare/pages-shared": "^0.13.59",
142
+ "@cloudflare/pages-shared": "^0.13.60",
143
143
  "@cloudflare/workers-shared": "0.18.5",
144
144
  "@cloudflare/workers-tsconfig": "0.0.0"
145
145
  },
146
146
  "peerDependencies": {
147
- "@cloudflare/workers-types": "^4.20250730.0"
147
+ "@cloudflare/workers-types": "^4.20250803.0"
148
148
  },
149
149
  "peerDependenciesMeta": {
150
150
  "@cloudflare/workers-types": {
@@ -1395,6 +1395,15 @@ type CfSendEmailBindings = {
1395
1395
  } | {
1396
1396
  allowed_destination_addresses?: string[];
1397
1397
  });
1398
+ /**
1399
+ * A binding to the AI project
1400
+ */
1401
+ interface CfAIBinding {
1402
+ binding: string;
1403
+ staging?: boolean;
1404
+ experimental_remote?: boolean;
1405
+ raw?: boolean;
1406
+ }
1398
1407
  /**
1399
1408
  * A Durable Object.
1400
1409
  */
@@ -2010,7 +2019,7 @@ interface StartDevWorkerInput {
2010
2019
  /** Describes the registry of other Workers running locally */
2011
2020
  registry?: WorkerRegistry | null;
2012
2021
  testScheduled?: boolean;
2013
- /** Whether to use Vectorize mixed mode -- the worker is run locally but accesses to Vectorize are made remotely */
2022
+ /** Whether to use Vectorize as a remote binding -- the worker is run locally but accesses to Vectorize are made remotely */
2014
2023
  bindVectorizeToProd?: boolean;
2015
2024
  /** Whether to use Images local mode -- this is lower fidelity, but doesn't require network access */
2016
2025
  imagesLocalMode?: boolean;
@@ -2109,9 +2118,9 @@ type Binding = {
2109
2118
  source: File;
2110
2119
  } | {
2111
2120
  type: "browser";
2112
- } | {
2121
+ } | ({
2113
2122
  type: "ai";
2114
- } | {
2123
+ } & BindingOmit<CfAIBinding>) | {
2115
2124
  type: "images";
2116
2125
  } | {
2117
2126
  type: "version_metadata";
@@ -2545,6 +2554,7 @@ declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: st
2545
2554
  remoteBindingsEnabled?: boolean;
2546
2555
  overrides?: {
2547
2556
  assets?: Partial<AssetsOptions>;
2557
+ enableContainers?: boolean;
2548
2558
  };
2549
2559
  containerBuildId?: string;
2550
2560
  }): Unstable_MiniflareWorkerOptions;
@@ -2554,6 +2564,7 @@ declare function unstable_getMiniflareWorkerOptions(config: Config, env?: string
2554
2564
  remoteBindingsEnabled?: boolean;
2555
2565
  overrides?: {
2556
2566
  assets?: Partial<AssetsOptions>;
2567
+ enableContainers?: boolean;
2557
2568
  };
2558
2569
  containerBuildId?: string;
2559
2570
  }): Unstable_MiniflareWorkerOptions;
@@ -2570,28 +2581,39 @@ type StartRemoteProxySessionOptions = {
2570
2581
  };
2571
2582
  declare function startRemoteProxySession(bindings: StartDevWorkerInput["bindings"], options?: StartRemoteProxySessionOptions): Promise<RemoteProxySession>;
2572
2583
  declare function pickRemoteBindings(bindings: Record<string, Binding>): Record<string, Binding>;
2584
+ type WranglerConfigObject = {
2585
+ /** The path to the wrangler config file */
2586
+ path: string;
2587
+ /** The target environment */
2588
+ environment?: string;
2589
+ };
2590
+ type WorkerConfigObject = {
2591
+ /** The name of the worker */
2592
+ name?: string;
2593
+ /** The Worker's bindings */
2594
+ bindings: NonNullable<StartDevWorkerInput["bindings"]>;
2595
+ /** If running in a non-public compliance region, set this here. */
2596
+ complianceRegion?: Config["compliance_region"];
2597
+ };
2573
2598
  /**
2574
2599
  * Utility for potentially starting or updating a remote proxy session.
2575
2600
  *
2576
2601
  * It uses an internal map for storing existing remote proxy session indexed by worker names. If no worker name is provided
2577
2602
  * the remote proxy session won't be retrieved nor saved to/from the internal map.
2578
2603
  *
2579
- * @param configPathOrWorkerConfig either a file path to a wrangler configuration file or an object containing the name of
2604
+ * @param wranglerOrWorkerConfigObject either a file path to a wrangler configuration file or an object containing the name of
2580
2605
  * the target worker alongside its bindings.
2581
2606
  * @param preExistingRemoteProxySessionData the optional data of a pre-existing remote proxy session if there was one, this
2582
2607
  * argument can be omitted or set to null if there is no pre-existing remote proxy session
2608
+ * @param auth the authentication information for establishing the remote proxy connection
2583
2609
  * @returns null if no existing remote proxy session was provided and one should not be created (because the worker is not
2584
2610
  * defining any remote bindings), the data associated to the created/updated remote proxy session otherwise.
2585
2611
  */
2586
- declare function maybeStartOrUpdateRemoteProxySession(configPathOrWorkerConfig: string | {
2587
- name?: string;
2588
- /** If running in a non-public compliance region, set this here. */
2589
- complianceRegion?: Config["compliance_region"];
2590
- bindings: NonNullable<StartDevWorkerInput["bindings"]>;
2591
- }, preExistingRemoteProxySessionData?: {
2612
+ declare function maybeStartOrUpdateRemoteProxySession(wranglerOrWorkerConfigObject: WranglerConfigObject | WorkerConfigObject, preExistingRemoteProxySessionData?: {
2592
2613
  session: RemoteProxySession;
2593
2614
  remoteBindings: Record<string, Binding>;
2594
- } | null): Promise<{
2615
+ auth?: CfAccount | undefined;
2616
+ } | null, auth?: CfAccount | undefined): Promise<{
2595
2617
  session: RemoteProxySession;
2596
2618
  remoteBindings: Record<string, Binding>;
2597
2619
  } | null>;