Skip to content

Commit 2511236

Browse files
Bashamegasaschanaz
andauthored
Bump mdn BCD to 8.0.5 (#2557)
Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
1 parent f67ffe8 commit 2511236

29 files changed

Lines changed: 1196 additions & 48 deletions

‎baselines/audioworklet.generated.d.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,12 @@ declare var ReadableStream: {
962962
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array<ArrayBuffer>>;
963963
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
964964
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
965+
/**
966+
* The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object.
967+
*
968+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static)
969+
*/
970+
from(asyncIterable: AsyncIterable<any> | Iterable<any>): ReadableStream;
965971
};
966972

967973
/**

‎baselines/dom.generated.d.ts‎

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,12 @@ interface IDBDatabaseInfo {
12731273
version?: number;
12741274
}
12751275

1276+
interface IDBGetAllOptions {
1277+
count?: number;
1278+
direction?: IDBCursorDirection;
1279+
query?: any;
1280+
}
1281+
12761282
interface IDBIndexParameters {
12771283
multiEntry?: boolean;
12781284
unique?: boolean;
@@ -4068,6 +4074,8 @@ declare var AnimationEffect: {
40684074
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent)
40694075
*/
40704076
interface AnimationEvent extends Event {
4077+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animation) */
4078+
readonly animation: CSSAnimation | null;
40714079
/**
40724080
* The **`AnimationEvent.animationName`** read-only property is a string containing the value of the animation-name CSS property associated with the transition.
40734081
*
@@ -21122,6 +21130,23 @@ declare var HTMLSelectElement: {
2112221130
new(): HTMLSelectElement;
2112321131
};
2112421132

21133+
/**
21134+
* The **`HTMLSelectedContentElement`** interface represents a <selectedcontent> element in the DOM.
21135+
*
21136+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectedContentElement)
21137+
*/
21138+
interface HTMLSelectedContentElement extends HTMLElement {
21139+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
21140+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
21141+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
21142+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
21143+
}
21144+
21145+
declare var HTMLSelectedContentElement: {
21146+
prototype: HTMLSelectedContentElement;
21147+
new(): HTMLSelectedContentElement;
21148+
};
21149+
2112521150
/**
2112621151
* The **`HTMLSlotElement`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML <slot> element.
2112721152
*
@@ -21827,6 +21852,8 @@ interface HTMLTemplateElement extends HTMLElement {
2182721852
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable)
2182821853
*/
2182921854
shadowRootSerializable: boolean;
21855+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSlotAssignment) */
21856+
shadowRootSlotAssignment: string;
2183021857
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2183121858
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
2183221859
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -22798,6 +22825,12 @@ interface IDBIndex {
2279822825
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
2279922826
*/
2280022827
getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
22828+
/**
22829+
* The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index.
22830+
*
22831+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords)
22832+
*/
22833+
getAllRecords(options?: IDBGetAllOptions): IDBRequest;
2280122834
/**
2280222835
* The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange.
2280322836
*
@@ -22980,6 +23013,12 @@ interface IDBObjectStore {
2298023013
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
2298123014
*/
2298223015
getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
23016+
/**
23017+
* The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store.
23018+
*
23019+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords)
23020+
*/
23021+
getAllRecords(options?: IDBGetAllOptions): IDBRequest;
2298323022
/**
2298423023
* The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store.
2298523024
*
@@ -23043,6 +23082,17 @@ declare var IDBOpenDBRequest: {
2304323082
new(): IDBOpenDBRequest;
2304423083
};
2304523084

23085+
interface IDBRecord {
23086+
readonly key: any;
23087+
readonly primaryKey: any;
23088+
readonly value: any;
23089+
}
23090+
23091+
declare var IDBRecord: {
23092+
prototype: IDBRecord;
23093+
new(): IDBRecord;
23094+
};
23095+
2304623096
interface IDBRequestEventMap {
2304723097
"error": Event;
2304823098
"success": Event;
@@ -28631,6 +28681,8 @@ interface PerformanceResourceTiming extends PerformanceEntry {
2863128681
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize)
2863228682
*/
2863328683
readonly transferSize: number;
28684+
readonly workerCacheLookupStart: DOMHighResTimeStamp;
28685+
readonly workerRouterEvaluationStart: DOMHighResTimeStamp;
2863428686
/**
2863528687
* The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0.
2863628688
*
@@ -30932,6 +30984,12 @@ declare var ReadableStream: {
3093230984
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array<ArrayBuffer>>;
3093330985
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
3093430986
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
30987+
/**
30988+
* The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object.
30989+
*
30990+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static)
30991+
*/
30992+
from(asyncIterable: AsyncIterable<any> | Iterable<any>): ReadableStream;
3093530993
};
3093630994

