Skip to content

Commit

Permalink
Update additional data
Browse files Browse the repository at this point in the history
  • Loading branch information
captainbrosset committed Jan 16, 2025
1 parent e3a40ea commit 93efdad
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 24 deletions.
44 changes: 35 additions & 9 deletions additional-data/mdn-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@
"Web/API/Background_Synchronization_API"
],
"badging": [],
"barcode": [],
"barprop": [
"Web/API/BarProp"
],
Expand Down Expand Up @@ -678,7 +679,9 @@
"details": [
"Web/HTML/Element/details"
],
"details-content": [],
"details-content": [
"Web/CSS/::details-content"
],
"details-name": [
"Web/API/HTMLDetailsElement/open"
],
Expand Down Expand Up @@ -734,13 +737,16 @@
"document-caretpositionfrompoint": [
"Web/API/Document/caretPositionFromPoint"
],
"document-colors": [],
"document-picture-in-picture": [
"Web/API/Document_Picture-in-Picture_API"
],
"dom": [
"Web/API/Document_Object_Model"
],
"dom-geometry": [],
"dom-geometry": [
"Web/API/Geometry_interfaces"
],
"dominant-baseline": [
"Web/CSS/dominant-baseline"
],
Expand Down Expand Up @@ -772,18 +778,24 @@
"em": [
"Web/HTML/Element/em"
],
"em-unit": [],
"em-unit": [
"Web/CSS/length#em"
],
"embed": [
"Web/HTML/Element/embed"
],
"empty": [
"Web/CSS/:empty"
],
"enterkeyhint": [],
"enterkeyhint": [
"Web/HTML/Global_attributes/enterkeyhint"
],
"error-cause": [
"Web/JavaScript/Reference/Global_Objects/Error/cause"
],
"event-timing": [],
"event-timing": [
"Web/API/PerformanceEventTiming"
],
"events": [
"Web/API/EventTarget/addEventListener"
],
Expand All @@ -797,7 +809,10 @@
"Web/CSS/log",
"Web/CSS/exp"
],
"exponentiation": [],
"exponentiation": [
"Web/JavaScript/Reference/Operators/Exponentiation",
"Web/JavaScript/Reference/Operators/Exponentiation_assignment"
],
"ext-blend-minmax": [
"Web/API/EXT_blend_minmax"
],
Expand All @@ -807,7 +822,9 @@
"ext-color-buffer-half-float": [
"Web/API/EXT_color_buffer_half_float"
],
"ext-disjoint-timer-query": [],
"ext-disjoint-timer-query": [
"Web/API/EXT_disjoint_timer_query"
],
"ext-float-blend": [
"Web/API/EXT_float_blend"
],
Expand Down Expand Up @@ -873,7 +890,11 @@
"Web/HTML/Element/figure",
"Web/HTML/Element/figcaption"
],
"file": [],
"file": [
"Web/API/File_API",
"Web/HTML/Element/input/file",
"Web/API/DataTransferItem/getAsFile"
],
"file-selector-button": [
"Web/CSS/::file-selector-button"
],
Expand Down Expand Up @@ -1600,6 +1621,7 @@
"multi-column": [
"Web/CSS/columns"
],
"mutation-events": [],
"mutationobserver": [
"Web/API/MutationObserver"
],
Expand Down Expand Up @@ -1906,6 +1928,7 @@
"Web/API/Window/afterprint_event",
"Web/API/Window/beforeprint_event"
],
"private-click-measurement": [],
"private-network-access": [],
"profiler": [],
"progress": [
Expand Down Expand Up @@ -2381,6 +2404,7 @@
"Web/SVG/Element/svg",
"Web/SVG/Element"
],
"svg-discouraged": [],
"svg-filters": [
"Web/SVG/Element/filter"
],
Expand Down Expand Up @@ -2662,7 +2686,9 @@
"wasm-extended-constant-expressions": [],
"wasm-garbage-collection": [],
"wasm-memory64": [],
"wasm-multi-memory": [],
"wasm-multi-memory": [
"WebAssembly/JavaScript_interface/Memory"
],
"wasm-multi-value": [],
"wasm-mutable-globals": [],
"wasm-non-trapping-float-to-int": [],
Expand Down
16 changes: 6 additions & 10 deletions additional-data/origin-trials.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"background-size": [],
"background-sync": [],
"badging": [],
"barcode": [],
"barprop": [],
"base": [],
"base64encodedecode": [],
Expand Down Expand Up @@ -242,6 +243,7 @@
"display-table": [],
"div": [],
"document-caretpositionfrompoint": [],
"document-colors": [],
"document-picture-in-picture": [],
"dom": [],
"dom-geometry": [],
Expand Down Expand Up @@ -528,6 +530,7 @@
"motion-path": [],
"mouse-events": [],
"multi-column": [],
"mutation-events": [],
"mutationobserver": [],
"named-color": [],
"namespace": [],
Expand Down Expand Up @@ -628,6 +631,7 @@
"print": [],
"print-color-adjust": [],
"print-events": [],
"private-click-measurement": [],
"private-network-access": [],
"profiler": [],
"progress": [],
Expand Down Expand Up @@ -779,6 +783,7 @@
"supports": [],
"supports-compat": [],
"svg": [],
"svg-discouraged": [],
"svg-filters": [],
"symbol": [],
"system-color": [],
Expand Down Expand Up @@ -895,16 +900,7 @@
"wasm-sign-extension-operators": [],
"wasm-simd": [],
"wasm-simd-relaxed": [],
"wasm-string-builtins": [
{
"browser": "Chrome",
"name": "WebAssembly JS String Builtins",
"start": "119",
"end": "130",
"feedbackUrl": "https://github.com/WebAssembly/js-string-builtins/issues",
"registrationUrl": "https://developer.chrome.com/origintrials/#/register_trial/2142587522721513473"
}
],
"wasm-string-builtins": [],
"wasm-tail-call-optimization": [],
"wasm-threads": [],
"wasm-typed-fun-refs": [],
Expand Down
7 changes: 4 additions & 3 deletions additional-data/scripts/check-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import { features } from "web-features";
import bcd from "@mdn/browser-compat-data" assert { type: "json" };
import * as fs from "fs/promises";
import mdnDocsOverrides from "../mdn-docs.json" assert { type: "json" };
import path from "path";

