Skip to content

Commit a47278e

Browse files
authored
Manually update to bcd@7.3.5 (#2433)
Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
1 parent 1d230d1 commit a47278e

19 files changed

+2101
-22
lines changed

baselines/dom.generated.d.ts

Lines changed: 181 additions & 1 deletion
Large diffs are not rendered by default.

baselines/serviceworker.generated.d.ts

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,23 @@ interface WebTransportCloseInfo {
12051205
reason?: string;
12061206
}
12071207

1208+
interface WebTransportConnectionStats {
1209+
bytesReceived?: number;
1210+
datagrams: WebTransportDatagramStats;
1211+
minRtt?: DOMHighResTimeStamp;
1212+
packetsLost?: number;
1213+
packetsReceived?: number;
1214+
packetsSent?: number;
1215+
rttVariation?: DOMHighResTimeStamp;
1216+
smoothedRtt?: DOMHighResTimeStamp;
1217+
}
1218+
1219+
interface WebTransportDatagramStats {
1220+
droppedIncoming?: number;
1221+
expiredOutgoing?: number;
1222+
lostOutgoing?: number;
1223+
}
1224+
12081225
interface WebTransportErrorOptions {
12091226
source?: WebTransportErrorSource;
12101227
streamErrorCode?: number | null;
@@ -1223,13 +1240,24 @@ interface WebTransportOptions {
12231240
serverCertificateHashes?: WebTransportHash[];
12241241
}
12251242

1243+
interface WebTransportReceiveStreamStats {
1244+
bytesRead?: number;
1245+
bytesReceived?: number;
1246+
}
1247+
12261248
interface WebTransportSendOptions {
12271249
sendOrder?: number;
12281250
}
12291251

12301252
interface WebTransportSendStreamOptions extends WebTransportSendOptions {
12311253
}
12321254

1255+
interface WebTransportSendStreamStats {
1256+
bytesAcknowledged?: number;
1257+
bytesSent?: number;
1258+
bytesWritten?: number;
1259+
}
1260+
12331261
interface WriteParams {
12341262
data?: BufferSource | Blob | string | null;
12351263
position?: number | null;
@@ -7526,6 +7554,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
75267554
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
75277555
*/
75287556
readonly decodedBodySize: number;
7557+
/**
7558+
* The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
7559+
*
7560+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
7561+
*/
7562+
readonly deliveryType: string;
75297563
/**
75307564
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
75317565
*
@@ -7550,6 +7584,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
75507584
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
75517585
*/
75527586
readonly fetchStart: DOMHighResTimeStamp;
7587+
/**
7588+
* 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.
7589+
*
7590+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
7591+
*/
7592+
readonly finalResponseHeadersStart: DOMHighResTimeStamp;
7593+
/**
7594+
* 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.
7595+
*
7596+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
7597+
*/
7598+
readonly firstInterimResponseStart: DOMHighResTimeStamp;
75537599
/**
75547600
* The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
75557601
*
@@ -12144,6 +12190,12 @@ interface WebTransport {
1214412190
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
1214512191
*/
1214612192
readonly closed: Promise<WebTransportCloseInfo>;
12193+
/**
12194+
* The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
12195+
*
12196+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
12197+
*/
12198+
readonly congestionControl: WebTransportCongestionControl;
1214712199
/**
1214812200
* 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.
1214912201
*
@@ -12162,12 +12214,19 @@ interface WebTransport {
1216212214
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
1216312215
*/
1216412216
readonly incomingUnidirectionalStreams: ReadableStream;
12217+
readonly protocol: string;
1216512218
/**
1216612219
* The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
1216712220
*
1216812221
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
1216912222
*/
1217012223
readonly ready: Promise<void>;
12224+
/**
12225+
* 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).
12226+
*
12227+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
12228+
*/
12229+
readonly reliability: WebTransportReliabilityMode;
1217112230
/**
1217212231
* The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
1217312232
*
@@ -12186,6 +12245,12 @@ interface WebTransport {
1218612245
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
1218712246
*/
1218812247
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
12248+
/**
12249+
* The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
12250+
*
12251+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
12252+
*/
12253+
getStats(): Promise<WebTransportConnectionStats>;
1218912254
}
1219012255

1219112256
declare var WebTransport: {
@@ -12301,6 +12366,52 @@ declare var WebTransportError: {
1230112366
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
1230212367
};
1230312368

12369+
/**
12370+
* The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
12371+
* Available only in secure contexts.
12372+
*
12373+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
12374+
*/
12375+
interface WebTransportReceiveStream extends ReadableStream {
12376+
/**
12377+
* The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
12378+
*
12379+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
12380+
*/
12381+
getStats(): Promise<WebTransportReceiveStreamStats>;
12382+
}
12383+
12384+
declare var WebTransportReceiveStream: {
12385+
prototype: WebTransportReceiveStream;
12386+
new(): WebTransportReceiveStream;
12387+
};
12388+
12389+
/**
12390+
* 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.
12391+
* Available only in secure contexts.
12392+
*
12393+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
12394+
*/
12395+
interface WebTransportSendStream extends WritableStream {
12396+
/**
12397+
* 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.
12398+
*
12399+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
12400+
*/
12401+
sendOrder: number;
12402+
/**
12403+
* The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
12404+
*
12405+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
12406+
*/
12407+
getStats(): Promise<WebTransportSendStreamStats>;
12408+
}
12409+
12410+
declare var WebTransportSendStream: {
12411+
prototype: WebTransportSendStream;
12412+
new(): WebTransportSendStream;
12413+
};
12414+
1230412415
/**
1230512416
* The **`WindowClient`** interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.
1230612417
*
@@ -13471,6 +13582,7 @@ type TransferFunction = "hlg" | "pq" | "srgb";
1347113582
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
1347213583
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
1347313584
type WebTransportErrorSource = "session" | "stream";
13585+
type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
1347413586
type WorkerType = "classic" | "module";
1347513587
type WriteCommandType = "seek" | "truncate" | "write";
1347613588

baselines/sharedworker.generated.d.ts

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,23 @@ interface WebTransportCloseInfo {
11351135
reason?: string;
11361136
}
11371137

1138+
interface WebTransportConnectionStats {
1139+
bytesReceived?: number;
1140+
datagrams: WebTransportDatagramStats;
1141+
minRtt?: DOMHighResTimeStamp;
1142+
packetsLost?: number;
1143+
packetsReceived?: number;
1144+
packetsSent?: number;
1145+
rttVariation?: DOMHighResTimeStamp;
1146+
smoothedRtt?: DOMHighResTimeStamp;
1147+
}
1148+
1149+
interface WebTransportDatagramStats {
1150+
droppedIncoming?: number;
1151+
expiredOutgoing?: number;
1152+
lostOutgoing?: number;
1153+
}
1154+
11381155
interface WebTransportErrorOptions {
11391156
source?: WebTransportErrorSource;
11401157
streamErrorCode?: number | null;
@@ -1153,13 +1170,24 @@ interface WebTransportOptions {
11531170
serverCertificateHashes?: WebTransportHash[];
11541171
}
11551172

1173+
interface WebTransportReceiveStreamStats {
1174+
bytesRead?: number;
1175+
bytesReceived?: number;
1176+
}
1177+
11561178
interface WebTransportSendOptions {
11571179
sendOrder?: number;
11581180
}
11591181

11601182
interface WebTransportSendStreamOptions extends WebTransportSendOptions {
11611183
}
11621184

1185+
interface WebTransportSendStreamStats {
1186+
bytesAcknowledged?: number;
1187+
bytesSent?: number;
1188+
bytesWritten?: number;
1189+
}
1190+
11631191
interface WorkerOptions {
11641192
credentials?: RequestCredentials;
11651193
name?: string;
@@ -7184,6 +7212,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
71847212
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
71857213
*/
71867214
readonly decodedBodySize: number;
7215+
/**
7216+
* The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
7217+
*
7218+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
7219+
*/
7220+
readonly deliveryType: string;
71877221
/**
71887222
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
71897223
*
@@ -7208,6 +7242,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
72087242
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
72097243
*/
72107244
readonly fetchStart: DOMHighResTimeStamp;
7245+
/**
7246+
* 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.
7247+
*
7248+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
7249+
*/
7250+
readonly finalResponseHeadersStart: DOMHighResTimeStamp;
7251+
/**
7252+
* 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.
7253+
*
7254+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
7255+
*/
7256+
readonly firstInterimResponseStart: DOMHighResTimeStamp;
72117257
/**
72127258
* The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
72137259
*
@@ -11687,6 +11733,12 @@ interface WebTransport {
1168711733
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
1168811734
*/
1168911735
readonly closed: Promise<WebTransportCloseInfo>;
11736+
/**
11737+
* The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
11738+
*
11739+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
11740+
*/
11741+
readonly congestionControl: WebTransportCongestionControl;
1169011742
/**
1169111743
* 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.
1169211744
*
@@ -11705,12 +11757,19 @@ interface WebTransport {
1170511757
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
1170611758
*/
1170711759
readonly incomingUnidirectionalStreams: ReadableStream;
11760+
readonly protocol: string;
1170811761
/**
1170911762
* The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
1171011763
*
1171111764
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
1171211765
*/
1171311766
readonly ready: Promise<void>;
11767+
/**
11768+
* 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).
11769+
*
11770+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
11771+
*/
11772+
readonly reliability: WebTransportReliabilityMode;
1171411773
/**
1171511774
* The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
1171611775
*
@@ -11729,6 +11788,12 @@ interface WebTransport {
1172911788
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
1173011789
*/
1173111790
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
11791+
/**
11792+
* The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
11793+
*
11794+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
11795+
*/
11796+
getStats(): Promise<WebTransportConnectionStats>;
1173211797
}
1173311798

1173411799
declare var WebTransport: {
@@ -11844,6 +11909,52 @@ declare var WebTransportError: {
1184411909
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
1184511910
};
1184611911

11912+
/**
11913+
* The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
11914+
* Available only in secure contexts.
11915+
*
11916+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
11917+
*/
11918+
interface WebTransportReceiveStream extends ReadableStream {
11919+
/**
11920+
* The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
11921+
*
11922+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
11923+
*/
11924+
getStats(): Promise<WebTransportReceiveStreamStats>;
11925+
}
11926+
11927+
declare var WebTransportReceiveStream: {
11928+
prototype: WebTransportReceiveStream;
11929+
new(): WebTransportReceiveStream;
11930+
};
11931+
11932+
/**
11933+
* 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.
11934+
* Available only in secure contexts.
11935+
*
11936+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
11937+
*/
11938+
interface WebTransportSendStream extends WritableStream {
11939+
/**
11940+
* 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.
11941+
*
11942+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
11943+
*/
11944+
sendOrder: number;
11945+
/**
11946+
* The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
11947+
*
11948+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
11949+
*/
11950+
getStats(): Promise<WebTransportSendStreamStats>;
11951+
}
11952+
11953+
declare var WebTransportSendStream: {
11954+
prototype: WebTransportSendStream;
11955+
new(): WebTransportSendStream;
11956+
};
11957+
1184711958
interface WindowOrWorkerGlobalScope {
1184811959
/**
1184911960
* Available only in secure contexts.
@@ -13156,6 +13267,7 @@ type TransferFunction = "hlg" | "pq" | "srgb";
1315613267
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
1315713268
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
1315813269
type WebTransportErrorSource = "session" | "stream";
13270+
type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
1315913271
type WorkerType = "classic" | "module";
1316013272
type WriteCommandType = "seek" | "truncate" | "write";
1316113273
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";

0 commit comments

Comments
 (0)