lighthouse 13.6.0-dev.20261112 → 13.6.0-dev.20261117

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 (152) hide show
  1. package/.agents/skills/update-ard-port/SKILL.md +1 -1
  2. package/cli/bin.js +8 -3
  3. package/cli/open-file.js +1 -1
  4. package/cli/printer.js +1 -1
  5. package/cli/run.d.ts +7 -0
  6. package/cli/run.js +42 -5
  7. package/cli/sentry-prompt.js +2 -1
  8. package/cli/test/smokehouse/frontends/smokehouse-bin.js +1 -1
  9. package/cli/test/smokehouse/lighthouse-runners/cli.js +1 -2
  10. package/cli/test/smokehouse/report-assert.js +1 -2
  11. package/cli/test/smokehouse/smokehouse.js +1 -2
  12. package/core/audits/autocomplete.js +1 -2
  13. package/core/audits/baseline.d.ts +3 -0
  14. package/core/audits/bootup-time.js +1 -2
  15. package/core/audits/errors-in-console.js +1 -2
  16. package/core/audits/mainthread-work-breakdown.js +1 -2
  17. package/core/audits/metrics.d.ts +2 -2
  18. package/core/audits/metrics.js +1 -1
  19. package/core/computed/computed-artifact.js +1 -2
  20. package/core/computed/entity-classification.d.ts +3 -3
  21. package/core/computed/entity-classification.js +5 -3
  22. package/core/computed/js-bundles.js +1 -2
  23. package/core/computed/lcp-network-record.js +1 -1
  24. package/core/computed/load-simulator.d.ts +5 -3
  25. package/core/computed/load-simulator.js +9 -2
  26. package/core/computed/metrics/lcp-breakdown.d.ts +19 -0
  27. package/core/computed/metrics/lcp-breakdown.js +71 -8
  28. package/core/computed/metrics/responsiveness.d.ts +5 -3
  29. package/core/computed/metrics/responsiveness.js +1 -1
  30. package/core/computed/metrics/time-to-first-byte.js +3 -1
  31. package/core/computed/metrics/timing-summary.d.ts +7 -5
  32. package/core/computed/metrics/timing-summary.js +3 -4
  33. package/core/computed/navigation-insights.d.ts +5 -3
  34. package/core/computed/navigation-insights.js +1 -1
  35. package/core/computed/network-analysis.js +1 -2
  36. package/core/computed/page-dependency-graph.d.ts +5 -3
  37. package/core/computed/page-dependency-graph.js +5 -2
  38. package/core/computed/trace-engine-result.d.ts +7 -5
  39. package/core/computed/trace-engine-result.js +9 -14
  40. package/core/computed/unused-css.d.ts +2 -2
  41. package/core/computed/unused-css.js +1 -1
  42. package/core/config/config.js +1 -2
  43. package/core/gather/base-artifacts.js +1 -2
  44. package/core/gather/driver/environment.js +1 -2
  45. package/core/gather/driver/navigation.js +1 -2
  46. package/core/gather/driver/network-monitor.js +1 -2
  47. package/core/gather/driver/prepare.js +1 -2
  48. package/core/gather/driver/storage.js +1 -2
  49. package/core/gather/driver/target-manager.js +1 -2
  50. package/core/gather/driver/wait-for-condition.js +1 -2
  51. package/core/gather/driver.js +1 -2
  52. package/core/gather/gatherers/agentic/ard.js +1 -1
  53. package/core/gather/gatherers/agentic/llms-txt.js +1 -2
  54. package/core/gather/gatherers/image-elements.js +1 -2
  55. package/core/gather/gatherers/seo/robots-txt.js +1 -2
  56. package/core/gather/gatherers/stacks.js +1 -2
  57. package/core/gather/gatherers/stylesheets.js +1 -2
  58. package/core/gather/navigation-runner.js +1 -1
  59. package/core/gather/runner-helpers.js +1 -2
  60. package/core/gather/session.js +1 -2
  61. package/core/gather/snapshot-runner.js +1 -2
  62. package/core/gather/timespan-runner.js +1 -2
  63. package/core/lib/asset-saver.js +1 -2
  64. package/core/lib/baseline/web-features-data.json +12 -3
  65. package/core/lib/baseline/web-features-metadata.json +1 -1
  66. package/core/lib/csp-evaluator.js +1 -1
  67. package/core/lib/deprecations-strings.d.ts +0 -2
  68. package/core/lib/deprecations-strings.js +1 -18
  69. package/core/lib/i18n/i18n.js +1 -2
  70. package/core/lib/lighthouse-logger.d.ts +127 -0
  71. package/core/lib/lighthouse-logger.js +319 -0
  72. package/core/lib/median-run.d.ts +16 -6
  73. package/core/lib/median-run.js +13 -6
  74. package/core/lib/network-recorder.js +1 -2
  75. package/core/lib/network-request.d.ts +2 -2
  76. package/core/lib/network-request.js +1 -1
  77. package/core/lib/page-functions.js +2 -2
  78. package/core/lib/script-helpers.d.ts +23 -8
  79. package/core/lib/script-helpers.js +7 -6
  80. package/core/lib/sentry-reporter.d.ts +59 -0
  81. package/core/lib/sentry-reporter.js +281 -0
  82. package/core/lib/sentry.d.ts +7 -7
  83. package/core/lib/sentry.js +23 -40
  84. package/core/lib/stack-packs.js +1 -1
  85. package/core/lib/timing-trace-saver.d.ts +2 -2
  86. package/core/lib/timing-trace-saver.js +1 -1
  87. package/core/lib/tracehouse/task-summary.d.ts +16 -4
  88. package/core/lib/tracehouse/task-summary.js +6 -5
  89. package/core/lib/tracehouse/trace-processor.d.ts +6 -6
  90. package/core/lib/tracehouse/trace-processor.js +1 -1
  91. package/core/lib/traces/metric-trace-events.js +1 -2
  92. package/core/lib/url-utils.d.ts +4 -4
  93. package/core/lib/url-utils.js +1 -1
  94. package/core/runner.js +1 -2
  95. package/dist/report/bundle.esm.js +10 -10
  96. package/dist/report/flow.js +12 -12
  97. package/dist/report/standalone.js +11 -11
  98. package/package.json +19 -21
  99. package/report/renderer/text-encoding.d.ts +3 -5
  100. package/report/renderer/text-encoding.js +19 -33
  101. package/report/types/augment-dom.d.ts +0 -4
  102. package/shared/localization/locales/ar-XB.json +3 -0
  103. package/shared/localization/locales/ar.json +3 -0
  104. package/shared/localization/locales/bg.json +3 -0
  105. package/shared/localization/locales/ca.json +75 -72
  106. package/shared/localization/locales/cs.json +3 -0
  107. package/shared/localization/locales/da.json +3 -0
  108. package/shared/localization/locales/de.json +3 -0
  109. package/shared/localization/locales/el.json +3 -0
  110. package/shared/localization/locales/en-GB.json +3 -0
  111. package/shared/localization/locales/es-419.json +3 -0
  112. package/shared/localization/locales/es.json +3 -0
  113. package/shared/localization/locales/fi.json +3 -0
  114. package/shared/localization/locales/fil.json +3 -0
  115. package/shared/localization/locales/fr.json +3 -0
  116. package/shared/localization/locales/he.json +3 -0
  117. package/shared/localization/locales/hi.json +11 -8
  118. package/shared/localization/locales/hr.json +3 -0
  119. package/shared/localization/locales/hu.json +3 -0
  120. package/shared/localization/locales/id.json +3 -0
  121. package/shared/localization/locales/it.json +3 -0
  122. package/shared/localization/locales/ja.json +3 -0
  123. package/shared/localization/locales/ko.json +3 -0
  124. package/shared/localization/locales/lt.json +3 -0
  125. package/shared/localization/locales/lv.json +5 -2
  126. package/shared/localization/locales/nl.json +3 -0
  127. package/shared/localization/locales/no.json +3 -0
  128. package/shared/localization/locales/pl.json +3 -0
  129. package/shared/localization/locales/pt-PT.json +3 -0
  130. package/shared/localization/locales/pt.json +32 -29
  131. package/shared/localization/locales/ro.json +3 -0
  132. package/shared/localization/locales/ru.json +3 -0
  133. package/shared/localization/locales/sk.json +3 -0
  134. package/shared/localization/locales/sl.json +3 -0
  135. package/shared/localization/locales/sr-Latn.json +3 -0
  136. package/shared/localization/locales/sr.json +3 -0
  137. package/shared/localization/locales/sv.json +3 -0
  138. package/shared/localization/locales/ta.json +3 -0
  139. package/shared/localization/locales/te.json +3 -0
  140. package/shared/localization/locales/th.json +3 -0
  141. package/shared/localization/locales/tr.json +3 -0
  142. package/shared/localization/locales/uk.json +3 -0
  143. package/shared/localization/locales/vi.json +3 -0
  144. package/shared/localization/locales/zh-HK.json +3 -0
  145. package/shared/localization/locales/zh-TW.json +3 -0
  146. package/shared/localization/locales/zh.json +3 -0
  147. package/third-party/ard/README.md +1 -1
  148. package/third-party/ard/ard.js +1 -1
  149. package/tsconfig.json +2 -42
  150. package/types/artifacts.d.ts +7 -1
  151. package/types/internal/test.d.ts +5 -0
  152. package/report/types/buffer.d.ts +0 -19
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "13.6.0-dev.20261112",
4
+ "version": "13.6.0-dev.20261117",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {
@@ -120,7 +120,7 @@
120
120
  "acorn": "^8.19.0",
121
121
  "ajv": "^8.20.0",
122
122
  "ajv-formats": "^3.0.1",
123
- "chrome-devtools-frontend": "1.0.1726686",
123
+ "chrome-devtools-frontend": "1.0.1745108",
124
124
  "concurrently": "^10.0.6",
125
125
  "conventional-changelog": "^8.1.3",
126
126
  "core-js-compat": "^3.51.0",
@@ -139,44 +139,42 @@
139
139
  "magic-string": "^1.4.3",
140
140
  "mime-types": "^3.0.2",
141
141
  "mocha": "^12.0.3",
142
- "pako": "^3.0.2",
143
142
  "preact": "^10.29.8",
144
143
  "pretty-json-stringify": "^0.0.2",
145
- "puppeteer": "^25.16.0",
144
+ "puppeteer": "^25.18.1",
146
145
  "terser": "^5.51.2",
147
146
  "testdouble": "^4.0.0",
148
147
  "tsx": "^4.23.15",
149
148
  "typed-query-selector": "^2.12.3",
150
149
  "typescript": "6.0.3",
151
150
  "typescript-eslint": "^8.60.1",
152
- "web-features": "^3.44.0",
151
+ "web-features": "^3.46.0",
153
152
  "webtreemap-cdt": "^3.2.1"
154
153
  },