const FILE = "../mdn-docs.json";
const FILE = path.join(import.meta.dirname, "../mdn-docs.json");

function getFeaturesMdnUrls() {
const output = {};
Expand Down Expand Up @@ -62,9 +63,9 @@ async function main() {
// No override found, let's see if we have a single MDN URL for this feature.
if (featuresMdnUrls[id] && featuresMdnUrls[id].length === 1) {
// Yes, let's add it to the data.
// console.log(`Adding single MDN URL for ${id}: ${featuresMdnUrls[id][0]}`);
mdnDocsOverrides[id] = [featuresMdnUrls[id][0]];
} else {
// Otherwise, add the feature ID to the data with an empty array.
mdnDocsOverrides[id] = [];
}

Expand All @@ -83,7 +84,7 @@ async function main() {
.forEach(function (key) {
orderedDocOverrides[key] = mdnDocsOverrides[key];
});

// Write the JSON file back to disk.
const str = JSON.stringify(orderedDocOverrides, null, 2);
await fs.writeFile(FILE, str);
Expand Down
3 changes: 2 additions & 1 deletion additional-data/scripts/update-origin-trials.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
import { features } from "web-features";
import fs from "fs/promises";
import trials from "../origin-trials.json" assert { type: "json" };
import path from "path";

const OUTPUT_FILE = "../origin-trials.json";
const OUTPUT_FILE = path.join(import.meta.dirname, "../origin-trials.json");

async function getChromeAPIData(url) {
const response = await fetch(url);
Expand Down
3 changes: 2 additions & 1 deletion additional-data/scripts/update-standard-positions.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
import { features } from "web-features";
import fs from "fs/promises";
import positions from "../standard-positions.json" assert { type: "json" };
import path from "path";

const OUTPUT_FILE = "../standard-positions.json";
const OUTPUT_FILE = path.join(import.meta.dirname, "../standard-positions.json");
const MOZILLA_DATA_FILE =
"https://raw.githubusercontent.com/mozilla/standards-positions/refs/heads/gh-pages/merged-data.json";
const WEBKIT_DATA_FILE =
Expand Down
24 changes: 24 additions & 0 deletions additional-data/standard-positions.json
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,10 @@
"mozilla": {},
"webkit": {}
},
"barcode": {
"mozilla": {},
"webkit": {}
},
"barprop": {
"mozilla": {},
"webkit": {}
Expand Down Expand Up @@ -1296,6 +1300,10 @@
"concerns": []
}
},
"document-colors": {
"mozilla": {},
"webkit": {}
},
"document-picture-in-picture": {
"mozilla": {
"url": "https://github.com/mozilla/standards-positions/issues/670",
Expand Down Expand Up @@ -2760,6 +2768,10 @@
"mozilla": {},
"webkit": {}
},
"mutation-events": {
"mozilla": {},
"webkit": {}
},
"mutationobserver": {
"mozilla": {},
"webkit": {}
Expand Down Expand Up @@ -3285,6 +3297,14 @@
"mozilla": {},
"webkit": {}
},
"private-click-measurement": {
"mozilla": {
"url": "https://github.com/mozilla/standards-positions/issues/161",
"position": "defer",
"concerns": []
},
"webkit": {}
},
"private-network-access": {
"mozilla": {
"url": "https://github.com/mozilla/standards-positions/issues/143",
Expand Down Expand Up @@ -4078,6 +4098,10 @@
"mozilla": {},
"webkit": {}
},
"svg-discouraged": {
"mozilla": {},
"webkit": {}
},
"svg-filters": {
"mozilla": {},
"webkit": {}
Expand Down

0 comments on commit 93efdad

Please sign in to comment.