w3c / webref

Machine-readable references of terms defined in web browser specifications
https://w3c.github.io/webref/
MIT License
303 stars 72 forks source link

πŸ“¦ Release @webref/idl@3.55.1 #1351

Closed github-actions[bot] closed 1 month ago

github-actions[bot] commented 1 month ago

⚠ NEVER add commits to this pull request.

πŸ€– This pull request was automatically created to facilitate human review of @webref/idl changes triggered by curated data at c672b6a16827cd512226171327e3e3d6ccdda5ef.

🧐 Please review the diff below and version numbers. If all looks good, merge this pull request to release the changes to npm.

πŸ“¦ Latest released @webref/idl package was v3.55.0. Merging this pull request will release v3.55.1. Make sure that the bump is the right one for the changes.

✍ If any change needs to be made before release, do not add a commit to this pull request. Changes should rather be handled in a separate pull request and pushed to the main branch. You may leave this pull request open in the meantime, or close it. The pre-release job will automatically update this pull request or create a new one once the updates have made their way to the main branch.

πŸ›ˆ The actual change introduced by this pull request is a version bump in packages/idl/package.json. You do not need to review that change. The bumped version is not the version that will be released when this pull request is merged, but rather the version that will be released next time.

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/audio-session.idl packages/idl/audio-session.idl
--- webref/node_modules/@webref/idl/audio-session.idl
+++ packages/idl/audio-session.idl
@@ -3,10 +3,12 @@
 // (https://github.com/w3c/webref)
 // Source: Audio Session (https://w3c.github.io/audio-session/)

-enum AudioSessionState {
-  "inactive",
-  "active",
-  "interrupted"
+[Exposed=Window]
+interface AudioSession : EventTarget {
+  attribute AudioSessionType type;
+
+  readonly attribute AudioSessionState state;
+  attribute EventHandler onstatechange;
 };

 enum AudioSessionType {
@@ -18,16 +20,14 @@
   "play-and-record"
 };

+enum AudioSessionState {
+  "inactive",
+  "active",
+  "interrupted"
+};
+
 [Exposed=Window]
 partial interface Navigator {
   // The default audio session that the user agent will use when media elements start/stop playing.
   readonly attribute AudioSession audioSession;
 };
-
-[Exposed=Window]
-interface AudioSession : EventTarget {
-  attribute AudioSessionType type;
-
-  readonly attribute AudioSessionState state;
-  attribute EventHandler onstatechange;
-};

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/mediacapture-viewport.idl packages/idl/mediacapture-viewport.idl
--- webref/node_modules/@webref/idl/mediacapture-viewport.idl
+++ packages/idl/mediacapture-viewport.idl
@@ -5,10 +5,5 @@

 partial interface MediaDevices {
   Promise<MediaStream> getViewportMedia(
-      optional ViewportMediaStreamConstraints constraints = {});
-};
-
-dictionary ViewportMediaStreamConstraints {
-  (boolean or MediaTrackConstraints) video = true;
-  (boolean or MediaTrackConstraints) audio = false;
+      optional DisplayMediaStreamOptions options = {});
 };

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/mediasession.idl packages/idl/mediasession.idl
--- webref/node_modules/@webref/idl/mediasession.idl
+++ packages/idl/mediasession.idl
@@ -98,17 +98,8 @@

 dictionary MediaSessionActionDetails {
   required MediaSessionAction action;
-};
-
-dictionary MediaSessionSeekActionDetails : MediaSessionActionDetails {
   double seekOffset;
-};
-
-dictionary MediaSessionSeekToActionDetails : MediaSessionActionDetails {
-  required double seekTime;
+  double seekTime;
   boolean fastSeek;
-};
-
-dictionary MediaSessionCaptureActionDetails : MediaSessionActionDetails {
   boolean isActivating;
 };

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/observable.idl packages/idl/observable.idl
--- webref/node_modules/@webref/idl/observable.idl
+++ packages/idl/observable.idl
@@ -81,7 +81,7 @@
   Observable drop(unsigned long long amount);
   Observable flatMap(Mapper mapper);
   Observable switchMap(Mapper mapper);
