wrangler 4.14.1 → 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.1",
3
+ "version": "4.14.2",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -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",
@@ -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/pages-shared": "^0.13.35",
139
+ "@cloudflare/eslint-config-worker": "1.1.0",
140
140
  "@cloudflare/workers-shared": "0.17.5",
141
- "@cloudflare/workers-tsconfig": "0.0.0",
142
- "@cloudflare/eslint-config-worker": "1.1.0"
141
+ "@cloudflare/pages-shared": "^0.13.35",
142
+ "@cloudflare/workers-tsconfig": "0.0.0"
143
143
  },
144
144
  "peerDependencies": {
145
145
  "@cloudflare/workers-types": "^4.20250428.0"
@@ -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'
@@ -2530,12 +2534,14 @@ export declare const experimental_readRawConfig: (args: ReadConfigCommandArgs, o
2530
2534
  userConfigPath: string | undefined;
2531
2535
  };
2532
2536
 
2537
+ export declare function experimental_startMixedModeSession(bindings: BindingsOpt): Promise<MixedModeSession>;
2538
+
2533
2539
  declare function fetch_2 (
2534
2540
  input: RequestInfo,
2535
2541
  init?: RequestInit_2
2536
2542
  ): Promise<Response_2>
2537
2543
 
2538
- declare class File extends Blob_2 {
2544
+ declare class File_2 extends Blob_2 {
2539
2545
  /**
2540
2546
  * Creates a new File instance.
2541
2547
  *
@@ -2558,7 +2564,7 @@ declare class File extends Blob_2 {
2558
2564
  readonly [Symbol.toStringTag]: string
2559
2565
  }
2560
2566
 
2561
- declare type File_2<Contents = string, Path = string> = {
2567
+ declare type File_3<Contents = string, Path = string> = {
2562
2568
  path: Path;
2563
2569
  } | {
2564
2570
  contents: Contents;
@@ -2707,7 +2713,7 @@ declare class FormData_2 {
2707
2713
  /**
2708
2714
  * A `string` or `File` that represents a single value from a set of `FormData` key-value pairs.
2709
2715
  */
2710
- declare type FormDataEntryValue = string | File
2716
+ declare type FormDataEntryValue = string | File_2
2711
2717
 
2712
2718
  declare function getCookies (headers: Headers_2): Record<string, string>
2713
2719
 
@@ -2903,6 +2909,15 @@ declare interface MIMEType {
2903
2909
 
2904
2910
  declare type MiniflareWorker = Awaited<ReturnType<Miniflare["getWorker"]>>;
2905
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
+
2906
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. */
2907
2922
  declare class MockAgent<TMockAgentOptions extends MockAgent.Options = MockAgent.Options> extends Dispatcher {
2908
2923
  constructor(options?: MockAgent.Options)
@@ -26121,7 +26136,6 @@ declare interface StartDevWorkerInput {
26121
26136
  /**
26122
26137
  * The javascript or typescript entry-point of the worker.
26123
26138
  * This is the `main` property of a Wrangler configuration file.
26124
- * You can specify a file path or provide the contents directly.
26125
26139
  */
26126
26140
  entrypoint?: string;
26127
26141
  /** The configuration of the worker. */
@@ -26337,7 +26351,7 @@ declare namespace Undici {
26337
26351
  var Response: Response_2;
26338
26352
  var Request: Request_2;
26339
26353
  var FormData: FormData_2;
26340
- var File: File;
26354
+ var File: File_2;
26341
26355
  var FileReader: FileReader;
26342
26356
  var caches: caches;
26343
26357
  }
@@ -26399,7 +26413,7 @@ declare namespace undici {
26399
26413
  Response_2 as Response,
26400
26414
  BlobPropertyBag,
26401
26415
  FilePropertyBag,
26402
- File,
26416
+ File_2 as File,
26403
26417
  FileReader,
26404
26418
  ProgressEventInit,
26405
26419
  ProgressEvent,