diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 25212cfce..a306998c0 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -1101,7 +1101,10 @@ interface MediaTrackSettings { noiseSuppression?: boolean; sampleRate?: number; sampleSize?: number; + torch?: boolean; + whiteBalanceMode?: string; width?: number; + zoom?: number; } interface MediaTrackSupportedConstraints { @@ -1709,6 +1712,9 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { trackIdentifier: string; } +interface RTCLocalIceCandidateInit extends RTCIceCandidateInit { +} + interface RTCLocalSessionDescriptionInit { sdp?: string; type?: RTCSdpType; @@ -15275,7 +15281,7 @@ interface ImageData { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data) */ - readonly data: Uint8ClampedArray; + readonly data: ImageDataArray; /** * Returns the actual dimensions of the data in the ImageData object, in pixels. * @@ -15293,7 +15299,7 @@ interface ImageData { declare var ImageData: { prototype: ImageData; new(sw: number, sh: number, settings?: ImageDataSettings): ImageData; - new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; + new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; }; /** @@ -19247,7 +19253,7 @@ interface RTCIceCandidate { declare var RTCIceCandidate: { prototype: RTCIceCandidate; - new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate; + new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate; }; interface RTCIceCandidatePair { @@ -29674,6 +29680,7 @@ type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; type ImageBitmapSource = CanvasImageSource | Blob | ImageData; type ImageBufferSource = AllowSharedBufferSource | ReadableStream; +type ImageDataArray = Uint8ClampedArray; type Int32List = Int32Array | GLint[]; type LineAndPositionSetting = number | AutoKeyword; type MediaProvider = MediaStream | MediaSource | Blob; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 9e9187f9d..bbff45bdd 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -3689,7 +3689,7 @@ interface ImageData { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data) */ - readonly data: Uint8ClampedArray; + readonly data: ImageDataArray; /** * Returns the actual dimensions of the data in the ImageData object, in pixels. * @@ -3707,7 +3707,7 @@ interface ImageData { declare var ImageData: { prototype: ImageData; new(sw: number, sh: number, settings?: ImageDataSettings): ImageData; - new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; + new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; }; interface ImportMeta { @@ -8743,6 +8743,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; type ImageBitmapSource = CanvasImageSource | Blob | ImageData; +type ImageDataArray = Uint8ClampedArray; type Int32List = Int32Array | GLint[]; type MessageEventSource = MessagePort | ServiceWorker; type NamedCurve = string; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 02ce26b81..2cef8ac92 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -3508,7 +3508,7 @@ interface ImageData { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data) */ - readonly data: Uint8ClampedArray; + readonly data: ImageDataArray; /** * Returns the actual dimensions of the data in the ImageData object, in pixels. * @@ -3526,7 +3526,7 @@ interface ImageData { declare var ImageData: { prototype: ImageData; new(sw: number, sh: number, settings?: ImageDataSettings): ImageData; - new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; + new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; }; interface ImportMeta { @@ -8666,6 +8666,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; type ImageBitmapSource = CanvasImageSource | Blob | ImageData; +type ImageDataArray = Uint8ClampedArray; type Int32List = Int32Array | GLint[]; type MessageEventSource = MessagePort | ServiceWorker; type NamedCurve = string; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 951901df9..ae9f33142 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -1101,7 +1101,10 @@ interface MediaTrackSettings { noiseSuppression?: boolean; sampleRate?: number; sampleSize?: number; + torch?: boolean; + whiteBalanceMode?: string; width?: number; + zoom?: number; } interface MediaTrackSupportedConstraints { @@ -1709,6 +1712,9 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { trackIdentifier: string; } +interface RTCLocalIceCandidateInit extends RTCIceCandidateInit { +} + interface RTCLocalSessionDescriptionInit { sdp?: string; type?: RTCSdpType; @@ -15255,7 +15261,7 @@ interface ImageData { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data) */ - readonly data: Uint8ClampedArray; + readonly data: ImageDataArray; /** * Returns the actual dimensions of the data in the ImageData object, in pixels. * @@ -15273,7 +15279,7 @@ interface ImageData { declare var ImageData: { prototype: ImageData; new(sw: number, sh: number, settings?: ImageDataSettings): ImageData; - new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; + new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; }; /** @@ -19227,7 +19233,7 @@ interface RTCIceCandidate { declare var RTCIceCandidate: { prototype: RTCIceCandidate; - new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate; + new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate; }; interface RTCIceCandidatePair { @@ -29652,6 +29658,7 @@ type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; type ImageBitmapSource = CanvasImageSource | Blob | ImageData; type ImageBufferSource = AllowSharedBufferSource | ReadableStream; +type ImageDataArray = Uint8ClampedArray; type Int32List = Int32Array | GLint[]; type LineAndPositionSetting = number | AutoKeyword; type MediaProvider = MediaStream | MediaSource | Blob; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 9e9187f9d..bbff45bdd 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -3689,7 +3689,7 @@ interface ImageData { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data) */ - readonly data: Uint8ClampedArray; + readonly data: ImageDataArray; /** * Returns the actual dimensions of the data in the ImageData object, in pixels. * @@ -3707,7 +3707,7 @@ interface ImageData { declare var ImageData: { prototype: ImageData; new(sw: number, sh: number, settings?: ImageDataSettings): ImageData; - new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; + new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; }; interface ImportMeta { @@ -8743,6 +8743,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; type ImageBitmapSource = CanvasImageSource | Blob | ImageData; +type ImageDataArray = Uint8ClampedArray; type Int32List = Int32Array | GLint[]; type MessageEventSource = MessagePort | ServiceWorker; type NamedCurve = string; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 02ce26b81..2cef8ac92 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -3508,7 +3508,7 @@ interface ImageData { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data) */ - readonly data: Uint8ClampedArray; + readonly data: ImageDataArray; /** * Returns the actual dimensions of the data in the ImageData object, in pixels. * @@ -3526,7 +3526,7 @@ interface ImageData { declare var ImageData: { prototype: ImageData; new(sw: number, sh: number, settings?: ImageDataSettings): ImageData; - new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; + new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; }; interface ImportMeta { @@ -8666,6 +8666,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; type ImageBitmapSource = CanvasImageSource | Blob | ImageData; +type ImageDataArray = Uint8ClampedArray; type Int32List = Int32Array | GLint[]; type MessageEventSource = MessagePort | ServiceWorker; type NamedCurve = string; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 196af85d1..d71479ad8 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -4179,7 +4179,7 @@ interface ImageData { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data) */ - readonly data: Uint8ClampedArray; + readonly data: ImageDataArray; /** * Returns the actual dimensions of the data in the ImageData object, in pixels. * @@ -4197,7 +4197,7 @@ interface ImageData { declare var ImageData: { prototype: ImageData; new(sw: number, sh: number, settings?: ImageDataSettings): ImageData; - new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; + new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; }; /** @@ -9858,6 +9858,7 @@ type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; type ImageBitmapSource = CanvasImageSource | Blob | ImageData; type ImageBufferSource = AllowSharedBufferSource | ReadableStream; +type ImageDataArray = Uint8ClampedArray; type Int32List = Int32Array | GLint[]; type MessageEventSource = MessagePort | ServiceWorker; type NamedCurve = string; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 196af85d1..d71479ad8 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -4179,7 +4179,7 @@ interface ImageData { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data) */ - readonly data: Uint8ClampedArray; + readonly data: ImageDataArray; /** * Returns the actual dimensions of the data in the ImageData object, in pixels. * @@ -4197,7 +4197,7 @@ interface ImageData { declare var ImageData: { prototype: ImageData; new(sw: number, sh: number, settings?: ImageDataSettings): ImageData; - new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; + new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; }; /** @@ -9858,6 +9858,7 @@ type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; type ImageBitmapSource = CanvasImageSource | Blob | ImageData; type ImageBufferSource = AllowSharedBufferSource | ReadableStream; +type ImageDataArray = Uint8ClampedArray; type Int32List = Int32Array | GLint[]; type MessageEventSource = MessagePort | ServiceWorker; type NamedCurve = string; diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index 54b76e393..bddb10553 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -1945,6 +1945,12 @@ } } }, + // XXX: Float16Array is esnext-only as of 2025-04 + // Not sure what to do here, for now disable it. + "Float16Array": { + "exposed": "", + "name": "Float16Array" + }, "HTMLButtonElement": { "properties": { "property": { @@ -2088,9 +2094,12 @@ "WebTransportDatagramDuplexStream": { "properties": { "property": { - // WebTransportDatagramsWritable is not implemented by anyone as of 2025-03 + // https://github.com/w3c/webtransport/pull/638 removed this but browsers still has this "writable": { - "type": "WritableStream" + "name": "writable", + "type": "WritableStream", + "readonly": true, + "mdnUrl": "https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable" } } } @@ -3700,7 +3709,7 @@ } }, "dictionaries": { - "dictionary": { + "dictionary": { "FontFaceDescriptors": { "members": { "member": { diff --git a/inputfiles/removedTypes.jsonc b/inputfiles/removedTypes.jsonc index 2cceaf507..209e0d32c 100644 --- a/inputfiles/removedTypes.jsonc +++ b/inputfiles/removedTypes.jsonc @@ -398,6 +398,13 @@ } } }, + "ImageDataSettings": { + "members": { + "member": { + "pixelFormat": null // Blink experimental only as of 2025-04 + } + } + }, "IntersectionObserverInit": { "members": { "member": { @@ -531,19 +538,19 @@ // Gecko: https://searchfox.org/mozilla-central/source/dom/webidl/MediaTrackSettings.webidl // WebKit: https://searchfox.org/wubkat/source/Source/WebCore/Modules/mediastream/MediaStreamTrack.idl // Blink: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/mediastream/media_track_settings.idl - "latency": null, // Blink only as of 2022-11 - "resizeMode": null, // Blink only as of 2022-11 + "latency": null, // Blink only as of 2025-04 + "resizeMode": null, // Blink only as of 2025-04 // Screen Share extensions // https://w3c.github.io/mediacapture-screen-share/#mediadevices-additions - "cursor": null, // Blink only as of 2022-11 - "logicalSurface": null, // Blink only as of 2022-11 - "restrictOwnAudio": null, // Blink only as of 2022-11 - "suppressLocalAudioPlayback": null, // Blink only as of 2022-11 + "cursor": null, // Blink only as of 2025-04 + "logicalSurface": null, // Blink only as of 2025-04 + "restrictOwnAudio": null, // Blink only as of 2025-04 + "suppressLocalAudioPlayback": null, // Blink only as of 2025-04s + "screenPixelRatio": null, // Blink only as of 2025-04 - // Image Capture extensions which are Blink only as of 2022-11 + // Image Capture extensions which are Blink only as of 2025-04 // https://w3c.github.io/mediacapture-image/#mediatrackcapabilities-section - "whiteBalanceMode": null, "exposureMode": null, "focusMode": null, "pointsOfInterest": null, @@ -557,9 +564,7 @@ "sharpness": null, "focusDistance": null, "pan": null, - "tilt": null, - "zoom": null, - "torch": null + "tilt": null } } }, @@ -754,11 +759,30 @@ } } }, + "RTCLocalIceCandidateInit": { + "members": { + "member": { + "relayProtocol": null, // Blink only as of 2025-04 + "url": null // Blink only as of 2025-04 + } + } + }, "RTCOutboundRtpStreamStats": { "members": { "member": { - "powerEfficientEncoder": null, // Blink only as of 2024-11 - "encoderImplementation": null // Blink only as of 2024-11 + "powerEfficientEncoder": null, // Blink only as of 2025-04 + "encoderImplementation": null, // Blink only as of 2025-04 + "encodingIndex": null // Blink only as of 2025-04 + } + } + }, + "RTCReceivedRtpStreamStats": { + "members": { + "member": { + "packetsReceivedWithCe": null, // No implementation as of 2025-04 + "packetsReceivedWithEct1": null, // No implementation as of 2025-04 + "packetsReportedAsLost": null, // No implementation as of 2025-04 + "packetsReportedAsLostButRecovered": null // No implementation as of 2025-04 } } }, @@ -770,6 +794,21 @@ } } }, + "RTCSentRtpStreamStats": { + "members": { + "member": { + "packetsSentWithEct1": null // No implementation as of 2025-04 + } + } + }, + "RTCTransportStats": { + "members": { + "member": { + "ccfbMessagesReceived": null, // No implementation as of 2025-04 + "ccfbMessagesSent": null // No implementation as of 2025-04 + } + } + }, "ScrollIntoViewOptions": { "members": { "member": { diff --git a/package-lock.json b/package-lock.json index 1e9fbfcf7..d64e7950e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1160,9 +1160,9 @@ } }, "node_modules/@webref/css": { - "version": "6.20.5", - "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.20.5.tgz", - "integrity": "sha512-2w9aBbulYLMKbe6IMA4UwVw7WTElL8Kes7dbwoffG46mVJrE084FFyeeZZpojatep398BFc6oF29/r9Z8zgr8w==", + "version": "6.20.7", + "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.20.7.tgz", + "integrity": "sha512-0w1wEMFpY1sDwQPHgeB5L7u7vQxUHc9cIA87itCRjdoba5aiMVCl0gMlJ2/mvV0YNK9lYHrEfirvpJj28Apzwg==", "dev": true, "license": "MIT", "peerDependencies": { @@ -1177,16 +1177,16 @@ "license": "MIT" }, "node_modules/@webref/events": { - "version": "1.18.3", - "resolved": "https://registry.npmjs.org/@webref/events/-/events-1.18.3.tgz", - "integrity": "sha512-piywAqV2OfoQ6E/5v2F5lLIodpLIrOy10lqAGUfrKXPrwrW2L+OYr1UK6ATmmN0X5FYFN+Vw7/yv1AqgxU+3qA==", + "version": "1.18.5", + "resolved": "https://registry.npmjs.org/@webref/events/-/events-1.18.5.tgz", + "integrity": "sha512-i07Ec0ps5L01OPlVL5DhPca3GzertegD+bHmHsHIXAC2QxcfHk2sX/wBFWMl5tKWd2sGBWkDh3G/LTLfYqhNHA==", "dev": true, "license": "MIT" }, "node_modules/@webref/idl": { - "version": "3.61.2", - "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.61.2.tgz", - "integrity": "sha512-P8Pu08DNz6niw3Emwxgt6H6+OTWwFTDfyFdMRP/rZC5gCQBtYYgWnVxWeKInPO3w8aPXMxwNgEO2Gc9Fj1utmw==", + "version": "3.61.4", + "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.61.4.tgz", + "integrity": "sha512-eJ2QXwKGEtboToty6W+MCKpTZWer67YSl7rdoh7GyKazrm4UTIJa/XBAV+uxoxBy2M3m3vNofXRX4bLlFcyTNQ==", "dev": true, "license": "MIT", "peerDependencies": {