Skip to content

Commit 3a24bfa

Browse files
committed
chore(package): migrate to webidl packages
Closes microsoft#66
1 parent 3356c96 commit 3a24bfa

File tree

8 files changed

+87
-60
lines changed

8 files changed

+87
-60
lines changed

.github/dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ updates:
77
- package-ecosystem: "npm"
88
# Look for `package.json` and `lock` files in the `root` directory
99
directory: "/"
10-
# Check the npm registry for updates every day (weekdays)
10+
# Check the npm registry for updates every month
1111
schedule:
1212
interval: "monthly"
1313
# Bump versions in package.json

.github/workflows/update-webref.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- run: npm ci
2020
- id: run-update-webref
21-
run: npm run update-webref
21+
run: npm i @webref/idl@latest @webref/css@latest
2222
continue-on-error: true
2323
- run: npm run build && npm run baseline-accept
2424
if: ${{ steps.run-update-webref.outcome == 'success' }}

baselines/dom.generated.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8779,8 +8779,8 @@ interface History {
87798779
back(): void;
87808780
forward(): void;
87818781
go(delta?: number): void;
8782-
pushState(data: any, title: string, url?: string | URL | null): void;
8783-
replaceState(data: any, title: string, url?: string | URL | null): void;
8782+
pushState(data: any, unused: string, url?: string | URL | null): void;
8783+
replaceState(data: any, unused: string, url?: string | URL | null): void;
87848784
}
87858785

87868786
declare var History: {

inputfiles/removedTypes.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"PerformanceObserverCallback": {
66
"signature": {
77
"0": {
8-
"param": ["hasDroppedEntry"]
8+
"param": ["options"]
99
}
1010
}
1111
}
@@ -160,6 +160,7 @@
160160
"NavigatorBadge",
161161
"NavigatorDeviceMemory",
162162
"NavigatorFonts",
163+
"NavigatorGPU",
163164
"NavigatorLocks",
164165
"NavigatorUA"
165166
]
@@ -200,9 +201,6 @@
200201
}
201202
}
202203
},
203-
"SVGAElement": {
204-
"implements": ["HTMLHyperlinkElementUtils"]
205-
},
206204
"SVGAnimationElement": {
207205
"properties": {
208206
"property": {
@@ -269,6 +267,7 @@
269267
"NavigatorBadge",
270268
"NavigatorDeviceMemory",
271269
"NavigatorFonts",
270+
"NavigatorGPU",
272271
"NavigatorLocks",
273272
"NavigatorUA"
274273
]

package-lock.json

+75-26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"baseline-accept": "cpx \"generated\\*\" baselines\\",
1919
"lint": "eslint --max-warnings 0 src",
2020
"test": "npm run lint && npm run build && node ./lib/test.js && node ./unittests/index.js",
21-
"update-webref": "tsc && node ./lib/update-webref.js",
2221
"changelog": "tsc && node ./lib/changelog.js"
2322
},
2423
"author": {
@@ -40,6 +39,8 @@
4039
"@types/webidl2": "^23.13.5",
4140
"@typescript-eslint/eslint-plugin": "^4.18.0",
4241
"@typescript-eslint/parser": "^4.18.0",
42+
"@webref/css": "^1.0.0",
43+
"@webref/idl": "^1.0.10",
4344
"browser-specs": "^1.32.0",
4445
"cpx2": "^3.0.0",
4546
"eslint": "^7.22.0",
@@ -51,8 +52,7 @@
5152
"print-diff": "^1.0.0",
5253
"styleless-innertext": "^1.1.2",
5354
"typescript": "^4.2.3",
54-
"webidl2": "^23.13.1",
55-
"webref": "github:w3c/webref#41a8ec6b85634d1bdf5daa85f3c32a1adad1d2f8"
55+
"webidl2": "^23.13.1"
5656
},
5757
"files": [
5858
"baselines/*"

src/build/webref.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { fileURLToPath } from "url";
22
import { tryReadFile } from "./utils/fs.js";
33
import { createTryRequire } from "./utils/require.js";
44

5-
const webrefDir = new URL("../../node_modules/webref/ed/idl/", import.meta.url);
5+
const webrefDir = new URL("../../node_modules/@webref/idl/", import.meta.url);
66
const webrefCssDir = new URL(
7-
"../../node_modules/webref/ed/css/",
7+
"../../node_modules/@webref/css/",
88
import.meta.url
99
);
1010

src/update-webref.ts

-21
This file was deleted.

0 commit comments

Comments
 (0)