wrangler 3.114.14 → 3.114.16

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": "3.114.14",
3
+ "version": "3.114.16",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -58,8 +58,8 @@
58
58
  "path-to-regexp": "6.3.0",
59
59
  "unenv": "2.0.0-rc.14",
60
60
  "workerd": "1.20250718.0",
61
- "@cloudflare/kv-asset-handler": "0.3.4",
62
- "miniflare": "3.20250718.1"
61
+ "miniflare": "3.20250718.3",
62
+ "@cloudflare/kv-asset-handler": "0.3.4"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@aws-sdk/client-s3": "^3.721.0",
@@ -137,10 +137,10 @@
137
137
  "xdg-app-paths": "^8.3.0",
138
138
  "xxhash-wasm": "^1.0.1",
139
139
  "yargs": "^17.7.2",
140
+ "@cloudflare/cli": "1.1.1",
140
141
  "@cloudflare/eslint-config-worker": "1.1.0",
141
- "@cloudflare/pages-shared": "0.13.20",
142
+ "@cloudflare/pages-shared": "0.13.22",
142
143
  "@cloudflare/workers-shared": "0.15.1",
143
- "@cloudflare/cli": "1.1.1",
144
144
  "@cloudflare/workers-tsconfig": "0.0.0"
145
145
  },
