-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Fix for 11 vulnerabilities #555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,14 @@ | |
"chalk": "^2.1.0", | ||
"chrome-launcher": "^0.10.5", | ||
"cli-table": "^0.3.1", | ||
"http-server": "^0.10.0", | ||
"http-server": "^0.11.2", | ||
"http2": "^3.3.6", | ||
"lighthouse": "^3.2.1", | ||
"lighthouse": "^8.1.0", | ||
"mime": "^1.3.6", | ||
"minimist": "^1.2.3", | ||
"ncp": "^2.0.0", | ||
"nodegit": "^0.18.3", | ||
"rimraf": "^2.6.1", | ||
"nodegit": "^0.24.3", | ||
"rimraf": "^4.3.1", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This major version upgrade of
I suggest downgrading to
|
||
"stats-analysis": "^2.0.0" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This major version upgrade of
lighthouse
from^3.2.1
to^8.1.0
introduces significant breaking changes that will cause the benchmark scripts to fail.Here are some of the issues I've identified by looking at the usage in
scripts/bench/benchmark.js
:require('lighthouse')
now returns a functionlighthouse
instead of a classLighthouse
.first-meaningful-paint
metric, which is used inscripts/bench/benchmark.js
, has been removed in newer versions of Lighthouse. This will cause a runtime error.lighthouse/lighthouse-core/config/perf-config
, has likely changed.To resolve this, the benchmark scripts (e.g.,
scripts/bench/benchmark.js
) need to be updated to be compatible with the Lighthouse v8 API. Without these changes, the benchmarks will be broken.