Skip to content

Commit 171f1ae

Browse files
committed
Update @mdn/browser-compat-data and keep-alive WebTransportWriter
1 parent 1d230d1 commit 171f1ae

23 files changed

+2187
-39
lines changed

baselines/audioworklet.generated.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,6 +1414,17 @@ declare var URLSearchParams: {
14141414
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
14151415
};
14161416

1417+
/** Available only in secure contexts. */
1418+
interface WebTransportWriter extends WritableStreamDefaultWriter {
1419+
atomicWrite(chunk?: any): Promise<void>;
1420+
commit(): void;
1421+
}
1422+
1423+
declare var WebTransportWriter: {
1424+
prototype: WebTransportWriter;
1425+
new(): WebTransportWriter;
1426+
};
1427+
14171428
/**
14181429
* The **`WorkletGlobalScope`** interface is an abstract class that specific worklet scope classes inherit from. Each WorkletGlobalScope defines a new global environment.
14191430
* Available only in secure contexts.

baselines/dom.generated.d.ts

Lines changed: 137 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3118,6 +3118,30 @@ interface WebTransportCloseInfo {
31183118
reason?: string;
31193119
}
31203120

3121+
interface WebTransportConnectionStats {
3122+
atSendCapacity?: boolean;
3123+
bytesAcknowledged?: number;
3124+
bytesLost?: number;
3125+
bytesReceived?: number;
3126+
bytesSent?: number;
3127+
bytesSentOverhead?: number;
3128+
datagrams: WebTransportDatagramStats;
3129+
estimatedSendRate?: number | null;
3130+
minRtt?: DOMHighResTimeStamp;
3131+
packetsLost?: number;
3132+
packetsReceived?: number;
3133+
packetsSent?: number;
3134+
rttVariation?: DOMHighResTimeStamp;
3135+
smoothedRtt?: DOMHighResTimeStamp;
3136+
}
3137+
3138+
interface WebTransportDatagramStats {
3139+
droppedIncoming?: number;
3140+
expiredIncoming?: number;
3141+
expiredOutgoing?: number;
3142+
lostOutgoing?: number;
3143+
}
3144+
31213145
interface WebTransportErrorOptions {
31223146
source?: WebTransportErrorSource;
31233147
streamErrorCode?: number | null;
@@ -3136,13 +3160,24 @@ interface WebTransportOptions {
31363160
serverCertificateHashes?: WebTransportHash[];
31373161
}
31383162

3163+
interface WebTransportReceiveStreamStats {
3164+
bytesRead?: number;
3165+
bytesReceived?: number;
3166+
}
3167+
31393168
interface WebTransportSendOptions {
31403169
sendOrder?: number;
31413170
}
31423171

31433172
interface WebTransportSendStreamOptions extends WebTransportSendOptions {
31443173
}
31453174

3175+
interface WebTransportSendStreamStats {
3176+
bytesAcknowledged?: number;
3177+
bytesSent?: number;
3178+
bytesWritten?: number;
3179+
}
3180+
31463181
interface WheelEventInit extends MouseEventInit {
31473182
deltaMode?: number;
31483183
deltaX?: number;
@@ -6815,7 +6850,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
68156850
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background-size)
68166851
*/
68176852
backgroundSize: string;
6818-
/** The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. */
6853+
/**
6854+
* The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute.
6855+
*
6856+
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/baseline-shift)
6857+
*/
68196858
baselineShift: string;
68206859
/**
68216860
* The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type.
@@ -27896,6 +27935,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
2789627935
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
2789727936
*/
2789827937
readonly decodedBodySize: number;
27938+
/**
27939+
* The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
27940+
*
27941+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
27942+
*/
27943+
readonly deliveryType: string;
2789927944
/**
2790027945
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
2790127946
*
@@ -27920,6 +27965,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
2792027965
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
2792127966
*/
2792227967
readonly fetchStart: DOMHighResTimeStamp;
27968+
/**
27969+
* The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server.
27970+
*
27971+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
27972+
*/
27973+
readonly finalResponseHeadersStart: DOMHighResTimeStamp;
27974+
/**
27975+
* The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server.
27976+
*
27977+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
27978+
*/
27979+
readonly firstInterimResponseStart: DOMHighResTimeStamp;
2792327980
/**
2792427981
* The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
2792527982
*
@@ -40938,6 +40995,12 @@ interface WebTransport {
4093840995
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
4093940996
*/
4094040997
readonly closed: Promise<WebTransportCloseInfo>;
40998+
/**
40999+
* The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
41000+
*
41001+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
41002+
*/
41003+
readonly congestionControl: WebTransportCongestionControl;
4094141004
/**
4094241005
* The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission.
4094341006
*
@@ -40956,12 +41019,19 @@ interface WebTransport {
4095641019
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
4095741020
*/
4095841021
readonly incomingUnidirectionalStreams: ReadableStream;
41022+
readonly protocol: string;
4095941023
/**
4096041024
* The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
4096141025
*
4096241026
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
4096341027
*/
4096441028
readonly ready: Promise<void>;
41029+
/**
41030+
* The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP).
41031+
*
41032+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
41033+
*/
41034+
readonly reliability: WebTransportReliabilityMode;
4096541035
/**
4096641036
* The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
4096741037
*
@@ -40980,6 +41050,12 @@ interface WebTransport {
4098041050
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
4098141051
*/
4098241052
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
41053+
/**
41054+
* The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
41055+
*
41056+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
41057+
*/
41058+
getStats(): Promise<WebTransportConnectionStats>;
4098341059
}
4098441060

