lighthouse 11.7.0-dev.20240416 → 11.7.0-dev.20240418

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 (101) hide show
  1. package/cli/bin.js +0 -7
  2. package/cli/cli-flags.d.ts +1 -5
  3. package/cli/cli-flags.js +1 -5
  4. package/cli/test/smokehouse/core-tests.js +0 -2
  5. package/core/audits/accessibility/aria-conditional-attr.d.ts +10 -0
  6. package/core/audits/accessibility/aria-conditional-attr.js +43 -0
  7. package/core/audits/accessibility/aria-deprecated-role.d.ts +10 -0
  8. package/core/audits/accessibility/aria-deprecated-role.js +43 -0
  9. package/core/audits/accessibility/aria-prohibited-attr.d.ts +10 -0
  10. package/core/audits/accessibility/aria-prohibited-attr.js +44 -0
  11. package/core/audits/byte-efficiency/render-blocking-resources.js +3 -1
  12. package/core/audits/byte-efficiency/unminified-css.js +2 -2
  13. package/core/audits/byte-efficiency/unused-css-rules.js +3 -1
  14. package/core/audits/font-display.js +2 -2
  15. package/core/audits/resource-summary.d.ts +2 -0
  16. package/core/audits/resource-summary.js +5 -4
  17. package/core/computed/resource-summary.d.ts +10 -12
  18. package/core/computed/resource-summary.js +12 -19
  19. package/core/computed/unused-css.d.ts +3 -1
  20. package/core/computed/unused-css.js +6 -5
  21. package/core/config/config-helpers.js +0 -4
  22. package/core/config/constants.js +0 -1
  23. package/core/config/default-config.js +7 -14
  24. package/core/gather/gatherers/accessibility.js +3 -3
  25. package/core/gather/gatherers/css-usage.d.ts +0 -21
  26. package/core/gather/gatherers/css-usage.js +9 -119
  27. package/core/gather/gatherers/stylesheets.d.ts +26 -0
  28. package/core/gather/gatherers/stylesheets.js +138 -0
  29. package/core/lib/i18n/i18n.d.ts +0 -1
  30. package/core/lib/i18n/i18n.js +0 -2
  31. package/core/runner.js +0 -1
  32. package/dist/report/bundle.esm.js +2 -19
  33. package/dist/report/flow.js +5 -22
  34. package/dist/report/standalone.js +3 -20
  35. package/package.json +3 -3
  36. package/readme.md +2 -2
  37. package/report/assets/styles.css +0 -17
  38. package/report/renderer/components.js +1 -1
  39. package/report/renderer/dom.d.ts +1 -1
  40. package/report/renderer/dom.js +1 -1
  41. package/report/renderer/performance-category-renderer.js +0 -21
  42. package/shared/localization/locales/ar-XB.json +61 -91
  43. package/shared/localization/locales/ar.json +61 -91
  44. package/shared/localization/locales/bg.json +61 -91
  45. package/shared/localization/locales/ca.json +61 -91
  46. package/shared/localization/locales/cs.json +61 -91
  47. package/shared/localization/locales/da.json +61 -91
  48. package/shared/localization/locales/de.json +61 -91
  49. package/shared/localization/locales/el.json +61 -91
  50. package/shared/localization/locales/en-GB.json +61 -91
  51. package/shared/localization/locales/en-US.json +27 -30
  52. package/shared/localization/locales/en-XA.json +61 -91
  53. package/shared/localization/locales/en-XL.json +27 -30
  54. package/shared/localization/locales/es-419.json +61 -91
  55. package/shared/localization/locales/es.json +61 -91
  56. package/shared/localization/locales/fi.json +61 -91
  57. package/shared/localization/locales/fil.json +60 -90
  58. package/shared/localization/locales/fr.json +61 -91
  59. package/shared/localization/locales/he.json +61 -91
  60. package/shared/localization/locales/hi.json +61 -91
  61. package/shared/localization/locales/hr.json +62 -92
  62. package/shared/localization/locales/hu.json +61 -91
  63. package/shared/localization/locales/id.json +61 -91
  64. package/shared/localization/locales/it.json +61 -91
  65. package/shared/localization/locales/ja.json +61 -91
  66. package/shared/localization/locales/ko.json +61 -91
  67. package/shared/localization/locales/lt.json +61 -91
  68. package/shared/localization/locales/lv.json +61 -91
  69. package/shared/localization/locales/nl.json +61 -91
  70. package/shared/localization/locales/no.json +61 -91
  71. package/shared/localization/locales/pl.json +60 -90
  72. package/shared/localization/locales/pt-PT.json +61 -91
  73. package/shared/localization/locales/pt.json +63 -93
  74. package/shared/localization/locales/ro.json +61 -91
  75. package/shared/localization/locales/ru.json +61 -91
  76. package/shared/localization/locales/sk.json +61 -91
  77. package/shared/localization/locales/sl.json +61 -91
  78. package/shared/localization/locales/sr-Latn.json +61 -91
  79. package/shared/localization/locales/sr.json +61 -91
  80. package/shared/localization/locales/sv.json +61 -91
  81. package/shared/localization/locales/ta.json +60 -90
  82. package/shared/localization/locales/te.json +61 -91
  83. package/shared/localization/locales/th.json +61 -91
  84. package/shared/localization/locales/tr.json +61 -91
  85. package/shared/localization/locales/uk.json +61 -91
  86. package/shared/localization/locales/vi.json +60 -90
  87. package/shared/localization/locales/zh-HK.json +61 -91
  88. package/shared/localization/locales/zh-TW.json +60 -90
  89. package/shared/localization/locales/zh.json +61 -91
  90. package/tsconfig.json +0 -1
  91. package/types/artifacts.d.ts +3 -1
  92. package/types/externs.d.ts +0 -2
  93. package/types/lh.d.ts +0 -2
  94. package/types/lhr/settings.d.ts +0 -4
  95. package/core/audits/performance-budget.d.ts +0 -39
  96. package/core/audits/performance-budget.js +0 -154
  97. package/core/audits/timing-budget.d.ts +0 -43
  98. package/core/audits/timing-budget.js +0 -175
  99. package/core/config/budget.d.ts +0 -74
  100. package/core/config/budget.js +0 -340
  101. package/types/lhr/budget.d.ts +0 -60
