From 4d34d6d2aa813555adab859d28d2389672c28474 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Tue, 25 Jun 2024 23:31:39 +0200 Subject: [PATCH] Update to webref/idl@3.48.0 (#1745) Co-authored-by: saschanaz --- baselines/dom.generated.d.ts | 10 +++++----- inputfiles/overridingTypes.jsonc | 23 +++++++++++++++++------ inputfiles/removedTypes.jsonc | 12 +++++++----- package-lock.json | 6 +++--- 4 files changed, 32 insertions(+), 19 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 6e4d8020a..363420428 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -1362,11 +1362,6 @@ interface RTCIceCandidateInit { usernameFragment?: string | null; } -interface RTCIceCandidatePair { - local: RTCIceCandidate; - remote: RTCIceCandidate; -} - interface RTCIceCandidatePairStats extends RTCStats { availableIncomingBitrate?: number; availableOutgoingBitrate?: number; @@ -18356,6 +18351,11 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate; }; +interface RTCIceCandidatePair { + local: RTCIceCandidate; + remote: RTCIceCandidate; +} + interface RTCIceTransportEventMap { "gatheringstatechange": Event; "selectedcandidatepairchange": Event; diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index 416f88377..fb7f5f193 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -2086,6 +2086,23 @@ ] } }, + "RTCIceCandidatePair": { + // https://github.com/w3c/webrtc-pc/pull/2961 made this from dictionary to interface, + // but nobody did the change as of 2024-06. + // For now let's roll this back to the dictionary form. + "exposed": "Window", + "noInterfaceObject": true, + "properties": { + "property": { + "local": { + "readonly": false + }, + "remote": { + "readonly": false + } + } + } + }, "RTCPeerConnection": { "events": { "event": [ @@ -3122,12 +3139,6 @@ ] } }, - "MIDIInputMap": { - "iterator": { - // https://github.com/mdn/browser-compat-data/pull/18352 - "exposed": "Window" - } - }, "MIDIPort": { "events": { "event": [ diff --git a/inputfiles/removedTypes.jsonc b/inputfiles/removedTypes.jsonc index 2e03456ca..ac9900968 100644 --- a/inputfiles/removedTypes.jsonc +++ b/inputfiles/removedTypes.jsonc @@ -23,10 +23,11 @@ "value": [ "enterpictureinpicture", // Blink only as of 2023-10 "hangup", // Blink only as of 2022-09 - "nextslide", // No implementation as of 2022-09 - "previousslide", // No implementation as of 2022-09 + "nextslide", // Blink only as of as of 2024-06 + "previousslide", // Blink only as of as of 2024-06 "togglecamera", // Blink only as of 2022-09 - "togglemicrophone" // Blink only as of 2022-09 + "togglemicrophone", // Blink only as of 2022-09 + "togglescreenshare" // No implementation as of 2022-09 ] }, "RequestDestination": { @@ -234,8 +235,9 @@ "CredentialCreationOptions": { "members": { "member": { - "federated": null, - "password": null + "federated": null, // Blink only as of 2024-06 + "password": null, // Blink only as of 2024-06 + "mediation": null // WebKit only as of 2024-06 } } }, diff --git a/package-lock.json b/package-lock.json index 463298129..94db86243 100644 --- a/package-lock.json +++ b/package-lock.json @@ -752,9 +752,9 @@ "dev": true }, "node_modules/@webref/idl": { - "version": "3.47.4", - "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.47.4.tgz", - "integrity": "sha512-4/pKm2OdG89mavtX+R4+05g6N3gsO/ZTQvzzuXQypCQeBX9MFr88yvRyU1F5iZHRS9EdO8FQnNq6DxPqCAb4Rg==", + "version": "3.48.0", + "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.48.0.tgz", + "integrity": "sha512-FySqCAZdpcC545ZX/2zx/qgn9KsOLVN48czsX0S6XVqFvoxFMFLo2cJopR5Gk9nfzqBJFlcBzp7bANbGHIp82w==", "dev": true, "peerDependencies": { "webidl2": "^24.4.1"