wrangler 4.14.0 → 4.14.2

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/bin/wrangler.js CHANGED
@@ -2,15 +2,15 @@
2
2
  const { spawn } = require("child_process");
3
3
  const path = require("path");
4
4
 
5
- const MIN_NODE_VERSION = "18.0.0";
6
-
5
+ const ERR_NODE_VERSION = "18.0.0";
6
+ const MIN_NODE_VERSION = "20.0.0";
7
7
  let wranglerProcess;
8
8
 
9
9
  /**
10
10
  * Executes ../wrangler-dist/cli.js
11
11
  */
12
12
  function runWrangler() {
13
- if (semiver(process.versions.node, MIN_NODE_VERSION) < 0) {
13
+ if (semiver(process.versions.node, ERR_NODE_VERSION) < 0) {
14
14
  // Note Volta and nvm are also recommended in the official docs:
15
15
  // https://developers.cloudflare.com/workers/get-started/guide#2-install-the-workers-cli
16
16
  console.error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.14.0",
3
+ "version": "4.14.2",
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.15",
58
58
  "workerd": "1.20250428.0",
59
59
  "@cloudflare/kv-asset-handler": "0.4.0",
60
- "miniflare": "4.20250428.0"
60
+ "miniflare": "4.20250428.1"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@aws-sdk/client-s3": "^3.721.0",
@@ -75,7 +75,7 @@
75
75
  "@types/javascript-time-ago": "^2.0.3",
76
76
  "@types/mime": "^3.0.4",
77
77
  "@types/minimatch": "^5.1.2",
78
- "@types/node": "^18.19.75",
78
+ "@types/node": "^20.17.32",
79
79
  "@types/node-forge": "^1.3.11",
80
80
  "@types/prompts": "^2.0.14",
81
81
  "@types/resolve": "^1.20.6",
@@ -137,8 +137,8 @@
137
137
  "yargs": "^17.7.2",
138
138
  "@cloudflare/cli": "1.1.1",
139
139
  "@cloudflare/eslint-config-worker": "1.1.0",
140
- "@cloudflare/pages-shared": "^0.13.34",
141
140
  "@cloudflare/workers-shared": "0.17.5",
141
+ "@cloudflare/pages-shared": "^0.13.35",
142
142
  "@cloudflare/workers-tsconfig": "0.0.0"
143
143
  },
144
144
  "peerDependencies": {
@@ -0,0 +1,5 @@
1
+ export default {
2
+ fetch() {
3
+ return new Response("no-op mixed-mode proxyServerWorker");
4
+ },
5
+ };
@@ -0,0 +1,4 @@
1
+ {
2
+ "main": "./index.ts",
3
+ "compatibility_date": "2025-04-28",
4
+ }
@@ -30,6 +30,8 @@ import type { WorkerOptions } from 'miniflare';
30
30
  import { Writable } from 'stream';
31
31
  import { z } from 'zod';
32
32
 
33
+ declare const __brand: unique symbol;
34
+
33
35
  declare type AbortSignal_2 = unknown;
34
36
 
35
37
  declare interface AddEventListenerOptions extends EventListenerOptions {
@@ -258,7 +260,7 @@ declare type BaseErrorEvent<Source = string, Data = undefined> = {
258
260
  data: Data;
259
261
  };
260
262
 
261
- declare type BinaryFile = File_2<Uint8Array>;
263
+ declare type BinaryFile = File_3<Uint8Array>;
262
264
 
263
265
  declare type BinaryType = 'blob' | 'arraybuffer'
264
266
 
@@ -277,7 +279,7 @@ declare type Binding = {
277
279
  source: BinaryFile;
278
280
  } | {
279
281
  type: "text_blob";
280
- source: File_2;
282
+ source: File_3;
281
283
  } | {
282
284
  type: "browser";
283
285
  } | {
@@ -328,6 +330,8 @@ declare type Binding = {
328
330
 
329
331
  declare type BindingOmit<T> = Omit<T, "binding">;
330
332
 
333
+ declare type BindingsOpt = StartDevWorkerInput["bindings"];
334
+
331
335
  declare interface BlobPropertyBag {
332
336
  type?: string
333
337
  endings?: 'native' | 'transparent'
@@ -1589,6 +1593,8 @@ declare type Entry = {
1589
1593
  file: string;
1590
1594
  /** A worker's directory. Usually where the Wrangler configuration file is located */
1591
1595
  projectRoot: string;
1596
+ /** The path to the config file, if it exists. */
1597
+ configPath: string | undefined;
1592
1598
  /** Is this a module worker or a service worker? */
1593
1599
  format: CfScriptFormat;
1594
1600
  /** The directory that contains all of a `--no-bundle` worker's modules. Usually `${directory}/src`. Defaults to path.dirname(file) */
@@ -2528,12 +2534,14 @@ export declare const experimental_readRawConfig: (args: ReadConfigCommandArgs, o
2528
2534
  userConfigPath: string | undefined;
2529
2535
  };
2530
2536
 
2537
+ export declare function experimental_startMixedModeSession(bindings: BindingsOpt): Promise<MixedModeSession>;
2538
+
2531
2539
  declare function fetch_2 (
2532
2540
  input: RequestInfo,
2533
2541
  init?: RequestInit_2
2534
2542
  ): Promise<Response_2>
2535
2543
 
2536
- declare class File extends Blob_2 {
2544
+ declare class File_2 extends Blob_2 {
2537
2545
  /**
2538
2546
  * Creates a new File instance.
2539
2547
  *
@@ -2556,7 +2564,7 @@ declare class File extends Blob_2 {
2556
2564
  readonly [Symbol.toStringTag]: string
2557
2565
  }
2558
2566
 
2559
- declare type File_2<Contents = string, Path = string> = {
2567
+ declare type File_3<Contents = string, Path = string> = {
2560
2568
  path: Path;
2561
2569
  } | {
2562
2570
  contents: Contents;
@@ -2705,7 +2713,7 @@ declare class FormData_2 {
2705
2713
  /**
2706
2714
  * A `string` or `File` that represents a single value from a set of `FormData` key-value pairs.
2707
2715
  */
2708
- declare type FormDataEntryValue = string | File
2716
+ declare type FormDataEntryValue = string | File_2
2709
2717
 
2710
2718
  declare function getCookies (headers: Headers_2): Record<string, string>
2711
2719
 
@@ -2901,6 +2909,15 @@ declare interface MIMEType {
2901
2909
 
2902
2910
  declare type MiniflareWorker = Awaited<ReturnType<Miniflare["getWorker"]>>;
2903
2911
 
2912
+ declare type MixedModeConnectionString = Awaited<Worker["url"]> & {
2913
+ [__brand]: "MixedModeConnectionString";
2914
+ };
2915
+
2916
+ declare type MixedModeSession = Pick<Worker, "ready" | "dispose"> & {
2917
+ ["setConfig"]: (bindings: BindingsOpt) => Promise<void>;
2918
+ ["mixedModeConnectionString"]: MixedModeConnectionString;
2919
+ };
2920
+
2904
2921
  /** A mocked Agent class that implements the Agent API. It allows one to intercept HTTP requests made through undici and return mocked responses instead. */
2905
2922
  declare class MockAgent<TMockAgentOptions extends MockAgent.Options = MockAgent.Options> extends Dispatcher {
2906
2923
  constructor(options?: MockAgent.Options)
@@ -26119,7 +26136,6 @@ declare interface StartDevWorkerInput {
26119
26136
  /**
26120
26137
  * The javascript or typescript entry-point of the worker.
26121
26138
  * This is the `main` property of a Wrangler configuration file.
26122
- * You can specify a file path or provide the contents directly.
26123
26139
  */
26124
26140
  entrypoint?: string;
26125
26141
  /** The configuration of the worker. */
@@ -26335,7 +26351,7 @@ declare namespace Undici {
26335
26351
  var Response: Response_2;
26336
26352
  var Request: Request_2;
26337
26353
  var FormData: FormData_2;
26338
- var File: File;
26354
+ var File: File_2;
26339
26355
  var FileReader: FileReader;
26340
26356
  var caches: caches;
26341
26357
  }
@@ -26397,7 +26413,7 @@ declare namespace undici {
26397
26413
  Response_2 as Response,
26398
26414
  BlobPropertyBag,
26399
26415
  FilePropertyBag,
26400
- File,
26416
+ File_2 as File,
26401
26417
  FileReader,
26402
26418
  ProgressEventInit,
26403
26419
  ProgressEvent,