diff --git a/.gitignore b/.gitignore index bb63c80db..d79d329bd 100644 --- a/.gitignore +++ b/.gitignore @@ -285,4 +285,5 @@ inputfiles/browser.webidl.json !.vscode/launch.template.json yarn.lock TypeScript -deploy/generated \ No newline at end of file +deploy/generated +.early.coverage \ No newline at end of file diff --git a/deploy/createTypesPackages.js b/deploy/createTypesPackages.js index a1677f0fc..15b53fb98 100644 --- a/deploy/createTypesPackages.js +++ b/deploy/createTypesPackages.js @@ -196,7 +196,7 @@ async function updatePackageJSON(pkg, packagePath) { /** * Copies the README and adds some rudimentary templating to the file. * @param {Package} pkg - * @param {import("./template/package.json")} pkgJSON + * @param {typeof import("./template/package.json")} pkgJSON * @param {URL} writePath */ function copyREADME(pkg, pkgJSON, writePath) { diff --git a/inputfiles/mdn b/inputfiles/mdn index 07cc896ae..1c0e6f38b 160000 --- a/inputfiles/mdn +++ b/inputfiles/mdn @@ -1 +1 @@ -Subproject commit 07cc896aee614b6af47546d95ac82c7e8471b448 +Subproject commit 1c0e6f38bf619c66a8d972b1891533b0e5423fbe diff --git a/package-lock.json b/package-lock.json index 6d52ec82c..98b81833a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,14 +10,15 @@ "license": "Apache-2.0", "devDependencies": { "@eslint/js": "^9", - "@mdn/browser-compat-data": "^7.0.0", + "@mdn/browser-compat-data": "^6.1.0", "@octokit/rest": "^22.0.0", "@types/node": "^24.3.0", "@types/prettier": "^3.0.0", "@types/webidl2": "^24.4.3", "@typescript-eslint/eslint-plugin": "^8", "@typescript-eslint/parser": "^8", - "@webref/css": "^6.23.7", + "@typescript/native-preview": "^7.0.0-dev.20250804.1", + "@webref/css": "^6.23.6", "@webref/elements": "^2.5.0", "@webref/events": "^1.18.6", "@webref/idl": "^3.66.2", @@ -396,9 +397,9 @@ } }, "node_modules/@mdn/browser-compat-data": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-7.1.0.tgz", - "integrity": "sha512-xEgsAGfEDa95aXtafVFQZ+KlP+MaUWwwN2thfOUfoMwM9m9P8DFmcMuJg6h2QwTg/Qpy31GjPIGbBfEilxqjOQ==", + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-6.1.5.tgz", + "integrity": "sha512-PzdZZzRhcXvKB0begee28n5lvwAcinGKYuLZOVxHAZm+n7y01ddEGfdS1ZXRuVcV+ndG6mSEAE8vgudom5UjYg==", "dev": true, "license": "CC0-1.0" }, @@ -1037,6 +1038,147 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@typescript/native-preview": { + "version": "7.0.0-dev.20250828.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview/-/native-preview-7.0.0-dev.20250828.1.tgz", + "integrity": "sha512-HYW4UP/js2+f/odQz3iBbOk2TymLQGT0QmzWGZz7b9e2ilFfEVI8uyltRBVsovNyEXg+m0AfQaMHgK5epmuZKg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsgo": "bin/tsgo.js" + }, + "engines": { + "node": ">=20.6.0" + }, + "optionalDependencies": { + "@typescript/native-preview-darwin-arm64": "7.0.0-dev.20250828.1", + "@typescript/native-preview-darwin-x64": "7.0.0-dev.20250828.1", + "@typescript/native-preview-linux-arm": "7.0.0-dev.20250828.1", + "@typescript/native-preview-linux-arm64": "7.0.0-dev.20250828.1", + "@typescript/native-preview-linux-x64": "7.0.0-dev.20250828.1", + "@typescript/native-preview-win32-arm64": "7.0.0-dev.20250828.1", + "@typescript/native-preview-win32-x64": "7.0.0-dev.20250828.1" + } + }, + "node_modules/@typescript/native-preview-darwin-arm64": { + "version": "7.0.0-dev.20250828.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-darwin-arm64/-/native-preview-darwin-arm64-7.0.0-dev.20250828.1.tgz", + "integrity": "sha512-x88cosm1BxQXsogHdyI51KIBvAdEPh96Jthb9Su6A+5WxNob8pgbItA7dgSLWf68Fm0M7Dm3HkR0EvOGvnJq0Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.6.0" + } + }, + "node_modules/@typescript/native-preview-darwin-x64": { + "version": "7.0.0-dev.20250828.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-darwin-x64/-/native-preview-darwin-x64-7.0.0-dev.20250828.1.tgz", + "integrity": "sha512-tSoC7PLmuI4B4rFrRCawjRdyr/bPALnZGLETg5K9O2k3v2czTxhvKRIC11yE6k01XwTqXBGsZi90uCVaGrd05w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.6.0" + } + }, + "node_modules/@typescript/native-preview-linux-arm": { + "version": "7.0.0-dev.20250828.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-linux-arm/-/native-preview-linux-arm-7.0.0-dev.20250828.1.tgz", + "integrity": "sha512-cpbY3M7XkGgTOWBd7ZJ/9tObtNoBSjabxFSoc6Oq3GkBh/GbnolGRiFYLkqbsNrWoy6NaxGQUf6+Qb+OJvFGlQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.6.0" + } + }, + "node_modules/@typescript/native-preview-linux-arm64": { + "version": "7.0.0-dev.20250828.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-linux-arm64/-/native-preview-linux-arm64-7.0.0-dev.20250828.1.tgz", + "integrity": "sha512-kqRNa8CYytWBSGpxXV7Bc3/W5z+aW4tU1VNtu5RG7O7KRhopo//qrVIHWKfSoKDIBoEr4//luHCkZ229sc1O8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.6.0" + } + }, + "node_modules/@typescript/native-preview-linux-x64": { + "version": "7.0.0-dev.20250828.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-linux-x64/-/native-preview-linux-x64-7.0.0-dev.20250828.1.tgz", + "integrity": "sha512-I8szvraJaKfkH7aMp842++3QBkEW0RTknGmG+xfIO9YQW0VcPRHKWwU/yWBvYVSTboRVJWfWs3NbGeQK0TvebQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.6.0" + } + }, + "node_modules/@typescript/native-preview-win32-arm64": { + "version": "7.0.0-dev.20250828.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-win32-arm64/-/native-preview-win32-arm64-7.0.0-dev.20250828.1.tgz", + "integrity": "sha512-pV8Y7t7STG+H2N1FoIU8TwJ0tz8zwEIBBEtP1MvY4GwqTPYgEqhm+Wb0wBP+7aXYF1hKeOmdXcIlZncBtEVomg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.6.0" + } + }, + "node_modules/@typescript/native-preview-win32-x64": { + "version": "7.0.0-dev.20250828.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-win32-x64/-/native-preview-win32-x64-7.0.0-dev.20250828.1.tgz", + "integrity": "sha512-rbYPx5IWFbt9epRhHopCxaJz4zZA87PGm5KyUkxkTj3ABgKgo0Em7CovKgroUqXSeXwvDt/8f3Yr43j8heUhwQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.6.0" + } + }, "node_modules/@webref/css": { "version": "6.23.7", "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.23.7.tgz", diff --git a/package.json b/package.json index f51aab7bd..972a964be 100644 --- a/package.json +++ b/package.json @@ -12,15 +12,15 @@ "worklet" ], "scripts": { - "build": "tsc && node ./lib/build.js", + "build": "tsgo && node ./lib/build.js", "baseline-accept": "cpx \"generated\\**\" baselines\\", - "lint": "eslint --max-warnings 0 src deploy/*.js && tsc -p deploy/jsconfig.json", + "lint": "eslint --max-warnings 0 src deploy/*.js && tsgo -p deploy/jsconfig.json", "lint-fix": "eslint --max-warnings 0 src deploy/*.js --fix", "test": "npm run build && npm run lint && node ./lib/test.js && node ./unittests/index.js", - "changelog": "tsc && node ./lib/changelog.js", + "changelog": "tsgo && node ./lib/changelog.js", "ts-changelog": "node ./deploy/versionChangelog.js", "migrate": "node ./deploy/migrate.js", - "version": "npm i && tsc && node ./lib/version.js", + "version": "npm i && tsgo && node ./lib/version.js", "generate": "npm run build && npm run baseline-accept" }, "author": { @@ -39,14 +39,15 @@ "type": "module", "devDependencies": { "@eslint/js": "^9", - "@mdn/browser-compat-data": "^7.0.0", + "@mdn/browser-compat-data": "^6.1.0", "@octokit/rest": "^22.0.0", "@types/node": "^24.3.0", "@types/prettier": "^3.0.0", "@types/webidl2": "^24.4.3", "@typescript-eslint/eslint-plugin": "^8", "@typescript-eslint/parser": "^8", - "@webref/css": "^6.23.7", + "@typescript/native-preview": "^7.0.0-dev.20250804.1", + "@webref/css": "^6.23.6", "@webref/elements": "^2.5.0", "@webref/events": "^1.18.6", "@webref/idl": "^3.66.2",