lighthouse 11.3.0-dev.20231206 → 11.3.0-dev.20231208

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 (45) hide show
  1. package/core/audits/bf-cache.d.ts +1 -0
  2. package/core/audits/bf-cache.js +11 -1
  3. package/core/audits/bootup-time.js +3 -0
  4. package/core/audits/byte-efficiency/byte-efficiency-audit.js +6 -4
  5. package/core/audits/byte-efficiency/duplicated-javascript.d.ts +0 -6
  6. package/core/audits/byte-efficiency/duplicated-javascript.js +9 -37
  7. package/core/audits/byte-efficiency/legacy-javascript.js +1 -1
  8. package/core/audits/byte-efficiency/unminified-javascript.js +2 -2
  9. package/core/audits/byte-efficiency/unused-javascript.js +10 -10
  10. package/core/audits/layout-shift-elements.js +23 -12
  11. package/core/audits/metrics/cumulative-layout-shift.js +5 -1
  12. package/core/audits/resource-summary.d.ts +11 -0
  13. package/core/audits/resource-summary.js +86 -0
  14. package/core/audits/third-party-cookies.d.ts +22 -0
  15. package/core/audits/third-party-cookies.js +112 -0
  16. package/core/computed/metrics/cumulative-layout-shift.d.ts +13 -1
  17. package/core/computed/metrics/cumulative-layout-shift.js +47 -1
  18. package/core/computed/metrics/lantern-first-contentful-paint.d.ts +50 -16
  19. package/core/computed/metrics/lantern-first-contentful-paint.js +56 -59
  20. package/core/computed/metrics/lantern-first-meaningful-paint.js +10 -12
  21. package/core/computed/metrics/lantern-largest-contentful-paint.js +9 -12
  22. package/core/computed/metrics/lantern-metric.d.ts +2 -2
  23. package/core/computed/metrics/lantern-metric.js +6 -5
  24. package/core/config/default-config.js +4 -0
  25. package/core/config/filters.js +1 -0
  26. package/core/gather/base-artifacts.js +2 -1
  27. package/core/gather/gatherers/css-usage.js +5 -0
  28. package/core/gather/gatherers/trace-elements.d.ts +6 -15
  29. package/core/gather/gatherers/trace-elements.js +15 -71
  30. package/core/lib/i18n/i18n.d.ts +2 -2
  31. package/core/lib/i18n/i18n.js +2 -2
  32. package/core/lib/network-request.js +4 -1
  33. package/core/lib/rect-helpers.d.ts +5 -0
  34. package/core/lib/rect-helpers.js +15 -0
  35. package/core/lib/script-helpers.d.ts +1 -1
  36. package/core/lib/script-helpers.js +1 -1
  37. package/dist/report/bundle.esm.js +3 -3
  38. package/dist/report/flow.js +5 -5
  39. package/dist/report/standalone.js +4 -4
  40. package/package.json +1 -1
  41. package/report/renderer/performance-category-renderer.js +4 -2
  42. package/shared/localization/locales/en-US.json +15 -0
  43. package/shared/localization/locales/en-XL.json +15 -0
  44. package/tsconfig.json +1 -0
  45. package/types/artifacts.d.ts +3 -2
@@ -53,6 +53,8 @@ interface UniversalBaseArtifacts {
53
53
  HostFormFactor: 'desktop'|'mobile';
54
54
  /** The user agent string of the version of Chrome used. */
55
55
  HostUserAgent: string;
56
+ /** The product string of the version of Chrome used. Example: HeadlessChrome/123.2.2.0 would be from old headless. */
57
+ HostProduct: string;
56
58
  /** Information about how Lighthouse artifacts were gathered. */
57
59
  GatherContext: {gatherMode: Gatherer.GatherMode};
58
60
  }
@@ -558,9 +560,8 @@ declare module Artifacts {
558
560
 
559
561
  interface TraceElement {
560
562
  traceEventType: 'largest-contentful-paint'|'layout-shift'|'animation'|'responsiveness';
561
- score?: number;
562
563
  node: NodeDetails;
563
- nodeId?: number;
564
+ nodeId: number;
564
565
  animations?: {name?: string, failureReasonsMask?: number, unsupportedProperties?: string[]}[];
565
566
  type?: string;
566
567
  }