Skip to content

Commit 74d256e

Browse files
authored
Upgrade to @webref/css@^6.1.1 (#1447)
1 parent dbe454e commit 74d256e

File tree

4 files changed

+27
-24
lines changed

4 files changed

+27
-24
lines changed

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,28 @@
3636
"license": "Apache-2.0",
3737
"type": "module",
3838
"devDependencies": {
39-
"@mdn/browser-compat-data": "^5.2.3",
40-
"@octokit/rest": "^19.0.4",
41-
"@types/node": "^18.7.19",
42-
"@types/prettier": "^2.7.0",
39+
"@mdn/browser-compat-data": "^5.2.22",
40+
"@octokit/rest": "^19.0.5",
41+
"@types/node": "^18.11.17",
42+
"@types/prettier": "^2.7.1",
4343
"@types/webidl2": "^23.13.6",
44-
"@typescript-eslint/eslint-plugin": "^5.38.0",
45-
"@typescript-eslint/parser": "^5.38.0",
46-
"@webref/css": "^5.2.1",
47-
"@webref/elements": "^2.0.0",
48-
"@webref/idl": "^3.17.2",
44+
"@typescript-eslint/eslint-plugin": "^5.46.1",
45+
"@typescript-eslint/parser": "^5.46.1",
46+
"@webref/css": "^6.1.1",
47+
"@webref/elements": "^2.1.0",
48+
"@webref/idl": "^3.22.4",
4949
"bcd-idl-mapper": "^2.2.1",
5050
"cpx2": "^4.2.0",
51-
"danger": "^11.1.2",
52-
"eslint": "^8.23.1",
51+
"danger": "^11.2.0",
52+
"eslint": "^8.30.0",
5353
"eslint-config-prettier": "^8.5.0",
5454
"eslint-plugin-prettier": "^4.2.1",
5555
"jsonc-parser": "^3.2.0",
56-
"node-fetch": "^3.2.10",
57-
"prettier": "^2.7.1",
56+
"node-fetch": "^3.3.0",
57+
"prettier": "^2.8.1",
5858
"print-diff": "^1.0.0",
5959
"styleless-innertext": "^1.1.3",
60-
"typescript": "^4.8.3",
60+
"typescript": "^4.9.4",
6161
"webidl2": "^24.2.2"
6262
}
6363
}

src/build/webref/idl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function getWebidls(): Promise<Map<string, string>> {
1313
map.set(key, text);
1414
}
1515
for (const [key, data] of Object.entries(css)) {
16-
const properties = Object.keys(data.properties);
16+
const properties = data.properties.map((p) => p.name);
1717
if (properties.length) {
1818
addToStringMap(map, key, generateWebIdlFromCssProperties(properties));
1919
}

src/build/webref/webref-css.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
declare module "@webref/css" {
2+
interface Property {
3+
name: string;
4+
}
25
interface Data {
3-
properties: Record<string, unknown>;
6+
properties: Property[];
47
}
58
function listAll(): Promise<Record<string, Data>>;
69
}

0 commit comments

Comments
 (0)