lighthouse 9.2.0 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/changelog.md +67 -0
  2. package/dist/report/bundle.esm.js +23 -11
  3. package/dist/report/flow.js +11 -11
  4. package/dist/report/standalone.js +8 -8
  5. package/flow-report/src/common.tsx +1 -1
  6. package/flow-report/src/sidebar/flow.tsx +1 -1
  7. package/flow-report/src/util.ts +1 -2
  8. package/lighthouse-cli/bin.js +0 -4
  9. package/lighthouse-cli/cli-flags.js +22 -8
  10. package/lighthouse-cli/run.js +5 -1
  11. package/lighthouse-cli/test/smokehouse/frontends/smokehouse-bin.js +4 -2
  12. package/lighthouse-cli/test/smokehouse/lighthouse-runners/cli.js +1 -1
  13. package/lighthouse-cli/test/smokehouse/lighthouse-runners/devtools.js +103 -0
  14. package/lighthouse-cli/test/smokehouse/readme.md +10 -8
  15. package/lighthouse-cli/test/smokehouse/report-assert.js +1 -1
  16. package/lighthouse-cli/test/smokehouse/smokehouse.js +4 -5
  17. package/lighthouse-core/audits/accessibility/axe-audit.js +4 -4
  18. package/lighthouse-core/audits/accessibility/object-alt.js +3 -3
  19. package/lighthouse-core/audits/audit.js +19 -4
  20. package/lighthouse-core/audits/byte-efficiency/byte-efficiency-audit.js +1 -1
  21. package/lighthouse-core/audits/byte-efficiency/duplicated-javascript.js +1 -1
  22. package/lighthouse-core/audits/deprecations.js +2 -2
  23. package/lighthouse-core/audits/dobetterweb/inspector-issues.js +11 -11
  24. package/lighthouse-core/audits/dobetterweb/uses-http2.js +1 -1
  25. package/lighthouse-core/audits/font-display.js +1 -1
  26. package/lighthouse-core/audits/installable-manifest.js +1 -1
  27. package/lighthouse-core/audits/is-on-https.js +1 -1
  28. package/lighthouse-core/audits/maskable-icon.js +1 -1
  29. package/lighthouse-core/audits/multi-check-audit.js +1 -1
  30. package/lighthouse-core/audits/network-requests.js +4 -4
  31. package/lighthouse-core/audits/preload-fonts.js +2 -3
  32. package/lighthouse-core/audits/preload-lcp-image.js +2 -12
  33. package/lighthouse-core/audits/seo/is-crawlable.js +2 -1
  34. package/lighthouse-core/audits/themed-omnibox.js +1 -1
  35. package/lighthouse-core/audits/uses-rel-preload.js +2 -3
  36. package/lighthouse-core/audits/valid-source-maps.js +2 -2
  37. package/lighthouse-core/computed/image-records.js +1 -1
  38. package/lighthouse-core/computed/js-bundles.js +1 -1
  39. package/lighthouse-core/computed/metrics/lantern-metric.js +1 -1
  40. package/lighthouse-core/computed/metrics/timing-summary.js +35 -35
  41. package/lighthouse-core/computed/page-dependency-graph.js +2 -2
  42. package/lighthouse-core/computed/resource-summary.js +1 -1
  43. package/lighthouse-core/config/config-helpers.js +2 -2
  44. package/lighthouse-core/config/config.js +1 -1
  45. package/lighthouse-core/fraggle-rock/config/filters.js +23 -1
  46. package/lighthouse-core/fraggle-rock/config/validation.js +2 -2
  47. package/lighthouse-core/fraggle-rock/gather/navigation-runner.js +5 -4
  48. package/lighthouse-core/fraggle-rock/gather/snapshot-runner.js +0 -1
  49. package/lighthouse-core/fraggle-rock/gather/timespan-runner.js +0 -1
  50. package/lighthouse-core/fraggle-rock/user-flow.js +4 -4
  51. package/lighthouse-core/gather/connections/connection.js +1 -1
  52. package/lighthouse-core/gather/driver/execution-context.js +1 -1
  53. package/lighthouse-core/gather/driver/network-monitor.js +2 -2
  54. package/lighthouse-core/gather/driver/target-manager.js +1 -1
  55. package/lighthouse-core/gather/driver.js +1 -1
  56. package/lighthouse-core/gather/gatherers/console-messages.js +2 -2
  57. package/lighthouse-core/gather/gatherers/inspector-issues.js +34 -46
  58. package/lighthouse-core/gather/gatherers/js-usage.js +1 -1
  59. package/lighthouse-core/gather/gatherers/seo/font-size.js +1 -1
  60. package/lighthouse-core/gather/gatherers/trace-elements.js +8 -43
  61. package/lighthouse-core/index.js +4 -3
  62. package/lighthouse-core/lib/arbitrary-equality-map.js +1 -1
  63. package/lighthouse-core/lib/asset-saver.js +6 -4
  64. package/lighthouse-core/lib/dependency-graph/simulator/connection-pool.js +1 -1
  65. package/lighthouse-core/lib/dependency-graph/simulator/network-analyzer.js +1 -1
  66. package/lighthouse-core/lib/emulation.js +1 -1
  67. package/lighthouse-core/lib/icons.js +1 -2
  68. package/lighthouse-core/lib/median-run.js +1 -2
  69. package/lighthouse-core/lib/network-recorder.js +2 -2
  70. package/lighthouse-core/lib/network-request.js +1 -1
  71. package/lighthouse-core/lib/stack-packs.js +5 -0
  72. package/lighthouse-core/lib/tracehouse/cpu-profile-model.js +4 -6
  73. package/lighthouse-core/lib/tracehouse/main-thread-tasks.js +1 -1
  74. package/lighthouse-core/lib/tracehouse/trace-processor.js +14 -17
  75. package/lighthouse-core/lib/url-shim.js +15 -0
  76. package/lighthouse-core/runner.js +62 -49
  77. package/lighthouse-core/scripts/download-chrome.sh +15 -2
  78. package/package.json +21 -25
  79. package/report/assets/templates.html +2 -1
  80. package/report/clients/standalone.js +5 -1
  81. package/report/renderer/category-renderer.js +1 -1
  82. package/report/renderer/components.js +2 -2
  83. package/report/renderer/performance-category-renderer.js +4 -4
  84. package/report/renderer/report-renderer.js +1 -1
  85. package/report/renderer/report-ui-features.js +15 -3
  86. package/report/test/generator/report-generator-test.js +1 -1
  87. package/report/test/renderer/report-ui-features-test.js +22 -4
  88. package/report/test-assets/faux-psi.js +2 -3
  89. package/report/types/report-renderer.d.ts +2 -0
  90. package/shared/localization/locales/ar-XB.json +40 -4
  91. package/shared/localization/locales/ar.json +59 -23
  92. package/shared/localization/locales/bg.json +40 -4
  93. package/shared/localization/locales/ca.json +45 -9
  94. package/shared/localization/locales/cs.json +39 -3
  95. package/shared/localization/locales/da.json +43 -7
  96. package/shared/localization/locales/de.json +42 -6
  97. package/shared/localization/locales/el.json +59 -23
  98. package/shared/localization/locales/en-GB.json +43 -7
  99. package/shared/localization/locales/en-US.json +48 -6
  100. package/shared/localization/locales/en-XA.json +40 -4
  101. package/shared/localization/locales/en-XL.json +48 -6
  102. package/shared/localization/locales/es-419.json +39 -3
  103. package/shared/localization/locales/es.json +46 -10
  104. package/shared/localization/locales/fi.json +57 -21
  105. package/shared/localization/locales/fil.json +40 -4
  106. package/shared/localization/locales/fr.json +45 -9
  107. package/shared/localization/locales/he.json +41 -5
  108. package/shared/localization/locales/hi.json +59 -23
  109. package/shared/localization/locales/hr.json +57 -21
  110. package/shared/localization/locales/hu.json +39 -3
  111. package/shared/localization/locales/id.json +40 -4
  112. package/shared/localization/locales/it.json +40 -4
  113. package/shared/localization/locales/ja.json +39 -3
  114. package/shared/localization/locales/ko.json +40 -4
  115. package/shared/localization/locales/lt.json +40 -4
  116. package/shared/localization/locales/lv.json +56 -20
  117. package/shared/localization/locales/nl.json +40 -4
  118. package/shared/localization/locales/no.json +56 -20
  119. package/shared/localization/locales/pl.json +56 -20
  120. package/shared/localization/locales/pt-PT.json +57 -21
  121. package/shared/localization/locales/pt.json +41 -5
  122. package/shared/localization/locales/ro.json +39 -3
  123. package/shared/localization/locales/ru.json +40 -4
  124. package/shared/localization/locales/sk.json +39 -3
  125. package/shared/localization/locales/sl.json +39 -3
  126. package/shared/localization/locales/sr-Latn.json +40 -4
  127. package/shared/localization/locales/sr.json +40 -4
  128. package/shared/localization/locales/sv.json +39 -3
  129. package/shared/localization/locales/ta.json +47 -11
  130. package/shared/localization/locales/te.json +61 -25
  131. package/shared/localization/locales/th.json +39 -3
  132. package/shared/localization/locales/tr.json +40 -4
  133. package/shared/localization/locales/uk.json +40 -4
  134. package/shared/localization/locales/vi.json +63 -27
  135. package/shared/localization/locales/zh-HK.json +40 -4
  136. package/shared/localization/locales/zh-TW.json +45 -9
  137. package/shared/localization/locales/zh.json +41 -5
  138. package/third-party/chromium-synchronization/inspector-issueAdded-types-test.js +1 -1
  139. package/third-party/snyk/snapshot.json +4 -1
  140. package/types/artifacts.d.ts +16 -6
  141. package/types/robots-parser/index.d.ts +0 -20
@@ -553,12 +553,22 @@ declare module Artifacts {
553
553
  }
554
554
 
555
555
  interface InspectorIssues {
556
- mixedContent: LH.Crdp.Audits.MixedContentIssueDetails[];
557
- sameSiteCookies: LH.Crdp.Audits.SameSiteCookieIssueDetails[];
558
- blockedByResponse: LH.Crdp.Audits.BlockedByResponseIssueDetails[];
559
- heavyAds: LH.Crdp.Audits.HeavyAdIssueDetails[];
560
- contentSecurityPolicy: LH.Crdp.Audits.ContentSecurityPolicyIssueDetails[];
561
- deprecations: LH.Crdp.Audits.DeprecationIssueDetails[];
556
+ attributionReportingIssue: LH.Crdp.Audits.AttributionReportingIssueDetails[];
557
+ blockedByResponseIssue: LH.Crdp.Audits.BlockedByResponseIssueDetails[];
558
+ clientHintIssue: LH.Crdp.Audits.ClientHintIssueDetails[];
559
+ contentSecurityPolicyIssue: LH.Crdp.Audits.ContentSecurityPolicyIssueDetails[];
560
+ corsIssue: LH.Crdp.Audits.CorsIssueDetails[];
561
+ deprecationIssue: LH.Crdp.Audits.DeprecationIssueDetails[];
562
+ federatedAuthRequestIssue: LH.Crdp.Audits.FederatedAuthRequestIssueDetails[],
563
+ genericIssue: LH.Crdp.Audits.GenericIssueDetails[];
564
+ heavyAdIssue: LH.Crdp.Audits.HeavyAdIssueDetails[];
565
+ lowTextContrastIssue: LH.Crdp.Audits.LowTextContrastIssueDetails[];
566
+ mixedContentIssue: LH.Crdp.Audits.MixedContentIssueDetails[];
567
+ navigatorUserAgentIssue: LH.Crdp.Audits.NavigatorUserAgentIssueDetails[];
568
+ quirksModeIssue: LH.Crdp.Audits.QuirksModeIssueDetails[];
569
+ sameSiteCookieIssue: LH.Crdp.Audits.SameSiteCookieIssueDetails[];
570
+ sharedArrayBufferIssue: LH.Crdp.Audits.SharedArrayBufferIssueDetails[];
571
+ twaQualityEnforcement: LH.Crdp.Audits.TrustedWebActivityIssueDetails[];
562
572
  }
563
573
 
564
574
  // Computed artifact types below.
@@ -1,20 +0,0 @@
1
- /**
2
- * @license Copyright 2018 The Lighthouse Authors. All Rights Reserved.
3
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
4
- * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
5
- */
6
-
7
- declare module 'robots-parser' {
8
- interface Robots {
9
- isAllowed(url: string, ua?: string): boolean | undefined;
10
- isDisallowed(url: string, ua?: string): boolean | undefined;
11
- getMatchingLineNumber(url: string, ua?: string): number | undefined;
12
- getCrawlDelay(ua?: string): number | undefined;
13
- getSitemaps(): Array<string>;
14
- getPreferredHost(): string | null;
15
- }
16
-
17
- function RobotsParser(url: string, robotsTxt: string): Robots;
18
-
19
- export = RobotsParser;
20
- }