146
146
  "peerDependencies": {
@@ -2681,6 +2681,11 @@ declare type File_2<Contents = string, Path = string> = {
2681
2681
  path?: Path;
2682
2682
  };
2683
2683
 
2684
+ declare type File_3 = {
2685
+ file?: string;
2686
+ fileText?: string;
2687
+ };
2688
+
2684
2689
  declare interface FilePropertyBag extends BlobPropertyBag {
2685
2690
  /**
2686
2691
  * The last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight). Files without a known last modified date return the current date.
@@ -2947,6 +2952,14 @@ declare interface Interceptable extends Dispatcher {
2947
2952
  intercept(options: MockInterceptor.Options): MockInterceptor;
2948
2953
  }
2949
2954
 
2955
+ declare type Location = File_3 & {
2956
+ line: number;
2957
+ column: number;
2958
+ length?: number;
2959
+ lineText?: string;
2960
+ suggestion?: string;
2961
+ };
2962
+
2950
2963
  declare class Logger {
2951
2964
  #private;
2952
2965
  constructor();
@@ -2961,7 +2974,8 @@ declare class Logger {
2961
2974
  info: (...args: unknown[]) => void;
2962
2975
  log: (...args: unknown[]) => void;
2963
2976
  warn: (...args: unknown[]) => void;
2964
- error: (...args: unknown[]) => void;
2977
+ error(...args: unknown[]): void;
2978
+ error(error: ParseError): void;
2965
2979
  table<Keys extends string>(data: TableRow<Keys>[]): void;
2966
2980
  console<M extends Exclude<keyof Console, "Console">>(method: M, ...args: Parameters<Console[M]>): void;
2967
2981
  get once(): {
@@ -2993,6 +3007,13 @@ declare type LogLevel = "debug" | "info" | "log" | "warn" | "error" | "none";
2993
3007
 
2994
3008
  declare type MaybePromise<T> = T | Promise<T>;
2995
3009
 
3010
+ declare type Message = {
3011
+ text: string;
3012
+ location?: Location;
3013
+ notes?: Message[];
3014
+ kind?: "warning" | "error";
3015
+ } & TelemetryMessage;
3016
+
2996
3017
  declare interface MessageEvent_2<T = any> extends Event_2 {
2997
3018
  readonly data: T
2998
3019
  readonly lastEventId: string
@@ -3295,6 +3316,17 @@ declare interface PagesDeployOptions {
3295
3316
 
3296
3317
  declare type _Params<ParamsArray extends [unknown?]> = ParamsArray extends [infer P] ? P : undefined;
3297
3318
 
3319
+ /**
3320
+ * An error that's thrown when something fails to parse.
3321
+ */
3322
+ declare class ParseError extends UserError implements Message {
3323
+ readonly text: string;
3324
+ readonly notes: Message[];
3325
+ readonly location?: Location;
3326
+ readonly kind: "warning" | "error";
3327
+ constructor({ text, notes, location, kind, telemetryMessage }: Message);
3328
+ }
3329
+
3298
3330
  /**
3299
3331
  * Parse a string to a {@link MIMEType} object. Returns `failure` if the string
3300
3332
  * couldn't be parsed.
@@ -25800,6 +25832,7 @@ declare class ProxyController extends Controller<ProxyControllerEventMap> {
25800
25832
  runtimeMessageMutex: Mutex;
25801
25833
  sendMessageToProxyWorker(message: ProxyWorkerIncomingRequestBody, retries?: number): Promise<void>;
25802
25834
  sendMessageToInspectorProxyWorker(message: InspectorProxyWorkerIncomingWebSocketMessage, retries?: number): Promise<void>;
25835
+ get inspectorEnabled(): boolean;
25803
25836
  onConfigUpdate(data: ConfigUpdateEvent): void;
25804
25837
  onBundleStart(data: BundleStartEvent): void;
25805
25838
  onReloadStart(data: ReloadStartEvent): void;
@@ -25809,7 +25842,7 @@ declare class ProxyController extends Controller<ProxyControllerEventMap> {
25809
25842
  onInspectorProxyWorkerRequest(message: InspectorProxyWorkerOutgoingRequestBody): Promise<Response_3>;
25810
25843
  _torndown: boolean;
25811
25844
  teardown(): Promise<void>;
25812
- emitReadyEvent(proxyWorker: Miniflare, url: URL, inspectorUrl: URL): void;
25845
+ emitReadyEvent(proxyWorker: Miniflare, url: URL, inspectorUrl: URL | undefined): void;
25813
25846
  emitPreviewTokenExpiredEvent(proxyData: ProxyData): void;
25814
25847
  emitErrorEvent(data: ErrorEvent): void;
25815
25848
  emitErrorEvent(reason: string, cause?: Error | SerializedError): void;
@@ -25822,7 +25855,7 @@ declare type ProxyControllerEventMap = ControllerEventMap & {
25822
25855
 
25823
25856
  declare type ProxyData = {
25824
25857
  userWorkerUrl: UrlOriginParts;
25825
- userWorkerInspectorUrl: UrlOriginAndPathnameParts;
25858
+ userWorkerInspectorUrl?: UrlOriginAndPathnameParts;
25826
25859
  userWorkerInnerUrlOverrides?: Partial<UrlOriginParts>;
25827
25860
  headers: Record<string, string>;
25828
25861
  liveReload?: boolean;
@@ -25866,7 +25899,7 @@ declare type ReadyEvent = {
25866
25899
  type: "ready";
25867
25900
  proxyWorker: Miniflare;
25868
25901
  url: URL;
25869
- inspectorUrl: URL;
25902
+ inspectorUrl: URL | undefined;
25870
25903
  };
25871
25904
 
25872
25905
  declare class RedirectHandler implements Dispatcher.DispatchHandlers{
@@ -26353,6 +26386,9 @@ declare interface StartDevWorkerInput {
26353
26386
  };
26354
26387
  unsafe?: Omit<CfUnsafe, "bindings">;
26355
26388
  assets?: string;
26389
+ experimental?: {
26390
+ tailLogs: boolean;
26391
+ };
26356
26392
  }
26357
26393
 
26358
26394
  declare type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets"> & {
@@ -26397,6 +26433,15 @@ declare type TailConsumer = {
26397
26433
  environment?: string;
26398
26434
  };
26399
26435
 
26436
+ /**
26437
+ * This is used to provide telemetry with a sanitised error
26438
+ * message that could not have any user-identifying information.
26439
+ * Set to `true` to duplicate `message`.
26440
+ * */
26441
+ declare type TelemetryMessage = {
26442
+ telemetryMessage?: string | true;
26443
+ };
26444
+
26400
26445
  declare type Trigger = {
26401
26446
  type: "workers.dev";
26402
26447
  } | {
@@ -26735,6 +26780,17 @@ declare type UrlOriginAndPathnameParts = Pick<URL, "protocol" | "hostname" | "po
26735
26780
 
26736
26781
  declare type UrlOriginParts = Pick<URL, "protocol" | "hostname" | "port">;
26737
26782
 
26783
+ /**
26784
+ * Base class for errors where the user has done something wrong. These are not
26785
+ * reported to Sentry. API errors are intentionally *not* `UserError`s, and are
26786
+ * reported to Sentry. This will help us understand which API errors need better
26787
+ * messaging.
26788
+ */
26789
+ declare class UserError extends Error {
26790
+ telemetryMessage: string | undefined;
26791
+ constructor(message?: string | undefined, options?: (ErrorOptions & TelemetryMessage) | undefined);
26792
+ }
26793
+
26738
26794
  declare interface UserLimits {
26739
26795
  /** Maximum allowed CPU time for a Worker's invocation in milliseconds */
26740
26796
  cpu_ms: number;
@@ -26810,7 +26866,7 @@ declare interface WebSocketInit {
26810
26866
  declare interface Worker {
26811
26867
  ready: Promise<void>;
26812
26868
  url: Promise<URL>;
26813
- inspectorUrl: Promise<URL>;
26869
+ inspectorUrl: Promise<URL | undefined>;
26814
26870
  config: StartDevWorkerOptions;
26815
26871
  setConfig: ConfigController["set"];
26816
26872
  patchConfig: ConfigController["patch"];