@@ -35,6 +35,24 @@
35
35
  "core/audits/accessibility/aria-command-name.js | title": {
36
36
  "message": "`button`, `link`, and `menuitem` elements have accessible names"
37
37
  },
38
+ "core/audits/accessibility/aria-conditional-attr.js | description": {
39
+ "message": "Some ARIA attributes are only allowed on an element under certain conditions. [Learn more about conditional ARIA attributes](https://dequeuniversity.com/rules/axe/4.9/aria-conditional-attr)."
40
+ },
41
+ "core/audits/accessibility/aria-conditional-attr.js | failureTitle": {
42
+ "message": "ARIA attributes are not used as specified for the element's role"
43
+ },
44
+ "core/audits/accessibility/aria-conditional-attr.js | title": {
45
+ "message": "ARIA attributes are used as specified for the element's role"
46
+ },
47
+ "core/audits/accessibility/aria-deprecated-role.js | description": {
48
+ "message": "Deprecated ARIA roles may not be processed correctly by assistive technology. [Learn more about deprecated ARIA roles](https://dequeuniversity.com/rules/axe/4.9/aria-deprecated-role)."
49
+ },
50
+ "core/audits/accessibility/aria-deprecated-role.js | failureTitle": {
51
+ "message": "Deprecated ARIA roles were used"
52
+ },
53
+ "core/audits/accessibility/aria-deprecated-role.js | title": {
54
+ "message": "Deprecated ARIA roles were not used"
55
+ },
38
56
  "core/audits/accessibility/aria-dialog-name.js | description": {
39
57
  "message": "ARIA dialog elements without accessible names may prevent screen readers users from discerning the purpose of these elements. [Learn how to make ARIA dialog elements more accessible](https://dequeuniversity.com/rules/axe/4.9/aria-dialog-name)."
40
58
  },
@@ -89,6 +107,15 @@
89
107
  "core/audits/accessibility/aria-progressbar-name.js | title": {
90
108
  "message": "ARIA `progressbar` elements have accessible names"
91
109
  },
