From a372aada4444a37da5dd96cb5689778a57917fba Mon Sep 17 00:00:00 2001 From: Ngo Quoc Viet <123613986+NgoQuocViet2001@users.noreply.github.com> Date: Tue, 3 Nov 2026 21:46:03 +0700 Subject: [PATCH 01/30] Match whole words when bolding member names in MDN comments (#2576) Co-authored-by: saschanaz --- baselines/dom.generated.d.ts | 12 ++++++------ baselines/serviceworker.generated.d.ts | 2 +- baselines/sharedworker.generated.d.ts | 2 +- baselines/ts5.5/dom.generated.d.ts | 12 ++++++------ baselines/ts5.5/serviceworker.generated.d.ts | 2 +- baselines/ts5.5/sharedworker.generated.d.ts | 2 +- baselines/ts5.5/webworker.generated.d.ts | 2 +- baselines/ts5.6/dom.generated.d.ts | 12 ++++++------ baselines/ts5.6/serviceworker.generated.d.ts | 2 +- baselines/ts5.6/sharedworker.generated.d.ts | 2 +- baselines/ts5.6/webworker.generated.d.ts | 2 +- baselines/ts5.9/dom.generated.d.ts | 12 ++++++------ baselines/ts5.9/serviceworker.generated.d.ts | 2 +- baselines/ts5.9/sharedworker.generated.d.ts | 2 +- baselines/ts5.9/webworker.generated.d.ts | 2 +- baselines/webworker.generated.d.ts | 2 +- src/build/mdn-comments.ts | 5 +++-- 17 files changed, 39 insertions(+), 38 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 2140495e2..90828258d 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -12310,7 +12310,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ @@ -19177,7 +19177,7 @@ interface HTMLImageElement extends HTMLElement { */ readonly x: number; /** - * The read-onl**`y`** y property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. + * The read-only **`y`** property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */ @@ -33875,7 +33875,7 @@ interface SVGMaskElement extends SVGElement { */ readonly x: SVGAnimatedLength; /** - * The read-onl**`y`** y property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. + * The read-only **`y`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */ @@ -37290,7 +37290,7 @@ interface TextEvent extends UIEvent { */ readonly data: string; /** - * The **`initTextEvent`**Event() method of the TextEvent interface initializes the value of a TextEvent after it has been created. + * The initTextEventEvent() method of the TextEvent interface initializes the value of a TextEvent after it has been created. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/initTextEvent) @@ -42275,7 +42275,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ @@ -44522,7 +44522,7 @@ declare var statusbar: BarProp; */ declare var toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 190881a28..56359a693 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -3325,7 +3325,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 602f794ec..6db80ae55 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -3106,7 +3106,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 45ec977fd..aebe0611d 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -12299,7 +12299,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ @@ -19159,7 +19159,7 @@ interface HTMLImageElement extends HTMLElement { */ readonly x: number; /** - * The read-onl**`y`** y property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. + * The read-only **`y`** property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */ @@ -33850,7 +33850,7 @@ interface SVGMaskElement extends SVGElement { */ readonly x: SVGAnimatedLength; /** - * The read-onl**`y`** y property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. + * The read-only **`y`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */ @@ -37264,7 +37264,7 @@ interface TextEvent extends UIEvent { */ readonly data: string; /** - * The **`initTextEvent`**Event() method of the TextEvent interface initializes the value of a TextEvent after it has been created. + * The initTextEventEvent() method of the TextEvent interface initializes the value of a TextEvent after it has been created. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/initTextEvent) @@ -42249,7 +42249,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ @@ -44496,7 +44496,7 @@ declare var statusbar: BarProp; */ declare var toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index afc9c9702..19ecf148c 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -3322,7 +3322,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 272a4fc47..c417dc5a0 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -3103,7 +3103,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index e74ca3fe4..66053df45 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -3829,7 +3829,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index aca3db87f..f99eb027e 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -12307,7 +12307,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ @@ -19174,7 +19174,7 @@ interface HTMLImageElement extends HTMLElement { */ readonly x: number; /** - * The read-onl**`y`** y property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. + * The read-only **`y`** property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */ @@ -33872,7 +33872,7 @@ interface SVGMaskElement extends SVGElement { */ readonly x: SVGAnimatedLength; /** - * The read-onl**`y`** y property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. + * The read-only **`y`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */ @@ -37287,7 +37287,7 @@ interface TextEvent extends UIEvent { */ readonly data: string; /** - * The **`initTextEvent`**Event() method of the TextEvent interface initializes the value of a TextEvent after it has been created. + * The initTextEventEvent() method of the TextEvent interface initializes the value of a TextEvent after it has been created. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/initTextEvent) @@ -42272,7 +42272,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ @@ -44519,7 +44519,7 @@ declare var statusbar: BarProp; */ declare var toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index afc9c9702..19ecf148c 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -3322,7 +3322,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 272a4fc47..c417dc5a0 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -3103,7 +3103,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index e74ca3fe4..66053df45 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -3829,7 +3829,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index b0dba0280..ccfaf6b8c 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -12307,7 +12307,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ @@ -19174,7 +19174,7 @@ interface HTMLImageElement extends HTMLElement { */ readonly x: number; /** - * The read-onl**`y`** y property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. + * The read-only **`y`** property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */ @@ -33872,7 +33872,7 @@ interface SVGMaskElement extends SVGElement { */ readonly x: SVGAnimatedLength; /** - * The read-onl**`y`** y property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. + * The read-only **`y`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */ @@ -37287,7 +37287,7 @@ interface TextEvent extends UIEvent { */ readonly data: string; /** - * The **`initTextEvent`**Event() method of the TextEvent interface initializes the value of a TextEvent after it has been created. + * The initTextEventEvent() method of the TextEvent interface initializes the value of a TextEvent after it has been created. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/initTextEvent) @@ -42272,7 +42272,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ @@ -44519,7 +44519,7 @@ declare var statusbar: BarProp; */ declare var toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 377ca282f..b9940a22d 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -3322,7 +3322,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index ef5f13c4b..03574cee1 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -3103,7 +3103,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index 69f511463..8d4b90af9 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -3829,7 +3829,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 45364e7b8..a9cdc506c 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -3832,7 +3832,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/src/build/mdn-comments.ts b/src/build/mdn-comments.ts index 6047aac60..5a023b919 100644 --- a/src/build/mdn-comments.ts +++ b/src/build/mdn-comments.ts @@ -92,8 +92,9 @@ function generateComment(summary: string, name: string): string | undefined { return summary .replace(/\n/g, " ") // remove newlines .replace( - // Match optional preceding identifier + dot OR just the name itself - new RegExp(`(?:\\b\\w+\\.)?${name}(\\(\\))?`), + // Match optional preceding identifier + dot OR just the name itself, + // as a whole word so that e.g. `y` does not match the end of `read-only` + new RegExp(`(?:\\b\\w+\\.)?\\b${name}\\b(\\(\\))?`), (match) => `**\`${match}\`**`, ) .trim(); From b72044213bd57c919af74747340d28917cd5c7f4 Mon Sep 17 00:00:00 2001 From: Martin <90469240+MartinFerret@users.noreply.github.com> Date: Tue, 3 Nov 2026 14:51:53 +0000 Subject: [PATCH 02/30] Make `options` required in `MutationObserver.observe()` (#2578) Co-authored-by: saschanaz --- baselines/dom.generated.d.ts | 2 +- baselines/ts5.5/dom.generated.d.ts | 2 +- baselines/ts5.6/dom.generated.d.ts | 2 +- baselines/ts5.9/dom.generated.d.ts | 2 +- inputfiles/patches/dom.kdl | 9 +++++++++ src/build/patches.ts | 1 + unittests/files/mutationobserver.ts | 10 ++++++++++ 7 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 unittests/files/mutationobserver.ts diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 90828258d..81c9d0c2c 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -25734,7 +25734,7 @@ interface MutationObserver { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe) */ - observe(target: Node, options?: MutationObserverInit): void; + observe(target: Node, options: MutationObserverInit): void; /** * The MutationObserver method **`takeRecords()`** returns a list of all matching DOM changes that have been detected but not yet processed by the observer's callback function, leaving the mutation queue empty. * diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index aebe0611d..4316f4510 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -25710,7 +25710,7 @@ interface MutationObserver { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe) */ - observe(target: Node, options?: MutationObserverInit): void; + observe(target: Node, options: MutationObserverInit): void; /** * The MutationObserver method **`takeRecords()`** returns a list of all matching DOM changes that have been detected but not yet processed by the observer's callback function, leaving the mutation queue empty. * diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index f99eb027e..932921bbd 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -25731,7 +25731,7 @@ interface MutationObserver { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe) */ - observe(target: Node, options?: MutationObserverInit): void; + observe(target: Node, options: MutationObserverInit): void; /** * The MutationObserver method **`takeRecords()`** returns a list of all matching DOM changes that have been detected but not yet processed by the observer's callback function, leaving the mutation queue empty. * diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index ccfaf6b8c..598a7a214 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -25731,7 +25731,7 @@ interface MutationObserver { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe) */ - observe(target: Node, options?: MutationObserverInit): void; + observe(target: Node, options: MutationObserverInit): void; /** * The MutationObserver method **`takeRecords()`** returns a list of all matching DOM changes that have been detected but not yet processed by the observer's callback function, leaving the mutation queue empty. * diff --git a/inputfiles/patches/dom.kdl b/inputfiles/patches/dom.kdl index 5a6cd54bf..1c6950106 100644 --- a/inputfiles/patches/dom.kdl +++ b/inputfiles/patches/dom.kdl @@ -26,6 +26,15 @@ interface Document { } } +// observe() always throws a TypeError when none of childList, attributes or characterData ends up true, +// so calling it without options can never work. Web IDL can't express that dependency, hence the default {}. +// See https://dom.spec.whatwg.org/#dom-mutationobserver-observe +interface MutationObserver { + method observe signatureIndex=0 { + param options optional=#false + } +} + interface MutationRecord { property type type=MutationRecordType } diff --git a/src/build/patches.ts b/src/build/patches.ts index 06a973365..021ff345c 100644 --- a/src/build/patches.ts +++ b/src/build/patches.ts @@ -361,6 +361,7 @@ function handleParam(node: Node) { name, ...handleTyped(typeNodes, node.properties?.type), ...optionalMember("overrideType", "string", node.properties?.overrideType), + ...optionalMember("optional", "boolean", node.properties?.optional), ...(additionalTypes ? { additionalTypes } : {}), }; } diff --git a/unittests/files/mutationobserver.ts b/unittests/files/mutationobserver.ts new file mode 100644 index 000000000..71aa4fad2 --- /dev/null +++ b/unittests/files/mutationobserver.ts @@ -0,0 +1,10 @@ +const observer = new MutationObserver(() => {}); + +// @ts-expect-error options are required, observe() throws without them +observer.observe(document.body); + +observer.observe(document.body, { childList: true }); +observer.observe(document.body, { attributeFilter: ["class"] }); + +declare const options: MutationObserverInit; +observer.observe(document.body, options); From 51e2d513e2be368b555973bce924d8197594b97e Mon Sep 17 00:00:00 2001 From: Martin Ferret <90469240+MartinFerret@users.noreply.github.com> Date: Fri, 6 Nov 2026 23:36:02 +0000 Subject: [PATCH 03/30] Add a generic createElementNS overload for the XHTML namespace (#2582) Co-authored-by: saschanaz --- baselines/dom.generated.d.ts | 1 + baselines/ts5.5/dom.generated.d.ts | 1 + baselines/ts5.6/dom.generated.d.ts | 1 + baselines/ts5.9/dom.generated.d.ts | 1 + inputfiles/addedTypes.jsonc | 1 + unittests/files/createelementns.ts | 7 +++++++ 6 files changed, 12 insertions(+) create mode 100644 unittests/files/createelementns.ts diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 81c9d0c2c..b9bd67fc5 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -13395,6 +13395,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ + createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: K): HTMLElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 4316f4510..e34301255 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -13384,6 +13384,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ + createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: K): HTMLElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 932921bbd..a22d318bc 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -13392,6 +13392,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ + createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: K): HTMLElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 598a7a214..e63d5bfbb 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -13392,6 +13392,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ + createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: K): HTMLElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; diff --git a/inputfiles/addedTypes.jsonc b/inputfiles/addedTypes.jsonc index 64861d798..2aaf5fb47 100644 --- a/inputfiles/addedTypes.jsonc +++ b/inputfiles/addedTypes.jsonc @@ -240,6 +240,7 @@ "createElementNS": { "name": "createElementNS", "additionalSignatures": [ + "createElementNS(namespaceURI: \"http://www.w3.org/1999/xhtml\", qualifiedName: K): HTMLElementTagNameMap[K]", "createElementNS(namespaceURI: \"http://www.w3.org/1999/xhtml\", qualifiedName: string): HTMLElement", "createElementNS(namespaceURI: \"http://www.w3.org/2000/svg\", qualifiedName: K): SVGElementTagNameMap[K]", "createElementNS(namespaceURI: \"http://www.w3.org/2000/svg\", qualifiedName: string): SVGElement", diff --git a/unittests/files/createelementns.ts b/unittests/files/createelementns.ts new file mode 100644 index 000000000..befd6830a --- /dev/null +++ b/unittests/files/createelementns.ts @@ -0,0 +1,7 @@ +const div: HTMLDivElement = document.createElementNS("http://www.w3.org/1999/xhtml", "div"); +const input: HTMLInputElement = document.createElementNS("http://www.w3.org/1999/xhtml", "input"); +const custom: HTMLElement = document.createElementNS("http://www.w3.org/1999/xhtml", "my-element"); +const circle: SVGCircleElement = document.createElementNS("http://www.w3.org/2000/svg", "circle"); + +// @ts-expect-error an XHTML div is not an input element +const wrong: HTMLInputElement = document.createElementNS("http://www.w3.org/1999/xhtml", "div"); From a3f7c80789cb6e819509e0c84141a63212d4fffd Mon Sep 17 00:00:00 2001 From: Martin Ferret <90469240+MartinFerret@users.noreply.github.com> Date: Sun, 8 Nov 2026 13:35:31 +0000 Subject: [PATCH 04/30] Make Scheduler.postTask generic over the callback result (#2583) Co-authored-by: saschanaz --- baselines/dom.generated.d.ts | 6 ++-- baselines/serviceworker.generated.d.ts | 6 ++-- baselines/sharedworker.generated.d.ts | 6 ++-- baselines/ts5.5/dom.generated.d.ts | 6 ++-- baselines/ts5.5/serviceworker.generated.d.ts | 6 ++-- baselines/ts5.5/sharedworker.generated.d.ts | 6 ++-- baselines/ts5.5/webworker.generated.d.ts | 6 ++-- baselines/ts5.6/dom.generated.d.ts | 6 ++-- baselines/ts5.6/serviceworker.generated.d.ts | 6 ++-- baselines/ts5.6/sharedworker.generated.d.ts | 6 ++-- baselines/ts5.6/webworker.generated.d.ts | 6 ++-- baselines/ts5.9/dom.generated.d.ts | 6 ++-- baselines/ts5.9/serviceworker.generated.d.ts | 6 ++-- baselines/ts5.9/sharedworker.generated.d.ts | 6 ++-- baselines/ts5.9/webworker.generated.d.ts | 6 ++-- baselines/webworker.generated.d.ts | 6 ++-- inputfiles/overridingTypes.jsonc | 38 ++++++++++++++++++++ unittests/files/schedulerPostTask.ts | 26 ++++++++++++++ 18 files changed, 112 insertions(+), 48 deletions(-) create mode 100644 unittests/files/schedulerPostTask.ts diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index b9bd67fc5..7b4ddefbb 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -35284,7 +35284,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -43919,8 +43919,8 @@ interface ResizeObserverCallback { (entries: ResizeObserverEntry[], observer: ResizeObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 56359a693..bf2af6371 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -8558,7 +8558,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -13349,8 +13349,8 @@ interface ReportingObserverCallback { (reports: Report[], observer: ReportingObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 6db80ae55..0aa57c3f9 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -8141,7 +8141,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -13075,8 +13075,8 @@ interface ReportingObserverCallback { (reports: Report[], observer: ReportingObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index e34301255..408304b71 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -35259,7 +35259,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -43893,8 +43893,8 @@ interface ResizeObserverCallback { (entries: ResizeObserverEntry[], observer: ResizeObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 19ecf148c..fe5c41d15 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -8555,7 +8555,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -13346,8 +13346,8 @@ interface ReportingObserverCallback { (reports: Report[], observer: ReportingObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index c417dc5a0..812fb3da4 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -8138,7 +8138,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -13072,8 +13072,8 @@ interface ReportingObserverCallback { (reports: Report[], observer: ReportingObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 66053df45..4379bc659 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -9706,7 +9706,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -15172,8 +15172,8 @@ interface ReportingObserverCallback { (reports: Report[], observer: ReportingObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index a22d318bc..2b83c354c 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -35281,7 +35281,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -43916,8 +43916,8 @@ interface ResizeObserverCallback { (entries: ResizeObserverEntry[], observer: ResizeObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index 19ecf148c..fe5c41d15 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -8555,7 +8555,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -13346,8 +13346,8 @@ interface ReportingObserverCallback { (reports: Report[], observer: ReportingObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index c417dc5a0..812fb3da4 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -8138,7 +8138,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -13072,8 +13072,8 @@ interface ReportingObserverCallback { (reports: Report[], observer: ReportingObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index 66053df45..4379bc659 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -9706,7 +9706,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -15172,8 +15172,8 @@ interface ReportingObserverCallback { (reports: Report[], observer: ReportingObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index e63d5bfbb..8c3c61b95 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -35281,7 +35281,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -43916,8 +43916,8 @@ interface ResizeObserverCallback { (entries: ResizeObserverEntry[], observer: ResizeObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index b9940a22d..01e6d5359 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -8555,7 +8555,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -13346,8 +13346,8 @@ interface ReportingObserverCallback { (reports: Report[], observer: ReportingObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index 03574cee1..3feb5ab32 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -8138,7 +8138,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -13072,8 +13072,8 @@ interface ReportingObserverCallback { (reports: Report[], observer: ReportingObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index 8d4b90af9..ad8845d32 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -9706,7 +9706,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -15172,8 +15172,8 @@ interface ReportingObserverCallback { (reports: Report[], observer: ReportingObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index a9cdc506c..d83899699 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -9709,7 +9709,7 @@ interface Scheduler { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask) */ - postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; + postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise; /** * The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive. * @@ -15175,8 +15175,8 @@ interface ReportingObserverCallback { (reports: Report[], observer: ReportingObserver): void; } -interface SchedulerPostTaskCallback { - (): any; +interface SchedulerPostTaskCallback { + (): T | PromiseLike; } interface TransformerFlushCallback { diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index b20f538ba..dd140e04c 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -124,6 +124,19 @@ } } }, + "SchedulerPostTaskCallback": { + "typeParameters": [ + { + "name": "T", + "default": "any" + } + ], + "signature": { + "0": { + "overrideType": "T | PromiseLike" + } + } + }, "UnderlyingSourceStartCallback": { "typeParameters": [ { @@ -1891,6 +1904,31 @@ ] } }, + "Scheduler": { + "methods": { + "method": { + "postTask": { + "signature": { + "0": { + "typeParameters": [ + { + "name": "T", + "default": "any" + } + ], + "param": [ + { + "name": "callback", + "overrideType": "SchedulerPostTaskCallback" + } + ], + "overrideType": "Promise" + } + } + } + } + } + }, "MessagePort": { "methods": { "method": { diff --git a/unittests/files/schedulerPostTask.ts b/unittests/files/schedulerPostTask.ts new file mode 100644 index 000000000..da320e638 --- /dev/null +++ b/unittests/files/schedulerPostTask.ts @@ -0,0 +1,26 @@ +function assertType(_x: T) {} + +type Equals = + (() => T extends A ? 1 : 2) extends () => T extends B ? 1 : 2 + ? true + : false; +declare function assertExact(): void; + +async function testSchedulerPostTask() { + const num = await scheduler.postTask(() => 42); + assertExact>(); + + const str = await scheduler.postTask(async () => "done", { + priority: "background", + }); + assertExact>(); + + const nothing = await scheduler.postTask(() => {}); + assertExact>(); + + // @ts-expect-error The result is a number, not a string. + assertType(await scheduler.postTask(() => 42)); + + // An explicit `any` type argument keeps the previous behavior. + assertType>(scheduler.postTask(() => 1)); +} From f67ffe8d4e87a9fd74c8030db3ed159b6ddd0d06 Mon Sep 17 00:00:00 2001 From: bel1c10ud <86952779+bel1c10ud@users.noreply.github.com> Date: Sun, 8 Nov 2026 22:39:11 +0900 Subject: [PATCH 05/30] Restore ariaNotify (#2581) Co-authored-by: saschanaz --- baselines/dom.generated.d.ts | 14 ++++++++++++-- baselines/ts5.5/dom.generated.d.ts | 14 ++++++++++++-- baselines/ts5.6/dom.generated.d.ts | 14 ++++++++++++-- baselines/ts5.9/dom.generated.d.ts | 14 ++++++++++++-- inputfiles/patches/aria.kdl | 11 ----------- 5 files changed, 48 insertions(+), 19 deletions(-) delete mode 100644 inputfiles/patches/aria.kdl diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 7b4ddefbb..2120bb2f3 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -84,6 +84,10 @@ interface AnimationPlaybackEventInit extends EventInit { timelineTime?: CSSNumberish | null; } +interface AriaNotificationOptions { + priority?: AriaNotifyPriority; +} + interface AssignedNodesOptions { flatten?: boolean; } @@ -3659,6 +3663,11 @@ interface ARIAMixin { role: string | null; } +interface ARIANotifyMixin { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/ariaNotify) */ + ariaNotify(announcement: string, options?: AriaNotificationOptions): void; +} + /** * The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired. * @@ -13011,7 +13020,7 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document) */ -interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { +interface Document extends Node, ARIANotifyMixin, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { /** * The **`URL`** read-only property of the Document interface returns the document location as a string. * @@ -14046,7 +14055,7 @@ interface ElementEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) */ -interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable { +interface Element extends Node, ARIAMixin, ARIANotifyMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable { /** * The **`Element.attributes`** property returns a live collection of all attribute nodes registered to the specified node. It is a NamedNodeMap, not an Array, so it has no Array methods and the Attr nodes' indexes may differ among browsers. To be more specific, attributes is a key/value pair of strings that represents any information regarding that attribute. * @@ -45139,6 +45148,7 @@ type AlphaOption = "discard" | "keep"; type AnimationPlayState = "finished" | "idle" | "paused" | "running"; type AnimationReplaceState = "active" | "persisted" | "removed"; type AppendMode = "segments" | "sequence"; +type AriaNotifyPriority = "high" | "normal"; type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none"; type AudioContextLatencyCategory = "balanced" | "interactive" | "playback"; type AudioContextState = "closed" | "interrupted" | "running" | "suspended"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 408304b71..3933fe9bb 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -81,6 +81,10 @@ interface AnimationPlaybackEventInit extends EventInit { timelineTime?: CSSNumberish | null; } +interface AriaNotificationOptions { + priority?: AriaNotifyPriority; +} + interface AssignedNodesOptions { flatten?: boolean; } @@ -3656,6 +3660,11 @@ interface ARIAMixin { role: string | null; } +interface ARIANotifyMixin { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/ariaNotify) */ + ariaNotify(announcement: string, options?: AriaNotificationOptions): void; +} + /** * The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired. * @@ -13000,7 +13009,7 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document) */ -interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { +interface Document extends Node, ARIANotifyMixin, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { /** * The **`URL`** read-only property of the Document interface returns the document location as a string. * @@ -14035,7 +14044,7 @@ interface ElementEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) */ -interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable { +interface Element extends Node, ARIAMixin, ARIANotifyMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable { /** * The **`Element.attributes`** property returns a live collection of all attribute nodes registered to the specified node. It is a NamedNodeMap, not an Array, so it has no Array methods and the Attr nodes' indexes may differ among browsers. To be more specific, attributes is a key/value pair of strings that represents any information regarding that attribute. * @@ -45113,6 +45122,7 @@ type AlphaOption = "discard" | "keep"; type AnimationPlayState = "finished" | "idle" | "paused" | "running"; type AnimationReplaceState = "active" | "persisted" | "removed"; type AppendMode = "segments" | "sequence"; +type AriaNotifyPriority = "high" | "normal"; type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none"; type AudioContextLatencyCategory = "balanced" | "interactive" | "playback"; type AudioContextState = "closed" | "interrupted" | "running" | "suspended"; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 2b83c354c..32adce71e 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -81,6 +81,10 @@ interface AnimationPlaybackEventInit extends EventInit { timelineTime?: CSSNumberish | null; } +interface AriaNotificationOptions { + priority?: AriaNotifyPriority; +} + interface AssignedNodesOptions { flatten?: boolean; } @@ -3656,6 +3660,11 @@ interface ARIAMixin { role: string | null; } +interface ARIANotifyMixin { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/ariaNotify) */ + ariaNotify(announcement: string, options?: AriaNotificationOptions): void; +} + /** * The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired. * @@ -13008,7 +13017,7 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document) */ -interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { +interface Document extends Node, ARIANotifyMixin, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { /** * The **`URL`** read-only property of the Document interface returns the document location as a string. * @@ -14043,7 +14052,7 @@ interface ElementEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) */ -interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable { +interface Element extends Node, ARIAMixin, ARIANotifyMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable { /** * The **`Element.attributes`** property returns a live collection of all attribute nodes registered to the specified node. It is a NamedNodeMap, not an Array, so it has no Array methods and the Attr nodes' indexes may differ among browsers. To be more specific, attributes is a key/value pair of strings that represents any information regarding that attribute. * @@ -45136,6 +45145,7 @@ type AlphaOption = "discard" | "keep"; type AnimationPlayState = "finished" | "idle" | "paused" | "running"; type AnimationReplaceState = "active" | "persisted" | "removed"; type AppendMode = "segments" | "sequence"; +type AriaNotifyPriority = "high" | "normal"; type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none"; type AudioContextLatencyCategory = "balanced" | "interactive" | "playback"; type AudioContextState = "closed" | "interrupted" | "running" | "suspended"; diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 8c3c61b95..84c0dd8a6 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -81,6 +81,10 @@ interface AnimationPlaybackEventInit extends EventInit { timelineTime?: CSSNumberish | null; } +interface AriaNotificationOptions { + priority?: AriaNotifyPriority; +} + interface AssignedNodesOptions { flatten?: boolean; } @@ -3656,6 +3660,11 @@ interface ARIAMixin { role: string | null; } +interface ARIANotifyMixin { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/ariaNotify) */ + ariaNotify(announcement: string, options?: AriaNotificationOptions): void; +} + /** * The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired. * @@ -13008,7 +13017,7 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document) */ -interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { +interface Document extends Node, ARIANotifyMixin, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { /** * The **`URL`** read-only property of the Document interface returns the document location as a string. * @@ -14043,7 +14052,7 @@ interface ElementEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) */ -interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable { +interface Element extends Node, ARIAMixin, ARIANotifyMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable { /** * The **`Element.attributes`** property returns a live collection of all attribute nodes registered to the specified node. It is a NamedNodeMap, not an Array, so it has no Array methods and the Attr nodes' indexes may differ among browsers. To be more specific, attributes is a key/value pair of strings that represents any information regarding that attribute. * @@ -45136,6 +45145,7 @@ type AlphaOption = "discard" | "keep"; type AnimationPlayState = "finished" | "idle" | "paused" | "running"; type AnimationReplaceState = "active" | "persisted" | "removed"; type AppendMode = "segments" | "sequence"; +type AriaNotifyPriority = "high" | "normal"; type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none"; type AudioContextLatencyCategory = "balanced" | "interactive" | "playback"; type AudioContextState = "closed" | "interrupted" | "running" | "suspended"; diff --git a/inputfiles/patches/aria.kdl b/inputfiles/patches/aria.kdl deleted file mode 100644 index f087edca2..000000000 --- a/inputfiles/patches/aria.kdl +++ /dev/null @@ -1,11 +0,0 @@ -// https://w3c.github.io/aria/ - -removals { - // Gecko only as of 2026-03 - interface Document { - includes ARIANotifyMixin - } - interface Element { - includes ARIANotifyMixin - } -} From 2511236773c8c321dadfdba053ccbb031195997a Mon Sep 17 00:00:00 2001 From: Adam Naji <110662505+Bashamega@users.noreply.github.com> Date: Sun, 8 Nov 2026 18:43:37 +0200 Subject: [PATCH 06/30] Bump mdn BCD to 8.0.5 (#2557) Co-authored-by: saschanaz --- baselines/audioworklet.generated.d.ts | 6 + baselines/dom.generated.d.ts | 61 +++++++++ baselines/serviceworker.generated.d.ts | 88 +++++++++++++ baselines/sharedworker.generated.d.ts | 37 ++++++ baselines/ts5.5/audioworklet.generated.d.ts | 6 + baselines/ts5.5/dom.generated.d.ts | 61 +++++++++ baselines/ts5.5/serviceworker.generated.d.ts | 79 ++++++++++++ .../serviceworker.iterable.generated.d.ts | 9 ++ baselines/ts5.5/sharedworker.generated.d.ts | 37 ++++++ baselines/ts5.5/webworker.generated.d.ts | 79 ++++++++++++ .../ts5.5/webworker.iterable.generated.d.ts | 9 ++ baselines/ts5.6/audioworklet.generated.d.ts | 6 + baselines/ts5.6/dom.generated.d.ts | 61 +++++++++ baselines/ts5.6/serviceworker.generated.d.ts | 79 ++++++++++++ .../serviceworker.iterable.generated.d.ts | 9 ++ baselines/ts5.6/sharedworker.generated.d.ts | 37 ++++++ baselines/ts5.6/webworker.generated.d.ts | 79 ++++++++++++ .../ts5.6/webworker.iterable.generated.d.ts | 9 ++ baselines/ts5.9/audioworklet.generated.d.ts | 6 + baselines/ts5.9/dom.generated.d.ts | 61 +++++++++ baselines/ts5.9/serviceworker.generated.d.ts | 79 ++++++++++++ .../serviceworker.iterable.generated.d.ts | 9 ++ baselines/ts5.9/sharedworker.generated.d.ts | 37 ++++++ baselines/ts5.9/webworker.generated.d.ts | 79 ++++++++++++ .../ts5.9/webworker.iterable.generated.d.ts | 9 ++ baselines/webworker.generated.d.ts | 88 +++++++++++++ package-lock.json | 6 +- src/build.ts | 2 - src/build/emitter.ts | 116 +++++++++++------- 29 files changed, 1196 insertions(+), 48 deletions(-) diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index dc7ea4402..130ce5189 100644 --- a/baselines/audioworklet.generated.d.ts +++ b/baselines/audioworklet.generated.d.ts @@ -962,6 +962,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: AsyncIterable | Iterable): ReadableStream; }; /** diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 2120bb2f3..8df458604 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -1273,6 +1273,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -4068,6 +4074,8 @@ declare var AnimationEffect: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animation) */ + readonly animation: CSSAnimation | null; /** * The **`AnimationEvent.animationName`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * @@ -21122,6 +21130,23 @@ declare var HTMLSelectElement: { new(): HTMLSelectElement; }; +/** + * The **`HTMLSelectedContentElement`** interface represents a element in the DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectedContentElement) + */ +interface HTMLSelectedContentElement extends HTMLElement { + addEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLSelectedContentElement: { + prototype: HTMLSelectedContentElement; + new(): HTMLSelectedContentElement; +}; + /** * The **`HTMLSlotElement`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML element. * @@ -21827,6 +21852,8 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ shadowRootSerializable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSlotAssignment) */ + shadowRootSlotAssignment: string; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -22798,6 +22825,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -22980,6 +23013,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -23043,6 +23082,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28631,6 +28681,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -30932,6 +30984,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: AsyncIterable | Iterable): ReadableStream; }; /** @@ -37921,6 +37979,8 @@ declare var TransformStreamDefaultController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) */ interface TransitionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/animation) */ + readonly animation: CSSTransition | null; /** * 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. * @@ -44079,6 +44139,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index bf2af6371..b84336f87 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -660,6 +660,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -997,6 +1003,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -6165,6 +6190,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6347,6 +6378,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6410,6 +6447,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -6661,6 +6709,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * 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. * @@ -7757,6 +7824,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -8213,6 +8282,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: AsyncIterable | Iterable): ReadableStream; }; /** @@ -13616,9 +13691,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13716,6 +13793,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; @@ -13910,6 +13989,15 @@ interface IDBObjectStore { createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; } +interface InstallEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 0aa57c3f9..b46ced139 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -604,6 +604,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -5848,6 +5854,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6030,6 +6042,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6093,6 +6111,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7415,6 +7444,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -7796,6 +7827,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: AsyncIterable | Iterable): ReadableStream; }; /** diff --git a/baselines/ts5.5/audioworklet.generated.d.ts b/baselines/ts5.5/audioworklet.generated.d.ts index b60857baa..9286008c9 100644 --- a/baselines/ts5.5/audioworklet.generated.d.ts +++ b/baselines/ts5.5/audioworklet.generated.d.ts @@ -959,6 +959,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 3933fe9bb..81030f963 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -1270,6 +1270,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -4065,6 +4071,8 @@ declare var AnimationEffect: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animation) */ + readonly animation: CSSAnimation | null; /** * The **`AnimationEvent.animationName`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * @@ -21099,6 +21107,23 @@ declare var HTMLSelectElement: { new(): HTMLSelectElement; }; +/** + * The **`HTMLSelectedContentElement`** interface represents a element in the DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectedContentElement) + */ +interface HTMLSelectedContentElement extends HTMLElement { + addEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLSelectedContentElement: { + prototype: HTMLSelectedContentElement; + new(): HTMLSelectedContentElement; +}; + /** * The **`HTMLSlotElement`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML element. * @@ -21803,6 +21828,8 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ shadowRootSerializable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSlotAssignment) */ + shadowRootSlotAssignment: string; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -22774,6 +22801,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -22956,6 +22989,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -23019,6 +23058,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28607,6 +28657,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -30908,6 +30960,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** @@ -37895,6 +37953,8 @@ declare var TransformStreamDefaultController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) */ interface TransitionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/animation) */ + readonly animation: CSSTransition | null; /** * 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. * @@ -44053,6 +44113,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index fe5c41d15..f1f98c978 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -657,6 +657,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -994,6 +1000,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -6162,6 +6187,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6344,6 +6375,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6407,6 +6444,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -6658,6 +6706,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * 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. * @@ -7754,6 +7821,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -8210,6 +8279,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** @@ -13613,9 +13688,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13713,6 +13790,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.5/serviceworker.iterable.generated.d.ts b/baselines/ts5.5/serviceworker.iterable.generated.d.ts index 926cc2790..7bb89a1fb 100644 --- a/baselines/ts5.5/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.5/serviceworker.iterable.generated.d.ts @@ -171,6 +171,15 @@ interface IDBObjectStore { createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; } +interface InstallEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 812fb3da4..0066e37a4 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -601,6 +601,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -5845,6 +5851,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6027,6 +6039,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6090,6 +6108,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7412,6 +7441,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -7793,6 +7824,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 4379bc659..ebe0835fe 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -748,6 +748,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1145,6 +1151,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -6893,6 +6918,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -7075,6 +7106,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -7138,6 +7175,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7528,6 +7576,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * 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. * @@ -8656,6 +8723,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -9361,6 +9430,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** @@ -15428,9 +15503,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15542,6 +15619,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.5/webworker.iterable.generated.d.ts b/baselines/ts5.5/webworker.iterable.generated.d.ts index 606e6c3cd..bb471a7be 100644 --- a/baselines/ts5.5/webworker.iterable.generated.d.ts +++ b/baselines/ts5.5/webworker.iterable.generated.d.ts @@ -175,6 +175,15 @@ interface ImageTrackList { [Symbol.iterator](): IterableIterator; } +interface InstallEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.6/audioworklet.generated.d.ts b/baselines/ts5.6/audioworklet.generated.d.ts index b60857baa..9286008c9 100644 --- a/baselines/ts5.6/audioworklet.generated.d.ts +++ b/baselines/ts5.6/audioworklet.generated.d.ts @@ -959,6 +959,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 32adce71e..3a562abdf 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -1270,6 +1270,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -4065,6 +4071,8 @@ declare var AnimationEffect: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animation) */ + readonly animation: CSSAnimation | null; /** * The **`AnimationEvent.animationName`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * @@ -21119,6 +21127,23 @@ declare var HTMLSelectElement: { new(): HTMLSelectElement; }; +/** + * The **`HTMLSelectedContentElement`** interface represents a element in the DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectedContentElement) + */ +interface HTMLSelectedContentElement extends HTMLElement { + addEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLSelectedContentElement: { + prototype: HTMLSelectedContentElement; + new(): HTMLSelectedContentElement; +}; + /** * The **`HTMLSlotElement`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML element. * @@ -21824,6 +21849,8 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ shadowRootSerializable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSlotAssignment) */ + shadowRootSlotAssignment: string; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -22795,6 +22822,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -22977,6 +23010,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -23040,6 +23079,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28628,6 +28678,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -30929,6 +30981,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** @@ -37918,6 +37976,8 @@ declare var TransformStreamDefaultController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) */ interface TransitionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/animation) */ + readonly animation: CSSTransition | null; /** * 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. * @@ -44076,6 +44136,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index fe5c41d15..f1f98c978 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -657,6 +657,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -994,6 +1000,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -6162,6 +6187,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6344,6 +6375,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6407,6 +6444,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -6658,6 +6706,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * 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. * @@ -7754,6 +7821,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -8210,6 +8279,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** @@ -13613,9 +13688,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13713,6 +13790,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.6/serviceworker.iterable.generated.d.ts b/baselines/ts5.6/serviceworker.iterable.generated.d.ts index f7b7aaf20..7fb311ec9 100644 --- a/baselines/ts5.6/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.6/serviceworker.iterable.generated.d.ts @@ -179,6 +179,15 @@ interface IDBObjectStore { createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; } +interface InstallEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 812fb3da4..0066e37a4 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -601,6 +601,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -5845,6 +5851,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6027,6 +6039,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6090,6 +6108,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7412,6 +7441,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -7793,6 +7824,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index 4379bc659..ebe0835fe 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -748,6 +748,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1145,6 +1151,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -6893,6 +6918,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -7075,6 +7106,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -7138,6 +7175,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7528,6 +7576,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * 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. * @@ -8656,6 +8723,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -9361,6 +9430,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** @@ -15428,9 +15503,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15542,6 +15619,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.6/webworker.iterable.generated.d.ts b/baselines/ts5.6/webworker.iterable.generated.d.ts index 049c52aeb..6c8d5b104 100644 --- a/baselines/ts5.6/webworker.iterable.generated.d.ts +++ b/baselines/ts5.6/webworker.iterable.generated.d.ts @@ -183,6 +183,15 @@ interface ImageTrackList { [Symbol.iterator](): ArrayIterator; } +interface InstallEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.9/audioworklet.generated.d.ts b/baselines/ts5.9/audioworklet.generated.d.ts index 047d68b93..5627b21de 100644 --- a/baselines/ts5.9/audioworklet.generated.d.ts +++ b/baselines/ts5.9/audioworklet.generated.d.ts @@ -959,6 +959,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 84c0dd8a6..df948e49d 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -1270,6 +1270,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -4065,6 +4071,8 @@ declare var AnimationEffect: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animation) */ + readonly animation: CSSAnimation | null; /** * The **`AnimationEvent.animationName`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * @@ -21119,6 +21127,23 @@ declare var HTMLSelectElement: { new(): HTMLSelectElement; }; +/** + * The **`HTMLSelectedContentElement`** interface represents a element in the DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectedContentElement) + */ +interface HTMLSelectedContentElement extends HTMLElement { + addEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: HTMLSelectedContentElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLSelectedContentElement: { + prototype: HTMLSelectedContentElement; + new(): HTMLSelectedContentElement; +}; + /** * The **`HTMLSlotElement`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML element. * @@ -21824,6 +21849,8 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ shadowRootSerializable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSlotAssignment) */ + shadowRootSlotAssignment: string; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -22795,6 +22822,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -22977,6 +23010,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -23040,6 +23079,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -28628,6 +28678,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -30929,6 +30981,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** @@ -37918,6 +37976,8 @@ declare var TransformStreamDefaultController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) */ interface TransitionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/animation) */ + readonly animation: CSSTransition | null; /** * 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. * @@ -44076,6 +44136,7 @@ interface HTMLElementTagNameMap { "search": HTMLElement; "section": HTMLElement; "select": HTMLSelectElement; + "selectedcontent": HTMLSelectedContentElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 01e6d5359..6b04e1123 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -657,6 +657,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -994,6 +1000,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -6162,6 +6187,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6344,6 +6375,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6407,6 +6444,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -6658,6 +6706,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * 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. * @@ -7754,6 +7821,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -8210,6 +8279,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** @@ -13613,9 +13688,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13713,6 +13790,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.9/serviceworker.iterable.generated.d.ts b/baselines/ts5.9/serviceworker.iterable.generated.d.ts index 55e099512..bdadc5b12 100644 --- a/baselines/ts5.9/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.9/serviceworker.iterable.generated.d.ts @@ -179,6 +179,15 @@ interface IDBObjectStore { createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; } +interface InstallEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index 3feb5ab32..f2d79dcbd 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -601,6 +601,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -5845,6 +5851,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6027,6 +6039,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -6090,6 +6108,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7412,6 +7441,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -7793,6 +7824,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index ad8845d32..71438720f 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -748,6 +748,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1145,6 +1151,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -6893,6 +6918,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -7075,6 +7106,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -7138,6 +7175,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7528,6 +7576,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * 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. * @@ -8656,6 +8723,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -9361,6 +9430,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: Iterable): ReadableStream; }; /** @@ -15428,9 +15503,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15542,6 +15619,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; diff --git a/baselines/ts5.9/webworker.iterable.generated.d.ts b/baselines/ts5.9/webworker.iterable.generated.d.ts index 4507a3906..4d43a98f1 100644 --- a/baselines/ts5.9/webworker.iterable.generated.d.ts +++ b/baselines/ts5.9/webworker.iterable.generated.d.ts @@ -183,6 +183,15 @@ interface ImageTrackList { [Symbol.iterator](): ArrayIterator; } +interface InstallEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index d83899699..193cbb748 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -751,6 +751,12 @@ interface IDBDatabaseInfo { version?: number; } +interface IDBGetAllOptions { + count?: number; + direction?: IDBCursorDirection; + query?: any; +} + interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; @@ -1148,6 +1154,25 @@ interface ResponseInit { statusText?: string; } +interface RouterCondition { + not?: RouterCondition; + or?: RouterCondition[]; + requestDestination?: RequestDestination; + requestMethod?: string; + requestMode?: RequestMode; + runningStatus?: RunningStatus; + urlPattern?: URLPatternCompatible; +} + +interface RouterRule { + condition: RouterCondition; + source: RouterSource; +} + +interface RouterSourceDict { + cacheName?: string; +} + interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } @@ -6896,6 +6921,12 @@ interface IDBIndex { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -7078,6 +7109,12 @@ interface IDBObjectStore { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) */ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; + /** + * The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords) + */ + getAllRecords(options?: IDBGetAllOptions): IDBRequest; /** * 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. * @@ -7141,6 +7178,17 @@ declare var IDBOpenDBRequest: { new(): IDBOpenDBRequest; }; +interface IDBRecord { + readonly key: any; + readonly primaryKey: any; + readonly value: any; +} + +declare var IDBRecord: { + prototype: IDBRecord; + new(): IDBRecord; +}; + interface IDBRequestEventMap { "error": Event; "success": Event; @@ -7531,6 +7579,25 @@ interface ImportMeta { resolve(specifier: string): string; } +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent) + */ +interface InstallEvent extends ExtendableEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | RouterRule[]): Promise; +} + +declare var InstallEvent: { + prototype: InstallEvent; + new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent; +}; + /** * 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. * @@ -8659,6 +8726,8 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ readonly transferSize: number; + readonly workerCacheLookupStart: DOMHighResTimeStamp; + readonly workerRouterEvaluationStart: DOMHighResTimeStamp; /** * 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. * @@ -9364,6 +9433,12 @@ declare var ReadableStream: { new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream>; new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + /** + * The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static) + */ + from(asyncIterable: AsyncIterable | Iterable): ReadableStream; }; /** @@ -15431,9 +15506,11 @@ type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableSt type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type ReportList = Report[]; type RequestInfo = Request | string; +type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15545,6 +15622,8 @@ type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler"; +type RunningStatus = "not-running" | "running"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; @@ -15749,6 +15828,15 @@ interface ImageTrackList { [Symbol.iterator](): ArrayIterator; } +interface InstallEvent { + /** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes) + */ + addRoutes(rules: RouterRule | Iterable): Promise; +} + interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/package-lock.json b/package-lock.json index 23572c913..cb31f8256 100644 --- a/package-lock.json +++ b/package-lock.json @@ -316,9 +316,9 @@ } }, "node_modules/@mdn/browser-compat-data": { - "version": "8.0.4", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.4.tgz", - "integrity": "sha512-up6DsNsaPt3jq5d2TGx4UOXIqBKU0D86dxWwcVmmOOEYqP1rFaV1XcAcwHxMvb6bbtMfY5JpjUCszzy/aVc4yA==", + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.5.tgz", + "integrity": "sha512-gzTjryoDygkG3aK/xFAwut7QPBhmTy6RDUep5HqyqxEQlvNWmcoVTkmMeb0LQFhZnISu0nmPK767eKSjrjSXUQ==", "dev": true, "license": "CC0-1.0", "peer": true diff --git a/src/build.ts b/src/build.ts index 40a8304f0..166971680 100644 --- a/src/build.ts +++ b/src/build.ts @@ -252,7 +252,6 @@ async function emitDom() { allowUnrelatedSetterType: true, useGenericTypedArrays: true, includeIterable: true, - treatAsyncSequence: true, }, }, // ts5.7 (and later) @@ -263,7 +262,6 @@ async function emitDom() { useIteratorObject: true, allowUnrelatedSetterType: true, useGenericTypedArrays: true, - treatAsyncSequence: true, }, }, // ts5.6 diff --git a/src/build/emitter.ts b/src/build/emitter.ts index 31e43749f..cc48ab405 100644 --- a/src/build/emitter.ts +++ b/src/build/emitter.ts @@ -132,8 +132,6 @@ export interface CompilerBehavior { allowUnrelatedSetterType?: boolean; useGenericTypedArrays?: boolean; includeIterable?: boolean; - /** If true, treat async_sequence as AsyncIterable, otherwise as any (legacy < TS 4.4 emit). */ - treatAsyncSequence?: boolean; } export function emitWebIdl( @@ -406,24 +404,19 @@ export function emitWebIdl( obj: Browser.Typed, forReturn: boolean, ): string { - function convertBaseType() { - // Support async_sequence (see https://github.com/whatwg/streams/pull/1372) + function convertBaseType(): string[] { if (obj.type === "async_sequence") { - // AsyncIterable requires separate asynciterable.d.ts until TS 6.0. - // To make it correct, we need to defer any functions using async_sequence to the asynciterable variant. - // For now, skip generation and warn. - console.warn( - "Skipping generation for a function or property with async_sequence type: " + - JSON.stringify(obj), - ); - return "never"; // Use 'never' to signal omission in type generation + if (compilerBehavior.includeIterable) { + return ["AsyncIterable", "Iterable"]; + } + return ["Iterable"]; } if (obj.type === "sequence" && !forReturn && iterator !== "") { - return "Iterable"; + return ["Iterable"]; } if (!obj.additionalTypes && typeof obj.type === "string") { - return convertDomTypeToTsTypeSimple(obj.type); + return [convertDomTypeToTsTypeSimple(obj.type)]; } else { const types = typeof obj.type === "string" @@ -436,7 +429,7 @@ export function emitWebIdl( convertDomTypeToTsTypeWorker(t, forReturn), ); if (converted.includes("any")) { - return "any"; + return ["any"]; } // convert `ArrayBuffer | SharedArrayBuffer` into `ArrayBufferLike` to be pre-ES2017 friendly. @@ -450,26 +443,30 @@ export function emitWebIdl( converted.splice(maxIndex, 1); // drop whichever comes last } } - return converted.join(" | "); + return converted; + } + } + + function addSubtype(type: string) { + if ( + !subtypeString && + compilerBehavior.useGenericTypedArrays && + arrayBufferViewTypes.has(type) + ) { + subtypeString = obj.allowShared ? "ArrayBufferLike" : "ArrayBuffer"; } + + return type === "Array" && subtypeString + ? makeArrayType(subtypeString, obj) + : `${type}${subtypeString ? `<${subtypeString}>` : ""}`; } - const type = convertBaseType(); + const types = convertBaseType(); let subtypeString = arrayify(obj.subtype) .map((t) => convertDomTypeToTsTypeBase(t, forReturn)) .join(", "); - if ( - !subtypeString && - compilerBehavior.useGenericTypedArrays && - arrayBufferViewTypes.has(type) - ) { - subtypeString = obj.allowShared ? "ArrayBufferLike" : "ArrayBuffer"; - } - - return type === "Array" && subtypeString - ? makeArrayType(subtypeString, obj) - : `${type}${subtypeString ? `<${subtypeString}>` : ""}`; + return types.map(addSubtype).join(" | "); } function makeArrayType(elementType: string, obj: Browser.Typed): string { @@ -1797,6 +1794,20 @@ export function emitWebIdl( } } + function filterMethodsBySignature( + i: Browser.Interface, + predicate: (signature: Browser.Signature) => boolean | undefined, + ): Browser.Method[] { + return mapToArray(i.methods ? i.methods.method : {}) + .filter((m) => m.signature && !m.overrideSignatures && !m.static) + .map((m) => ({ + ...m, + signature: m.signature.filter(predicate), + })) + .filter((m) => m.signature.length) + .sort(compareName); + } + function emitIterator(i: Browser.Interface) { // https://webidl.spec.whatwg.org/#dfn-indexed-property-getter const isIndexedPropertyGetter = (m: Browser.AnonymousMethod) => @@ -1904,18 +1915,13 @@ export function emitWebIdl( ); const subtypes = getIteratorSubtypes(); - const methodsWithSequence: Browser.Method[] = mapToArray( - i.methods ? i.methods.method : {}, - ) - .filter((m) => m.signature && !m.overrideSignatures && !m.static) - .map((m) => ({ - ...m, - signature: replaceTypedefsInSignatures( - m.signature.filter(hasSequenceArgument), - ), - })) - .filter((m) => m.signature.length) - .sort(compareName); + const methodsWithSequence: Browser.Method[] = filterMethodsBySignature( + i, + hasSequenceArgument, + ).map((m) => ({ + ...m, + signature: replaceTypedefsInSignatures(m.signature), + })); if (!subtypes && !methodsWithSequence.length) { return; @@ -1958,8 +1964,26 @@ export function emitWebIdl( } } + function hasAsyncSequenceArgument(signature: Browser.Signature) { + function includesAsyncSequence(type: string | Browser.Typed[]): boolean { + if (Array.isArray(type)) { + return type.some((t) => includesAsyncSequence(t.type)); + } + return type === "async_sequence"; + } + return signature.param?.some( + (p) => !p.overrideType && includesAsyncSequence(p.type), + ); + } + const subtypes = getAsyncIteratorSubtypes(); - if (!subtypes) { + // Emit AsyncIterable separately for asynciterable.d.ts. + // But not when includeIterable=true as signatures should include AsyncIterable already. + const methodsWithAsyncSequence: Browser.Method[] = + !compilerBehavior.includeIterable + ? filterMethodsBySignature(i, hasAsyncSequenceArgument) + : []; + if (!subtypes && !methodsWithAsyncSequence.length) { return; } @@ -1969,13 +1993,19 @@ export function emitWebIdl( name, ); - emitSelfIterator(i); + if (subtypes) { + emitSelfIterator(i); + } printer.printLine(""); printer.printLine(`interface ${nameWithTypeParameters} {`); printer.increaseIndent(); - emitIterableMethods(i, name, subtypes); + methodsWithAsyncSequence.forEach((m) => emitMethod("", m, new Set())); + + if (subtypes) { + emitIterableMethods(i, name, subtypes); + } printer.decreaseIndent(); printer.printLine("}"); From fef031ea4fc7fd0d70c622a78b163bb0388efbb5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 8 Nov 2026 16:44:45 +0000 Subject: [PATCH 07/30] Bump the eslint group across 1 directory with 5 updates (#2579) Co-authored-by: saschanaz --- package-lock.json | 330 ++++++++++++++++++++++++++++++---------------- 1 file changed, 213 insertions(+), 117 deletions(-) diff --git a/package-lock.json b/package-lock.json index cb31f8256..f9ed2b4ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -51,6 +51,30 @@ "node": ">=0.10.0" } }, + "node_modules/@cacheable/memory": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz", + "integrity": "sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cacheable/utils": "^2.5.0", + "@keyv/bigmap": "^1.3.1", + "hookified": "^1.15.1", + "keyv": "^5.6.0" + } + }, + "node_modules/@cacheable/utils": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@cacheable/utils/-/utils-2.5.0.tgz", + "integrity": "sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hashery": "^1.5.1", + "keyv": "^5.6.0" + } + }, "node_modules/@chevrotain/cst-dts-gen": { "version": "11.1.1", "resolved": "https://registry.npmjs.org/@chevrotain/cst-dts-gen/-/cst-dts-gen-11.1.1.tgz", @@ -95,6 +119,17 @@ "dev": true, "license": "Apache-2.0" }, + "node_modules/@dual-bundle/import-meta-resolve": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@dual-bundle/import-meta-resolve/-/import-meta-resolve-4.2.1.tgz", + "integrity": "sha512-id+7YRUgoUX6CgV0DtuhirQWodeeA7Lf4i2x71JS/vtA5pRb/hIGWlw+G6MeXvsM+MXrz0VAydTGElX1rAfgPg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/JounQin" + } + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.9.1", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", @@ -197,9 +232,9 @@ } }, "node_modules/@eslint/plugin-kit": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.2.tgz", - "integrity": "sha512-+CNAzxglkrpNf/kKywqQfk74QjtceuOE7Qm+AF8miRvPF/wmmK5+OJOgVh3AVTT3RP2mH3+FOaxlE5v72owk0A==", + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.3.tgz", + "integrity": "sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -315,13 +350,36 @@ "url": "https://github.com/sponsors/nzakas" } }, + "node_modules/@keyv/bigmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz", + "integrity": "sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "hashery": "^1.4.0", + "hookified": "^1.15.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "keyv": "^5.6.0" + } + }, + "node_modules/@keyv/serialize": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.1.1.tgz", + "integrity": "sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==", + "dev": true, + "license": "MIT" + }, "node_modules/@mdn/browser-compat-data": { "version": "8.0.5", "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.5.tgz", "integrity": "sha512-gzTjryoDygkG3aK/xFAwut7QPBhmTy6RDUep5HqyqxEQlvNWmcoVTkmMeb0LQFhZnISu0nmPK767eKSjrjSXUQ==", "dev": true, - "license": "CC0-1.0", - "peer": true + "license": "CC0-1.0" }, "node_modules/@octokit/auth-token": { "version": "6.0.0", @@ -338,7 +396,6 @@ "integrity": "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@octokit/auth-token": "^6.0.0", "@octokit/graphql": "^9.0.3", @@ -702,17 +759,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.68.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.68.0.tgz", - "integrity": "sha512-WASHDpCm6qO5jj9g1a+8NiW5+GCkAyLReR56/4VruYmNgfUmqpxOfZ2Yfb8xGfJPWv5Qi6LSD8sXdces3vbp/Q==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.72.1.tgz", + "integrity": "sha512-5CokTWXpmbylfFabsbvHC0CAw3XLaGnoa+nFJX5FR592h/LoZsENUE6p/rg5xvkKrFEXz6pYmgI29AgXc2N3BQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.68.0", - "@typescript-eslint/type-utils": "8.68.0", - "@typescript-eslint/utils": "8.68.0", - "@typescript-eslint/visitor-keys": "8.68.0", + "@typescript-eslint/scope-manager": "8.72.1", + "@typescript-eslint/type-utils": "8.72.1", + "@typescript-eslint/utils": "8.72.1", + "@typescript-eslint/visitor-keys": "8.72.1", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" @@ -741,17 +798,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.68.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.68.0.tgz", - "integrity": "sha512-fHq2VC1kpyYfvEcbiMjOpySY4WS7voEp89yAThrHRX5sm9j2lzYppCb2umFMEed4fWcyeLjHxrz0mpjNBaBxMQ==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.72.1.tgz", + "integrity": "sha512-ZGwZP4OCfyA0AQTpEAMWz+rtX01DRhQWW5hB0ucKDEIX5U7jdmPSaMx94rQfaPAQzIYz2BimOgKOJtjfpRFQ9g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "@typescript-eslint/scope-manager": "8.68.0", - "@typescript-eslint/types": "8.68.0", - "@typescript-eslint/typescript-estree": "8.68.0", - "@typescript-eslint/visitor-keys": "8.68.0", + "@typescript-eslint/scope-manager": "8.72.1", + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/typescript-estree": "8.72.1", + "@typescript-eslint/visitor-keys": "8.72.1", "debug": "^4.4.3" }, "engines": { @@ -767,14 +823,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.68.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.68.0.tgz", - "integrity": "sha512-5GQtWZCXFcFYux955pvoS02WLc49pXNlvIxocKjS0clvwo3in1RdlzVKyiqQH9vE5AKWFLTaUgeQkOrTS+0Qxw==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.72.1.tgz", + "integrity": "sha512-fAuVMkwdO/huI8nyo/WKnNKf6Gag93S56Rh3Ts5mGcavwSdaN8tRg1gCeIGX8PF+nzp1BjGfO4gHhGzW1J6jTg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.68.0", - "@typescript-eslint/types": "^8.68.0", + "@typescript-eslint/tsconfig-utils": "^8.72.1", + "@typescript-eslint/types": "^8.72.1", "debug": "^4.4.3" }, "engines": { @@ -789,14 +845,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.68.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.68.0.tgz", - "integrity": "sha512-T5eXpcaJNg8bhjHJ8Rjp68Vq/QBteYtTKY8TZqVNPaUbuz0f6jI9t6aDkylwvalpAB9XTTFeFOjrjXAZ3YvmVA==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.72.1.tgz", + "integrity": "sha512-lC/t6eMCZZQAAKZEYGL6RDVSuFehpdmMT6h+nJIjIa6oylN/PwDgDVtEIbB7O9xFfZYtZAYLoLlDNWKJhtF+uQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.68.0", - "@typescript-eslint/visitor-keys": "8.68.0" + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/visitor-keys": "8.72.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -807,9 +863,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.68.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.68.0.tgz", - "integrity": "sha512-F7zrGQfiJHojPwi8vhxZQC1tWtJzvL74cK/nqri2lk8YUXvYaYwl263xOJ69jDWPUk1hmcdoayFwk9lX09npVw==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.72.1.tgz", + "integrity": "sha512-e4D5R5vpeAEPBxT2BAzsFQL3sbwyeeeo5+aczgNSRK1V734jE7pTqaGFU+fXapWEQwnZbpFaTn32+Z8DwS6OTg==", "dev": true, "license": "MIT", "engines": { @@ -824,15 +880,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.68.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.68.0.tgz", - "integrity": "sha512-X77zqoY1EjeWGs/0JNxeaMfp5C5lIz4Tw8y66F1Ne8Faq6g424sBNYM6xBAqElfGZPLpWS+CZAp0DXyKDzWiHg==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.72.1.tgz", + "integrity": "sha512-iY2wlmyrXJmx4yxUGP3aYCFF3cA/6ShddOKmLU2dx7LnEykbAM8WThlxZEfd1NddqceF6eJmZUayxx9oKIYNlg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.68.0", - "@typescript-eslint/typescript-estree": "8.68.0", - "@typescript-eslint/utils": "8.68.0", + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/typescript-estree": "8.72.1", + "@typescript-eslint/utils": "8.72.1", "debug": "^4.4.3", "ts-api-utils": "^2.5.0" }, @@ -849,9 +905,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.68.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.68.0.tgz", - "integrity": "sha512-9RnpsGJjrAllCMefGVVsImJM24YurhC0Q1h4UbvivtvOqXmR/vEJge2OoE++z9m6hyg8T1Q8t5SNT6tHSbrxcg==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.72.1.tgz", + "integrity": "sha512-LmE5IhQet1BWOWEXqBrVtBPsMAOQ6Nzk35d+WLh3mk4EUF33sqlfxjio1MdYeSvKSG5skactKKuixBIKXhL4Rw==", "dev": true, "license": "MIT", "engines": { @@ -863,16 +919,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.68.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.68.0.tgz", - "integrity": "sha512-OKKsD0tYmoNiU5PW2zehO1yO56jYOm1ShYlxon/Z0SJNidAkdVg86eg9ruRuoXf8xfnuWZGbwDsStkoXbZtIIA==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.72.1.tgz", + "integrity": "sha512-DAlUoUV93hIvrtIQLwCbmZQYVZwOMhiHJrOVUUIWicFZaIYjTRqlY3I/NZevfkLmSqkNHRu2qYDcq9lrn16oOQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.68.0", - "@typescript-eslint/tsconfig-utils": "8.68.0", - "@typescript-eslint/types": "8.68.0", - "@typescript-eslint/visitor-keys": "8.68.0", + "@typescript-eslint/project-service": "8.72.1", + "@typescript-eslint/tsconfig-utils": "8.72.1", + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/visitor-keys": "8.72.1", "debug": "^4.4.3", "minimatch": "^10.2.2", "semver": "^7.7.3", @@ -891,16 +947,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.68.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.68.0.tgz", - "integrity": "sha512-PB5gJMMOg0Q5P1tsgWtEAqQacJXq0qEqRHDX/YJ4FaTMLfZPpHB3gjl2EJuiZyPABxmj4ZQYiY9m1bdAJ5y7tQ==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.72.1.tgz", + "integrity": "sha512-5v5liypurJBFHCBNqh/RjsymAD+VWcE0djuGY/BUqp5fC3Qn+luWDEksjuTtWjPn6i5zQlUtkZCRG/CYG0yCkA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.68.0", - "@typescript-eslint/types": "8.68.0", - "@typescript-eslint/typescript-estree": "8.68.0" + "@typescript-eslint/scope-manager": "8.72.1", + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/typescript-estree": "8.72.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -915,13 +971,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.68.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.68.0.tgz", - "integrity": "sha512-YR65gGdGvTUAWLldC3xLOvOzamdGzB4A5/N8rehEaHs3Zvoe39BhgY+u0SPch1OvrVTfLcc55wsSgK2NcnTS/A==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.72.1.tgz", + "integrity": "sha512-SB8xqipSzZHUePCCLNeYxqnxq83X61/qzNhjQGbTfjxGZIeOEP7tBgWYX05Tcd6CgE02WdTJnh5b8kMZJ/+bnQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.68.0", + "@typescript-eslint/types": "8.72.1", "eslint-visitor-keys": "^5.0.0" }, "engines": { @@ -1116,7 +1172,6 @@ "integrity": "sha512-Pb/NhQs3BgbLf1rNhOGMc5xoSqPaaR4Jw8RceBw3gIE8aDQkjTHwD9+KuAH1imFxU0mMubdXOcj1GEkJMwRLGQ==", "dev": true, "license": "MIT", - "peer": true, "peerDependencies": { "webidl2": "^24.5.0" } @@ -1127,7 +1182,6 @@ "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", "dev": true, "license": "MIT", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -1260,6 +1314,20 @@ "dev": true, "license": "BSD-3-Clause" }, + "node_modules/cacheable": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.5.0.tgz", + "integrity": "sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cacheable/memory": "^2.2.0", + "@cacheable/utils": "^2.5.0", + "hookified": "^1.15.0", + "keyv": "^5.6.0", + "qified": "^0.10.1" + } + }, "node_modules/call-bind-apply-helpers": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", @@ -1505,7 +1573,6 @@ "integrity": "sha512-dKYCMuPO1bmrpuogcjQ8z7ICCH3FP6WmxpwC03yjzGfZhj9fTJg6+bS1+UAplekbN2C+M61UNllGOOoAfGCrdQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@octokit/auth-token": "^4.0.0", "@octokit/graphql": "^7.1.0", @@ -1774,12 +1841,11 @@ } }, "node_modules/eslint": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.9.1.tgz", - "integrity": "sha512-9VaAkDURekixUQJy0oJYl2DcN6oKMfxay7XzaGYAWQwsb6qfKf+x76R2k1L8kb1boc+FyCAaTA9GmiKaaiaF+A==", + "version": "10.13.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.13.0.tgz", + "integrity": "sha512-UohDjD4zSzEwhf58M3O7vc/ycc8O1I7dNlhtD0WxE8Px8EHNJKtUwzBqrzeGhisRuv2ag4sAYswszCJRgKXYUg==", "dev": true, "license": "MIT", - "peer": true, "workspaces": [ "packages/*" ], @@ -1789,7 +1855,7 @@ "@eslint/config-array": "^0.23.5", "@eslint/config-helpers": "^0.7.0", "@eslint/core": "^1.2.1", - "@eslint/plugin-kit": "^0.7.2", + "@eslint/plugin-kit": "^0.7.3", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", @@ -1804,7 +1870,7 @@ "esquery": "^1.7.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", + "file-entry-cache": "11.1.5 || >11.1.6 <12", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "ignore": "^5.2.0", @@ -1839,7 +1905,6 @@ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, "license": "MIT", - "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -1851,14 +1916,14 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "5.5.6", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.6.tgz", - "integrity": "sha512-ifetmTcxWfz+4qRW3pH/ujdTq2jQIj59AxJMIN26K5avYgU8dxycUETQonWiW+wPrYXA0j3Try0l1CnwVQtDqQ==", + "version": "5.5.7", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.7.tgz", + "integrity": "sha512-WjHyn3GrFd+ZR0rzsLiM4zJZ35PZMOE0SUIxzGmnWNG0126yNfJKJzObmmkYDwHJfGlkz3PSlzyG9ez/LJntwg==", "dev": true, "license": "MIT", "dependencies": { "prettier-linter-helpers": "^1.0.1", - "synckit": "^0.11.13" + "synckit": "^0.12.3" }, "engines": { "node": "^14.18.0 || >=16.0.0" @@ -2064,15 +2129,13 @@ "dev": true }, "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "version": "11.1.5", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-11.1.5.tgz", + "integrity": "sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==", "dev": true, + "license": "MIT", "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" + "flat-cache": "^6.1.23" } }, "node_modules/fill-range": { @@ -2110,22 +2173,21 @@ } }, "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "version": "6.1.23", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.23.tgz", + "integrity": "sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==", "dev": true, + "license": "MIT", "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" + "cacheable": "^2.5.0", + "flatted": "^3.4.2", + "hookified": "^1.15.0" } }, "node_modules/flatted": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz", - "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==", + "version": "3.4.4", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", + "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", "dev": true, "license": "ISC" }, @@ -2268,6 +2330,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/hashery": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz", + "integrity": "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "hookified": "^1.15.0" + }, + "engines": { + "node": ">=20" + } + }, "node_modules/hasown": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", @@ -2281,6 +2356,13 @@ "node": ">= 0.4" } }, + "node_modules/hookified": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz", + "integrity": "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==", + "dev": true, + "license": "MIT" + }, "node_modules/http-proxy-agent": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", @@ -2396,12 +2478,6 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -2492,12 +2568,13 @@ } }, "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz", + "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==", "dev": true, + "license": "MIT", "dependencies": { - "json-buffer": "3.0.1" + "@keyv/serialize": "^1.1.1" } }, "node_modules/levn": { @@ -2591,7 +2668,8 @@ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", "dev": true, - "license": "CC0-1.0" + "license": "CC0-1.0", + "peer": true }, "node_modules/memfs-or-file-map-to-github-branch": { "version": "1.3.0", @@ -2872,7 +2950,6 @@ "integrity": "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==", "dev": true, "license": "MIT", - "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -2931,6 +3008,26 @@ "node": ">=6" } }, + "node_modules/qified": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/qified/-/qified-0.10.1.tgz", + "integrity": "sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hookified": "^2.1.1" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/qified/node_modules/hookified": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-2.2.0.tgz", + "integrity": "sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==", + "dev": true, + "license": "MIT" + }, "node_modules/qs": { "version": "6.15.2", "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.2.tgz", @@ -3129,6 +3226,7 @@ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -3199,12 +3297,13 @@ } }, "node_modules/synckit": { - "version": "0.11.13", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.13.tgz", - "integrity": "sha512-eNRKgb3z66Yp3D2CixVujOUvXLFUTij/zVnV8KRyvFdQwpz7I5DS8UfRkTeLzb64u+dkzDSdelE24izu+zSSUg==", + "version": "0.12.3", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.12.3.tgz", + "integrity": "sha512-U+/AXT6LWsxnj2vz9HeUuPWBNgdWxjyIEjEPdbJARC9txmgPzo2VEdqnFo4hHaNyMPtycyVJrSaQYeQv/PoyyA==", "dev": true, "license": "MIT", "dependencies": { + "@dual-bundle/import-meta-resolve": "^4.2.1", "@pkgr/core": "^0.3.6" }, "engines": { @@ -3255,7 +3354,6 @@ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -3313,7 +3411,6 @@ "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -3323,16 +3420,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.68.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.68.0.tgz", - "integrity": "sha512-MHy0Y0ynqeEbx/S45+i/bBssdy3X6KNBfmJAP35GrgtNxu2TQ5K5xsFDhAnmsq1jvpdoZOPG1LGtJo0HWqYCrQ==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.72.1.tgz", + "integrity": "sha512-3Li9FfPmQp45nxEtFD1ZCrYFI3cYK5kpyNtmm1H7lMagm8u9sy6PTjy3ytwQZs7KNukOyKFHAZ6z6GjYFeaeXw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.68.0", - "@typescript-eslint/parser": "8.68.0", - "@typescript-eslint/typescript-estree": "8.68.0", - "@typescript-eslint/utils": "8.68.0" + "@typescript-eslint/eslint-plugin": "8.72.1", + "@typescript-eslint/parser": "8.72.1", + "@typescript-eslint/typescript-estree": "8.72.1", + "@typescript-eslint/utils": "8.72.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3383,7 +3480,6 @@ "integrity": "sha512-fxOigKkIem1iAgQ9t4cFOP+kWEA8y6Be/uh50FpJh0FijoeeT/VMrOyJzNLUgjy0rGMEcHeReKDCqj0g9dIe9A==", "dev": true, "license": "W3C", - "peer": true, "engines": { "node": ">= 18" } From 00b310612e96f63e9bd4ba6172677cfcdce9e74a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 8 Nov 2026 17:30:04 +0000 Subject: [PATCH 08/30] Bump qs from 6.15.2 to 6.17.1 (#2584) Co-authored-by: saschanaz --- package-lock.json | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index f9ed2b4ee..2566b3dc9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1828,9 +1828,9 @@ } }, "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", "dev": true, "license": "MIT", "dependencies": { @@ -2196,6 +2196,7 @@ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -2344,9 +2345,9 @@ } }, "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", "dev": true, "license": "MIT", "dependencies": { @@ -3029,13 +3030,14 @@ "license": "MIT" }, "node_modules/qs": { - "version": "6.15.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.2.tgz", - "integrity": "sha512-Rzq0KEyX/w/tEybncDgdkZrJgVUsUMk3xjh3t5bv3S1HTAtg+uOYt72+ZfwiQwKdysThkTBdL/rTi6HDmX9Ddw==", + "version": "6.17.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.17.1.tgz", + "integrity": "sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==", "dev": true, "license": "BSD-3-Clause", "dependencies": { - "side-channel": "^1.1.0" + "es-define-property": "^1.0.1", + "side-channel": "^1.1.1" }, "engines": { "node": ">=0.6" @@ -3145,15 +3147,15 @@ } }, "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", + "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", + "object-inspect": "^1.13.4", + "side-channel-list": "^1.0.1", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" }, @@ -3165,14 +3167,14 @@ } }, "node_modules/side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", + "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" + "object-inspect": "^1.13.4" }, "engines": { "node": ">= 0.4" From b2e61ddf1e05a2fd6a8ea50263b478f71a268f5a Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 8 Nov 2026 20:52:09 +0100 Subject: [PATCH 09/30] Manually update to idl@3.83.1 (#2585) Co-authored-by: saschanaz --- baselines/dom.generated.d.ts | 15 ++++++++--- baselines/serviceworker.generated.d.ts | 13 ++++++++-- baselines/sharedworker.generated.d.ts | 13 ++++++++-- baselines/ts5.5/dom.generated.d.ts | 15 ++++++++--- baselines/ts5.5/serviceworker.generated.d.ts | 13 ++++++++-- baselines/ts5.5/sharedworker.generated.d.ts | 13 ++++++++-- baselines/ts5.5/webworker.generated.d.ts | 15 ++++++++--- baselines/ts5.6/dom.generated.d.ts | 15 ++++++++--- baselines/ts5.6/serviceworker.generated.d.ts | 13 ++++++++-- baselines/ts5.6/sharedworker.generated.d.ts | 13 ++++++++-- baselines/ts5.6/webworker.generated.d.ts | 15 ++++++++--- baselines/ts5.9/dom.generated.d.ts | 15 ++++++++--- baselines/ts5.9/serviceworker.generated.d.ts | 13 ++++++++-- baselines/ts5.9/sharedworker.generated.d.ts | 13 ++++++++-- baselines/ts5.9/webworker.generated.d.ts | 15 ++++++++--- baselines/webworker.generated.d.ts | 15 ++++++++--- inputfiles/patches/webaudio.kdl | 22 ++++++++++++++-- inputfiles/patches/webgpu.kdl | 27 +++----------------- package-lock.json | 6 ++--- 19 files changed, 210 insertions(+), 69 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 8df458604..2c508e7f2 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -128,7 +128,7 @@ interface AudioDataCopyToOptions { } interface AudioDataInit { - data: BufferSource; + data: AllowSharedBufferSource; format: AudioSampleFormat; numberOfChannels: number; numberOfFrames: number; @@ -1093,8 +1093,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -1114,8 +1116,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -1172,6 +1180,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -45274,7 +45283,7 @@ type FullscreenKeyboardLock = "browser" | "none"; type FullscreenNavigationUI = "auto" | "hide" | "show"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -45285,7 +45294,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index b84336f87..d7381c6b8 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -533,8 +533,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -554,8 +556,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -612,6 +620,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -13726,7 +13735,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -13737,7 +13746,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index b46ced139..f1dfc1096 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -477,8 +477,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -498,8 +500,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -556,6 +564,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -13371,7 +13380,7 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -13382,7 +13391,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 81030f963..9307d77af 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -125,7 +125,7 @@ interface AudioDataCopyToOptions { } interface AudioDataInit { - data: BufferSource; + data: AllowSharedBufferSource; format: AudioSampleFormat; numberOfChannels: number; numberOfFrames: number; @@ -1090,8 +1090,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -1111,8 +1113,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -1169,6 +1177,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -45248,7 +45257,7 @@ type FullscreenKeyboardLock = "browser" | "none"; type FullscreenNavigationUI = "auto" | "hide" | "show"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -45259,7 +45268,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index f1f98c978..5ecb02e2f 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -530,8 +530,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -551,8 +553,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -609,6 +617,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -13723,7 +13732,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -13734,7 +13743,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 0066e37a4..8bdd31185 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -474,8 +474,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -495,8 +497,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -553,6 +561,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -13368,7 +13377,7 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -13379,7 +13388,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index ebe0835fe..b8ca5a95b 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -59,7 +59,7 @@ interface AudioDataCopyToOptions { } interface AudioDataInit { - data: BufferSource; + data: AllowSharedBufferSource; format: AudioSampleFormat; numberOfChannels: number; numberOfFrames: number; @@ -621,8 +621,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -642,8 +644,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -700,6 +708,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -15547,7 +15556,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -15558,7 +15567,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 3a562abdf..8eb267843 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -125,7 +125,7 @@ interface AudioDataCopyToOptions { } interface AudioDataInit { - data: BufferSource; + data: AllowSharedBufferSource; format: AudioSampleFormat; numberOfChannels: number; numberOfFrames: number; @@ -1090,8 +1090,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -1111,8 +1113,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -1169,6 +1177,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -45271,7 +45280,7 @@ type FullscreenKeyboardLock = "browser" | "none"; type FullscreenNavigationUI = "auto" | "hide" | "show"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -45282,7 +45291,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index f1f98c978..5ecb02e2f 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -530,8 +530,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -551,8 +553,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -609,6 +617,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -13723,7 +13732,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -13734,7 +13743,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 0066e37a4..8bdd31185 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -474,8 +474,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -495,8 +497,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -553,6 +561,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -13368,7 +13377,7 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -13379,7 +13388,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index ebe0835fe..b8ca5a95b 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -59,7 +59,7 @@ interface AudioDataCopyToOptions { } interface AudioDataInit { - data: BufferSource; + data: AllowSharedBufferSource; format: AudioSampleFormat; numberOfChannels: number; numberOfFrames: number; @@ -621,8 +621,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -642,8 +644,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -700,6 +708,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -15547,7 +15556,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -15558,7 +15567,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index df948e49d..f3630b6f6 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -125,7 +125,7 @@ interface AudioDataCopyToOptions { } interface AudioDataInit { - data: BufferSource; + data: AllowSharedBufferSource; format: AudioSampleFormat; numberOfChannels: number; numberOfFrames: number; @@ -1090,8 +1090,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -1111,8 +1113,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -1169,6 +1177,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -45271,7 +45280,7 @@ type FullscreenKeyboardLock = "browser" | "none"; type FullscreenNavigationUI = "auto" | "hide" | "show"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -45282,7 +45291,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 6b04e1123..0c60a0f3f 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -530,8 +530,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -551,8 +553,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -609,6 +617,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -13723,7 +13732,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -13734,7 +13743,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index f2d79dcbd..1031e195a 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -474,8 +474,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -495,8 +497,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -553,6 +561,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -13368,7 +13377,7 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -13379,7 +13388,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index 71438720f..4cf9fd06f 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -59,7 +59,7 @@ interface AudioDataCopyToOptions { } interface AudioDataInit { - data: BufferSource; + data: AllowSharedBufferSource; format: AudioSampleFormat; numberOfChannels: number; numberOfFrames: number; @@ -621,8 +621,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -642,8 +644,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -700,6 +708,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -15547,7 +15556,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -15558,7 +15567,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 193cbb748..852fb1401 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -62,7 +62,7 @@ interface AudioDataCopyToOptions { } interface AudioDataInit { - data: BufferSource; + data: AllowSharedBufferSource; format: AudioSampleFormat; numberOfChannels: number; numberOfFrames: number; @@ -624,8 +624,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase { } interface GPURequestAdapterOptions { + featureLevel?: string; forceFallbackAdapter?: boolean; powerPreference?: GPUPowerPreference; + xrCompatible?: boolean; } interface GPUSamplerBindingLayout { @@ -645,8 +647,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase { mipmapFilter?: GPUMipmapFilterMode; } +interface GPUShaderModuleCompilationHint { + entryPoint: string; + layout?: GPUPipelineLayout | GPUAutoLayoutMode; +} + interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase { code: string; + compilationHints?: GPUShaderModuleCompilationHint[]; } interface GPUStencilFaceState { @@ -703,6 +711,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { dimension?: GPUTextureViewDimension; format?: GPUTextureFormat; mipLevelCount?: GPUIntegerCoordinate; + swizzle?: string; usage?: GPUTextureUsageFlags; } @@ -15550,7 +15559,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat"; type GPUAutoLayoutMode = "auto"; -type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero"; +type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero"; type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract"; type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; @@ -15561,7 +15570,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; -type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/inputfiles/patches/webaudio.kdl b/inputfiles/patches/webaudio.kdl index fbfe7b6b9..91ebca8ee 100644 --- a/inputfiles/patches/webaudio.kdl +++ b/inputfiles/patches/webaudio.kdl @@ -1,6 +1,24 @@ +dictionary OfflineAudioContextOptions { + member length required=#true { + type nullable=#false // Blink only as of 2026-11 + } +} + +interface OfflineAudioContext { + property length { + type nullable=#false // Blink only as of 2026-11 + } +} + removals { dictionary AudioContextOptions { - member renderSizeHint // Blink test only as of 2025-12 - member sinkId // Blink only as of 2025-12 + member renderSizeHint // Blink test only as of 2026-11 + member sinkId // Blink only and WebKit test only as of 2026-11 + } + + interface OfflineAudioContext { + method startRendering signatureIndex=0 { + param chunkSize + } } } diff --git a/inputfiles/patches/webgpu.kdl b/inputfiles/patches/webgpu.kdl index d32dbf326..ea6439949 100644 --- a/inputfiles/patches/webgpu.kdl +++ b/inputfiles/patches/webgpu.kdl @@ -1,31 +1,10 @@ removals { - enum GPUBlendFactor { - one-minus-src1 // Blink only as of 2024-11 - one-minus-src1-alpha // Blink only as of 2024-11 - src1 // Blink only as of 2024-11 - src1-alpha // Blink only as of 2024-11 - } - enum GPUFeatureName { - texture-component-swizzle // Blink only as of 2026-02 - texture-formats-tier2 // Blink only as of 2026-02 - subgroup-size-control // Blink only as of 2026-08 - } - - dictionary GPURequestAdapterOptions { - member featureLevel // Gecko only, Blink experimental only as of 2026-02 - member xrCompatible // WebKit only, Blink experimental only as of 2026-02 - } - - dictionary GPUShaderModuleDescriptor { - member compilationHints // Blink only as of 2024-11 - } - - dictionary GPUTextureViewDescriptor { - member swizzle // Blink only as of 2026-01 + subgroup-size-control // Blink only as of 2026-11 + texture-compression-unaligned // Blink only as of 2026-11 } dictionary GPUTextureDescriptor { - member textureBindingViewDimension // Blink experimental only as of 2026-02 + member textureBindingViewDimension // Blink experimental only as of 2026-11 } } diff --git a/package-lock.json b/package-lock.json index 2566b3dc9..e2904120f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1167,9 +1167,9 @@ "license": "MIT" }, "node_modules/@webref/idl": { - "version": "3.83.0", - "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.83.0.tgz", - "integrity": "sha512-Pb/NhQs3BgbLf1rNhOGMc5xoSqPaaR4Jw8RceBw3gIE8aDQkjTHwD9+KuAH1imFxU0mMubdXOcj1GEkJMwRLGQ==", + "version": "3.83.1", + "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.83.1.tgz", + "integrity": "sha512-Z3b6MzknPTYKhW3cEFQYEJ1UJfIfeZaP5NqHivfeJ1OD/NqQO9nb+OdSo7J/hiTPMfySJVu6OQvLDbFwHzFhaA==", "dev": true, "license": "MIT", "peerDependencies": { From ddef56eb30ad6b131e708a5cbb0d9d90191caf22 Mon Sep 17 00:00:00 2001 From: Ankith Burki <295691623+Ankith-B@users.noreply.github.com> Date: Sun, 8 Nov 2026 12:02:07 -0800 Subject: [PATCH 10/30] Add typed overloads for Performance.getEntriesByType/getEntriesByName (#2572) Co-authored-by: saschanaz --- baselines/dom.generated.d.ts | 12 ++++++ baselines/serviceworker.generated.d.ts | 12 ++++++ baselines/sharedworker.generated.d.ts | 12 ++++++ baselines/ts5.5/dom.generated.d.ts | 12 ++++++ baselines/ts5.5/serviceworker.generated.d.ts | 12 ++++++ baselines/ts5.5/sharedworker.generated.d.ts | 12 ++++++ baselines/ts5.5/webworker.generated.d.ts | 12 ++++++ baselines/ts5.6/dom.generated.d.ts | 12 ++++++ baselines/ts5.6/serviceworker.generated.d.ts | 12 ++++++ baselines/ts5.6/sharedworker.generated.d.ts | 12 ++++++ baselines/ts5.6/webworker.generated.d.ts | 12 ++++++ baselines/ts5.9/dom.generated.d.ts | 12 ++++++ baselines/ts5.9/serviceworker.generated.d.ts | 12 ++++++ baselines/ts5.9/sharedworker.generated.d.ts | 12 ++++++ baselines/ts5.9/webworker.generated.d.ts | 12 ++++++ baselines/webworker.generated.d.ts | 12 ++++++ inputfiles/overridingTypes.jsonc | 41 ++++++++++++++++++++ 17 files changed, 233 insertions(+) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 2c508e7f2..c038bba10 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -28164,12 +28164,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -28519,12 +28525,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index d7381c6b8..b1e6c03f5 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -7498,12 +7498,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -7681,12 +7687,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index f1dfc1096..75c0fc895 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -7118,12 +7118,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -7301,12 +7307,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 9307d77af..ec9cfc4b6 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -28140,12 +28140,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -28495,12 +28501,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 5ecb02e2f..b16c489d2 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -7495,12 +7495,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -7678,12 +7684,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 8bdd31185..9b061cfae 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -7115,12 +7115,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -7298,12 +7304,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index b8ca5a95b..4424f5e9a 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -8397,12 +8397,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -8580,12 +8586,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 8eb267843..f5b6160f0 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -28161,12 +28161,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -28516,12 +28522,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index 5ecb02e2f..b16c489d2 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -7495,12 +7495,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -7678,12 +7684,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 8bdd31185..9b061cfae 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -7115,12 +7115,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -7298,12 +7304,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index b8ca5a95b..4424f5e9a 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -8397,12 +8397,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -8580,12 +8586,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index f3630b6f6..e41c2bdac 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -28161,12 +28161,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -28516,12 +28522,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 0c60a0f3f..6298392e8 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -7495,12 +7495,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -7678,12 +7684,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index 1031e195a..72f770792 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -7115,12 +7115,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -7298,12 +7304,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index 4cf9fd06f..1e0063e27 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -8397,12 +8397,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -8580,12 +8586,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 852fb1401..a4342530c 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -8400,12 +8400,18 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; /** * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline. @@ -8583,12 +8589,18 @@ interface PerformanceObserverEntryList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type: "mark"): PerformanceMark[]; + getEntriesByName(name: string, type: "measure"): PerformanceMeasure[]; + getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[]; getEntriesByName(name: string, type?: string): PerformanceEntryList; /** * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: "mark"): PerformanceMark[]; + getEntriesByType(type: "measure"): PerformanceMeasure[]; + getEntriesByType(type: "resource"): PerformanceResourceTiming[]; getEntriesByType(type: string): PerformanceEntryList; } diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index dd140e04c..24d030c71 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -950,6 +950,47 @@ } } }, + "Performance": { + "methods": { + "method": { + // https://github.com/microsoft/TypeScript/issues/33866 + "getEntriesByName": { + "additionalSignatures": [ + "getEntriesByName(name: string, type: \"mark\"): PerformanceMark[]", + "getEntriesByName(name: string, type: \"measure\"): PerformanceMeasure[]", + "getEntriesByName(name: string, type: \"resource\"): PerformanceResourceTiming[]" + ] + }, + "getEntriesByType": { + "additionalSignatures": [ + "getEntriesByType(type: \"mark\"): PerformanceMark[]", + "getEntriesByType(type: \"measure\"): PerformanceMeasure[]", + "getEntriesByType(type: \"resource\"): PerformanceResourceTiming[]" + ] + } + } + } + }, + "PerformanceObserverEntryList": { + "methods": { + "method": { + "getEntriesByName": { + "additionalSignatures": [ + "getEntriesByName(name: string, type: \"mark\"): PerformanceMark[]", + "getEntriesByName(name: string, type: \"measure\"): PerformanceMeasure[]", + "getEntriesByName(name: string, type: \"resource\"): PerformanceResourceTiming[]" + ] + }, + "getEntriesByType": { + "additionalSignatures": [ + "getEntriesByType(type: \"mark\"): PerformanceMark[]", + "getEntriesByType(type: \"measure\"): PerformanceMeasure[]", + "getEntriesByType(type: \"resource\"): PerformanceResourceTiming[]" + ] + } + } + } + }, "HTMLCanvasElement": { "methods": { "method": { From 81e9d4894b8f58880d64e4c0a97efa708ea4a96e Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 8 Nov 2026 21:27:13 +0100 Subject: [PATCH 11/30] Manually update to idl@3.84.0 (#2586) Co-authored-by: saschanaz --- baselines/dom.generated.d.ts | 18 +++--------------- baselines/ts5.5/dom.generated.d.ts | 18 +++--------------- baselines/ts5.6/dom.generated.d.ts | 18 +++--------------- baselines/ts5.9/dom.generated.d.ts | 18 +++--------------- inputfiles/patches/html.kdl | 6 +++++- inputfiles/patches/webgpu.kdl | 1 + package-lock.json | 6 +++--- 7 files changed, 21 insertions(+), 64 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index c038bba10..c4d3b868a 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -31502,19 +31502,13 @@ declare var Response: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement) */ -interface SVGAElement extends SVGGraphicsElement, SVGURIReference { +interface SVGAElement extends SVGGraphicsElement, HyperlinkElementUtils, SVGURIReference { /** * The **`download`** property of the SVGAElement interface returns a string indicating that the browser should treat the linked URL as a download. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/download) */ download: string; - /** - * The **`hreflang`** property of the SVGAElement interface returns a string indicating the language of the linked resource. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/hreflang) - */ - hreflang: string; /** * The **`ping`** property of the SVGAElement interface returns a string that reflects the ping attribute, containing a space-separated list of URLs to which, when the hyperlink is followed, POST requests with the body PING will be sent by the browser (in the background). Typically used for tracking. * @@ -31541,12 +31535,6 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */ readonly target: SVGAnimatedString; - /** - * The **`type`** property of the SVGAElement interface returns a string indicating the MIME type of the linked resource. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/type) - */ - type: string; addEventListener(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -36430,7 +36418,7 @@ interface SpeechRecognitionResult { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/item) */ - item(index: number): SpeechRecognitionAlternative; + item(index: number): SpeechRecognitionAlternative | null; [index: number]: SpeechRecognitionAlternative; } @@ -36457,7 +36445,7 @@ interface SpeechRecognitionResultList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/item) */ - item(index: number): SpeechRecognitionResult; + item(index: number): SpeechRecognitionResult | null; [index: number]: SpeechRecognitionResult; } diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index ec9cfc4b6..8f12a7391 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -31478,19 +31478,13 @@ declare var Response: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement) */ -interface SVGAElement extends SVGGraphicsElement, SVGURIReference { +interface SVGAElement extends SVGGraphicsElement, HyperlinkElementUtils, SVGURIReference { /** * The **`download`** property of the SVGAElement interface returns a string indicating that the browser should treat the linked URL as a download. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/download) */ download: string; - /** - * The **`hreflang`** property of the SVGAElement interface returns a string indicating the language of the linked resource. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/hreflang) - */ - hreflang: string; /** * The **`ping`** property of the SVGAElement interface returns a string that reflects the ping attribute, containing a space-separated list of URLs to which, when the hyperlink is followed, POST requests with the body PING will be sent by the browser (in the background). Typically used for tracking. * @@ -31516,12 +31510,6 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */ readonly target: SVGAnimatedString; - /** - * The **`type`** property of the SVGAElement interface returns a string indicating the MIME type of the linked resource. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/type) - */ - type: string; addEventListener(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -36405,7 +36393,7 @@ interface SpeechRecognitionResult { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/item) */ - item(index: number): SpeechRecognitionAlternative; + item(index: number): SpeechRecognitionAlternative | null; [index: number]: SpeechRecognitionAlternative; } @@ -36432,7 +36420,7 @@ interface SpeechRecognitionResultList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/item) */ - item(index: number): SpeechRecognitionResult; + item(index: number): SpeechRecognitionResult | null; [index: number]: SpeechRecognitionResult; } diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index f5b6160f0..67dea44d2 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -31499,19 +31499,13 @@ declare var Response: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement) */ -interface SVGAElement extends SVGGraphicsElement, SVGURIReference { +interface SVGAElement extends SVGGraphicsElement, HyperlinkElementUtils, SVGURIReference { /** * The **`download`** property of the SVGAElement interface returns a string indicating that the browser should treat the linked URL as a download. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/download) */ download: string; - /** - * The **`hreflang`** property of the SVGAElement interface returns a string indicating the language of the linked resource. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/hreflang) - */ - hreflang: string; /** * The **`ping`** property of the SVGAElement interface returns a string that reflects the ping attribute, containing a space-separated list of URLs to which, when the hyperlink is followed, POST requests with the body PING will be sent by the browser (in the background). Typically used for tracking. * @@ -31538,12 +31532,6 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */ readonly target: SVGAnimatedString; - /** - * The **`type`** property of the SVGAElement interface returns a string indicating the MIME type of the linked resource. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/type) - */ - type: string; addEventListener(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -36427,7 +36415,7 @@ interface SpeechRecognitionResult { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/item) */ - item(index: number): SpeechRecognitionAlternative; + item(index: number): SpeechRecognitionAlternative | null; [index: number]: SpeechRecognitionAlternative; } @@ -36454,7 +36442,7 @@ interface SpeechRecognitionResultList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/item) */ - item(index: number): SpeechRecognitionResult; + item(index: number): SpeechRecognitionResult | null; [index: number]: SpeechRecognitionResult; } diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index e41c2bdac..6284eb81d 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -31499,19 +31499,13 @@ declare var Response: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement) */ -interface SVGAElement extends SVGGraphicsElement, SVGURIReference { +interface SVGAElement extends SVGGraphicsElement, HyperlinkElementUtils, SVGURIReference { /** * The **`download`** property of the SVGAElement interface returns a string indicating that the browser should treat the linked URL as a download. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/download) */ download: string; - /** - * The **`hreflang`** property of the SVGAElement interface returns a string indicating the language of the linked resource. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/hreflang) - */ - hreflang: string; /** * The **`ping`** property of the SVGAElement interface returns a string that reflects the ping attribute, containing a space-separated list of URLs to which, when the hyperlink is followed, POST requests with the body PING will be sent by the browser (in the background). Typically used for tracking. * @@ -31538,12 +31532,6 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */ readonly target: SVGAnimatedString; - /** - * The **`type`** property of the SVGAElement interface returns a string indicating the MIME type of the linked resource. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/type) - */ - type: string; addEventListener(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -36427,7 +36415,7 @@ interface SpeechRecognitionResult { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/item) */ - item(index: number): SpeechRecognitionAlternative; + item(index: number): SpeechRecognitionAlternative | null; [index: number]: SpeechRecognitionAlternative; } @@ -36454,7 +36442,7 @@ interface SpeechRecognitionResultList { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/item) */ - item(index: number): SpeechRecognitionResult; + item(index: number): SpeechRecognitionResult | null; [index: number]: SpeechRecognitionResult; } diff --git a/inputfiles/patches/html.kdl b/inputfiles/patches/html.kdl index 99670f184..d5eb5769d 100644 --- a/inputfiles/patches/html.kdl +++ b/inputfiles/patches/html.kdl @@ -213,6 +213,10 @@ removals { } dictionary SetHTMLUnsafeOptions { - member runScripts // Blink-only as of 2026-07 + member runScripts // Blink-only as of 2026-11 + } + + dictionary SanitizerConfig { + member javascriptURLs // Gecko-only as of 2026-11 } } diff --git a/inputfiles/patches/webgpu.kdl b/inputfiles/patches/webgpu.kdl index ea6439949..4d0fa5907 100644 --- a/inputfiles/patches/webgpu.kdl +++ b/inputfiles/patches/webgpu.kdl @@ -1,5 +1,6 @@ removals { enum GPUFeatureName { + atomic-vec2u-min-max // Blink only as of 2026-11 subgroup-size-control // Blink only as of 2026-11 texture-compression-unaligned // Blink only as of 2026-11 } diff --git a/package-lock.json b/package-lock.json index e2904120f..bdc6cec9e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1167,9 +1167,9 @@ "license": "MIT" }, "node_modules/@webref/idl": { - "version": "3.83.1", - "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.83.1.tgz", - "integrity": "sha512-Z3b6MzknPTYKhW3cEFQYEJ1UJfIfeZaP5NqHivfeJ1OD/NqQO9nb+OdSo7J/hiTPMfySJVu6OQvLDbFwHzFhaA==", + "version": "3.84.0", + "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.84.0.tgz", + "integrity": "sha512-P0lA2Eyckt/z9Y6GBJyb67g0FEIauoICmFUxeRjBP5X66uvAvb3e19Y3N3uZtDz4wrGJvcfyNCftcgp8JiLbGQ==", "dev": true, "license": "MIT", "peerDependencies": { From d371f15058a81e73e30319c13826f86e6a1c5936 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 8 Nov 2026 21:47:25 +0100 Subject: [PATCH 12/30] Manually update to idl@3.85.0 (#2587) Co-authored-by: saschanaz --- baselines/audioworklet.generated.d.ts | 2 +- baselines/dom.generated.d.ts | 6 +++--- baselines/serviceworker.generated.d.ts | 2 +- baselines/sharedworker.generated.d.ts | 2 +- baselines/ts5.5/audioworklet.generated.d.ts | 2 +- baselines/ts5.5/dom.generated.d.ts | 6 +++--- baselines/ts5.5/serviceworker.generated.d.ts | 2 +- baselines/ts5.5/sharedworker.generated.d.ts | 2 +- baselines/ts5.5/webworker.generated.d.ts | 2 +- baselines/ts5.6/audioworklet.generated.d.ts | 2 +- baselines/ts5.6/dom.generated.d.ts | 6 +++--- baselines/ts5.6/serviceworker.generated.d.ts | 2 +- baselines/ts5.6/sharedworker.generated.d.ts | 2 +- baselines/ts5.6/webworker.generated.d.ts | 2 +- baselines/ts5.9/audioworklet.generated.d.ts | 2 +- baselines/ts5.9/dom.generated.d.ts | 6 +++--- baselines/ts5.9/serviceworker.generated.d.ts | 2 +- baselines/ts5.9/sharedworker.generated.d.ts | 2 +- baselines/ts5.9/webworker.generated.d.ts | 2 +- baselines/webworker.generated.d.ts | 2 +- package-lock.json | 6 +++--- 21 files changed, 31 insertions(+), 31 deletions(-) diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index 130ce5189..ff01f9114 100644 --- a/baselines/audioworklet.generated.d.ts +++ b/baselines/audioworklet.generated.d.ts @@ -2051,7 +2051,7 @@ declare var sampleRate: number; */ declare function registerProcessor(name: string, processorCtor: AudioWorkletProcessorConstructor): void; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type DOMHighResTimeStamp = number; type EventListenerOrEventListenerObject = EventListener | EventListenerObject; type MessageEventSource = MessagePort; diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index c4d3b868a..97455143d 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -3202,7 +3202,7 @@ interface VideoFrameInit { interface ViewTimelineOptions { axis?: ScrollAxis; inset?: string | (CSSNumericValue | CSSKeywordValue)[]; - subject?: Element; + subject: Element; } interface WaveShaperOptions extends AudioNodeOptions { @@ -38962,7 +38962,7 @@ interface ViewTimeline extends ScrollTimeline { declare var ViewTimeline: { prototype: ViewTimeline; - new(options?: ViewTimelineOptions): ViewTimeline; + new(options: ViewTimelineOptions): ViewTimeline; }; /** @@ -45112,7 +45112,7 @@ type BigInteger = Uint8Array; type BlobPart = BufferSource | Blob | string; type BluetoothServiceUUID = string | number; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type COSEAlgorithmIdentifier = number; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index b1e6c03f5..860a0fc65 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -13645,7 +13645,7 @@ type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BlobPart = BufferSource | Blob | string; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 75c0fc895..6196402b4 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -13297,7 +13297,7 @@ type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BlobPart = BufferSource | Blob | string; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; diff --git a/baselines/ts5.5/audioworklet.generated.d.ts b/baselines/ts5.5/audioworklet.generated.d.ts index 9286008c9..7da16f38c 100644 --- a/baselines/ts5.5/audioworklet.generated.d.ts +++ b/baselines/ts5.5/audioworklet.generated.d.ts @@ -2048,7 +2048,7 @@ declare var sampleRate: number; */ declare function registerProcessor(name: string, processorCtor: AudioWorkletProcessorConstructor): void; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type DOMHighResTimeStamp = number; type EventListenerOrEventListenerObject = EventListener | EventListenerObject; type MessageEventSource = MessagePort; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 8f12a7391..f3f8eeda7 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -3199,7 +3199,7 @@ interface VideoFrameInit { interface ViewTimelineOptions { axis?: ScrollAxis; inset?: string | (CSSNumericValue | CSSKeywordValue)[]; - subject?: Element; + subject: Element; } interface WaveShaperOptions extends AudioNodeOptions { @@ -38936,7 +38936,7 @@ interface ViewTimeline extends ScrollTimeline { declare var ViewTimeline: { prototype: ViewTimeline; - new(options?: ViewTimelineOptions): ViewTimeline; + new(options: ViewTimelineOptions): ViewTimeline; }; /** @@ -45086,7 +45086,7 @@ type BigInteger = Uint8Array; type BlobPart = BufferSource | Blob | string; type BluetoothServiceUUID = string | number; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type COSEAlgorithmIdentifier = number; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index b16c489d2..ae0f932be 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -13642,7 +13642,7 @@ type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BigInteger = Uint8Array; type BlobPart = BufferSource | Blob | string; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 9b061cfae..7741045f3 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -13294,7 +13294,7 @@ type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BigInteger = Uint8Array; type BlobPart = BufferSource | Blob | string; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 4424f5e9a..93cf2bfbd 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -15456,7 +15456,7 @@ type BigInteger = Uint8Array; type BlobPart = BufferSource | Blob | string; type BluetoothServiceUUID = string | number; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; diff --git a/baselines/ts5.6/audioworklet.generated.d.ts b/baselines/ts5.6/audioworklet.generated.d.ts index 9286008c9..7da16f38c 100644 --- a/baselines/ts5.6/audioworklet.generated.d.ts +++ b/baselines/ts5.6/audioworklet.generated.d.ts @@ -2048,7 +2048,7 @@ declare var sampleRate: number; */ declare function registerProcessor(name: string, processorCtor: AudioWorkletProcessorConstructor): void; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type DOMHighResTimeStamp = number; type EventListenerOrEventListenerObject = EventListener | EventListenerObject; type MessageEventSource = MessagePort; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 67dea44d2..c0600ef71 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -3199,7 +3199,7 @@ interface VideoFrameInit { interface ViewTimelineOptions { axis?: ScrollAxis; inset?: string | (CSSNumericValue | CSSKeywordValue)[]; - subject?: Element; + subject: Element; } interface WaveShaperOptions extends AudioNodeOptions { @@ -38959,7 +38959,7 @@ interface ViewTimeline extends ScrollTimeline { declare var ViewTimeline: { prototype: ViewTimeline; - new(options?: ViewTimelineOptions): ViewTimeline; + new(options: ViewTimelineOptions): ViewTimeline; }; /** @@ -45109,7 +45109,7 @@ type BigInteger = Uint8Array; type BlobPart = BufferSource | Blob | string; type BluetoothServiceUUID = string | number; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type COSEAlgorithmIdentifier = number; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index b16c489d2..ae0f932be 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -13642,7 +13642,7 @@ type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BigInteger = Uint8Array; type BlobPart = BufferSource | Blob | string; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 9b061cfae..7741045f3 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -13294,7 +13294,7 @@ type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BigInteger = Uint8Array; type BlobPart = BufferSource | Blob | string; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index 4424f5e9a..93cf2bfbd 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -15456,7 +15456,7 @@ type BigInteger = Uint8Array; type BlobPart = BufferSource | Blob | string; type BluetoothServiceUUID = string | number; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; diff --git a/baselines/ts5.9/audioworklet.generated.d.ts b/baselines/ts5.9/audioworklet.generated.d.ts index 5627b21de..da05f1c36 100644 --- a/baselines/ts5.9/audioworklet.generated.d.ts +++ b/baselines/ts5.9/audioworklet.generated.d.ts @@ -2048,7 +2048,7 @@ declare var sampleRate: number; */ declare function registerProcessor(name: string, processorCtor: AudioWorkletProcessorConstructor): void; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type DOMHighResTimeStamp = number; type EventListenerOrEventListenerObject = EventListener | EventListenerObject; type MessageEventSource = MessagePort; diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 6284eb81d..0a061a31b 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -3199,7 +3199,7 @@ interface VideoFrameInit { interface ViewTimelineOptions { axis?: ScrollAxis; inset?: string | (CSSNumericValue | CSSKeywordValue)[]; - subject?: Element; + subject: Element; } interface WaveShaperOptions extends AudioNodeOptions { @@ -38959,7 +38959,7 @@ interface ViewTimeline extends ScrollTimeline { declare var ViewTimeline: { prototype: ViewTimeline; - new(options?: ViewTimelineOptions): ViewTimeline; + new(options: ViewTimelineOptions): ViewTimeline; }; /** @@ -45109,7 +45109,7 @@ type BigInteger = Uint8Array; type BlobPart = BufferSource | Blob | string; type BluetoothServiceUUID = string | number; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type COSEAlgorithmIdentifier = number; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 6298392e8..35314710e 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -13642,7 +13642,7 @@ type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BlobPart = BufferSource | Blob | string; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index 72f770792..e0ad1f750 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -13294,7 +13294,7 @@ type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BlobPart = BufferSource | Blob | string; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index 1e0063e27..5ffcd8379 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -15456,7 +15456,7 @@ type BigInteger = Uint8Array; type BlobPart = BufferSource | Blob | string; type BluetoothServiceUUID = string | number; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index a4342530c..f952895b3 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -15459,7 +15459,7 @@ type BigInteger = Uint8Array; type BlobPart = BufferSource | Blob | string; type BluetoothServiceUUID = string | number; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; -type BufferSource = ArrayBufferView | ArrayBuffer; +type BufferSource = ArrayBuffer | ArrayBufferView; type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; diff --git a/package-lock.json b/package-lock.json index bdc6cec9e..7c9a544a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1167,9 +1167,9 @@ "license": "MIT" }, "node_modules/@webref/idl": { - "version": "3.84.0", - "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.84.0.tgz", - "integrity": "sha512-P0lA2Eyckt/z9Y6GBJyb67g0FEIauoICmFUxeRjBP5X66uvAvb3e19Y3N3uZtDz4wrGJvcfyNCftcgp8JiLbGQ==", + "version": "3.85.0", + "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.85.0.tgz", + "integrity": "sha512-pUflhFMSsZ+uwjxiyFwvzs1q/Y+1a4xps0toQbHgyNXvE9QMC+BpQZxhdX3VAS+OF0349XIezNHUE0V4NWFffw==", "dev": true, "license": "MIT", "peerDependencies": { From fb9789b728520d61758f129d3c1549046b006408 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 8 Nov 2026 22:06:42 +0100 Subject: [PATCH 13/30] Manually update to idl@3.85.1 (#2588) Co-authored-by: saschanaz --- baselines/dom.generated.d.ts | 8 ++++++-- baselines/serviceworker.generated.d.ts | 7 ++++++- baselines/sharedworker.generated.d.ts | 7 ++++++- baselines/ts5.5/dom.generated.d.ts | 8 ++++++-- baselines/ts5.5/serviceworker.generated.d.ts | 7 ++++++- baselines/ts5.5/sharedworker.generated.d.ts | 7 ++++++- baselines/ts5.5/webworker.generated.d.ts | 7 ++++++- baselines/ts5.6/dom.generated.d.ts | 8 ++++++-- baselines/ts5.6/serviceworker.generated.d.ts | 7 ++++++- baselines/ts5.6/sharedworker.generated.d.ts | 7 ++++++- baselines/ts5.6/webworker.generated.d.ts | 7 ++++++- baselines/ts5.9/dom.generated.d.ts | 8 ++++++-- baselines/ts5.9/serviceworker.generated.d.ts | 7 ++++++- baselines/ts5.9/sharedworker.generated.d.ts | 7 ++++++- baselines/ts5.9/webworker.generated.d.ts | 7 ++++++- baselines/webworker.generated.d.ts | 7 ++++++- package-lock.json | 6 +++--- 17 files changed, 99 insertions(+), 23 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 97455143d..0fda81c5b 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -2139,7 +2139,12 @@ interface PublicKeyCredentialUserEntityJSON { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { @@ -2371,7 +2376,6 @@ interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { scalabilityMode?: string; targetBitrate?: number; totalEncodeTime?: number; - totalEncodedBytesTarget?: number; totalPacketSendDelay?: number; } diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 860a0fc65..8bbc7de64 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -890,7 +890,12 @@ interface PushSubscriptionChangeEventInit extends ExtendableEventInit { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 6196402b4..d23d34f4e 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -820,7 +820,12 @@ interface PromiseRejectionEventInit extends EventInit { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index f3f8eeda7..477da8c5f 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -2136,7 +2136,12 @@ interface PublicKeyCredentialUserEntityJSON { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { @@ -2368,7 +2373,6 @@ interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { scalabilityMode?: string; targetBitrate?: number; totalEncodeTime?: number; - totalEncodedBytesTarget?: number; totalPacketSendDelay?: number; } diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index ae0f932be..cbfd85c1d 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -887,7 +887,12 @@ interface PushSubscriptionChangeEventInit extends ExtendableEventInit { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 7741045f3..0d6919560 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -817,7 +817,12 @@ interface PromiseRejectionEventInit extends EventInit { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 93cf2bfbd..b835dd952 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -1016,7 +1016,12 @@ interface PushSubscriptionChangeEventInit extends ExtendableEventInit { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index c0600ef71..a2f8b1776 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -2136,7 +2136,12 @@ interface PublicKeyCredentialUserEntityJSON { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { @@ -2368,7 +2373,6 @@ interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { scalabilityMode?: string; targetBitrate?: number; totalEncodeTime?: number; - totalEncodedBytesTarget?: number; totalPacketSendDelay?: number; } diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index ae0f932be..cbfd85c1d 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -887,7 +887,12 @@ interface PushSubscriptionChangeEventInit extends ExtendableEventInit { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 7741045f3..0d6919560 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -817,7 +817,12 @@ interface PromiseRejectionEventInit extends EventInit { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index 93cf2bfbd..b835dd952 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -1016,7 +1016,12 @@ interface PushSubscriptionChangeEventInit extends ExtendableEventInit { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 0a061a31b..d54217582 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -2136,7 +2136,12 @@ interface PublicKeyCredentialUserEntityJSON { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { @@ -2368,7 +2373,6 @@ interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { scalabilityMode?: string; targetBitrate?: number; totalEncodeTime?: number; - totalEncodedBytesTarget?: number; totalPacketSendDelay?: number; } diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 35314710e..dff22f86d 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -887,7 +887,12 @@ interface PushSubscriptionChangeEventInit extends ExtendableEventInit { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index e0ad1f750..e15c35751 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -817,7 +817,12 @@ interface PromiseRejectionEventInit extends EventInit { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index 5ffcd8379..0727f0fa1 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -1016,7 +1016,12 @@ interface PushSubscriptionChangeEventInit extends ExtendableEventInit { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index f952895b3..e154098d2 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -1019,7 +1019,12 @@ interface PushSubscriptionChangeEventInit extends ExtendableEventInit { interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; - keys?: Record; + keys?: PushSubscriptionKeys; +} + +interface PushSubscriptionKeys { + auth?: string; + p256dh?: string; } interface PushSubscriptionOptionsInit { diff --git a/package-lock.json b/package-lock.json index 7c9a544a2..e7db6b9e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1167,9 +1167,9 @@ "license": "MIT" }, "node_modules/@webref/idl": { - "version": "3.85.0", - "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.85.0.tgz", - "integrity": "sha512-pUflhFMSsZ+uwjxiyFwvzs1q/Y+1a4xps0toQbHgyNXvE9QMC+BpQZxhdX3VAS+OF0349XIezNHUE0V4NWFffw==", + "version": "3.85.1", + "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.85.1.tgz", + "integrity": "sha512-wVV+ZSzLYOY8tGNplkwiLA527kZhO4350tM3VKe8jeVPHT9wjhm3ds+Sx72USdPBY4/TP11ccYClSXxxelE36A==", "dev": true, "license": "MIT", "peerDependencies": { From d2783f7d7dcee1be241db22e07bfaff0c13b034f Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 8 Nov 2026 22:44:57 +0100 Subject: [PATCH 14/30] Manually update to idl@3.86.0 (#2589) Co-authored-by: saschanaz --- baselines/dom.generated.d.ts | 18 ++++++++++++++++++ baselines/ts5.5/dom.generated.d.ts | 18 ++++++++++++++++++ baselines/ts5.6/dom.generated.d.ts | 18 ++++++++++++++++++ baselines/ts5.9/dom.generated.d.ts | 18 ++++++++++++++++++ inputfiles/patches/html.kdl | 9 +++++++++ inputfiles/removedTypes.jsonc | 3 +-- package-lock.json | 6 +++--- 7 files changed, 85 insertions(+), 5 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 0fda81c5b..5ed5290ae 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -20921,6 +20921,12 @@ interface HTMLScriptElement extends HTMLElement { fetchPriority: "high" | "low" | "auto"; /** @deprecated */ htmlFor: string; + /** + * The **`innerText`** property of the HTMLScriptElement interface represents the text content of the