-  Observable inspect(optional ObservableInspectorUnion inspect_observer = {});
+  Observable inspect(optional ObservableInspectorUnion inspectorUnion = {});
   Observable catch(CatchCallback callback);
   Observable finally(VoidFunction callback);

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/selection-api.idl packages/idl/selection-api.idl
--- webref/node_modules/@webref/idl/selection-api.idl
+++ packages/idl/selection-api.idl
@@ -18,7 +18,7 @@
   undefined removeRange(Range range);
   undefined removeAllRanges();
   undefined empty();
-  sequence<StaticRange> getComposedRanges(ShadowRoot... shadowRoots);
+  sequence<StaticRange> getComposedRanges(optional GetComposedRangesOptions options = {});
   undefined collapse(Node? node, optional unsigned long offset = 0);
   undefined setPosition(Node? node, optional unsigned long offset = 0);
   undefined collapseToStart();
@@ -32,6 +32,10 @@
   stringifier;
 };

+dictionary GetComposedRangesOptions {
+  sequence<ShadowRoot> shadowRoots = [];
+};
+
 partial interface Document {
   Selection? getSelection();
 };

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/service-workers.idl packages/idl/service-workers.idl
--- webref/node_modules/@webref/idl/service-workers.idl
+++ packages/idl/service-workers.idl
@@ -167,6 +167,7 @@

 [Exposed=ServiceWorker]
 interface InstallEvent : ExtendableEvent {
+  constructor(DOMString type, optional ExtendableEventInit eventInitDict = {});
   Promise<undefined> addRoutes((RouterRule or sequence<RouterRule>) rules);
 };

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/shared-storage.idl packages/idl/shared-storage.idl
--- webref/node_modules/@webref/idl/shared-storage.idl
+++ packages/idl/shared-storage.idl
@@ -89,6 +89,7 @@
   boolean resolveToConfig = false;
   boolean keepAlive = false;
   SharedStoragePrivateAggregationConfig privateAggregationConfig;
+  DOMString savedQuery;
 };

 dictionary SharedStorageWorkletOptions : WorkletOptions {

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/turtledove.idl packages/idl/turtledove.idl
--- webref/node_modules/@webref/idl/turtledove.idl
+++ packages/idl/turtledove.idl
@@ -128,14 +128,20 @@
   Promise<AdAuctionData> getInterestGroupAdAuctionData(AdAuctionDataConfig config);
 };

+dictionary AdAuctionData {
+  required Uint8Array request;
+  required USVString requestId;
+};
+
 dictionary AdAuctionDataConfig {
   required USVString seller;
   required USVString coordinatorOrigin;
+  unsigned long requestSize;
+  record<USVString, AdAuctionDataBuyerConfig> perBuyerConfig;
 };

-dictionary AdAuctionData {
-  required Uint8Array request;
-  required USVString requestId;
+dictionary AdAuctionDataBuyerConfig {
+  unsigned long targetSize;
 };

 [SecureContext]

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/webgpu.idl packages/idl/webgpu.idl
--- webref/node_modules/@webref/idl/webgpu.idl
+++ packages/idl/webgpu.idl
@@ -78,7 +78,7 @@
 };

 dictionary GPURequestAdapterOptions {
-    any featureLevel;
+    DOMString featureLevel;
     GPUPowerPreference powerPreference;
     boolean forceFallbackAdapter = false;
 };
@@ -1183,6 +1183,7 @@
     undefined configure(GPUCanvasConfiguration configuration);
     undefined unconfigure();

+    GPUCanvasConfiguration? getConfiguration();
     GPUTexture getCurrentTexture();
 };

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/webnn.idl packages/idl/webnn.idl
--- webref/node_modules/@webref/idl/webnn.idl
+++ packages/idl/webnn.idl
@@ -90,7 +90,7 @@

 dictionary MLOperandDescriptor {
   required MLOperandDataType dataType;
-  sequence<[EnforceRange] unsigned long> shape = [];
+  required sequence<[EnforceRange] unsigned long> shape;
 };

 [SecureContext, Exposed=(Window, DedicatedWorker)]

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/webrtc.idl packages/idl/webrtc.idl
--- webref/node_modules/@webref/idl/webrtc.idl
+++ packages/idl/webrtc.idl
@@ -503,7 +503,7 @@
   "closed"
 };

-[Exposed=Window]
+[Exposed=(Window,DedicatedWorker), Transferable]
 interface RTCDataChannel : EventTarget {
   readonly attribute USVString label;
   readonly attribute boolean ordered;