110
+ "core/audits/accessibility/aria-prohibited-attr.js | description": {
111
+ "message": "Using ARIA attributes in roles where they are prohibited can mean that important information is not communicated to users of assistive technologies. [Learn more about prohibited ARIA roles](https://dequeuniversity.com/rules/axe/4.9/aria-prohibited-attr)."
112
+ },
113
+ "core/audits/accessibility/aria-prohibited-attr.js | failureTitle": {
114
+ "message": "Elements use prohibited ARIA attributes"
115
+ },
116
+ "core/audits/accessibility/aria-prohibited-attr.js | title": {
117
+ "message": "Elements use only permitted ARIA attributes"
118
+ },
92
119
  "core/audits/accessibility/aria-required-attr.js | description": {
93
120
  "message": "Some ARIA roles have required attributes that describe the state of the element to screen readers. [Learn more about roles and required attributes](https://dequeuniversity.com/rules/axe/4.9/aria-required-attr)."
94
121
  },
@@ -1160,15 +1187,6 @@
1160
1187
  "core/audits/non-composited-animations.js | unsupportedTimingParameters": {
1161
1188
  "message": "Effect has unsupported timing parameters"
1162
1189
  },
1163
- "core/audits/performance-budget.js | description": {
1164
- "message": "Keep the quantity and size of network requests under the targets set by the provided performance budget. [Learn more about performance budgets](https://developers.google.com/web/tools/lighthouse/audits/budgets)."
1165
- },
1166
- "core/audits/performance-budget.js | requestCountOverBudget": {
1167
- "message": "{count, plural,\n =1 {1 request}\n other {# requests}\n }"
1168
- },
1169
- "core/audits/performance-budget.js | title": {
1170
- "message": "Performance budget"
1171
- },
1172
1190
  "core/audits/preload-fonts.js | description": {
1173
1191
  "message": "Preload `optional` fonts so first-time visitors may use them. [Learn more about preloading fonts](https://web.dev/articles/preload-optional-fonts)"
1174
1192
  },
@@ -1412,18 +1430,6 @@
1412
1430
  "core/audits/third-party-summary.js | title": {
1413
1431
  "message": "Minimize third-party usage"
1414
1432
  },
1415
- "core/audits/timing-budget.js | columnMeasurement": {
1416
- "message": "Measurement"
1417
- },
1418
- "core/audits/timing-budget.js | columnTimingMetric": {
1419
- "message": "Metric"
1420
- },
1421
- "core/audits/timing-budget.js | description": {
1422
- "message": "Set a timing budget to help you keep an eye on the performance of your site. Performant sites load fast and respond to user input events quickly. [Learn more about performance budgets](https://developers.google.com/web/tools/lighthouse/audits/budgets)."
1423
- },
1424
- "core/audits/timing-budget.js | title": {
1425
- "message": "Timing budget"
1426
- },
1427
1433
  "core/audits/unsized-images.js | description": {
1428
1434
  "message": "Set an explicit width and height on image elements to reduce layout shifts and improve CLS. [Learn how to set image dimensions](https://web.dev/articles/optimize-cls#images_without_dimensions)"
1429
1435
  },
@@ -1595,12 +1601,6 @@
1595
1601
  "core/config/default-config.js | bestPracticesUXGroupTitle": {
1596
1602
  "message": "User Experience"
1597
1603
  },
1598
- "core/config/default-config.js | budgetsGroupDescription": {
1599
- "message": "Performance budgets set standards for the performance of your site."
1600
- },
1601
- "core/config/default-config.js | budgetsGroupTitle": {
1602
- "message": "Budgets"
1603
- },
1604
1604
  "core/config/default-config.js | diagnosticsGroupDescription": {
1605
1605
  "message": "More information about the performance of your application. These numbers don't [directly affect](https://developer.chrome.com/docs/lighthouse/performance/performance-scoring/) the Performance score."
1606
1606
  },
@@ -2294,9 +2294,6 @@
2294
2294
  "core/lib/i18n/i18n.js | columnName": {
2295
2295
  "message": "Name"
2296
2296
  },
2297
- "core/lib/i18n/i18n.js | columnOverBudget": {
2298
- "message": "Over Budget"
2299
- },
2300
2297
  "core/lib/i18n/i18n.js | columnRequests": {
2301
2298
  "message": "Requests"
2302
2299
  },