3093730995
/**
@@ -37921,6 +37979,8 @@ declare var TransformStreamDefaultController: {
3792137979
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent)
3792237980
*/
3792337981
interface TransitionEvent extends Event {
37982+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/animation) */
37983+
readonly animation: CSSTransition | null;
3792437984
/**
3792537985
* The **`TransitionEvent.elapsedTime`** read-only property is a float giving the amount of time the animation has been running, in seconds, when this event fired. This value is not affected by the transition-delay property.
3792637986
*
@@ -44079,6 +44139,7 @@ interface HTMLElementTagNameMap {
4407944139
"search": HTMLElement;
4408044140
"section": HTMLElement;
4408144141
"select": HTMLSelectElement;
44142+
"selectedcontent": HTMLSelectedContentElement;
4408244143
"slot": HTMLSlotElement;
4408344144
"small": HTMLElement;
4408444145
"source": HTMLSourceElement;

‎baselines/serviceworker.generated.d.ts‎

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,12 @@ interface IDBDatabaseInfo {
660660
version?: number;
661661
}
662662

663+
interface IDBGetAllOptions {
664+
count?: number;
665+
direction?: IDBCursorDirection;
666+
query?: any;
667+
}
668+
663669
interface IDBIndexParameters {
664670
multiEntry?: boolean;
665671
unique?: boolean;
@@ -997,6 +1003,25 @@ interface ResponseInit {
9971003
statusText?: string;
9981004
}
9991005

1006+
interface RouterCondition {
1007+
not?: RouterCondition;
1008+
or?: RouterCondition[];
1009+
requestDestination?: RequestDestination;
1010+
requestMethod?: string;
1011+
requestMode?: RequestMode;
1012+
runningStatus?: RunningStatus;
1013+
urlPattern?: URLPatternCompatible;
1014+
}
1015+
1016+
interface RouterRule {
1017+
condition: RouterCondition;
1018+
source: RouterSource;
1019+
}
1020+
1021+
interface RouterSourceDict {
1022+
cacheName?: string;
1023+
}
1024+
10001025
interface RsaHashedImportParams extends Algorithm {
10011026
hash: HashAlgorithmIdentifier;
10021027
}
@@ -6165,6 +6190,12 @@ interface IDBIndex {
61656190
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
61666191
*/
61676192
getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
6193+
/**
6194+
* The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index.
6195+
*
6196+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords)
6197+
*/
6198+
getAllRecords(options?: IDBGetAllOptions): IDBRequest;
61686199
/**
61696200
* The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange.
61706201
*
@@ -6347,6 +6378,12 @@ interface IDBObjectStore {
63476378
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
63486379
*/
63496380
getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
6381+
/**
6382+
* The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store.
6383+
*
6384+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords)
6385+
*/
6386+
getAllRecords(options?: IDBGetAllOptions): IDBRequest;
63506387
/**
63516388
* The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store.
63526389
*
@@ -6410,6 +6447,17 @@ declare var IDBOpenDBRequest: {
64106447
new(): IDBOpenDBRequest;
64116448
};
64126449

6450+
interface IDBRecord {
6451+
readonly key: any;
6452+
readonly primaryKey: any;
6453+
readonly value: any;
6454+
}
6455+
6456+
declare var IDBRecord: {
6457+
prototype: IDBRecord;
6458+
new(): IDBRecord;
6459+
};
6460+
64136461
interface IDBRequestEventMap {
64146462
"error": Event;
64156463
"success": Event;
@@ -6661,6 +6709,25 @@ interface ImportMeta {
66616709
resolve(specifier: string): string;
66626710
}
66636711

6712+
/**
6713+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
6714+
*
6715+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
6716+
*/
6717+
interface InstallEvent extends ExtendableEvent {
6718+
/**
6719+
* The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles.
6720+
*
6721+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes)
6722+
*/
6723+
addRoutes(rules: RouterRule | RouterRule[]): Promise<void>;
6724+
}
6725+
6726+
declare var InstallEvent: {
6727+
prototype: InstallEvent;
6728+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
6729+
};
6730+
66646731
/**
66656732
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
66666733
*
@@ -7757,6 +7824,8 @@ interface PerformanceResourceTiming extends PerformanceEntry {
77577824
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize)
77587825
*/
77597826
readonly transferSize: number;
7827+
readonly workerCacheLookupStart: DOMHighResTimeStamp;
7828+
readonly workerRouterEvaluationStart: DOMHighResTimeStamp;
77607829
/**
77617830
* The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0.
77627831
*
@@ -8213,6 +8282,12 @@ declare var ReadableStream: {
82138282
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array<ArrayBuffer>>;
82148283
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
82158284
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
8285+
/**
8286+
* The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object.
8287+
*
8288+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static)
8289+
*/
8290+
from(asyncIterable: AsyncIterable<any> | Iterable<any>): ReadableStream;
82168291
};
82178292

82188293
/**
@@ -13616,9 +13691,11 @@ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableSt
1361613691
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
1361713692
type ReportList = Report[];
1361813693
type RequestInfo = Request | string;
13694+
type RouterSource = RouterSourceDict | RouterSourceEnum;
1361913695
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
1362013696
type TimerHandler = string | Function;
1362113697
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
13698+
type URLPatternCompatible = string | URLPatternInit | URLPattern;
1362213699
type URLPatternInput = string | URLPatternInit;
1362313700
type Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];
1362413701
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
@@ -13716,6 +13793,8 @@ type RequestPriority = "auto" | "high" | "low";
1371613793
type RequestRedirect = "error" | "follow" | "manual";
1371713794
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
1371813795
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
13796+
type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler";
13797+
type RunningStatus = "not-running" | "running";
1371913798
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
1372013799
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
1372113800
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
@@ -13910,6 +13989,15 @@ interface IDBObjectStore {
1391013989
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
1391113990
}
1391213991

13992+
interface InstallEvent {
13993+
/**
13994+
* The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles.
13995+
*
13996+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes)
13997+
*/
13998+
addRoutes(rules: RouterRule | Iterable<RouterRule>): Promise<void>;
13999+
}
14000+
1391314001
interface MessageEvent<T = any> {
1391414002
/** @deprecated */
1391514003
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;

0 commit comments

Comments
 (0)