lighthouse 12.6.1-dev.20250623 → 12.6.1-dev.20250625

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 (80) hide show
  1. package/core/audits/audit.d.ts +7 -0
  2. package/core/audits/audit.js +15 -0
  3. package/core/audits/insights/cache-insight.js +2 -1
  4. package/core/audits/insights/cls-culprits-insight.js +3 -2
  5. package/core/audits/insights/insight-audit.d.ts +5 -2
  6. package/core/audits/insights/insight-audit.js +43 -3
  7. package/core/audits/insights/network-dependency-tree-insight.js +85 -8
  8. package/core/audits/layout-shifts.js +2 -1
  9. package/core/config/filters.js +1 -0
  10. package/core/config/validation.js +4 -0
  11. package/core/gather/base-artifacts.js +3 -0
  12. package/core/gather/driver/environment.d.ts +6 -0
  13. package/core/gather/driver/environment.js +17 -0
  14. package/core/gather/gatherers/inspector-issues.js +1 -1
  15. package/core/lib/bf-cache-strings.js +4 -1
  16. package/core/lib/deprecations-strings.d.ts +51 -47
  17. package/core/lib/deprecations-strings.js +14 -8
  18. package/core/scoring.d.ts +180 -15
  19. package/dist/report/bundle.esm.js +9 -3
  20. package/dist/report/flow.js +13 -7
  21. package/dist/report/standalone.js +10 -4
  22. package/package.json +9 -9
  23. package/report/assets/styles.css +7 -1
  24. package/report/renderer/components.js +1 -1
  25. package/report/renderer/details-renderer.d.ts +5 -0
  26. package/report/renderer/details-renderer.js +35 -3
  27. package/report/renderer/dom.d.ts +1 -0
  28. package/report/renderer/dom.js +2 -0
  29. package/report/renderer/report-ui-features.d.ts +1 -0
  30. package/report/renderer/report-ui-features.js +16 -0
  31. package/shared/localization/locales/ar-XB.json +57 -12
  32. package/shared/localization/locales/ar.json +57 -12
  33. package/shared/localization/locales/bg.json +58 -13
  34. package/shared/localization/locales/ca.json +58 -13
  35. package/shared/localization/locales/cs.json +58 -13
  36. package/shared/localization/locales/da.json +58 -13
  37. package/shared/localization/locales/de.json +58 -13
  38. package/shared/localization/locales/el.json +58 -13
  39. package/shared/localization/locales/en-GB.json +58 -13
  40. package/shared/localization/locales/en-US.json +12 -12
  41. package/shared/localization/locales/en-XL.json +12 -12
  42. package/shared/localization/locales/es-419.json +58 -13
  43. package/shared/localization/locales/es.json +56 -11
  44. package/shared/localization/locales/fi.json +58 -13
  45. package/shared/localization/locales/fil.json +58 -13
  46. package/shared/localization/locales/fr.json +58 -13
  47. package/shared/localization/locales/he.json +58 -13
  48. package/shared/localization/locales/hi.json +58 -13
  49. package/shared/localization/locales/hr.json +58 -13
  50. package/shared/localization/locales/hu.json +57 -12
  51. package/shared/localization/locales/id.json +58 -13
  52. package/shared/localization/locales/it.json +57 -12
  53. package/shared/localization/locales/ja.json +58 -13
  54. package/shared/localization/locales/ko.json +58 -13
  55. package/shared/localization/locales/lt.json +58 -13
  56. package/shared/localization/locales/lv.json +57 -12
  57. package/shared/localization/locales/nl.json +58 -13
  58. package/shared/localization/locales/no.json +58 -13
  59. package/shared/localization/locales/pl.json +57 -12
  60. package/shared/localization/locales/pt-PT.json +58 -13
  61. package/shared/localization/locales/pt.json +58 -13
  62. package/shared/localization/locales/ro.json +58 -13
  63. package/shared/localization/locales/ru.json +59 -14
  64. package/shared/localization/locales/sk.json +57 -12
  65. package/shared/localization/locales/sl.json +57 -12
  66. package/shared/localization/locales/sr-Latn.json +58 -13
  67. package/shared/localization/locales/sr.json +58 -13
  68. package/shared/localization/locales/sv.json +58 -13
  69. package/shared/localization/locales/ta.json +58 -13
  70. package/shared/localization/locales/te.json +58 -13
  71. package/shared/localization/locales/th.json +57 -12
  72. package/shared/localization/locales/tr.json +58 -13
  73. package/shared/localization/locales/uk.json +58 -13
  74. package/shared/localization/locales/vi.json +58 -13
  75. package/shared/localization/locales/zh-HK.json +58 -13
  76. package/shared/localization/locales/zh-TW.json +57 -12
  77. package/shared/localization/locales/zh.json +58 -13
  78. package/third-party/chromium-synchronization/inspector-issueAdded-types-test.js +1 -1
  79. package/types/artifacts.d.ts +2 -0
  80. package/types/lhr/audit-details.d.ts +12 -3
