Skip to content

build: update dependency lighthouse to v12 #31212

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

angular-robot
Copy link
Collaborator

This PR contains the following updates:

Package Type Update Change
lighthouse devDependencies major ~11.7.0 -> ~12.6.0

Release Notes

GoogleChrome/lighthouse (lighthouse)

v12.6.0

Compare Source

Full Changelog

We expect this release to ship in the DevTools of Chrome 137, and to PageSpeed Insights within a few days.

New contributors

Thanks to our new contributors 👽🐷🐰🐯🐻!

Jack Franklin @​jackfranklin
Rob Kodey @​rkodey
Clément Barbaza @​cba85

Notable Changes

The Performance category in the Lighthouse report now has an option to toggle "insights" - read more here.

Core

  • disable invalidationTracking trace event to prevent crash (#​16451)
  • migrate audits from devtoolsLogs/traces to DevtoolsLog/Trace (#​16448)
  • modify scoreDisplayMode for insight audits to match Perf panel (#​16432)
  • use with import attributes for legacy-javascript, bump to node 18.20 (#​16415)
  • image-size-responsive: use real mimeType to exclude svg (#​16443)
  • insights: drop slow-css-selector-insight for now (#​16457)
  • insights: implement duplicated-javascript-insight (#​16456)
  • insights: add prominent toggle banner to report (#​16461)
  • insights: implement network-dependency-tree insight (#​16407)
  • optimized-images: ignore internal encoding errors (#​16444)
  • preload-fonts: add Stylesheets to required artifacts (#​16421)
  • stacks: correctly identify angular (#​16439)
  • third-party-cookies: update description (#​16464)
  • tracehouse: fixup parent tasks when fudging endTime (#​16420)

Report

  • add analytics hook for insights state (#​16466)
  • adjust insights notice banner, localize strings (#​16463)
  • add insights group description (#​16455)
  • associate insight audits with stack packs (#​16440)
  • tweak style of insight tables; use system font (#​16434)
  • support node inside list detail, use in insight audits (#​16433)
  • display insights when using toggle, even if hidden (#​16431)

Deps

Docs

  • fix "standalone-template.html" broken link in report README (#​16429)

Tests

  • disable oopif-scripts smoke for devtools runner (#​16446)

Misc

  • prepare core/lib/legacy-javascript to be published to npm (#​16416)
  • treemap: represent sizes using transfer size (#​16460)
  • treemap: parse options properly from hash params (#​16459)
  • treemap: update coerceOptions to grab initialView (#​16458)
  • treemap: move table to right, remove Tabulator (#​16428)
  • treemap: set initial view mode from options (#​16427)
  • treemap: vary colors within bundle, update fonts (#​16403)

v12.5.1

Compare Source

Full Changelog

We expect this release to ship in the DevTools of Chrome 136, and to PageSpeed Insights within 2 weeks.

Core

  • trace-engine-result: exclude failed source maps (#​16412)

v12.5.0

Compare Source

Full Changelog

We expect this release to ship in the DevTools of Chrome 136, and to PageSpeed Insights within 2 weeks.

Notable Changes

  • legacy-javascript has been updated to target Baseline instead of esmodules for determining what code is considered "legacy" (#​16366).

Core

  • enable enhanced traces, pass source maps to trace engine (#​16396)
  • pass lantern settings to trace engine and add logging (#​16377)
  • adapt trace engine i18n functions to LH i18n model (#​16365)
  • computed-artifacts: disallow undefined properties (#​16397)
  • duplicated-javascript: increase threshold from 1 to 10 KiB (#​16368)
  • image-delivery-insight: use strings without savings (#​16364)
  • insights: implement use-cache-insight (#​16401)
  • insights: upgrade and implement forced reflow (#​16395)
  • insights: move to hidden group by default (#​16391)
  • insights: implement font display insight (#​16369)
  • legacy-javascript: rework/revert some unminified bundle detection (#​16394)
  • legacy-javascript: support rollup bundles (#​16389)
  • legacy-javascript: support esbuild bundles (#​16385)
  • legacy-javascript: support unminified code (#​16384)
  • legacy-javascript: improve transform detection (#​16381)
  • script-treemap-data: keep duplicate info when collapsing nodes (#​16379)

Deps

  • upgrade deps (#​16408)
  • upgrade trace_engine to 0.0.47 (#​16376)
  • upgrade trace_engine, reuse cdt bf-cache/deprecation strings (#​16362)

I18n

Tests

  • fix local mocha tests not properly setting isUnderTest (#​16399)
  • fix i18n format in Node 20.19 (#​16398)
  • trace-engine: fix expectations (#​16380)

Misc

  • move support files to core/lib/legacy-javascript (#​16393)
  • extract legacy javascript detection to core/lib (#​16392)
  • build: use current year for bundle license copyright header (#​16375)
  • treemap: restructure header to match new design (#​16402)

v12.4.0

Compare Source

Full Changelog

We expect this release to ship in the DevTools of Chrome 135, and to PageSpeed Insights within 2 weeks.

New contributors

Thanks to our new contributors 👽🐷🐰🐯🐻!

Notable Changes

  • Some performance audits are marked as informative under passing conditions rather than being hidden in the passed audits section. This release reduces the number of audits which have this behavior. (#​16315)

New Audits

  • ensure clickjacking mitigation through XFO or CSP (#​16290)

Core

  • implement more insight audits, handle localization (#​16326)
  • set relevant metric based on insight category (#​16325)
  • add hidden audits for each insight (#​16312)
  • cls-culprits-insight: implement (#​16357)
  • inspector-issues: support SRI message signature issues (#​16345)
  • inspector-issues: add select element a11y issue to types (#​16298)
  • legacy-javascript: upgrade babel and core-js (#​16331)
  • root-causes: grab from trace insights rather than use protocol (#​16352)
  • trace-engine: re-enable invalidations handler (#​16293)

Report

  • use container queries for responsive design in DevTools (#​16342)
  • render LH-only diagnostics alongside insights (#​16332)
  • add button to toggle experimental insights (#​16329)
  • add checklist detail type (#​16324)

Deps

I18n

Docs

  • readme: add Sonā to the list of Web Perf services (#​16282)

Tests

  • address upstream changes (#​16335)
  • refresh sample artifacts (#​16322)
  • dbw: revert unload handler expectations (#​16353)
  • devtools: fix error in smoke tests with DT throttling (#​16301)

Misc

  • remove issue assigner (#​16317)
  • ci: workaround new ubuntu 23 security issue for chromium (#​16296)
  • readme: add link to Neodymium (#​16349)
  • release: add script for updating critical dependencies (#​16359)
  • types: add missing type for explanation in NodeValue (#​16314)

v12.3.0

Compare Source

Full Changelog

We expect this release to ship in the DevTools of Chrome 133, and to PageSpeed Insights within 2 weeks.

New contributors

Thanks to our new contributors 👽🐷🐰🐯🐻!

New Audits

This release adds new security audits. These audits are informative and won't affect your best practices score.

  • Ensure proper origin isolation with COOP (#​16275)
  • Use a strong HSTS policy (#​16257)

Core

  • font-size: exclude invisible text (#​16281)

Deps

I18n

Docs

Tests

v12.2.3

Compare Source

Full Changelog

This release is only for PageSpeed Insights and we expect it to ship within 2 weeks.

Notable Changes

The CPU throttling factor for PageSpeed Insights has been adjusted (#​16256) to account for the low CPU performance benchmarks typical in PageSpeed production environments. In general, TBT metric times for all sites should improve when testing with PageSpeed Insights.

All other Lighthouse clients (Lighthouse CLI, the Node API, Lighthouse panel in DevTools, etc) should not be affected by this change.

Tests

  • inline-fs: fix error in Node 20 (#​16262)

v12.2.2

Compare Source

Full Changelog

We expect this release to ship in the DevTools of Chrome 133, and to PageSpeed Insights within 2 weeks.

New contributors

Thanks to our new contributors 👽🐷🐰🐯🐻!

Core

  • network-monitor: treat EventSource as non-critical (#​16225)
  • target-manager: ignore target if type is unknown (#​16221)

CLI

  • create writeFile destination if necessary (#​15990)

Deps

Clients

  • lr: set CPU throttling based on benchmark (#​16226)
  • lr: fix wrong render-blocking-resources transfer size (#​16190)

I18n

Docs

  • readme: add lighthouse-matchers to related projects (#​16239)
  • readme: add Guardius to services list (#​16235)

Tests

  • smoke: fix devtools test runner & a11y errors (#​16236)

Misc

v12.2.1

Compare Source

Full Changelog

We expect this release to ship in the DevTools of Chrome 130, and to PageSpeed Insights within 2 weeks.

Core

  • third-party-cookies: update description for 3PCD updates (#​16177, #​16158)
  • uses-text-compression: ignore percent threshold for large savings (#​16165)

Deps

Clients

  • devtools: require third-party-web to be provided (#​16166)

I18n

  • support reusing the same placeholder for ICU (#​16159)

Tests

  • pass logger to smokehouse runners to get log even on timeout (#​16175)
  • update BUILD.gn due to upstream CDT change (#​16171)
  • devtools: sync e2e (#​16174)
  • devtools: sync e2e (#​16160)

Misc

v12.2.0

Compare Source

Full Changelog

We expect this release to ship in the DevTools of Chrome 129, and to PageSpeed Insights within 2 weeks.

Core

  • import lantern from trace engine (#​16092)
  • long-tasks: link to latest guidance (#​16138)
  • stylesheets: disable transient stylesheet detection (#​16121)
  • third-party-summary: correct blocking time calculation (#​16117)
  • trace-engine-result: disable invalidations handler (#​16142)

Deps

Tests

Misc

  • remove alertdesk from README (#​16133)
  • build: update README.chromium when rolling devtools (#​16144)

v12.1.0

Compare Source

Full Changelog

We expect this release to ship in the DevTools of Chrome 128, and to PageSpeed Insights within 2 weeks.

New Contributors

Thanks to our new contributors 👽🐷🐰🐯🐻!

Notable Changes

  • remove first-meaningful-paint metric (#​16047)

Core

  • move simulator creation and network analysis to lib/lantern (#​16003)
  • handle target crash at any point (#​15985)
  • aria-allowed-role: fix title and description (#​16042)
  • inspector-issues: add shared dictionary issue (#​15993)
  • lantern: refactor to DevTools modules convention (#​16071)
  • lantern: rename files to PascalCase (#​16068)
  • lantern: remove last usages of Lighthouse NetworkRequest (#​16067)
  • lantern: remove usage of Lighthouse constants module (#​16062)
  • lantern: remove all LH types (#​16061)
  • lantern: move tbt-util.js to lib/lantern (#​16058)
  • lantern: separate TraceEngine specific code (#​16051)
  • lantern: extract main thread events w/o TraceProcessor (#​16049)
  • lantern: remove usage of Lighthouse's ProcessedNavigation (#​16048)
  • lantern: use LCP instead of FMP for TTI simulation bounds (#​16046)
  • lantern: use computed artifact to create graph using trace (#​16040)
  • lantern: rename NetworkRequest record to rawRequest (#​16037)
  • lantern: resolve some differences when using trace (#​16033)
  • lantern: create network graph from trace (experimental) (#​16026)
  • network: align headers end time with send when no data received (#​16044)
  • network: fix time units in network quiet calc (#​16013)
  • test: add generatable squoosh trace (#​15997)
  • test: add generatable trace for paint metrics (#​15994)
  • test: add generatable iframe trace (#​15995)
  • types: add missing fields to Result.Category and NodeDetails (#​16006)

CLI

  • stop treating chrome launcher kill() as async (#​15998)

Deps

I18n

Docs

  • remove await from chrome.kill() (#​15982)

Tests

  • use newer traces in network-analyzer-test.js (#​16043)
  • default to 0 for network trace data length (#​16041)
  • update remaining old traces for Lantern (#​16039)
  • use new trace in metrics-test for pwa (#​16025)
  • update many test traces, support .json.gz (#​16007)
  • add timeout to runSmokeTest (#​16017)
  • fix devtools e2e test runner (#​16018)
  • reduce expected value of render-blocking-requests smoke (#​16011)
  • update interactive test trace (#​16001)
  • use new button class name for devtools run script (#​15999)
  • ci: remove reference to deleted smoke test (#​16010)
  • lantern: fix some tests not running (#​16073)
  • lantern: refactor to DevTools test convention (#​16072)
  • lantern: remove usage of devtoolsLog in simulator tests (#​16065)
  • lantern: remove usage of computed SpeedIndex (#​16064)
  • lantern: remove usage of computed PageDependencyGraph (#​16063)
  • lantern: use TraceEngine directly in test fixtures (#​16057)
  • lantern: remove Speedline from Lantern unit test for now (#​16060)
  • lantern: remove devtools log from tests (#​16050)

Misc

  • change connectionId from string to number (#​15983)
  • ci: fix deprecated node usage in checkout@v3 (#​16022)
  • strings: fix WebAuthetication typo (#​16028)

v12.0.0

Compare Source

Full Changelog

We expect this release to ship in the DevTools of Chrome 126, and to PageSpeed Insights within 2 weeks.

New Contributors

Thanks to our new contributors 👽🐷🐰🐯🐻!

Notable Changes

PWA Category Removal

As per Chrome’s updated Installability Criteria, Lighthouse has removed the PWA category. For future PWA testing, users will be directed to use the updated PWA documentation.

SEO Category Reorganization

The SEO category has been updated to reflect the priorities of Google search in 2024. As such, several audits have been removed or moved to other categories:

  • The is-crawlable audit is now weighted high enough to fail the SEO category on its own. (#​15933)
  • The viewport and font-size audits are no longer priorities for SEO, but are still important for UX in general so they have been moved to the best practices category. (#​15930)
  • The plugins audit is no longer a priority for SEO and has been removed. (#​15928)
  • The tap-targets audit is no longer a priority for SEO and has been replaced with the target-size audit in accessibility. (#​15906)
Overall Savings Deprecation

The overallSavingsMs value on performance diagnostic audits has been deprecated (#​15902). We recommend using metricSavings.LCP or metricSavings.FCP to understand the estimated metric savings of performance diagnostics.

🆕 New Audits
Other Audit Changes
  • The layout-shifts-elements audit is removed. Improved layout shift information can be found in the layout-shifts audit. (#​15931)
  • The no-unload-listeners audit is removed. Unload listeners are deprecated and are still flagged in the deprecations and bf-cache audits. (#​15874)
  • The duplicate-id-active audit is removed because it's corresponding Axe check is deprecated. (#​15900)
  • The uses-rel-preload and preload-fonts audits have been moved to the experimental config. Preload advice is still on hold and these audits were already in a disabled state. (#​15876)

💥 Breaking Changes

  • split up CSSUsage artifact (#​15952)
  • remove budgets (#​15950)
  • remove relevant audits lists from config (#​15878)
  • remove ScriptElements artifact (#​15879)
  • config: use explicit diagnostic group (#​15901)
  • service-worker: remove service-worker gatherer (#​15942)

Core

  • remove pre-v10 compat for page graph construction (#​15948)
  • a11y: re-enable target-size hidden audit (#​15888)
  • driver: add sendCommandAndIgnore (#​15913)
  • gather: handle crash if CDP target crashes (#​11840)
  • lantern: always use flexible network ordering (#​14612)
  • lantern: remove LR statistics (#​15946)
  • lantern: inline rtt constant (#​15944)
  • lantern: add LanternError and adapter to LH error (#​15937)
  • lantern: correct overlapping tasks in CPU nodes (#​15938)
  • lantern: duplicate isNonNetworkProtocol in lib/lantern (#​15936)
  • lantern: replace usage of LH.Artifacts.ProcessedTrace (#​15905)
  • lantern: move lantern metrics to lib/lantern (#​15875)
  • metric: remove gatherContext mode check (#​15899)
  • render-blocking: use trace engine as the source of truth (#​15839)
  • runner: use early return for readability (#​15914)
  • seo: support Persian in link-text audit (#​15949)
  • target-size: use binary display mode (#​15910)

Report

  • fix hidden audit handling for non-perf categories (#​15968)

Deps

Clients

  • viewer: stop using legacy DOM api (#​15964)

I18n

Docs

  • bug-report: require users to read FAQs (#​14383)
  • readme: add DeploymentHawk to the list of integrations (#​15847)

Tests

Misc

  • deduplicate all the dom helpers (#​15960)
  • merge changelog from branch-11 (#​15957)
  • remove BenchmarkIndexes base artifact (#​15941)
  • update public gatherer list (#​15940)
  • remove residual lighthouse-cli file (#​15935)
  • use "processing duration" instead of "processing time" for INP (#​15893)
  • treemap: fix column sorting when some values are blank (#​15959)

Configuration

📅 Schedule: Branch creation - "after 10:00pm every weekday,before 5:00am every weekday,every weekend" in timezone America/Tijuana, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

See associated pull request for more information.
@angular-robot angular-robot requested a review from a team as a code owner May 24, 2025 05:04
@angular-robot angular-robot added action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project labels May 24, 2025
@angular-robot angular-robot requested review from adolgachev and mmalerba and removed request for a team May 24, 2025 05:04
@angular-robot angular-robot added action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project labels May 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant