Skip to content

Commit 69a76b1

Browse files
authored
refactor: use precomputed status data in baseline generator (#309)
1 parent 868bd06 commit 69a76b1

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/update-baseline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: npm install
2626

2727
- name: Update baseline packages
28-
run: npm install -D compute-baseline@latest mdn-data@latest web-features@latest
28+
run: npm install -D mdn-data@latest web-features@latest
2929

3030
- name: Generate baseline data
3131
run: npm run build:baseline
@@ -38,6 +38,6 @@ jobs:
3838
branch: update-baseline-data
3939
branch-suffix: timestamp
4040
body: |
41-
Updates baseline data using the latest versions of compute-baseline, mdn-data, and web-features.
41+
Updates baseline data using the latest versions of mdn-data and web-features.
4242
4343
This PR is autogenerated by the "Update Baseline" GitHub Action.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191
"devDependencies": {
9292
"@eslint/json": "^0.13.2",
9393
"c8": "^10.1.3",
94-
"compute-baseline": "^0.4.0",
9594
"dedent": "^1.5.3",
9695
"eslint": "^9.36.0",
9796
"eslint-config-eslint": "^13.0.0",
@@ -106,7 +105,7 @@
106105
"rollup-plugin-delete": "^3.0.1",
107106
"tailwind-csstree": "^0.1.0",
108107
"typescript": "^5.9.2",
109-
"web-features": "^3.5.0",
108+
"web-features": "^3.6.0",
110109
"yorkie": "^2.0.0"
111110
},
112111
"engines": {

tools/generate-baseline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// Imports
1010
//------------------------------------------------------------------------------
1111

12-
import { getStatus as getBaselineStatus } from "compute-baseline";
1312
import { features as webFeatures } from "web-features";
1413
import mdnData from "mdn-data";
1514
import prettier from "prettier";
@@ -113,7 +112,8 @@ function extractCSSFeatures(features) {
113112
const selectors = {};
114113

115114
for (const [key, featureId] of Object.entries(features)) {
116-
const status = getBaselineStatus(featureId, key);
115+
const feature = webFeatures[featureId];
116+
const status = feature.status.by_compat_key[key];
117117
let match;
118118

119119
// property names

0 commit comments

Comments
 (0)