155
154
  "dependencies": {
156
- "@paulirish/trace_engine": "0.0.68",
157
- "@sentry/node": "^11.8.0",
158
- "axe-core": "4.14.0",
155
+ "@paulirish/trace_engine": "0.0.69",
156
+ "axe-core": "4.14.1",
159
157
  "chrome-launcher": "^1.2.3",
160
- "configstore": "^8.0.0",
158
+ "configstore": "8.0.0",
161
159
  "csp_evaluator": "1.1.8",
162
- "devtools-protocol": "0.0.1727723",
163
- "enquirer": "^2.3.6",
164
- "http-link-header": "^1.1.1",
160
+ "debug": "4.4.3",
161
+ "devtools-protocol": "0.0.1746437",
162
+ "enquirer": "2.4.1",
163
+ "http-link-header": "1.1.4",
165
164
  "intl-messageformat": "^12.1.5",
166
- "js-library-detector": "^6.7.0",
167
- "lighthouse-logger": "^2.0.2",
165
+ "js-library-detector": "6.7.0",
168
166
  "lighthouse-stack-packs": "1.12.3",
169
- "puppeteer-core": "^25.16.0",
170
- "robots-parser": "^3.0.1",
171
- "speedline-core": "^1.4.3",
167
+ "puppeteer-core": "^25.18.1",
168
+ "robots-parser": "3.0.1",
169
+ "speedline-core": "1.4.3",
172
170
  "third-party-web": "^0.30.0",
173
- "tldts-icann": "^7.4.19",
171
+ "tldts-icann": "^7.5.4",
174
172
  "yargs": "^18.2.0",
175
- "yargs-parser": "^22.0.0"
173
+ "yargs-parser": "22.0.0"
176
174
  },
