diff --git a/clients/lightrider/tsconfig.json b/clients/lightrider/tsconfig.json new file mode 100644 index 000000000000..c6c68a7ce7b2 --- /dev/null +++ b/clients/lightrider/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../../tsconfig-base.json", + "compilerOptions": { + // Expected to be run in a browser tab + "lib": ["dom"], + // Puppeteer internals are used which can lead to type errors + "skipLibCheck": true, + }, + "references": [ + {"path": "../../"}, + ], + "include": [ + "**/*.js", + "../../types/internal/node.d.ts", + "../../types/internal/global.d.ts", + ], +} diff --git a/package.json b/package.json index 8e3434db04e6..7ddee65094e0 100644 --- a/package.json +++ b/package.json @@ -167,7 +167,7 @@ "pako": "^2.0.3", "preact": "^10.7.2", "pretty-json-stringify": "^0.0.2", - "puppeteer": "^22.10.0", + "puppeteer": "^22.11.1", "resolve": "^1.22.1", "rollup": "^2.52.7", "rollup-plugin-polyfill-node": "^0.12.0", @@ -200,7 +200,7 @@ "metaviewport-parser": "0.3.0", "open": "^8.4.0", "parse-cache-control": "1.0.1", - "puppeteer-core": "^22.10.0", + "puppeteer-core": "^22.11.1", "robots-parser": "^3.0.1", "semver": "^5.3.0", "speedline-core": "^1.4.3", diff --git a/tsconfig-all.json b/tsconfig-all.json index d38a50f1cea5..a817aa2b57d9 100644 --- a/tsconfig-all.json +++ b/tsconfig-all.json @@ -10,6 +10,7 @@ {"path": "./treemap/"}, {"path": "./flow-report/"}, {"path": "./shared/"}, + {"path": "./clients/lightrider/"}, ], "files": [], "include": [], diff --git a/tsconfig.json b/tsconfig.json index 974dd92c2cfc..2d933395622d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -33,6 +33,7 @@ "core/test/audits/**/*.js", "core/test/fixtures/**/*.js", "core/test/computed/**/*.js", + "clients/lightrider/**/*.js", "clients/test/**/*.js", "cli/test/fixtures/**/*.js", "core/scripts/legacy-javascript/variants", diff --git a/yarn.lock b/yarn.lock index c8a6c7e578db..2c7df8f5a7fd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2356,14 +2356,14 @@ chrome-launcher@^1.1.2: is-wsl "^2.2.0" lighthouse-logger "^2.0.1" -chromium-bidi@0.5.19: - version "0.5.19" - resolved "https://registry.yarnpkg.com/chromium-bidi/-/chromium-bidi-0.5.19.tgz#e4f4951b7d9b20d668d6b387839f7b7bf2d69ef4" - integrity sha512-UA6zL77b7RYCjJkZBsZ0wlvCTD+jTjllZ8f6wdO4buevXgTZYjV+XLB9CiEa2OuuTGGTLnI7eN9I60YxuALGQg== +chromium-bidi@0.5.23: + version "0.5.23" + resolved "https://registry.yarnpkg.com/chromium-bidi/-/chromium-bidi-0.5.23.tgz#0fbebc8b0c908d33f870b961d04fca3e2d4fa0ba" + integrity sha512-1o/gLU9wDqbN5nL2MtfjykjOuighGXc3/hnWueO1haiEoFgX8h5vbvcA4tgdQfjw1mkZ1OEF4x/+HVeqEX6NoA== dependencies: mitt "3.0.1" urlpattern-polyfill "10.0.0" - zod "3.22.4" + zod "3.23.8" ci-info@^3.2.0: version "3.3.1" @@ -2848,6 +2848,13 @@ debug@4, debug@4.3.4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4: dependencies: ms "2.1.2" +debug@4.3.5: + version "4.3.5" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.5.tgz#e83444eceb9fedd4a1da56d671ae2446a01a6e1e" + integrity sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg== + dependencies: + ms "2.1.2" + debug@^2.2.0, debug@^2.3.3, debug@^2.6.9: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" @@ -2938,7 +2945,7 @@ delayed-stream@~1.0.0: resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= -devtools-protocol@0.0.1286932, devtools-protocol@0.0.1312386: +devtools-protocol@0.0.1299070, devtools-protocol@0.0.1312386: version "0.0.1312386" resolved "https://registry.yarnpkg.com/devtools-protocol/-/devtools-protocol-0.0.1312386.tgz#5ab824d6f1669ec6c6eb0fba047e73601d969052" integrity sha512-DPnhUXvmvKT2dFA/j7B+riVLUt9Q6RKJlcppojL5CoRywJJKLDYnRlw0gTFKfgDPHP5E04UoB71SxoJlVZy8FA== @@ -6035,26 +6042,26 @@ punycode@^2.1.0, punycode@^2.1.1: resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== -puppeteer-core@22.10.0, puppeteer-core@^22.10.0: - version "22.10.0" - resolved "https://registry.yarnpkg.com/puppeteer-core/-/puppeteer-core-22.10.0.tgz#eef5735f90ed29e3b10815d142b3437e05939283" - integrity sha512-I54J4Vy4I07UHsgB1QSmuFoF7KNQjJWcvFBPhtY+ezMdBfwgGDr8dzYrJa11aPgP9kxIUHjhktcMmmfJkOAtTw== +puppeteer-core@22.11.1, puppeteer-core@^22.11.1: + version "22.11.1" + resolved "https://registry.yarnpkg.com/puppeteer-core/-/puppeteer-core-22.11.1.tgz#623f12a751455f4d2bdde2acaea131012c7fe3ac" + integrity sha512-lIMQrpbMlQ5GqXzD7fo/j74PhceRma+DrVFX+vAx3cwURsfDKyYx7fksTo1nUfLmKyXRyCDSa2peASa/DQ0R9Q== dependencies: "@puppeteer/browsers" "2.2.3" - chromium-bidi "0.5.19" - debug "4.3.4" - devtools-protocol "0.0.1286932" + chromium-bidi "0.5.23" + debug "4.3.5" + devtools-protocol "0.0.1299070" ws "8.17.0" -puppeteer@^22.10.0: - version "22.10.0" - resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-22.10.0.tgz#10b7f8fbe5bd49933f1f3655f18573086290fefc" - integrity sha512-ZOkZd6a6t0BdKcWb0wAYHWQqCfdlN1PPnXOmg/XNrbo6gJhYWFX4qCNb6ahSn8TpAqBqLCoD4Q010F7GwOM7mA== +puppeteer@^22.11.1: + version "22.11.1" + resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-22.11.1.tgz#06acc384350382143046eb6feea208c8bc4ec41b" + integrity sha512-NhpLQC2NMXcNvCquRCeFWxu12ywfBeZ8wK9TyupOnSyaX2czeuqZdBVOQ33mBzmG8qTnM7DsStY8Z+TOgshMdA== dependencies: "@puppeteer/browsers" "2.2.3" cosmiconfig "9.0.0" - devtools-protocol "0.0.1286932" - puppeteer-core "22.10.0" + devtools-protocol "0.0.1299070" + puppeteer-core "22.11.1" q@^1.5.1: version "1.5.1" @@ -7626,7 +7633,7 @@ zip-stream@^2.0.1: compress-commons "^1.2.0" readable-stream "^2.0.0" -zod@3.22.4: - version "3.22.4" - resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.4.tgz#f31c3a9386f61b1f228af56faa9255e845cf3fff" - integrity sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg== +zod@3.23.8: + version "3.23.8" + resolved "https://registry.yarnpkg.com/zod/-/zod-3.23.8.tgz#e37b957b5d52079769fb8097099b592f0ef4067d" + integrity sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==