From 2272d648489aea444991f70c8871f059d0468286 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 8 Oct 2023 19:02:04 +0200 Subject: [PATCH] Manually update to idl@3.39.1, bcd@5.3.21 --- baselines/dom.generated.d.ts | 25 +++++++++++-------------- baselines/serviceworker.generated.d.ts | 21 ++++++--------------- baselines/sharedworker.generated.d.ts | 21 ++++++--------------- baselines/webworker.generated.d.ts | 26 +++++++++++--------------- inputfiles/addedTypes.jsonc | 26 ++++++++++++++++++++++++++ inputfiles/removedTypes.jsonc | 26 +++++++++++++++++++++----- package-lock.json | 12 ++++++------ 7 files changed, 87 insertions(+), 70 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index c84b54167..c7f0d01b2 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -534,7 +534,6 @@ interface FontFaceDescriptors { stretch?: string; style?: string; unicodeRange?: string; - variant?: string; weight?: string; } @@ -1000,27 +999,16 @@ interface NavigationPreloadState { headerValue?: string; } -interface NotificationAction { - action: string; - icon?: string; - title: string; -} - interface NotificationOptions { - actions?: NotificationAction[]; badge?: string; body?: string; data?: any; dir?: NotificationDirection; icon?: string; - image?: string; lang?: string; - renotify?: boolean; requireInteraction?: boolean; silent?: boolean | null; tag?: string; - timestamp?: EpochTimeStamp; - vibrate?: VibratePattern; } interface OfflineAudioCompletionEventInit extends EventInit { @@ -1330,16 +1318,21 @@ interface RTCDtlsFingerprint { interface RTCEncodedAudioFrameMetadata { contributingSources?: number[]; + payloadType?: number; + sequenceNumber?: number; synchronizationSource?: number; } interface RTCEncodedVideoFrameMetadata { + contributingSources?: number[]; dependencies?: number[]; frameId?: number; height?: number; + payloadType?: number; spatialIndex?: number; synchronizationSource?: number; temporalIndex?: number; + timestamp?: number; width?: number; } @@ -5492,6 +5485,10 @@ interface CanvasTextDrawingStyles { font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ fontKerning: CanvasFontKerning; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ + fontStretch: CanvasFontStretch; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ + fontVariantCaps: CanvasFontVariantCaps; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ letterSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ @@ -8535,8 +8532,6 @@ interface FontFace { style: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ unicodeRange: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variant) */ - variant: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ weight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ @@ -16414,6 +16409,8 @@ interface Notification extends EventTarget { onerror: ((this: Notification, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */ onshow: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */ + readonly requireInteraction: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */ readonly silent: boolean | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */ diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 6e0827725..e3f71ed77 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -230,7 +230,6 @@ interface FontFaceDescriptors { stretch?: string; style?: string; unicodeRange?: string; - variant?: string; weight?: string; } @@ -395,32 +394,21 @@ interface NavigationPreloadState { headerValue?: string; } -interface NotificationAction { - action: string; - icon?: string; - title: string; -} - interface NotificationEventInit extends ExtendableEventInit { action?: string; notification: Notification; } interface NotificationOptions { - actions?: NotificationAction[]; badge?: string; body?: string; data?: any; dir?: NotificationDirection; icon?: string; - image?: string; lang?: string; - renotify?: boolean; requireInteraction?: boolean; silent?: boolean | null; tag?: string; - timestamp?: EpochTimeStamp; - vibrate?: VibratePattern; } interface Pbkdf2Params extends Algorithm { @@ -1528,6 +1516,10 @@ interface CanvasTextDrawingStyles { font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ fontKerning: CanvasFontKerning; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ + fontStretch: CanvasFontStretch; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ + fontVariantCaps: CanvasFontVariantCaps; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ letterSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ @@ -2696,8 +2688,6 @@ interface FontFace { style: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ unicodeRange: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variant) */ - variant: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ weight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ @@ -3878,6 +3868,8 @@ interface Notification extends EventTarget { onerror: ((this: Notification, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */ onshow: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */ + readonly requireInteraction: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */ readonly silent: boolean | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */ @@ -8583,7 +8575,6 @@ type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type Uint32List = Uint32Array | GLuint[]; -type VibratePattern = number | number[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type BinaryType = "arraybuffer" | "blob"; type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum"; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 1f8092469..3d96a29d1 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -205,7 +205,6 @@ interface FontFaceDescriptors { stretch?: string; style?: string; unicodeRange?: string; - variant?: string; weight?: string; } @@ -370,27 +369,16 @@ interface NavigationPreloadState { headerValue?: string; } -interface NotificationAction { - action: string; - icon?: string; - title: string; -} - interface NotificationOptions { - actions?: NotificationAction[]; badge?: string; body?: string; data?: any; dir?: NotificationDirection; icon?: string; - image?: string; lang?: string; - renotify?: boolean; requireInteraction?: boolean; silent?: boolean | null; tag?: string; - timestamp?: EpochTimeStamp; - vibrate?: VibratePattern; } interface Pbkdf2Params extends Algorithm { @@ -1500,6 +1488,10 @@ interface CanvasTextDrawingStyles { font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ fontKerning: CanvasFontKerning; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ + fontStretch: CanvasFontStretch; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ + fontVariantCaps: CanvasFontVariantCaps; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ letterSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ @@ -2585,8 +2577,6 @@ interface FontFace { style: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ unicodeRange: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variant) */ - variant: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ weight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ @@ -3767,6 +3757,8 @@ interface Notification extends EventTarget { onerror: ((this: Notification, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */ onshow: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */ + readonly requireInteraction: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */ readonly silent: boolean | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */ @@ -8591,7 +8583,6 @@ type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type Uint32List = Uint32Array | GLuint[]; -type VibratePattern = number | number[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type BinaryType = "arraybuffer" | "blob"; type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 80a46f03a..ef5955153 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -249,7 +249,6 @@ interface FontFaceDescriptors { stretch?: string; style?: string; unicodeRange?: string; - variant?: string; weight?: string; } @@ -414,32 +413,21 @@ interface NavigationPreloadState { headerValue?: string; } -interface NotificationAction { - action: string; - icon?: string; - title: string; -} - interface NotificationEventInit extends ExtendableEventInit { action?: string; notification: Notification; } interface NotificationOptions { - actions?: NotificationAction[]; badge?: string; body?: string; data?: any; dir?: NotificationDirection; icon?: string; - image?: string; lang?: string; - renotify?: boolean; requireInteraction?: boolean; silent?: boolean | null; tag?: string; - timestamp?: EpochTimeStamp; - vibrate?: VibratePattern; } interface Pbkdf2Params extends Algorithm { @@ -517,16 +505,21 @@ interface QueuingStrategyInit { interface RTCEncodedAudioFrameMetadata { contributingSources?: number[]; + payloadType?: number; + sequenceNumber?: number; synchronizationSource?: number; } interface RTCEncodedVideoFrameMetadata { + contributingSources?: number[]; dependencies?: number[]; frameId?: number; height?: number; + payloadType?: number; spatialIndex?: number; synchronizationSource?: number; temporalIndex?: number; + timestamp?: number; width?: number; } @@ -1664,6 +1657,10 @@ interface CanvasTextDrawingStyles { font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ fontKerning: CanvasFontKerning; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ + fontStretch: CanvasFontStretch; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ + fontVariantCaps: CanvasFontVariantCaps; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ letterSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ @@ -2951,8 +2948,6 @@ interface FontFace { style: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ unicodeRange: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variant) */ - variant: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ weight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ @@ -4133,6 +4128,8 @@ interface Notification extends EventTarget { onerror: ((this: Notification, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */ onshow: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */ + readonly requireInteraction: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */ readonly silent: boolean | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */ @@ -9308,7 +9305,6 @@ type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer; type Uint32List = Uint32Array | GLuint[]; -type VibratePattern = number | number[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AlphaOption = "discard" | "keep"; type AvcBitstreamFormat = "annexb" | "avc"; diff --git a/inputfiles/addedTypes.jsonc b/inputfiles/addedTypes.jsonc index dce7677b9..78afa9fb6 100644 --- a/inputfiles/addedTypes.jsonc +++ b/inputfiles/addedTypes.jsonc @@ -1030,6 +1030,32 @@ "OVR_multiview2": { "overrideExposed": "Window Worker" }, + // The spec removed `timestamp` but browsers still have it. + // https://github.com/w3c/webrtc-encoded-transform/pull/204 + "RTCEncodedAudioFrame": { + "properties": { + "property": { + "timestamp": { + "mdnUrl": "https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp", + "name": "timestamp", + "type": "long long", + "readonly": true + } + } + } + }, + "RTCEncodedVideoFrame": { + "properties": { + "property": { + "timestamp": { + "mdnUrl": "https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp", + "name": "timestamp", + "type": "long long", + "readonly": true + } + } + } + }, "RTCDTMFSender": { "events": { "event": [ diff --git a/inputfiles/removedTypes.jsonc b/inputfiles/removedTypes.jsonc index 4c12b5ba1..ca0a76931 100644 --- a/inputfiles/removedTypes.jsonc +++ b/inputfiles/removedTypes.jsonc @@ -442,6 +442,18 @@ } } }, + "NotificationOptions": { + "members": { + "member": { + // All Blink only as of 2023-10 + "actions": null, + "image": null, + "renotify": null, + "timestamp": null, + "vibrate": null + } + } + }, "OfflineAudioContextOptions": { "members": { "member": { @@ -504,17 +516,14 @@ "RTCEncodedAudioFrameMetadata": { "members": { "member": { - "payloadType": null, // Blink only as of 2023-02 - "sequenceNumber": null // Blink only as of 2023-02 + "rtpTimestamp": null // Blink only as of 2023-10 } } }, "RTCEncodedVideoFrameMetadata": { "members": { "member": { - "contributingSources": null, // Blink only as of 2023-05 - "payloadType": null, // Blink only as of 2023-05 - "timestamp": null // No implementation as of 2023-05 + "rtpTimestamp": null // Blink only as of 2023-10 } } }, @@ -601,6 +610,13 @@ } } }, + "Transformer": { + "members": { + "member": { + "cancel": null // No implementation as of 2023-10 + } + } + }, "UIEventInit": { "members": { "member": { diff --git a/package-lock.json b/package-lock.json index 79347a362..f5652a445 100644 --- a/package-lock.json +++ b/package-lock.json @@ -225,9 +225,9 @@ "dev": true }, "node_modules/@mdn/browser-compat-data": { - "version": "5.3.19", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.3.19.tgz", - "integrity": "sha512-3k0I0sqa9vyO1z687O4hfoeXnTIf68WI0UBksBj0GPbXdNrOA4VOntP08jtvuaTG7yYHRVXSyoA9xRWxSGv3mw==", + "version": "5.3.21", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.3.21.tgz", + "integrity": "sha512-0MTNMfRvhzksN+XOtXikglAzXIiMQW1JzOZxOz0ymL7LFxX5orVdg8zrlLkgF/3s55Zb7xRadFs15LxpgtD36g==", "dev": true }, "node_modules/@nodelib/fs.scandir": { @@ -891,9 +891,9 @@ "dev": true }, "node_modules/@webref/idl": { - "version": "3.39.0", - "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.39.0.tgz", - "integrity": "sha512-N3kAuh2yWybvHmKPI1T8NrNxllAwpAAg9qUq+pYTfY1L7ElsOV/4L4UWGt5wT8Rx5ZF+hf3kNZYMWWpvdRB5BQ==", + "version": "3.39.1", + "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.39.1.tgz", + "integrity": "sha512-dKPhh8b6LOL4p8NQjLwSovu5db4P7Fxkl7t6QnuG6e8EdztmD2jJYFV/d6nDaK/WBNFSZxssqJTT2EfJLVcphw==", "dev": true, "peerDependencies": { "webidl2": "^24.4.1"