4098541061
declare var WebTransport: {
@@ -41095,6 +41171,64 @@ declare var WebTransportError: {
4109541171
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
4109641172
};
4109741173

41174+
/**
41175+
* The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
41176+
* Available only in secure contexts.
41177+
*
41178+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
41179+
*/
41180+
interface WebTransportReceiveStream extends ReadableStream {
41181+
/**
41182+
* The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
41183+
*
41184+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
41185+
*/
41186+
getStats(): Promise<WebTransportReceiveStreamStats>;
41187+
}
41188+
41189+
declare var WebTransportReceiveStream: {
41190+
prototype: WebTransportReceiveStream;
41191+
new(): WebTransportReceiveStream;
41192+
};
41193+
41194+
/**
41195+
* The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams.
41196+
* Available only in secure contexts.
41197+
*
41198+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
41199+
*/
41200+
interface WebTransportSendStream extends WritableStream {
41201+
/**
41202+
* The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set.
41203+
*
41204+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
41205+
*/
41206+
sendOrder: number;
41207+
/**
41208+
* The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
41209+
*
41210+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
41211+
*/
41212+
getStats(): Promise<WebTransportSendStreamStats>;
41213+
getWriter(): WebTransportWriter;
41214+
}
41215+
41216+
declare var WebTransportSendStream: {
41217+
prototype: WebTransportSendStream;
41218+
new(): WebTransportSendStream;
41219+
};
41220+
41221+
/** Available only in secure contexts. */
41222+
interface WebTransportWriter extends WritableStreamDefaultWriter {
41223+
atomicWrite(chunk?: any): Promise<void>;
41224+
commit(): void;
41225+
}
41226+
41227+
declare var WebTransportWriter: {
41228+
prototype: WebTransportWriter;
41229+
new(): WebTransportWriter;
41230+
};
41231+
4109841232
/**
4109941233
* The **`WheelEvent`** interface represents events that occur due to the user moving a mouse wheel or similar input device.
4110041234
*
@@ -44215,7 +44349,7 @@ type SanitizerElementWithAttributes = string | SanitizerElementNamespaceWithAttr
4421544349
type SelectionDirection = "forward" | "backward" | "none";
4421644350
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
4421744351
type TimerHandler = string | Function;
44218-
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;
44352+
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer;
4421944353
type URLPatternInput = string | URLPatternInit;
4422044354
type Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];
4422144355
type VibratePattern = number | number[];
@@ -44455,6 +44589,7 @@ type WakeLockType = "screen";
4445544589
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
4445644590
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
4445744591
type WebTransportErrorSource = "session" | "stream";
44592+
type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
4445844593
type WorkerType = "classic" | "module";
4445944594
type WriteCommandType = "seek" | "truncate" | "write";
4446044595
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";

0 commit comments

Comments
 (0)