From 8e3dcb1e4279d83b71fe8ca564d7d29728d4045b Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 6 Dec 2021 14:46:18 +0100 Subject: [PATCH 1/2] USB events: on(dis)connect -> (dis)connect_event --- api/USB.json | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/api/USB.json b/api/USB.json index 6163d3b18127f0..9e923196baedae 100644 --- a/api/USB.json +++ b/api/USB.json @@ -97,10 +97,14 @@ } } }, - "onconnect": { + "connect_event": { "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/onconnect", - "spec_url": "https://wicg.github.io/webusb/#ref-for-dom-usb-onconnect", + "description": "connect event", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/connect_event", + "spec_url": [ + "https://wicg.github.io/webusb/#connect", + "https://wicg.github.io/webusb/#ref-for-dom-usb-onconnect" + ], "support": { "chrome": { "version_added": "61" @@ -146,10 +150,14 @@ } } }, - "ondisconnect": { + "disconnect_event": { "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/ondisconnect", - "spec_url": "https://wicg.github.io/webusb/#ref-for-dom-usb-ondisconnect", + "description": "disconnect event", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/disconnect_event", + "spec_url": [ + "https://wicg.github.io/webusb/#disconnect", + "https://wicg.github.io/webusb/#ref-for-dom-usb-ondisconnect" + ], "support": { "chrome": { "version_added": "61" From c242784a6af105962c09062f7949dd8bdd810964 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 6 Dec 2021 14:48:59 +0100 Subject: [PATCH 2/2] sort --- api/USB.json | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/api/USB.json b/api/USB.json index 9e923196baedae..074e8a46894fa5 100644 --- a/api/USB.json +++ b/api/USB.json @@ -48,10 +48,14 @@ "deprecated": false } }, - "getDevices": { + "connect_event": { "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/getDevices", - "spec_url": "https://wicg.github.io/webusb/#ref-for-dom-usb-getdevicesā‘”", + "description": "connect event", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/connect_event", + "spec_url": [ + "https://wicg.github.io/webusb/#connect", + "https://wicg.github.io/webusb/#ref-for-dom-usb-onconnect" + ], "support": { "chrome": { "version_added": "61" @@ -97,13 +101,13 @@ } } }, - "connect_event": { + "disconnect_event": { "__compat": { - "description": "connect event", - "mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/connect_event", + "description": "disconnect event", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/disconnect_event", "spec_url": [ - "https://wicg.github.io/webusb/#connect", - "https://wicg.github.io/webusb/#ref-for-dom-usb-onconnect" + "https://wicg.github.io/webusb/#disconnect", + "https://wicg.github.io/webusb/#ref-for-dom-usb-ondisconnect" ], "support": { "chrome": { @@ -150,14 +154,10 @@ } } }, - "disconnect_event": { + "getDevices": { "__compat": { - "description": "disconnect event", - "mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/disconnect_event", - "spec_url": [ - "https://wicg.github.io/webusb/#disconnect", - "https://wicg.github.io/webusb/#ref-for-dom-usb-ondisconnect" - ], + "mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/getDevices", + "spec_url": "https://wicg.github.io/webusb/#ref-for-dom-usb-getdevicesā‘”", "support": { "chrome": { "version_added": "61"