177
175
  "resolutions": {
178
- "puppeteer/**/devtools-protocol": "0.0.1727723",
179
- "puppeteer-core/**/devtools-protocol": "0.0.1727723"
176
+ "puppeteer/**/devtools-protocol": "0.0.1746437",
177
+ "puppeteer-core/**/devtools-protocol": "0.0.1746437"
180
178
  },
181
179
  "repository": {
182
180
  "type": "git",
@@ -4,9 +4,7 @@ export namespace TextEncoding {
4
4
  }
5
5
  /**
6
6
  * Takes an UTF-8 string and returns a base64 encoded string.
7
- * If gzip is true, the UTF-8 bytes are gzipped before base64'd, using
8
- * CompressionStream (currently only in Chrome), falling back to pako
9
- * (which is only used to encode in our Node tests).
7
+ * If gzip is true, the UTF-8 bytes are gzipped before base64'd.
10
8
  * @param {string} string
11
9
  * @param {{gzip: boolean}} options
12
10
  * @return {Promise<string>}
@@ -17,10 +15,10 @@ declare function toBase64(string: string, options: {
17
15
  /**
18
16
  * @param {string} encoded
19
17
  * @param {{gzip: boolean}} options
20
- * @return {string}
18
+ * @return {Promise<string>}
21
19
  */
22
20
  declare function fromBase64(encoded: string, options: {
23
21
  gzip: boolean;
24
- }): string;
22
+ }): Promise<string>;
25
23
  export {};
