Skip to content

πŸ“¦ Release @webref/[email protected] #990

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 9, 2023

⚠ 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 041300a.

🧐 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.34.4. Merging this pull request will release v3.35.0. 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/FedCM.idl packages/idl/FedCM.idl
--- webref/node_modules/@webref/idl/FedCM.idl
+++ packages/idl/FedCM.idl
@@ -12,14 +12,23 @@
   IdentityCredentialRequestOptions identity;
 };
 
+enum IdentityCredentialRequestOptionsContext {
+  "signin",
+  "signup",
+  "use",
+  "continue"
+};
+
 dictionary IdentityCredentialRequestOptions {
   sequence<IdentityProviderConfig> providers;
+  IdentityCredentialRequestOptionsContext context = "signin";
 };
 
 dictionary IdentityProviderConfig {
   required USVString configURL;
   required USVString clientId;
   USVString nonce;
+  DOMString loginHint;
 };
 
 dictionary IdentityProviderWellKnown {
@@ -52,6 +61,7 @@
   USVString given_name;
   USVString picture;
   sequence<USVString> approved_clients;
+  sequence<DOMString> login_hints;
 };
 dictionary IdentityProviderAccountList {
   sequence<IdentityProviderAccount> accounts;
@@ -65,3 +75,14 @@
   USVString privacy_policy_url;
   USVString terms_of_service_url;
 };
+
+dictionary IdentityUserInfo {
+  USVString email;
+  USVString name;
+  USVString givenName;
+  USVString picture;
+};
+
+[Exposed=Window, SecureContext] interface IdentityProvider {
+    static Promise<sequence<IdentityUserInfo>> getUserInfo(IdentityProviderConfig config);
+};

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/document-picture-in-picture.idl packages/idl/document-picture-in-picture.idl
--- webref/node_modules/@webref/idl/document-picture-in-picture.idl
+++ packages/idl/document-picture-in-picture.idl
@@ -20,10 +20,9 @@
 dictionary DocumentPictureInPictureOptions {
   [EnforceRange] unsigned long long width = 0;
   [EnforceRange] unsigned long long height = 0;
-  boolean copyStyleSheets = false;
 };
 
