From 1413c882b77569099448a697c2b5536b0ba15c5d Mon Sep 17 00:00:00 2001 From: orta <49038+orta@users.noreply.github.com> Date: Wed, 4 Jun 2025 08:12:05 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Update=20core=20dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- baselines/dom.generated.d.ts | 70 ++++++++++++++++--- baselines/dom.iterable.generated.d.ts | 15 ++++ baselines/serviceworker.generated.d.ts | 51 ++++++++++++-- .../serviceworker.iterable.generated.d.ts | 15 ++++ baselines/sharedworker.generated.d.ts | 8 +-- baselines/ts5.5/dom.generated.d.ts | 70 ++++++++++++++++--- baselines/ts5.5/dom.iterable.generated.d.ts | 15 ++++ baselines/ts5.5/serviceworker.generated.d.ts | 51 ++++++++++++-- .../serviceworker.iterable.generated.d.ts | 15 ++++ baselines/ts5.5/sharedworker.generated.d.ts | 8 +-- baselines/ts5.5/webworker.generated.d.ts | 49 +++++++++++-- .../ts5.5/webworker.iterable.generated.d.ts | 15 ++++ baselines/ts5.6/dom.generated.d.ts | 70 ++++++++++++++++--- baselines/ts5.6/dom.iterable.generated.d.ts | 15 ++++ baselines/ts5.6/serviceworker.generated.d.ts | 51 ++++++++++++-- .../serviceworker.iterable.generated.d.ts | 15 ++++ baselines/ts5.6/sharedworker.generated.d.ts | 8 +-- baselines/ts5.6/webworker.generated.d.ts | 49 +++++++++++-- .../ts5.6/webworker.iterable.generated.d.ts | 15 ++++ baselines/webworker.generated.d.ts | 49 +++++++++++-- baselines/webworker.iterable.generated.d.ts | 15 ++++ inputfiles/mdn | 2 +- package-lock.json | 18 ++--- 23 files changed, 619 insertions(+), 70 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index f9132eb15..80eb864f2 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -545,6 +545,7 @@ interface DeviceOrientationEventInit extends EventInit { interface DisplayMediaStreamOptions { audio?: boolean | MediaTrackConstraints; video?: boolean | MediaTrackConstraints; + windowAudio?: WindowAudioPreferenceEnum; } interface DocumentTimelineOptions { @@ -5079,7 +5080,7 @@ declare var CSSMathClamp: { }; /** - * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / ).` It inherits properties and methods from its parent CSSNumericValue. + * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / )`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ @@ -6621,6 +6622,7 @@ interface CSSStyleDeclaration { vectorEffect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ verticalAlign: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-class) */ viewTransitionClass: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */ viewTransitionName: string; @@ -8279,6 +8281,38 @@ declare var CookieStore: { new(): CookieStore; }; +/** + * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager) + */ +interface CookieStoreManager { + /** + * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions) + */ + getSubscriptions(): Promise; + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: CookieStoreGetOptions[]): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise; +} + +declare var CookieStoreManager: { + prototype: CookieStoreManager; + new(): CookieStoreManager; +}; + /** * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. * @@ -10691,7 +10725,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp */ id: string; /** - * The Element property **`innerHTML`** gets or sets the HTML or XML markup contained within the element. + * The **`innerHTML`** property of the Element interface gets or sets the HTML or XML markup contained within the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */ @@ -12634,6 +12668,7 @@ interface GlobalEventHandlersEventMap { "pointermove": PointerEvent; "pointerout": PointerEvent; "pointerover": PointerEvent; + "pointerrawupdate": Event; "pointerup": PointerEvent; "progress": ProgressEvent; "ratechange": Event; @@ -12805,6 +12840,12 @@ interface GlobalEventHandlers { onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event) + */ + onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */ @@ -17393,14 +17434,14 @@ interface HTMLTextAreaElement extends HTMLElement { */ setCustomValidity(error: string): void; /** - * The **`setRangeText()`** method of the HTMLTextAreaElement interface replaces a range of text in an textarea element with new text passed as the argument. + * The **`setRangeText()`** method of the HTMLTextAreaElement interface replaces a range of text in a textarea element with new text passed as the argument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText) */ setRangeText(replacement: string): void; setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void; /** - * The **`setSelectionRange()`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in an textarea element. + * The **`setSelectionRange()`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in a textarea element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange) */ @@ -24096,7 +24137,7 @@ declare var ProcessingInstruction: { }; /** - * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). + * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) */ @@ -24108,14 +24149,14 @@ interface ProgressEvent extends Event { */ readonly lengthComputable: boolean; /** - * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed. + * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ readonly loaded: number; readonly target: T | null; /** - * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed. + * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ @@ -30569,6 +30610,12 @@ interface ServiceWorkerRegistration extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */ readonly active: ServiceWorker | null; + /** + * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies) + */ + readonly cookies: CookieStoreManager; /** * The **`installing`** read-only property of the initially set to `null`. * @@ -30671,7 +30718,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { */ readonly host: Element; /** - * The **`innerHTML`** property of the ShadowRoot interface sets or returns a reference to the DOM tree inside the `ShadowRoot`. + * The **`innerHTML`** property of the ShadowRoot interface sets gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) */ @@ -38893,6 +38940,12 @@ declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null; declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event) + */ +declare var onpointerrawupdate: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */ @@ -39338,6 +39391,7 @@ type WakeLockType = "screen"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WindowAudioPreferenceEnum = "exclude" | "system" | "window"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/baselines/dom.iterable.generated.d.ts b/baselines/dom.iterable.generated.d.ts index 6b1d4b353..1c7b0f4eb 100644 --- a/baselines/dom.iterable.generated.d.ts +++ b/baselines/dom.iterable.generated.d.ts @@ -81,6 +81,21 @@ interface CanvasPathDrawingStyles { setLineDash(segments: Iterable): void; } +interface CookieStoreManager { + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: Iterable): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: Iterable): Promise; +} + interface CustomStateSet extends Set { } diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 995c512ac..b3d504fc6 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -1111,7 +1111,7 @@ declare var CSSMathClamp: { }; /** - * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / ).` It inherits properties and methods from its parent CSSNumericValue. + * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / )`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ @@ -2182,6 +2182,38 @@ declare var CookieStore: { new(): CookieStore; }; +/** + * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager) + */ +interface CookieStoreManager { + /** + * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions) + */ + getSubscriptions(): Promise; + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: CookieStoreGetOptions[]): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise; +} + +declare var CookieStoreManager: { + prototype: CookieStoreManager; + new(): CookieStoreManager; +}; + /** * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. * @@ -6025,7 +6057,7 @@ declare var Permissions: { }; /** - * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). + * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) */ @@ -6037,14 +6069,14 @@ interface ProgressEvent extends Event { */ readonly lengthComputable: boolean; /** - * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed. + * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ readonly loaded: number; readonly target: T | null; /** - * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed. + * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ @@ -6945,6 +6977,7 @@ declare var ServiceWorkerContainer: { interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "activate": ExtendableEvent; + "cookiechange": ExtendableCookieChangeEvent; "fetch": FetchEvent; "install": ExtendableEvent; "message": ExtendableMessageEvent; @@ -6976,6 +7009,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope { readonly cookieStore: CookieStore; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */ onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */ + oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */ onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */ @@ -7038,6 +7073,12 @@ interface ServiceWorkerRegistration extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */ readonly active: ServiceWorker | null; + /** + * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies) + */ + readonly cookies: CookieStoreManager; /** * The **`installing`** read-only property of the initially set to `null`. * @@ -11162,6 +11203,8 @@ declare var clients: Clients; declare var cookieStore: CookieStore; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */ declare var onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */ +declare var oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */ declare var onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */ diff --git a/baselines/serviceworker.iterable.generated.d.ts b/baselines/serviceworker.iterable.generated.d.ts index 40277158b..885601c39 100644 --- a/baselines/serviceworker.iterable.generated.d.ts +++ b/baselines/serviceworker.iterable.generated.d.ts @@ -42,6 +42,21 @@ interface CanvasPathDrawingStyles { setLineDash(segments: Iterable): void; } +interface CookieStoreManager { + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: Iterable): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: Iterable): Promise; +} + interface DOMStringList { [Symbol.iterator](): ArrayIterator; } diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index f0253d978..48c6e9e26 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -1047,7 +1047,7 @@ declare var CSSMathClamp: { }; /** - * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / ).` It inherits properties and methods from its parent CSSNumericValue. + * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / )`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ @@ -5715,7 +5715,7 @@ declare var Permissions: { }; /** - * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). + * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) */ @@ -5727,14 +5727,14 @@ interface ProgressEvent extends Event { */ readonly lengthComputable: boolean; /** - * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed. + * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ readonly loaded: number; readonly target: T | null; /** - * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed. + * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 3947cf61e..9b952b710 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -545,6 +545,7 @@ interface DeviceOrientationEventInit extends EventInit { interface DisplayMediaStreamOptions { audio?: boolean | MediaTrackConstraints; video?: boolean | MediaTrackConstraints; + windowAudio?: WindowAudioPreferenceEnum; } interface DocumentTimelineOptions { @@ -5076,7 +5077,7 @@ declare var CSSMathClamp: { }; /** - * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / ).` It inherits properties and methods from its parent CSSNumericValue. + * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / )`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ @@ -6615,6 +6616,7 @@ interface CSSStyleDeclaration { vectorEffect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ verticalAlign: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-class) */ viewTransitionClass: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */ viewTransitionName: string; @@ -8272,6 +8274,38 @@ declare var CookieStore: { new(): CookieStore; }; +/** + * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager) + */ +interface CookieStoreManager { + /** + * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions) + */ + getSubscriptions(): Promise; + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: CookieStoreGetOptions[]): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise; +} + +declare var CookieStoreManager: { + prototype: CookieStoreManager; + new(): CookieStoreManager; +}; + /** * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. * @@ -10683,7 +10717,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp */ id: string; /** - * The Element property **`innerHTML`** gets or sets the HTML or XML markup contained within the element. + * The **`innerHTML`** property of the Element interface gets or sets the HTML or XML markup contained within the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */ @@ -12624,6 +12658,7 @@ interface GlobalEventHandlersEventMap { "pointermove": PointerEvent; "pointerout": PointerEvent; "pointerover": PointerEvent; + "pointerrawupdate": Event; "pointerup": PointerEvent; "progress": ProgressEvent; "ratechange": Event; @@ -12795,6 +12830,12 @@ interface GlobalEventHandlers { onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event) + */ + onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */ @@ -17373,14 +17414,14 @@ interface HTMLTextAreaElement extends HTMLElement { */ setCustomValidity(error: string): void; /** - * The **`setRangeText()`** method of the HTMLTextAreaElement interface replaces a range of text in an textarea element with new text passed as the argument. + * The **`setRangeText()`** method of the HTMLTextAreaElement interface replaces a range of text in a textarea element with new text passed as the argument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText) */ setRangeText(replacement: string): void; setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void; /** - * The **`setSelectionRange()`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in an textarea element. + * The **`setSelectionRange()`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in a textarea element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange) */ @@ -24076,7 +24117,7 @@ declare var ProcessingInstruction: { }; /** - * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). + * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) */ @@ -24088,14 +24129,14 @@ interface ProgressEvent extends Event { */ readonly lengthComputable: boolean; /** - * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed. + * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ readonly loaded: number; readonly target: T | null; /** - * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed. + * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ @@ -30548,6 +30589,12 @@ interface ServiceWorkerRegistration extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */ readonly active: ServiceWorker | null; + /** + * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies) + */ + readonly cookies: CookieStoreManager; /** * The **`installing`** read-only property of the initially set to `null`. * @@ -30650,7 +30697,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { */ readonly host: Element; /** - * The **`innerHTML`** property of the ShadowRoot interface sets or returns a reference to the DOM tree inside the `ShadowRoot`. + * The **`innerHTML`** property of the ShadowRoot interface sets gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) */ @@ -38871,6 +38918,12 @@ declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null; declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event) + */ +declare var onpointerrawupdate: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */ @@ -39316,6 +39369,7 @@ type WakeLockType = "screen"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WindowAudioPreferenceEnum = "exclude" | "system" | "window"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/baselines/ts5.5/dom.iterable.generated.d.ts b/baselines/ts5.5/dom.iterable.generated.d.ts index e051cb79c..3bf93bb9a 100644 --- a/baselines/ts5.5/dom.iterable.generated.d.ts +++ b/baselines/ts5.5/dom.iterable.generated.d.ts @@ -81,6 +81,21 @@ interface CanvasPathDrawingStyles { setLineDash(segments: Iterable): void; } +interface CookieStoreManager { + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: Iterable): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: Iterable): Promise; +} + interface CustomStateSet extends Set { } diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 912d71753..9f57524ea 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -1111,7 +1111,7 @@ declare var CSSMathClamp: { }; /** - * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / ).` It inherits properties and methods from its parent CSSNumericValue. + * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / )`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ @@ -2182,6 +2182,38 @@ declare var CookieStore: { new(): CookieStore; }; +/** + * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager) + */ +interface CookieStoreManager { + /** + * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions) + */ + getSubscriptions(): Promise; + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: CookieStoreGetOptions[]): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise; +} + +declare var CookieStoreManager: { + prototype: CookieStoreManager; + new(): CookieStoreManager; +}; + /** * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. * @@ -6025,7 +6057,7 @@ declare var Permissions: { }; /** - * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). + * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) */ @@ -6037,14 +6069,14 @@ interface ProgressEvent extends Event { */ readonly lengthComputable: boolean; /** - * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed. + * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ readonly loaded: number; readonly target: T | null; /** - * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed. + * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ @@ -6945,6 +6977,7 @@ declare var ServiceWorkerContainer: { interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "activate": ExtendableEvent; + "cookiechange": ExtendableCookieChangeEvent; "fetch": FetchEvent; "install": ExtendableEvent; "message": ExtendableMessageEvent; @@ -6976,6 +7009,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope { readonly cookieStore: CookieStore; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */ onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */ + oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */ onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */ @@ -7038,6 +7073,12 @@ interface ServiceWorkerRegistration extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */ readonly active: ServiceWorker | null; + /** + * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies) + */ + readonly cookies: CookieStoreManager; /** * The **`installing`** read-only property of the initially set to `null`. * @@ -11162,6 +11203,8 @@ declare var clients: Clients; declare var cookieStore: CookieStore; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */ declare var onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */ +declare var oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */ declare var onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */ diff --git a/baselines/ts5.5/serviceworker.iterable.generated.d.ts b/baselines/ts5.5/serviceworker.iterable.generated.d.ts index 67222cddc..c76fd5572 100644 --- a/baselines/ts5.5/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.5/serviceworker.iterable.generated.d.ts @@ -42,6 +42,21 @@ interface CanvasPathDrawingStyles { setLineDash(segments: Iterable): void; } +interface CookieStoreManager { + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: Iterable): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: Iterable): Promise; +} + interface DOMStringList { [Symbol.iterator](): IterableIterator; } diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index b3813fa11..bda7b21d2 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -1047,7 +1047,7 @@ declare var CSSMathClamp: { }; /** - * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / ).` It inherits properties and methods from its parent CSSNumericValue. + * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / )`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ @@ -5715,7 +5715,7 @@ declare var Permissions: { }; /** - * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). + * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) */ @@ -5727,14 +5727,14 @@ interface ProgressEvent extends Event { */ readonly lengthComputable: boolean; /** - * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed. + * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ readonly loaded: number; readonly target: T | null; /** - * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed. + * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 5e70f5c8b..d6805f5c0 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -1579,7 +1579,7 @@ declare var CSSMathClamp: { }; /** - * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / ).` It inherits properties and methods from its parent CSSNumericValue. + * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / )`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ @@ -2650,6 +2650,38 @@ declare var CookieStore: { new(): CookieStore; }; +/** + * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager) + */ +interface CookieStoreManager { + /** + * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions) + */ + getSubscriptions(): Promise; + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: CookieStoreGetOptions[]): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise; +} + +declare var CookieStoreManager: { + prototype: CookieStoreManager; + new(): CookieStoreManager; +}; + /** * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. * @@ -6886,7 +6918,7 @@ declare var Permissions: { }; /** - * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). + * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) */ @@ -6898,14 +6930,14 @@ interface ProgressEvent extends Event { */ readonly lengthComputable: boolean; /** - * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed. + * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ readonly loaded: number; readonly target: T | null; /** - * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed. + * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ @@ -8047,6 +8079,7 @@ declare var ServiceWorkerContainer: { interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "activate": ExtendableEvent; + "cookiechange": ExtendableCookieChangeEvent; "fetch": FetchEvent; "install": ExtendableEvent; "message": ExtendableMessageEvent; @@ -8078,6 +8111,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope { readonly cookieStore: CookieStore; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */ onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */ + oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */ onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */ @@ -8140,6 +8175,12 @@ interface ServiceWorkerRegistration extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */ readonly active: ServiceWorker | null; + /** + * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies) + */ + readonly cookies: CookieStoreManager; /** * The **`installing`** read-only property of the initially set to `null`. * diff --git a/baselines/ts5.5/webworker.iterable.generated.d.ts b/baselines/ts5.5/webworker.iterable.generated.d.ts index 509daee7d..6187ec770 100644 --- a/baselines/ts5.5/webworker.iterable.generated.d.ts +++ b/baselines/ts5.5/webworker.iterable.generated.d.ts @@ -42,6 +42,21 @@ interface CanvasPathDrawingStyles { setLineDash(segments: Iterable): void; } +interface CookieStoreManager { + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: Iterable): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: Iterable): Promise; +} + interface DOMStringList { [Symbol.iterator](): IterableIterator; } diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index f79bd10d9..2cbab26c2 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -545,6 +545,7 @@ interface DeviceOrientationEventInit extends EventInit { interface DisplayMediaStreamOptions { audio?: boolean | MediaTrackConstraints; video?: boolean | MediaTrackConstraints; + windowAudio?: WindowAudioPreferenceEnum; } interface DocumentTimelineOptions { @@ -5079,7 +5080,7 @@ declare var CSSMathClamp: { }; /** - * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / ).` It inherits properties and methods from its parent CSSNumericValue. + * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / )`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ @@ -6621,6 +6622,7 @@ interface CSSStyleDeclaration { vectorEffect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ verticalAlign: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-class) */ viewTransitionClass: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */ viewTransitionName: string; @@ -8279,6 +8281,38 @@ declare var CookieStore: { new(): CookieStore; }; +/** + * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager) + */ +interface CookieStoreManager { + /** + * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions) + */ + getSubscriptions(): Promise; + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: CookieStoreGetOptions[]): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise; +} + +declare var CookieStoreManager: { + prototype: CookieStoreManager; + new(): CookieStoreManager; +}; + /** * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. * @@ -10691,7 +10725,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp */ id: string; /** - * The Element property **`innerHTML`** gets or sets the HTML or XML markup contained within the element. + * The **`innerHTML`** property of the Element interface gets or sets the HTML or XML markup contained within the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */ @@ -12634,6 +12668,7 @@ interface GlobalEventHandlersEventMap { "pointermove": PointerEvent; "pointerout": PointerEvent; "pointerover": PointerEvent; + "pointerrawupdate": Event; "pointerup": PointerEvent; "progress": ProgressEvent; "ratechange": Event; @@ -12805,6 +12840,12 @@ interface GlobalEventHandlers { onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event) + */ + onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */ @@ -17393,14 +17434,14 @@ interface HTMLTextAreaElement extends HTMLElement { */ setCustomValidity(error: string): void; /** - * The **`setRangeText()`** method of the HTMLTextAreaElement interface replaces a range of text in an textarea element with new text passed as the argument. + * The **`setRangeText()`** method of the HTMLTextAreaElement interface replaces a range of text in a textarea element with new text passed as the argument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText) */ setRangeText(replacement: string): void; setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void; /** - * The **`setSelectionRange()`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in an textarea element. + * The **`setSelectionRange()`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in a textarea element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange) */ @@ -24096,7 +24137,7 @@ declare var ProcessingInstruction: { }; /** - * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). + * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) */ @@ -24108,14 +24149,14 @@ interface ProgressEvent extends Event { */ readonly lengthComputable: boolean; /** - * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed. + * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ readonly loaded: number; readonly target: T | null; /** - * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed. + * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ @@ -30569,6 +30610,12 @@ interface ServiceWorkerRegistration extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */ readonly active: ServiceWorker | null; + /** + * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies) + */ + readonly cookies: CookieStoreManager; /** * The **`installing`** read-only property of the initially set to `null`. * @@ -30671,7 +30718,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { */ readonly host: Element; /** - * The **`innerHTML`** property of the ShadowRoot interface sets or returns a reference to the DOM tree inside the `ShadowRoot`. + * The **`innerHTML`** property of the ShadowRoot interface sets gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) */ @@ -38893,6 +38940,12 @@ declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null; declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event) + */ +declare var onpointerrawupdate: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */ @@ -39338,6 +39391,7 @@ type WakeLockType = "screen"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WindowAudioPreferenceEnum = "exclude" | "system" | "window"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/baselines/ts5.6/dom.iterable.generated.d.ts b/baselines/ts5.6/dom.iterable.generated.d.ts index 198c79712..f26da3b31 100644 --- a/baselines/ts5.6/dom.iterable.generated.d.ts +++ b/baselines/ts5.6/dom.iterable.generated.d.ts @@ -81,6 +81,21 @@ interface CanvasPathDrawingStyles { setLineDash(segments: Iterable): void; } +interface CookieStoreManager { + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: Iterable): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: Iterable): Promise; +} + interface CustomStateSet extends Set { } diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index 912d71753..9f57524ea 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -1111,7 +1111,7 @@ declare var CSSMathClamp: { }; /** - * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / ).` It inherits properties and methods from its parent CSSNumericValue. + * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / )`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ @@ -2182,6 +2182,38 @@ declare var CookieStore: { new(): CookieStore; }; +/** + * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager) + */ +interface CookieStoreManager { + /** + * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions) + */ + getSubscriptions(): Promise; + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: CookieStoreGetOptions[]): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise; +} + +declare var CookieStoreManager: { + prototype: CookieStoreManager; + new(): CookieStoreManager; +}; + /** * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. * @@ -6025,7 +6057,7 @@ declare var Permissions: { }; /** - * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). + * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) */ @@ -6037,14 +6069,14 @@ interface ProgressEvent extends Event { */ readonly lengthComputable: boolean; /** - * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed. + * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ readonly loaded: number; readonly target: T | null; /** - * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed. + * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ @@ -6945,6 +6977,7 @@ declare var ServiceWorkerContainer: { interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "activate": ExtendableEvent; + "cookiechange": ExtendableCookieChangeEvent; "fetch": FetchEvent; "install": ExtendableEvent; "message": ExtendableMessageEvent; @@ -6976,6 +7009,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope { readonly cookieStore: CookieStore; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */ onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */ + oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */ onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */ @@ -7038,6 +7073,12 @@ interface ServiceWorkerRegistration extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */ readonly active: ServiceWorker | null; + /** + * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies) + */ + readonly cookies: CookieStoreManager; /** * The **`installing`** read-only property of the initially set to `null`. * @@ -11162,6 +11203,8 @@ declare var clients: Clients; declare var cookieStore: CookieStore; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */ declare var onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */ +declare var oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */ declare var onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */ diff --git a/baselines/ts5.6/serviceworker.iterable.generated.d.ts b/baselines/ts5.6/serviceworker.iterable.generated.d.ts index 8f68e7af5..42cff0599 100644 --- a/baselines/ts5.6/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.6/serviceworker.iterable.generated.d.ts @@ -42,6 +42,21 @@ interface CanvasPathDrawingStyles { setLineDash(segments: Iterable): void; } +interface CookieStoreManager { + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: Iterable): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: Iterable): Promise; +} + interface DOMStringList { [Symbol.iterator](): ArrayIterator; } diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index b3813fa11..bda7b21d2 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -1047,7 +1047,7 @@ declare var CSSMathClamp: { }; /** - * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / ).` It inherits properties and methods from its parent CSSNumericValue. + * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / )`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ @@ -5715,7 +5715,7 @@ declare var Permissions: { }; /** - * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). + * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) */ @@ -5727,14 +5727,14 @@ interface ProgressEvent extends Event { */ readonly lengthComputable: boolean; /** - * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed. + * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ readonly loaded: number; readonly target: T | null; /** - * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed. + * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index 5e70f5c8b..d6805f5c0 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -1579,7 +1579,7 @@ declare var CSSMathClamp: { }; /** - * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / ).` It inherits properties and methods from its parent CSSNumericValue. + * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / )`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ @@ -2650,6 +2650,38 @@ declare var CookieStore: { new(): CookieStore; }; +/** + * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager) + */ +interface CookieStoreManager { + /** + * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions) + */ + getSubscriptions(): Promise; + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: CookieStoreGetOptions[]): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise; +} + +declare var CookieStoreManager: { + prototype: CookieStoreManager; + new(): CookieStoreManager; +}; + /** * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. * @@ -6886,7 +6918,7 @@ declare var Permissions: { }; /** - * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). + * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) */ @@ -6898,14 +6930,14 @@ interface ProgressEvent extends Event { */ readonly lengthComputable: boolean; /** - * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed. + * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ readonly loaded: number; readonly target: T | null; /** - * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed. + * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ @@ -8047,6 +8079,7 @@ declare var ServiceWorkerContainer: { interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "activate": ExtendableEvent; + "cookiechange": ExtendableCookieChangeEvent; "fetch": FetchEvent; "install": ExtendableEvent; "message": ExtendableMessageEvent; @@ -8078,6 +8111,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope { readonly cookieStore: CookieStore; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */ onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */ + oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */ onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */ @@ -8140,6 +8175,12 @@ interface ServiceWorkerRegistration extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */ readonly active: ServiceWorker | null; + /** + * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies) + */ + readonly cookies: CookieStoreManager; /** * The **`installing`** read-only property of the initially set to `null`. * diff --git a/baselines/ts5.6/webworker.iterable.generated.d.ts b/baselines/ts5.6/webworker.iterable.generated.d.ts index 25b901d3c..ef19855d0 100644 --- a/baselines/ts5.6/webworker.iterable.generated.d.ts +++ b/baselines/ts5.6/webworker.iterable.generated.d.ts @@ -42,6 +42,21 @@ interface CanvasPathDrawingStyles { setLineDash(segments: Iterable): void; } +interface CookieStoreManager { + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: Iterable): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: Iterable): Promise; +} + interface DOMStringList { [Symbol.iterator](): ArrayIterator; } diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index c80434dcc..6079928bb 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -1579,7 +1579,7 @@ declare var CSSMathClamp: { }; /** - * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / ).` It inherits properties and methods from its parent CSSNumericValue. + * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / )`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ @@ -2650,6 +2650,38 @@ declare var CookieStore: { new(): CookieStore; }; +/** + * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager) + */ +interface CookieStoreManager { + /** + * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions) + */ + getSubscriptions(): Promise; + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: CookieStoreGetOptions[]): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise; +} + +declare var CookieStoreManager: { + prototype: CookieStoreManager; + new(): CookieStoreManager; +}; + /** * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. * @@ -6886,7 +6918,7 @@ declare var Permissions: { }; /** - * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). + * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) */ @@ -6898,14 +6930,14 @@ interface ProgressEvent extends Event { */ readonly lengthComputable: boolean; /** - * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed. + * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ readonly loaded: number; readonly target: T | null; /** - * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed. + * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ @@ -8047,6 +8079,7 @@ declare var ServiceWorkerContainer: { interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "activate": ExtendableEvent; + "cookiechange": ExtendableCookieChangeEvent; "fetch": FetchEvent; "install": ExtendableEvent; "message": ExtendableMessageEvent; @@ -8078,6 +8111,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope { readonly cookieStore: CookieStore; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */ onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */ + oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */ onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */ @@ -8140,6 +8175,12 @@ interface ServiceWorkerRegistration extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */ readonly active: ServiceWorker | null; + /** + * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies) + */ + readonly cookies: CookieStoreManager; /** * The **`installing`** read-only property of the initially set to `null`. * diff --git a/baselines/webworker.iterable.generated.d.ts b/baselines/webworker.iterable.generated.d.ts index 1ff95ec31..2885e0d8b 100644 --- a/baselines/webworker.iterable.generated.d.ts +++ b/baselines/webworker.iterable.generated.d.ts @@ -42,6 +42,21 @@ interface CanvasPathDrawingStyles { setLineDash(segments: Iterable): void; } +interface CookieStoreManager { + /** + * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) + */ + subscribe(subscriptions: Iterable): Promise; + /** + * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) + */ + unsubscribe(subscriptions: Iterable): Promise; +} + interface DOMStringList { [Symbol.iterator](): ArrayIterator; } diff --git a/inputfiles/mdn b/inputfiles/mdn index 364a4d02b..5972b3bca 160000 --- a/inputfiles/mdn +++ b/inputfiles/mdn @@ -1 +1 @@ -Subproject commit 364a4d02b10854ab7cef4ff4b0ec3616d4e1c8ab +Subproject commit 5972b3bca23954d676bfbb29cafc822a75ca08aa diff --git a/package-lock.json b/package-lock.json index 284a87e03..c49d0b448 100644 --- a/package-lock.json +++ b/package-lock.json @@ -355,9 +355,9 @@ } }, "node_modules/@mdn/browser-compat-data": { - "version": "6.0.16", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-6.0.16.tgz", - "integrity": "sha512-j8VB83nzHFhRyu48V3DRpWySUfMuvbbJ1Cu/yIMadfnn5ZhfC45+NxAKGq3CntSSGTLOsSwbujbFxmFRJekasQ==", + "version": "6.0.20", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-6.0.20.tgz", + "integrity": "sha512-y4lC62dRr5m292FqEvCyCxJwGUo/CK8iS/IqfI886J1V+nFD9+SO9H6SJpNHyR7iDA2z7lyhWXag631Yg6a5mQ==", "dev": true, "license": "CC0-1.0" }, @@ -1340,9 +1340,9 @@ } }, "node_modules/@webref/css": { - "version": "6.21.2", - "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.21.2.tgz", - "integrity": "sha512-lC7sXgmDTyzOfaHip/XlelGOoINKA88MvN8yfn29/pl5sAWYVpekdxIfFQ4nTN97CgZDjrN5eOBAtQdzfM2xkQ==", + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.22.0.tgz", + "integrity": "sha512-GDY4aPOD+m9pntMfzpbXa1XEMc+wcXBuX1ok1OPrNhcdj1PcZrbZji8Y6wM4z6Dhdm4sjNHxzLS5zvrft4Lr4Q==", "dev": true, "license": "MIT", "peerDependencies": { @@ -1364,9 +1364,9 @@ "license": "MIT" }, "node_modules/@webref/idl": { - "version": "3.64.0", - "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.64.0.tgz", - "integrity": "sha512-cNSin5QAkddjOOk8PeqUqyUDo+wTIyVazaGXjXrxQhTcXva3nIn+ac+rLiBgMLRirHCB5+6MDRkjmVx1rBkfkQ==", + "version": "3.64.2", + "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.64.2.tgz", + "integrity": "sha512-1vVt/FI6JHMif70hgc2sKRL63l5PzkufOr51gRQTYyiJGOWjaeYkuv0UjWfT939iXail3lH0zpUaGhGXfGKLbw==", "dev": true, "license": "MIT", "peerDependencies": {