@cloudflare/workers-types 5.20261022.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.
- package/experimental/index.d.ts +16 -2
- package/experimental/index.ts +13 -2
- package/index.d.ts +3 -2
- package/index.ts +3 -2
- package/package.json +1 -1
package/experimental/index.d.ts
CHANGED
|
@@ -705,6 +705,12 @@ interface DurableObjectRetryOptions {
|
|
|
705
705
|
maxRetries?: number;
|
|
706
706
|
timeoutMs?: number;
|
|
707
707
|
}
|
|
708
|
+
interface DurableObjectEvictionInfo {
|
|
709
|
+
readonly reason: "inactive" | "codeUpdated" | "system" | (string & {});
|
|
710
|
+
}
|
|
711
|
+
declare module "cloudflare:durable-objects" {
|
|
712
|
+
export const onEvict: unique symbol;
|
|
713
|
+
}
|
|
708
714
|
interface DurableObjectState<Props = unknown> {
|
|
709
715
|
waitUntil(promise: Promise<any>): void;
|
|
710
716
|
readonly exports: Cloudflare.Exports;
|
|
@@ -930,6 +936,13 @@ declare class Event {
|
|
|
930
936
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
|
|
931
937
|
*/
|
|
932
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);
|
|
933
946
|
/**
|
|
934
947
|
* The **`currentTarget`** read-only property of the Event interface identifies the element to which the event handler has been attached.
|
|
935
948
|
*
|
|
@@ -4040,6 +4053,7 @@ interface Socket {
|
|
|
4040
4053
|
get protocol(): "tcp" | "udp";
|
|
4041
4054
|
close(): Promise<void>;
|
|
4042
4055
|
startTls(options?: TlsOptions): Socket;
|
|
4056
|
+
proxyTo(sock: Socket, options?: StreamPipeOptions): Promise<void>;
|
|
4043
4057
|
}
|
|
4044
4058
|
interface SocketOptions {
|
|
4045
4059
|
secureTransport?: string;
|
|
@@ -17946,7 +17960,7 @@ declare namespace TailStream {
|
|
|
17946
17960
|
| "exceededWallTime"
|
|
17947
17961
|
| "aborted";
|
|
17948
17962
|
interface ScriptVersion {
|
|
17949
|
-
readonly id
|
|
17963
|
+
readonly id?: string;
|
|
17950
17964
|
readonly tag?: string;
|
|
17951
17965
|
readonly message?: string;
|
|
17952
17966
|
}
|
|
@@ -17957,7 +17971,7 @@ declare namespace TailStream {
|
|
|
17957
17971
|
}
|
|
17958
17972
|
interface Onset {
|
|
17959
17973
|
readonly type: "onset";
|
|
17960
|
-
readonly attributes
|
|
17974
|
+
readonly attributes?: Attribute[];
|
|
17961
17975
|
// id for the span being opened by this Onset event.
|
|
17962
17976
|
readonly spanId: string;
|
|
17963
17977
|
readonly dispatchNamespace?: string;
|
package/experimental/index.ts
CHANGED
|
@@ -708,6 +708,9 @@ export interface DurableObjectRetryOptions {
|
|
|
708
708
|
maxRetries?: number;
|
|
709
709
|
timeoutMs?: number;
|
|
710
710
|
}
|
|
711
|
+
export interface DurableObjectEvictionInfo {
|
|
712
|
+
readonly reason: "inactive" | "codeUpdated" | "system" | (string & {});
|
|
713
|
+
}
|
|
711
714
|
export interface DurableObjectState<Props = unknown> {
|
|
712
715
|
waitUntil(promise: Promise<any>): void;
|
|
713
716
|
readonly exports: Cloudflare.Exports;
|
|
@@ -933,6 +936,13 @@ export declare class Event {
|
|
|
933
936
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
|
|
934
937
|
*/
|
|
935
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);
|
|
936
946
|
/**
|
|
937
947
|
* The **`currentTarget`** read-only property of the Event interface identifies the element to which the event handler has been attached.
|
|
938
948
|
*
|
|
@@ -4049,6 +4059,7 @@ export interface Socket {
|
|
|
4049
4059
|
get protocol(): "tcp" | "udp";
|
|
4050
4060
|
close(): Promise<void>;
|
|
4051
4061
|
startTls(options?: TlsOptions): Socket;
|
|
4062
|
+
proxyTo(sock: Socket, options?: StreamPipeOptions): Promise<void>;
|
|
4052
4063
|
}
|
|
4053
4064
|
export interface SocketOptions {
|
|
4054
4065
|
secureTransport?: string;
|
|
@@ -17849,7 +17860,7 @@ export declare namespace TailStream {
|
|
|
17849
17860
|
| "exceededWallTime"
|
|
17850
17861
|
| "aborted";
|
|
17851
17862
|
interface ScriptVersion {
|
|
17852
|
-
readonly id
|
|
17863
|
+
readonly id?: string;
|
|
17853
17864
|
readonly tag?: string;
|
|
17854
17865
|
readonly message?: string;
|
|
17855
17866
|
}
|
|
@@ -17860,7 +17871,7 @@ export declare namespace TailStream {
|
|
|
17860
17871
|
}
|
|
17861
17872
|
interface Onset {
|
|
17862
17873
|
readonly type: "onset";
|
|
17863
|
-
readonly attributes
|
|
17874
|
+
readonly attributes?: Attribute[];
|
|
17864
17875
|
// id for the span being opened by this Onset event.
|
|
17865
17876
|
readonly spanId: string;
|
|
17866
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
|
|
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
|
|
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
|
|
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
|
|
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