26
24
  //# sourceMappingURL=text-encoding.d.ts.map
@@ -4,20 +4,19 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- const btoa_ = typeof btoa !== 'undefined' ?
8
- btoa :
9
- /** @param {string} str */
10
- (str) => Buffer.from(str).toString('base64');
11
- const atob_ = typeof atob !== 'undefined' ?
12
- atob :
13
- /** @param {string} str */
14
- (str) => Buffer.from(str, 'base64').toString();
7
+ /**
8
+ * @param {CompressionStream|DecompressionStream} stream
9
+ * @param {Uint8Array<ArrayBuffer>} bytes
10
+ * @return {Promise<Uint8Array<ArrayBuffer>>}
11
+ */
12
+ async function transformBytes(stream, bytes) {
13
+ const readable = new Blob([bytes]).stream().pipeThrough(stream);
14
+ return new Uint8Array(await new Response(readable).arrayBuffer());
15
+ }
15
16
 
16
17
  /**
17
18
  * Takes an UTF-8 string and returns a base64 encoded string.
18
- * If gzip is true, the UTF-8 bytes are gzipped before base64'd, using
19
- * CompressionStream (currently only in Chrome), falling back to pako
20
- * (which is only used to encode in our Node tests).
19
+ * If gzip is true, the UTF-8 bytes are gzipped before base64'd.
21
20
  * @param {string} string
22
21
  * @param {{gzip: boolean}} options
23
22
  * @return {Promise<string>}
@@ -26,18 +25,7 @@ async function toBase64(string, options) {
26
25
  let bytes = new TextEncoder().encode(string);
27
26
 
28
27
  if (options.gzip) {
29
- if (typeof CompressionStream !== 'undefined') {
30
- const cs = new CompressionStream('gzip');
31
- const writer = cs.writable.getWriter();
32
- writer.write(bytes);
33
- writer.close();
34
- const compAb = await new Response(cs.readable).arrayBuffer();
35
- bytes = new Uint8Array(compAb);
36
- } else {
37
- /** @type {typeof import('pako')=} */
38
- const pako = window.pako;
39
- bytes = pako.gzip(string);
40
- }
28
+ bytes = await transformBytes(new CompressionStream('gzip'), bytes);
41
29
  }
42
30
 
43
31
  let binaryString = '';
@@ -47,25 +35,23 @@ async function toBase64(string, options) {
47
35
  for (let i = 0; i < bytes.length; i += chunkSize) {
48
36
  binaryString += String.fromCharCode(...bytes.subarray(i, i + chunkSize));
49
37
  }
50
- return btoa_(binaryString);
38
+ return btoa(binaryString);
51
39
  }
52
40
 
53
41
  /**
54
42
  * @param {string} encoded
55
43
  * @param {{gzip: boolean}} options
56
- * @return {string}
44
+ * @return {Promise<string>}
57
45
  */
