-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
misc: split lhr compat code to lib/lighthouse-compatibility.js #14701
Conversation
core/util.cjs
Outdated
* TODO(team): we all agree the LHR shape change is technical debt we should fix | ||
* @param {LH.Result} result | ||
* @return {LH.ReportResult} | ||
* Upgrades an lhr object in-place to account for changes in the data structure over major versions. |
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.
Maybe add a note here mentioning that this doesn't verify lhr shape
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.
Wait, what about the name/interface makes that not clear already?
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.
Fair, it's probably fine.
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.
Looks good pending CI + spelling
e69b9bf
to
439025a
Compare
439025a
to
fbe6678
Compare
fbe6678
to
01a74a7
Compare
Updated to account for recent util/report util split. |
01a74a7
to
a3eab18
Compare
a3eab18
to
915e671
Compare
Split out the changes made for convenience from those made to maintain backwards compatibility. Also exposes to node api.