wrangler 3.114.14 → 3.114.15

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.15",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -59,7 +59,7 @@
59
59
  "unenv": "2.0.0-rc.14",
60
60
  "workerd": "1.20250718.0",
61
61
  "@cloudflare/kv-asset-handler": "0.3.4",
62
- "miniflare": "3.20250718.1"
62
+ "miniflare": "3.20250718.2"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@aws-sdk/client-s3": "^3.721.0",
@@ -138,9 +138,9 @@
138
138
  "xxhash-wasm": "^1.0.1",
139
139
  "yargs": "^17.7.2",
140
140
  "@cloudflare/eslint-config-worker": "1.1.0",
141
- "@cloudflare/pages-shared": "0.13.20",
142
- "@cloudflare/workers-shared": "0.15.1",
143
141
  "@cloudflare/cli": "1.1.1",
142
+ "@cloudflare/pages-shared": "0.13.21",
143
+ "@cloudflare/workers-shared": "0.15.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.
@@ -26397,6 +26429,15 @@ declare type TailConsumer = {
26397
26429
  environment?: string;
26398
26430
  };
26399
26431
 
26432
+ /**
26433
+ * This is used to provide telemetry with a sanitised error
26434
+ * message that could not have any user-identifying information.
26435
+ * Set to `true` to duplicate `message`.
26436
+ * */
26437
+ declare type TelemetryMessage = {
26438
+ telemetryMessage?: string | true;
26439
+ };
26440
+
26400
26441
  declare type Trigger = {
26401
26442
  type: "workers.dev";
26402
26443
  } | {
@@ -26735,6 +26776,17 @@ declare type UrlOriginAndPathnameParts = Pick<URL, "protocol" | "hostname" | "po
26735
26776
 
26736
26777
  declare type UrlOriginParts = Pick<URL, "protocol" | "hostname" | "port">;
26737
26778
 
26779
+ /**
26780
+ * Base class for errors where the user has done something wrong. These are not
26781
+ * reported to Sentry. API errors are intentionally *not* `UserError`s, and are
26782
+ * reported to Sentry. This will help us understand which API errors need better
26783
+ * messaging.
26784
+ */
26785
+ declare class UserError extends Error {
26786
+ telemetryMessage: string | undefined;
26787
+ constructor(message?: string | undefined, options?: (ErrorOptions & TelemetryMessage) | undefined);
26788
+ }
26789
+
26738
26790
  declare interface UserLimits {
26739
26791
  /** Maximum allowed CPU time for a Worker's invocation in milliseconds */
26740
26792
  cpu_ms: number;