@cloudflare/workers-types 5.20261023.1 → 5.20261024.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.
@@ -936,6 +936,13 @@ declare class Event {
936
936
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
937
937
  */
938
938
  get returnValue(): boolean;
939
+ /**
940
+ * The Event property **`returnValue`** indicates whether the default action for this event has been prevented or not.
941
+ * @deprecated
942
+ *
943
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
944
+ */
945
+ set returnValue(value: boolean);
939
946
  /**
940
947
  * The **`currentTarget`** read-only property of the Event interface identifies the element to which the event handler has been attached.
941
948
  *
@@ -4046,6 +4053,7 @@ interface Socket {
4046
4053
  get protocol(): "tcp" | "udp";
4047
4054
  close(): Promise<void>;
4048
4055
  startTls(options?: TlsOptions): Socket;
4056
+ proxyTo(sock: Socket, options?: StreamPipeOptions): Promise<void>;
4049
4057
  }
4050
4058
  interface SocketOptions {
4051
4059
  secureTransport?: string;
@@ -17952,7 +17960,7 @@ declare namespace TailStream {
17952
17960
  | "exceededWallTime"
17953
17961
  | "aborted";
17954
17962
  interface ScriptVersion {
17955
- readonly id: string;
17963
+ readonly id?: string;
17956
17964
  readonly tag?: string;
17957
17965
  readonly message?: string;
17958
17966
  }
@@ -17963,7 +17971,7 @@ declare namespace TailStream {
17963
17971
  }
17964
17972
  interface Onset {
17965
17973
  readonly type: "onset";
17966
- readonly attributes: Attribute[];
17974
+ readonly attributes?: Attribute[];
17967
17975
  // id for the span being opened by this Onset event.
17968
17976
  readonly spanId: string;
17969
17977
  readonly dispatchNamespace?: string;
@@ -936,6 +936,13 @@ export declare class Event {
936
936
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
937
937
  */
938
938
  get returnValue(): boolean;
939
+ /**
940
+ * The Event property **`returnValue`** indicates whether the default action for this event has been prevented or not.
941
+ * @deprecated
942
+ *
943
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
944
+ */
945
+ set returnValue(value: boolean);
939
946
  /**
940
947
  * The **`currentTarget`** read-only property of the Event interface identifies the element to which the event handler has been attached.
941
948
  *
@@ -4052,6 +4059,7 @@ export interface Socket {
4052
4059
  get protocol(): "tcp" | "udp";
4053
4060
  close(): Promise<void>;
4054
4061
  startTls(options?: TlsOptions): Socket;
4062
+ proxyTo(sock: Socket, options?: StreamPipeOptions): Promise<void>;
4055
4063
  }
4056
4064
  export interface SocketOptions {
4057
4065
  secureTransport?: string;
@@ -17852,7 +17860,7 @@ export declare namespace TailStream {
17852
17860
  | "exceededWallTime"
17853
17861
  | "aborted";
17854
17862
  interface ScriptVersion {
17855
- readonly id: string;
17863
+ readonly id?: string;
17856
17864
  readonly tag?: string;
17857
17865
  readonly message?: string;
17858
17866
  }
@@ -17863,7 +17871,7 @@ export declare namespace TailStream {
17863
17871
  }
17864
17872
  interface Onset {
17865
17873
  readonly type: "onset";
17866
- readonly attributes: Attribute[];
17874
+ readonly attributes?: Attribute[];
17867
17875
  // id for the span being opened by this Onset event.
17868
17876
  readonly spanId: string;
17869
17877
  readonly dispatchNamespace?: string;
package/index.d.ts CHANGED
@@ -500,6 +500,7 @@ interface ExecutionContext<Props = unknown> {
500
500
  readonly props: Props;
501
501
  cache?: CacheContext;
502
502
  readonly access?: CloudflareAccessContext;
503
+ mapVirtualHost(fetcher: Fetcher, port: number): string;
503
504
  tracing: Tracing;
504
505
  abort(reason?: any): void;
505
506
  }
@@ -17593,7 +17594,7 @@ declare namespace TailStream {
17593
17594
  | "exceededWallTime"
17594
17595
  | "aborted";
17595
17596
  interface ScriptVersion {
17596
- readonly id: string;
17597
+ readonly id?: string;
17597
17598
  readonly tag?: string;
17598
17599
  readonly message?: string;
17599
17600
  }
@@ -17604,7 +17605,7 @@ declare namespace TailStream {
17604
17605
  }
17605
17606
  interface Onset {
17606
17607
  readonly type: "onset";
17607
- readonly attributes: Attribute[];
17608
+ readonly attributes?: Attribute[];
17608
17609
  // id for the span being opened by this Onset event.
17609
17610
  readonly spanId: string;
17610
17611
  readonly dispatchNamespace?: string;
package/index.ts CHANGED
@@ -502,6 +502,7 @@ export interface ExecutionContext<Props = unknown> {
502
502
  readonly props: Props;
503
503
  cache?: CacheContext;
504
504
  readonly access?: CloudflareAccessContext;
505
+ mapVirtualHost(fetcher: Fetcher, port: number): string;
505
506
  tracing: Tracing;
506
507
  abort(reason?: any): void;
507
508
  }
@@ -17496,7 +17497,7 @@ export declare namespace TailStream {
17496
17497
  | "exceededWallTime"
17497
17498
  | "aborted";
17498
17499
  interface ScriptVersion {
17499
- readonly id: string;
17500
+ readonly id?: string;
17500
17501
  readonly tag?: string;
17501
17502
  readonly message?: string;
17502
17503
  }
@@ -17507,7 +17508,7 @@ export declare namespace TailStream {
17507
17508
  }
17508
17509
  interface Onset {
17509
17510
  readonly type: "onset";
17510
- readonly attributes: Attribute[];
17511
+ readonly attributes?: Attribute[];
17511
17512
  // id for the span being opened by this Onset event.
17512
17513
  readonly spanId: string;
17513
17514
  readonly dispatchNamespace?: string;
package/package.json CHANGED
@@ -7,5 +7,5 @@
7
7
  },
8
8
  "author": "Cloudflare Workers DevProd Team <workers-devprod@cloudflare.com> (https://workers.cloudflare.com)",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "5.20261023.1"
10
+ "version": "5.20261024.1"
11
11
  }