-[Exposed=Window]
+[Exposed=Window, SecureContext]
 interface DocumentPictureInPictureEvent : Event {
   constructor(DOMString type, DocumentPictureInPictureEventInit eventInitDict);
   [SameObject] readonly attribute Window window;

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/encoding.idl packages/idl/encoding.idl
--- webref/node_modules/@webref/idl/encoding.idl
+++ packages/idl/encoding.idl
@@ -22,7 +22,7 @@
 interface TextDecoder {
   constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
 
-  USVString decode(optional [AllowShared] BufferSource input, optional TextDecodeOptions options = {});
+  USVString decode(optional AllowSharedBufferSource input, optional TextDecodeOptions options = {});
 };
 TextDecoder includes TextDecoderCommon;
 

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/fs.idl packages/idl/fs.idl
--- webref/node_modules/@webref/idl/fs.idl
+++ packages/idl/fs.idl
@@ -80,9 +80,9 @@
 
 [Exposed=DedicatedWorker, SecureContext]
 interface FileSystemSyncAccessHandle {
-  unsigned long long read([AllowShared] BufferSource buffer,
+  unsigned long long read(AllowSharedBufferSource buffer,
                           optional FileSystemReadWriteOptions options = {});
-  unsigned long long write([AllowShared] BufferSource buffer,
+  unsigned long long write(AllowSharedBufferSource buffer,
                            optional FileSystemReadWriteOptions options = {});
 
   undefined truncate([EnforceRange] unsigned long long newSize);

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
@@ -5,7 +5,7 @@
 
 [SecureContext]
 partial interface Navigator {
-  Promise<undefined> joinAdInterestGroup(AuctionAdInterestGroup group, double durationSeconds);
+  Promise<undefined> joinAdInterestGroup(AuctionAdInterestGroup group);
 };
 
 dictionary AuctionAd {
@@ -16,6 +16,7 @@
 dictionary AuctionAdInterestGroup {
   required USVString owner;
   required USVString name;
+  required double lifetimeMs;
 
   double priority = 0.0;
   boolean enableBiddingSignalsPrioritization = false;
@@ -35,7 +36,7 @@
 
 [SecureContext]
 partial interface Navigator {
-  Promise<undefined> leaveAdInterestGroup(AuctionAdInterestGroupKey group);
+  Promise<undefined> leaveAdInterestGroup(optional AuctionAdInterestGroupKey group = {});
 };
 
 dictionary AuctionAdInterestGroupKey {
@@ -45,7 +46,7 @@
 
 [SecureContext]
 partial interface Navigator {
-  Promise<USVString?> runAdAuction(AuctionAdConfig config);
+  Promise<(USVString or FencedFrameConfig)?> runAdAuction(AuctionAdConfig config);
 };
 
 dictionary AuctionAdConfig {
@@ -65,6 +66,7 @@
   record<USVString, record<USVString, double>> perBuyerPrioritySignals;
   sequence<AuctionAdConfig> componentAuctions = [];
   AbortSignal? signal;
+  Promise<boolean> resolveToConfig;
 };
 
 [Exposed=InterestGroupScriptRunnerGlobalScope]
@@ -118,3 +120,9 @@
 partial interface Navigator {
   undefined updateAdInterestGroups();
 };
+
+dictionary ScoreAdOutput {
+  required double desirability;
+  double bid;
+  boolean allowComponentAuction = false;
+};

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/web-animations.idl packages/idl/web-animations.idl
--- webref/node_modules/@webref/idl/web-animations.idl
+++ packages/idl/web-animations.idl
@@ -18,29 +18,29 @@
 
 [Exposed=Window]
 interface Animation : EventTarget {
-    constructor(optional AnimationEffect? effect = null,
-                optional AnimationTimeline? timeline);
-             attribute DOMString                id;
-             attribute AnimationEffect?         effect;
-             attribute AnimationTimeline?       timeline;
-             attribute double                   playbackRate;
-    readonly attribute AnimationPlayState       playState;
-    readonly attribute AnimationReplaceState    replaceState;
-    readonly attribute boolean                  pending;
-    readonly attribute Promise<Animation>       ready;
-    readonly attribute Promise<Animation>       finished;
-             attribute EventHandler             onfinish;
-             attribute EventHandler             oncancel;
-             attribute EventHandler             onremove;
-    undefined cancel();
-    undefined finish();
-    undefined play();
-    undefined pause();
-    undefined updatePlaybackRate(double playbackRate);
-    undefined reverse();
-    undefined persist();
-    [CEReactions]
-    undefined commitStyles();
+  constructor(optional AnimationEffect? effect = null,
+              optional AnimationTimeline? timeline);
+           attribute DOMString                id;
+           attribute AnimationEffect?         effect;
+           attribute AnimationTimeline?       timeline;
+           attribute double                   playbackRate;
+  readonly attribute AnimationPlayState       playState;
+  readonly attribute AnimationReplaceState    replaceState;
+  readonly attribute boolean                  pending;
+  readonly attribute Promise<Animation>       ready;
+  readonly attribute Promise<Animation>       finished;
+           attribute EventHandler             onfinish;
+           attribute EventHandler             oncancel;
+           attribute EventHandler             onremove;
+  undefined cancel();
+  undefined finish();
+  undefined play();
+  undefined pause();
+  undefined updatePlaybackRate(double playbackRate);
+  undefined reverse();
+  undefined persist();
+  [CEReactions]
+  undefined commitStyles();
 };
 
 enum AnimationPlayState { "idle", "running", "paused", "finished" };
@@ -55,22 +55,22 @@
 };
 
 dictionary EffectTiming {
-    FillMode                           fill = "auto";
-    double                             iterationStart = 0.0;
-    unrestricted double                iterations = 1.0;
-    PlaybackDirection                  direction = "normal";
-    DOMString                          easing = "linear";
+  FillMode                           fill = "auto";
+  double                             iterationStart = 0.0;
+  unrestricted double                iterations = 1.0;
+  PlaybackDirection                  direction = "normal";
+  DOMString                          easing = "linear";
 };
 
 dictionary OptionalEffectTiming {
-    double                             delay;
-    double                             endDelay;
-    FillMode                           fill;
-    double                             iterationStart;
-    unrestricted double                iterations;
-    (unrestricted double or DOMString) duration;
-    PlaybackDirection                  direction;
-    DOMString                          easing;
+  double                             delay;
+  double                             endDelay;
+  FillMode                           fill;
+  double                             iterationStart;
+  unrestricted double                iterations;
+  (unrestricted double or DOMString) duration;
+  PlaybackDirection                  direction;
+  DOMString                          easing;
 };
 
 enum FillMode { "none", "forwards", "backwards", "both", "auto" };
@@ -78,21 +78,21 @@
 enum PlaybackDirection { "normal", "reverse", "alternate", "alternate-reverse" };
 
 dictionary ComputedEffectTiming : EffectTiming {
-    double?              progress;
-    unrestricted double? currentIteration;
+  double?              progress;
+  unrestricted double? currentIteration;
 };
 
 [Exposed=Window]
 interface KeyframeEffect : AnimationEffect {
-    constructor(Element? target,
-                object? keyframes,
-                optional (unrestricted double or KeyframeEffectOptions) options = {});
-    constructor(KeyframeEffect source);
-    attribute Element?           target;
-    attribute CSSOMString?       pseudoElement;
-    attribute CompositeOperation composite;
-    sequence<object> getKeyframes();
-    undefined        setKeyframes(object? keyframes);
+  constructor(Element?       target,
+              object?        keyframes,
+              optional (unrestricted double or KeyframeEffectOptions) options = {});
+  constructor(KeyframeEffect source);
+  attribute Element?           target;
+  attribute CSSOMString?       pseudoElement;
+  attribute CompositeOperation composite;
+  sequence<object> getKeyframes();
+  undefined        setKeyframes(object? keyframes);
 };
 
 dictionary BaseComputedKeyframe {
@@ -103,15 +103,15 @@
 };
 
 dictionary BasePropertyIndexedKeyframe {
-    (double? or sequence<double?>)                         offset = [];
-    (DOMString or sequence<DOMString>)                     easing = [];
-    (CompositeOperationOrAuto or sequence<CompositeOperationOrAuto>) composite = [];
+  (double? or sequence<double?>)                         offset = [];
+  (DOMString or sequence<DOMString>)                     easing = [];
+  (CompositeOperationOrAuto or sequence<CompositeOperationOrAuto>) composite = [];
 };
 
 dictionary BaseKeyframe {
-    double?                  offset = null;
-    DOMString                easing = "linear";
-    CompositeOperationOrAuto composite = "auto";
+  double?                  offset = null;
+  DOMString                easing = "linear";
+  CompositeOperationOrAuto composite = "auto";
 };
 
 dictionary KeyframeEffectOptions : EffectTiming {

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/webcodecs.idl packages/idl/webcodecs.idl
--- webref/node_modules/@webref/idl/webcodecs.idl
+++ packages/idl/webcodecs.idl
@@ -365,6 +365,8 @@
   [EnforceRange] unsigned long displayHeight;
 
   VideoColorSpaceInit colorSpace;
+
+  sequence<ArrayBuffer> transfer = [];
 };
 
 dictionary VideoFrameMetadata {

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
@@ -8,7 +8,7 @@
 };
 
 dictionary GPUObjectDescriptorBase {
-    USVString label;
+    USVString label = "";
 };
 
 [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -876,8 +876,14 @@
     boolean premultipliedAlpha = false;
 };
 
+typedef (ImageBitmap or
+         HTMLVideoElement or
+         VideoFrame or
+         HTMLCanvasElement or
+         OffscreenCanvas) GPUImageCopyExternalImageSource;
+
 dictionary GPUImageCopyExternalImage {
-    required (ImageBitmap or HTMLVideoElement or HTMLCanvasElement or OffscreenCanvas) source;
+    required GPUImageCopyExternalImageSource source;
     GPUOrigin2D origin = {};
     boolean flipY = false;
 };

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/webidl.idl packages/idl/webidl.idl
--- webref/node_modules/@webref/idl/webidl.idl
+++ packages/idl/webidl.idl
@@ -9,6 +9,7 @@
          Float32Array or Float64Array or DataView) ArrayBufferView;
 
 typedef (ArrayBufferView or ArrayBuffer) BufferSource;
+typedef (ArrayBuffer or SharedArrayBuffer or [AllowShared] ArrayBufferView) AllowSharedBufferSource;
 [Exposed=*,
  Serializable]
 interface DOMException { // but see below note about ECMAScript binding

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/webrtc-stats.idl packages/idl/webrtc-stats.idl
--- webref/node_modules/@webref/idl/webrtc-stats.idl
+++ packages/idl/webrtc-stats.idl
@@ -65,6 +65,7 @@
  DOMHighResTimeStamp  lastPacketReceivedTimestamp;
  unsigned long long   headerBytesReceived;
  unsigned long long   packetsDiscarded;
+ unsigned long long   fecBytesReceived;
  unsigned long long   fecPacketsReceived;
  unsigned long long   fecPacketsDiscarded;
  unsigned long long   bytesReceived;

@github-actions github-actions bot force-pushed the release-idl-20230609005131316 branch 20 times, most recently from ad4dc62 to b364c96 Compare June 14, 2023 00:51
@github-actions github-actions bot force-pushed the release-idl-20230609005131316 branch 2 times, most recently from 5d0d67e to 3b4b8a4 Compare June 16, 2023 10:12
@tidoust
Copy link
Member

tidoust commented Jun 16, 2023

First appearance of SharedArrayBuffer in IDL extracts. That does not change anything in theory, except consumers need to know that this type exists. Worth a minor bump, perhaps? WDYT @dontcallmedom ?

@dontcallmedom
Copy link
Member

I'm assuming webidl2 didn't need a bump to support this, right? If so, I agree a minor bump sounds reasonable.

@tidoust
Copy link
Member

tidoust commented Jun 16, 2023

I'm assuming webidl2 didn't need a bump to support this, right? If so, I agree a minor bump sounds reasonable.

Webidl2 has not been updated. There's an open issue to add SharedArrayBuffer as a dedicated type, and I see that webidl2 has a hardcoded list of types, but truth is I don't understand why webidl2 needs to care whatsoever about basic types: reported AST is the same regardless of the type used in the IDL, and webidl2 does not complain about types it does not know anything about in any case.

I'll do a minor bump.

@github-actions github-actions bot force-pushed the release-idl-20230609005131316 branch from 3b4b8a4 to 9333ff0 Compare June 16, 2023 12:45
tidoust added a commit that referenced this pull request Jun 16, 2023
@github-actions github-actions bot force-pushed the release-idl-20230609005131316 branch from 9333ff0 to afa7581 Compare June 16, 2023 12:53
@github-actions github-actions bot changed the title πŸ“¦ Release @webref/[email protected] πŸ“¦ Release @webref/[email protected] Jun 16, 2023
@tidoust tidoust merged commit ba324e6 into main Jun 16, 2023
@tidoust tidoust deleted the release-idl-20230609005131316 branch June 16, 2023 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants