Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 21, 2024

⚠ 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 704a8b2.

🧐 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.56.1. Merging this pull request will release v3.56.2. 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/compute-pressure.idl packages/idl/compute-pressure.idl
--- webref/node_modules/@webref/idl/compute-pressure.idl
+++ packages/idl/compute-pressure.idl
@@ -3,7 +3,7 @@
 // (https://github.com/w3c/webref)
 // Source: Compute Pressure Level 1 (https://w3c.github.io/compute-pressure/)
 
-enum PressureSource { "thermals", "cpu" };
+enum PressureSource { "cpu" };
 
 enum PressureState { "nominal", "fair", "serious", "critical" };
 

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
@@ -53,7 +53,9 @@
 };
 
 dictionary IdentityProviderWellKnown {
-  required sequence<USVString> provider_urls;
+  sequence<USVString> provider_urls;
+  USVString accounts_endpoint;
+  USVString login_url;
 };
 
 dictionary IdentityProviderIcon {

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/html.idl packages/idl/html.idl
--- webref/node_modules/@webref/idl/html.idl
+++ packages/idl/html.idl
@@ -2520,6 +2520,11 @@
   readonly attribute MessagePort port2;
 };
 
+interface mixin MessageEventTarget {
+  attribute EventHandler onmessage;
+  attribute EventHandler onmessageerror;
+};
+
 [Exposed=(Window,Worker,AudioWorklet), Transferable]
 interface MessagePort : EventTarget {
   undefined postMessage(any message, sequence<object> transfer);
@@ -2528,11 +2533,11 @@
   undefined close();
 
   // event handlers
-  attribute EventHandler onmessage;
-  attribute EventHandler onmessageerror;
   attribute EventHandler onclose;
 };
 
+MessagePort includes MessageEventTarget;
+
 dictionary StructuredSerializeOptions {
   sequence<object> transfer = [];
 };
@@ -2571,11 +2576,10 @@
   undefined postMessage(any message, optional StructuredSerializeOptions options = {});
 
   undefined close();
-
-  attribute EventHandler onmessage;
-  attribute EventHandler onmessageerror;
 };
 
+DedicatedWorkerGlobalScope includes MessageEventTarget;
+
 [Global=(Worker,SharedWorker),Exposed=SharedWorker]
 interface SharedWorkerGlobalScope : WorkerGlobalScope {
   [Replaceable] readonly attribute DOMString name;
@@ -2597,8 +2601,6 @@
 
   undefined postMessage(any message, sequence<object> transfer);
   undefined postMessage(any message, optional StructuredSerializeOptions options = {});
-  attribute EventHandler onmessage;
-  attribute EventHandler onmessageerror;
 };
 
 dictionary WorkerOptions {
@@ -2610,6 +2612,7 @@
 enum WorkerType { "classic", "module" };
 
 Worker includes AbstractWorker;
+Worker includes MessageEventTarget;
 
 [Exposed=Window]
 interface SharedWorker : EventTarget {

diff --ignore-trailing-space '--exclude=package.json' '--exclude=README.md' '--exclude=CHANGELOG.md' '--unified=3' webref/node_modules/@webref/idl/long-animation-frames.idl packages/idl/long-animation-frames.idl
--- webref/node_modules/@webref/idl/long-animation-frames.idl
+++ packages/idl/long-animation-frames.idl
@@ -19,6 +19,8 @@
     [Default] object toJSON();
 };
 
+PerformanceLongAnimationFrameTiming includes PaintTimingMixin;
+
 enum ScriptInvokerType {
     "classic-script",
     "module-script",

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
@@ -33,6 +33,7 @@
 };
 
 typedef record<USVString, ArrayBufferView> MLNamedArrayBufferViews;
+typedef record<USVString, MLTensor> MLNamedTensors;
 
 dictionary MLComputeResult {
   MLNamedArrayBufferViews inputs;
@@ -41,8 +42,17 @@
 
 [SecureContext, Exposed=(Window, DedicatedWorker)]
 interface MLContext {
+  // ISSUE(791): compute() will soon be removed in favor of dispatch().
   Promise<MLComputeResult> compute(
       MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
+  undefined dispatch(MLGraph graph, MLNamedTensors inputs, MLNamedTensors outputs);
+
+  Promise<MLTensor> createTensor(MLTensorDescriptor descriptor);
+
+  Promise<ArrayBuffer> readTensor(MLTensor tensor);
+  Promise<undefined> readTensor(MLTensor tensor, AllowSharedBufferSource outputData);
+
+  undefined writeTensor(MLTensor tensor, AllowSharedBufferSource inputData);
 
   MLOpSupportLimits opSupportLimits();
 };
@@ -105,6 +115,21 @@
 
 typedef (bigint or unrestricted double) MLNumber;
 
+dictionary MLTensorDescriptor : MLOperandDescriptor {
+  boolean readable = false;
+  boolean writable = false;
+};
+
+[SecureContext, Exposed=(Window, DedicatedWorker)]
+interface MLTensor {
+  readonly attribute MLOperandDataType dataType;
+  readonly attribute FrozenArray<unsigned long> shape;
+  readonly attribute boolean readable;
+  readonly attribute boolean writable;
+
+  undefined destroy();
+};
+
 typedef record<USVString, MLOperand> MLNamedOperands;
 
 [SecureContext, Exposed=(Window, DedicatedWorker)]

@github-actions github-actions bot force-pushed the release-idl-20241121064537096 branch 23 times, most recently from 54c3877 to d27cde2 Compare November 27, 2024 00:59
@github-actions github-actions bot force-pushed the release-idl-20241121064537096 branch from d27cde2 to ae764c2 Compare November 27, 2024 06:46
@tidoust tidoust merged commit 55e3a0c into main Nov 27, 2024
@tidoust tidoust deleted the release-idl-20241121064537096 branch November 27, 2024 08:15
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.

1 participant