58
- function fromBase64(encoded, options) {
59
- const binaryString = atob_(encoded);
60
- const bytes = Uint8Array.from(binaryString, c => c.charCodeAt(0));
46
+ async function fromBase64(encoded, options) {
47
+ const binaryString = atob(encoded);
48
+ let bytes = Uint8Array.from(binaryString, c => c.charCodeAt(0));
61
49
 
62
50
  if (options.gzip) {
63
- /** @type {typeof import('pako')=} */
64
- const pako = window.pako;
65
- return pako.ungzip(bytes, {toText: true});
66
- } else {
67
- return new TextDecoder().decode(bytes);
51
+ bytes = await transformBytes(new DecompressionStream('gzip'), bytes);
68
52
  }
53
+
54
+ return new TextDecoder().decode(bytes);
69
55
  }
70
56
 
71
57
  export const TextEncoding = {toBase64, fromBase64};
@@ -11,7 +11,3 @@
11
11
 
12
12
  // Import to augment querySelector/querySelectorAll with stricter type checking.
13
13
  import '../../types/internal/query-selector';
14
-
15
- declare global {
16
- var pako: typeof import('pako');
17
- }
@@ -2258,6 +2258,9 @@
2258
2258
  "node_modules/@paulirish/trace_engine/generated/Deprecation.js | V8SharedArrayBufferConstructedInExtensionWithoutIsolation": {
2259
2259
  "message": "يجب أن تستخدم الإضافات ميزة حظر الوصول من نطاقات أخرى لمواصلة استخدام الكائن SharedArrayBuffer. يُرجى الاطّلاع على https://developer.chrome.com/docs/extensions/mv3/cross-origin-isolation/‎."
2260
2260
  },
2261
+ "node_modules/@paulirish/trace_engine/generated/Deprecation.js | ViewTransitionPreventSvgFilterPaint": {
2262
+ "message": "لا يمكن تطبيق فلاتر الرسومات الموجّهة التي يمكن تغيير حجمها (SVG) على محتوى انتقال العرض، مثل ::view-transition-old() و::view-transition-new()، لأنّه قد يتضمّن إطارات iframe أو مكوّنات إضافية متعدّدة المصادر."
2263
+ },
2261
2264
  "node_modules/@paulirish/trace_engine/generated/Deprecation.js | WebBluetoothRemoteCharacteristicWriteValue": {
2262
2265
  "message": "تم إيقاف \"BluetoothRemoteGATTCharacteristic.writeValue()\" نهائيًا. يُرجى استخدام \"writeValueWithResponse()\" أو \"writeValueWithoutResponse()\" بدلاً من ذلك."
2263
2266
  },
@@ -2258,6 +2258,9 @@
2258
2258
  "node_modules/@paulirish/trace_engine/generated/Deprecation.js | V8SharedArrayBufferConstructedInExtensionWithoutIsolation": {
2259
2259
  "message": "يجب أن تستخدم الإضافات ميزة حظر الوصول من نطاقات أخرى لمواصلة استخدام الكائن SharedArrayBuffer. يُرجى الاطّلاع على https://developer.chrome.com/docs/extensions/mv3/cross-origin-isolation/‎."
2260
2260
  },
2261
+ "node_modules/@paulirish/trace_engine/generated/Deprecation.js | ViewTransitionPreventSvgFilterPaint": {
2262
+ "message": "لا يمكن تطبيق فلاتر الرسومات الموجّهة التي يمكن تغيير حجمها (SVG) على محتوى انتقال العرض، مثل ::view-transition-old() و::view-transition-new()، لأنّه قد يتضمّن إطارات iframe أو مكوّنات إضافية متعدّدة المصادر."
2263
+ },
2261
2264
  "node_modules/@paulirish/trace_engine/generated/Deprecation.js | WebBluetoothRemoteCharacteristicWriteValue": {
2262
2265
  "message": "تم إيقاف \"BluetoothRemoteGATTCharacteristic.writeValue()\" نهائيًا. يُرجى استخدام \"writeValueWithResponse()\" أو \"writeValueWithoutResponse()\" بدلاً من ذلك."
2263
2266
  },
@@ -2258,6 +2258,9 @@
2258
2258
  "node_modules/@paulirish/trace_engine/generated/Deprecation.js | V8SharedArrayBufferConstructedInExtensionWithoutIsolation": {
2259
2259
  "message": "Разширенията трябва да се включат в изолирането от външни източници, за да продължат да използват SharedArrayBuffer. Вижте https://developer.chrome.com/docs/extensions/mv3/cross-origin-isolation/."
2260
2260
  },
2261
+ "node_modules/@paulirish/trace_engine/generated/Deprecation.js | ViewTransitionPreventSvgFilterPaint": {
2262
+ "message": "Филтрите за SVG не могат да се прилагат към съдържание за преход между изгледи, като например ::view-transition-old() и ::view-transition-new(), тъй като то може да включва вложени рамки или приставки от различни източници."
2263
+ },
2261
2264
  "node_modules/@paulirish/trace_engine/generated/Deprecation.js | WebBluetoothRemoteCharacteristicWriteValue": {
2262
2265
  "message": "Методът BluetoothRemoteGATTCharacteristic.writeValue() е оттеглен. Вместо него използвайте writeValueWithResponse() или writeValueWithoutResponse()."
2263
2266
  },