@@ -16,6 +16,10 @@ export const UIStrings = {
16
16
  * @description This warning occurs when a page attempts to request a resource whose URL contained both a newline character (`\n` or `\r`), and a less-than character (`<`). These resources are blocked.
17
17
  */
18
18
  CanRequestURLHTTPContainingNewline: "Resource requests whose URLs contained both removed whitespace `(n|r|t)` characters and less-than characters (`<`) are blocked. Please remove newlines and encode less-than characters from places like element attribute values in order to load these resources.",
19
+ /**
20
+ * @description Warning displayed to developers that they did not specify character encoding for HTML document, and that auto-detection of specific character set (i.e. ISO-2022-JP) used by the webiste won't be supported in the near futre.
21
+ */
22
+ CharsetAutoDetectionISO2022JP: "Auto-detection of ISO-2022-JP character set is deprecated and it will be disabled in the near future. Please specify character set in the Content Type header or by using a meta tag (https://developer.mozilla.org/en-US/docs/Glossary/Character_encoding).",
19
23
  /**
20
24
  * @description This warning occurs when the website attempts to invoke the deprecated `chrome.loadTimes().connectionInfo` API.
21
25
  */
@@ -56,10 +60,6 @@ export const UIStrings = {
56
60
  * @description Warning displayed to developers when a data: URL is assigned to SVGUseElement to let them know that the support is deprecated.
57
61
  */
58
62
  DataUrlInSvgUse: "Support for data: URLs in SVGUseElement is deprecated and it will be removed in the future.",
59
- /**
60
- * @description Warning displayed to developers when non-standard Mutation Events are used. These are deprecated and will be removed.
61
- */
62
- DOMMutationEvents: "DOM Mutation Events, including `DOMSubtreeModified`, `DOMNodeInserted`, `DOMNodeRemoved`, `DOMNodeRemovedFromDocument`, `DOMNodeInsertedIntoDocument`, and `DOMCharacterDataModified` are deprecated (https://w3c.github.io/uievents/#legacy-event-types) and will be removed. Please use `MutationObserver` instead.",
63
63
  /**
64
64
  * @description Warning displayed to developers when the Geolocation API is used from an insecure origin (one that isn't localhost or doesn't use HTTPS) to notify them that this use is no longer supported.
65
65
  */
@@ -228,6 +228,10 @@ export const UIStrings = {
228
228
  * @description A deprecation warning shown in the DevTools Issues tab. The placeholder is always the noun 'SharedArrayBuffer' which refers to a JavaScript construct. 'Extensions' refers to Chrome extensions. The warning is shown when Chrome Extensions attempt to use 'SharedArrayBuffer's under insecure circumstances.
229
229
  */
230
230
  V8SharedArrayBufferConstructedInExtensionWithoutIsolation: "Extensions should opt into cross-origin isolation to continue using `SharedArrayBuffer`. See https://developer.chrome.com/docs/extensions/mv3/cross-origin-isolation/.",
231
+ /**
232
+ * @description This warning occurs when the website attempts to use the deprecated GPUAdapter `isFallbackAdapter` attribute.
233
+ */
234
+ WebGPUAdapterIsFallbackAdapter: "The GPUAdapter `isFallbackAdapter` attribute is deprecated, instead use the GPUAdapterInfo `isFallbackAdapter` attribute.",
231
235
  /**
232
236
  * @description Warning displayed to developers that they are using `XMLHttpRequest` API in a way that they expect an unsupported character encoding `UTF-16` could be used in the server reply.
233
237
  */
@@ -255,6 +259,9 @@ export const DEPRECATIONS_METADATA = {
255
259
  "CanRequestURLHTTPContainingNewline": {
256
260
  "chromeStatusFeature": 5735596811091968
257
261
  },
262
+ "CharsetAutoDetectionISO2022JP": {
263
+ "chromeStatusFeature": 6576566521561088
264
+ },
258
265
  "ChromeLoadTimesConnectionInfo": {
259
266
  "chromeStatusFeature": 5637885046816768
260
267
  },
@@ -270,10 +277,6 @@ export const DEPRECATIONS_METADATA = {
270
277
  "CrossOriginAccessBasedOnDocumentDomain": {
271
278
  "milestone": 115
272
279
  },
273
- "DOMMutationEvents": {
274
- "chromeStatusFeature": 5083947249172480,
275
- "milestone": 127
276
- },
277
280
  "DataUrlInSvgUse": {
278
281
  "chromeStatusFeature": 5128825141198848,
279
282
  "milestone": 119
@@ -358,6 +361,9 @@ export const DEPRECATIONS_METADATA = {
358
361
  "V8SharedArrayBufferConstructedInExtensionWithoutIsolation": {
359
362
  "milestone": 96
360
363
  },
364
+ "WebGPUAdapterIsFallbackAdapter": {
365
+ "chromeStatusFeature": 4870179714236416
366
+ },
361
367
  "XHRJSONEncodingDetection": {
362
368
  "milestone": 93
363
369
  }
package/core/scoring.d.ts CHANGED
@@ -103,6 +103,24 @@ export class ReportScoring {
103
103
  } | {
104
104
  type: "list";
105
105
  items: ({
106
+ type: "network-tree";
107
+ longestChain: {
108
+ duration: number;
109
+ };
110
+ chains: {
111
+ [x: string]: {
112
+ url: string | import("./index.js").IcuMessage;
113
+ navStartToEndTime: number;
114
+ transferSize: number;
115
+ isLongest?: boolean | undefined;
116
+ children?: /*elided*/ any | undefined;
117
+ };
118
+ };
119
+ debugData?: {
120
+ [x: string]: any;
121
+ type: "debugdata";
122
+ } | undefined;
123
+ } | {
106
124
  [x: string]: any;
107
125
  type: "debugdata";
108
126
  } | {
@@ -152,6 +170,9 @@ export class ReportScoring {
152
170
  snippet?: string | import("./index.js").IcuMessage | undefined;
153
171
  nodeLabel?: string | import("./index.js").IcuMessage | undefined;
154
172
  explanation?: string | import("./index.js").IcuMessage | undefined;
173
+ } | {
174
+ type: "text";
175
+ value: import("./index.js").IcuMessage | string;
155
176
  } | {
156
177
  type: "subitems";
157
178
  items: /*elided*/ any[];
@@ -180,9 +201,6 @@ export class ReportScoring {
180
201
  type: "numeric";
181
202
  value: number;
182
203
  granularity?: number | undefined;
183
- } | {
184
- type: "text";
185
- value: import("./index.js").IcuMessage | string;
186
204
  } | undefined;
187
205
  debugData?: {
188
206
  [x: string]: any;
@@ -220,6 +238,153 @@ export class ReportScoring {
220
238
  snippet?: string | import("./index.js").IcuMessage | undefined;
221
239
  nodeLabel?: string | import("./index.js").IcuMessage | undefined;
222
240
  explanation?: string | import("./index.js").IcuMessage | undefined;
241
+ } | {
242
+ type: "text";
243
+ value: import("./index.js").IcuMessage | string;
244
+ } | {
245
+ type: "list-section";
246
+ title?: (import("./index.js").IcuMessage | string) | undefined;
247
+ description?: (import("./index.js").IcuMessage | string) | undefined;
248
+ value: {
249
+ type: "network-tree";
250
+ longestChain: {
251
+ duration: number;
252
+ };
253
+ chains: {
254
+ [x: string]: {
255
+ url: string | import("./index.js").IcuMessage;
256
+ navStartToEndTime: number;
257
+ transferSize: number;
258
+ isLongest?: boolean | undefined;
259
+ children?: /*elided*/ any | undefined;
260
+ };
261
+ };
262
+ debugData?: {
263
+ [x: string]: any;
264
+ type: "debugdata";
265
+ } | undefined;
266
+ } | {
267
+ [x: string]: any;
268
+ type: "debugdata";
269
+ } | {
270
+ type: "checklist";
271
+ items: {
272
+ [x: string]: {
273
+ value: boolean;
274
+ label: import("./index.js").IcuMessage | string;
275
+ };
276
+ };
277
+ debugData?: {
278
+ [x: string]: any;
279
+ type: "debugdata";
280
+ } | undefined;
281
+ } | {
282
+ type: "table";
283
+ headings: {
284
+ key: string | import("./index.js").IcuMessage | null;
285
+ label: import("./index.js").IcuMessage | string;
286
+ valueType: import("../types/lhr/audit-details.js").default.ItemValueType;
287
+ subItemsHeading?: {
288
+ key: string | import("./index.js").IcuMessage;
289
+ valueType?: import("../types/lhr/audit-details.js").default.ItemValueType | undefined;
290
+ displayUnit?: string | import("./index.js").IcuMessage | undefined;
291
+ granularity?: number | undefined;
292
+ } | undefined;
293
+ displayUnit?: string | import("./index.js").IcuMessage | undefined;
294
+ granularity?: number | undefined;
295
+ }[];
296
+ items: {
297
+ [x: string]: string | number | boolean | import("./index.js").IcuMessage | {
298
+ [x: string]: any;
299
+ type: "debugdata";
300
+ } | {
301
+ type: "node";
302
+ lhId?: string | import("./index.js").IcuMessage | undefined;
303
+ path?: string | import("./index.js").IcuMessage | undefined;
304
+ selector?: string | import("./index.js").IcuMessage | undefined;
305
+ boundingRect?: {
306
+ width: number;
307
+ height: number;
308
+ top: number;
309
+ right: number;
310
+ bottom: number;
311
+ left: number;
312
+ } | undefined;
313
+ snippet?: string | import("./index.js").IcuMessage | undefined;
314
+ nodeLabel?: string | import("./index.js").IcuMessage | undefined;
315
+ explanation?: string | import("./index.js").IcuMessage | undefined;
316
+ } | {
317
+ type: "text";
318
+ value: import("./index.js").IcuMessage | string;
319
+ } | {
320
+ type: "subitems";
321
+ items: /*elided*/ any[];
322
+ } | {
323
+ type: "source-location";
324
+ url: string | import("./index.js").IcuMessage;
325
+ urlProvider: "network" | "comment";
326
+ line: number;
327
+ column: number;
328
+ original?: {
329
+ file: string | import("./index.js").IcuMessage;
330
+ line: number;
331
+ column: number;
332
+ } | undefined;
333
+ } | {
334
+ type: "link";
335
+ text: string | import("./index.js").IcuMessage;
336
+ url: string | import("./index.js").IcuMessage;
337
+ } | {
338
+ type: "url";
339
+ value: string | import("./index.js").IcuMessage;
340
+ } | {
341
+ type: "code";
342
+ value: import("./index.js").IcuMessage | string;
343
+ } | {
344
+ type: "numeric";
345
+ value: number;
346
+ granularity?: number | undefined;
347
+ } | undefined;
348
+ debugData?: {
349
+ [x: string]: any;
350
+ type: "debugdata";
351
+ } | undefined;
352
+ subItems?: {
353
+ type: "subitems";
354
+ items: /*elided*/ any[];
355
+ } | undefined;
356
+ }[];
357
+ summary?: {
358
+ wastedMs?: number | undefined;
359
+ wastedBytes?: number | undefined;
360
+ } | undefined;
361
+ sortedBy?: (string | import("./index.js").IcuMessage)[] | undefined;
362
+ isEntityGrouped?: boolean | undefined;
363
+ skipSumming?: (string | import("./index.js").IcuMessage)[] | undefined;
364
+ debugData?: {
365
+ [x: string]: any;
366
+ type: "debugdata";
367
+ } | undefined;
368
+ } | {
369
+ type: "node";
370
+ lhId?: string | import("./index.js").IcuMessage | undefined;
371
+ path?: string | import("./index.js").IcuMessage | undefined;
372
+ selector?: string | import("./index.js").IcuMessage | undefined;
373
+ boundingRect?: {
374
+ width: number;
375
+ height: number;
376
+ top: number;
377
+ right: number;
378
+ bottom: number;
379
+ left: number;
380
+ } | undefined;
381
+ snippet?: string | import("./index.js").IcuMessage | undefined;
382
+ nodeLabel?: string | import("./index.js").IcuMessage | undefined;
383
+ explanation?: string | import("./index.js").IcuMessage | undefined;
384
+ } | {
385
+ type: "text";
386
+ value: import("./index.js").IcuMessage | string;
387
+ };
223
388
  })[];
224
389
  debugData?: {
225
390
  [x: string]: any;
@@ -260,6 +425,9 @@ export class ReportScoring {
260
425
  snippet?: string | import("./index.js").IcuMessage | undefined;
261
426
  nodeLabel?: string | import("./index.js").IcuMessage | undefined;
262
427
  explanation?: string | import("./index.js").IcuMessage | undefined;
428
+ } | {
429
+ type: "text";
430
+ value: import("./index.js").IcuMessage | string;
263
431
  } | {
264
432
  type: "subitems";
265
433
  items: {
@@ -282,6 +450,9 @@ export class ReportScoring {
282
450
  snippet?: string | import("./index.js").IcuMessage | undefined;
283
451
  nodeLabel?: string | import("./index.js").IcuMessage | undefined;
284
452
  explanation?: string | import("./index.js").IcuMessage | undefined;
453
+ } | {
454
+ type: "text";
455
+ value: import("./index.js").IcuMessage | string;
285
456
  } | /*elided*/ any | {
286
457
  type: "source-location";
287
458
  url: string | import("./index.js").IcuMessage;
@@ -307,9 +478,6 @@ export class ReportScoring {
307
478
  type: "numeric";
308
479
  value: number;
309
480
  granularity?: number | undefined;
310
- } | {
311
- type: "text";
312
- value: import("./index.js").IcuMessage | string;
313
481
  } | undefined;
314
482
  debugData?: {
315
483
  [x: string]: any;
@@ -342,9 +510,6 @@ export class ReportScoring {
342
510
  type: "numeric";
343
511
  value: number;
344
512
  granularity?: number | undefined;
345
- } | {
346
- type: "text";
347
- value: import("./index.js").IcuMessage | string;
348
513
  } | undefined;
349
514
  url: string | import("./index.js").IcuMessage;
350
515
  wastedBytes?: number | undefined;
@@ -376,6 +541,9 @@ export class ReportScoring {
376
541
  snippet?: string | import("./index.js").IcuMessage | undefined;
377
542
  nodeLabel?: string | import("./index.js").IcuMessage | undefined;
378
543
  explanation?: string | import("./index.js").IcuMessage | undefined;
544
+ } | {
545
+ type: "text";
546
+ value: import("./index.js").IcuMessage | string;
379
547
  } | /*elided*/ any | {
380
548
  type: "source-location";
381
549
  url: string | import("./index.js").IcuMessage;
@@ -401,9 +569,6 @@ export class ReportScoring {
401
569
  type: "numeric";
402
570
  value: number;
403
571
  granularity?: number | undefined;
404
- } | {
405
- type: "text";
406
- value: import("./index.js").IcuMessage | string;
407
572
  } | undefined;
408
573
  debugData?: {
409
574
  [x: string]: any;
@@ -478,6 +643,9 @@ export class ReportScoring {
478
643
  snippet?: string | import("./index.js").IcuMessage | undefined;
479
644
  nodeLabel?: string | import("./index.js").IcuMessage | undefined;
480
645
  explanation?: string | import("./index.js").IcuMessage | undefined;
646
+ } | {
647
+ type: "text";
648
+ value: import("./index.js").IcuMessage | string;
481
649
  } | {
482
650
  type: "subitems";
483
651
  items: /*elided*/ any[];
@@ -506,9 +674,6 @@ export class ReportScoring {
506
674
  type: "numeric";
507
675
  value: number;
508
676
  granularity?: number | undefined;
509
- } | {
510
- type: "text";
511
- value: import("./index.js").IcuMessage | string;
512
677
  } | undefined;
513
678
  debugData?: {
514
679
  [x: string]: any;