lighthouse 9.5.0-dev.20221121 → 9.5.0-dev.20221123

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.
@@ -23,6 +23,11 @@ const UIStrings = {
23
23
  * @example {NO_FCP} errorCode
24
24
  * */
25
25
  noFcp: 'The page did not paint any content. Please ensure you keep the browser window in the foreground during the load and try again. ({errorCode})',
26
+ /**
27
+ * @description Error message explaining that the Largest Contentful Paint metric was not seen during the page load.
28
+ * @example {NO_LCP} errorCode
29
+ * */
30
+ noLcp: 'The page did not display content that qualifies as a Largest Contentful Paint (LCP). Ensure the page has a valid LCP element and then try again. ({errorCode})',
26
31
  /**
27
32
  * @description Error message explaining that the page loaded too slowly to perform a Lighthouse run.
28
33
  * @example {NO_TTI_CPU_IDLE_PERIOD} errorCode
@@ -273,11 +278,11 @@ const ERRORS = {
273
278
  },
274
279
  NO_LCP: {
275
280
  code: 'NO_LCP',
276
- message: UIStrings.badTraceRecording,
281
+ message: UIStrings.noLcp,
277
282
  },
278
283
  NO_LCP_ALL_FRAMES: {
279
284
  code: 'NO_LCP_ALL_FRAMES',
280
- message: UIStrings.badTraceRecording,
285
+ message: UIStrings.noLcp,
281
286
  },
282
287
  UNSUPPORTED_OLD_CHROME: {
283
288
  code: 'UNSUPPORTED_OLD_CHROME',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "9.5.0-dev.20221121",
4
+ "version": "9.5.0-dev.20221123",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {
@@ -85,8 +85,8 @@
85
85
  "computeBenchmarkIndex": "./core/scripts/benchmark.js",
86
86
  "minify-latest-run": "./core/scripts/lantern/minify-trace.js ./latest-run/defaultPass.trace.json ./latest-run/defaultPass.trace.min.json && ./core/scripts/lantern/minify-devtoolslog.js ./latest-run/defaultPass.devtoolslog.json ./latest-run/defaultPass.devtoolslog.min.json",
87
87
  "save-latest-run": "./core/scripts/save-latest-run.sh",
88
- "compile-proto": "protoc --python_out=./ ./proto/lighthouse-result.proto && mv ./proto/*_pb2.py ./proto/scripts || (echo \"❌ Install protobuf 3.7.1 to compile the proto file.\" && false)",
89
- "build-proto-roundtrip": "mkdir -p .tmp && cross-env PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=2 python proto/scripts/json_roundtrip_via_proto.py",
88
+ "compile-proto": "protoc --python_out=./ ./proto/lighthouse-result.proto && mv ./proto/*_pb2.py ./proto/scripts || (echo \"❌ Install protobuf = 3.20.x to compile the proto file.\" && false)",
89
+ "build-proto-roundtrip": "mkdir -p .tmp && python3 proto/scripts/json_roundtrip_via_proto.py",
90
90
  "static-server": "node cli/test/fixtures/static-server.js",
91
91
  "serve-dist": "cd dist && python3 -m http.server 7878",
92
92
  "serve-gh-pages": "cd dist/gh-pages && python3 -m http.server 7333",
@@ -2384,6 +2384,9 @@
2384
2384
  "core/lib/lh-error.js | noFcp": {
2385
2385
  "message": "The page did not paint any content. Please ensure you keep the browser window in the foreground during the load and try again. ({errorCode})"
2386
2386
  },
2387
+ "core/lib/lh-error.js | noLcp": {
2388
+ "message": "The page did not display content that qualifies as a Largest Contentful Paint (LCP). Ensure the page has a valid LCP element and then try again. ({errorCode})"
2389
+ },
2387
2390
  "core/lib/lh-error.js | notHtml": {
2388
2391
  "message": "The page provided is not HTML (served as MIME type {mimeType})."
2389
2392
  },
@@ -2384,6 +2384,9 @@
2384
2384
  "core/lib/lh-error.js | noFcp": {
2385
2385
  "message": "T̂h́ê ṕâǵê d́îd́ n̂ót̂ ṕâín̂t́ âńŷ ćôńt̂én̂t́. P̂ĺêáŝé êńŝúr̂é ŷóû ḱêép̂ t́ĥé b̂ŕôẃŝér̂ ẃîńd̂óŵ ín̂ t́ĥé f̂ór̂éĝŕôún̂d́ d̂úr̂ín̂ǵ t̂h́ê ĺôád̂ án̂d́ t̂ŕŷ áĝáîń. ({errorCode})"
2386
2386
  },
2387
+ "core/lib/lh-error.js | noLcp": {
2388
+ "message": "T̂h́ê ṕâǵê d́îd́ n̂ót̂ d́îśp̂ĺâý ĉón̂t́êńt̂ t́ĥát̂ q́ûál̂íf̂íêś âś â Ĺâŕĝéŝt́ Ĉón̂t́êńt̂f́ûĺ P̂áîńt̂ (ĹĈṔ). Êńŝúr̂é t̂h́ê ṕâǵê h́âś â v́âĺîd́ L̂ĆP̂ él̂ém̂én̂t́ âńd̂ t́ĥén̂ t́r̂ý âǵâín̂. ({errorCode})"
2389
+ },
2387
2390
  "core/lib/lh-error.js | notHtml": {
2388
2391
  "message": "T̂h́ê ṕâǵê ṕr̂óv̂íd̂éd̂ íŝ ńôt́ ĤT́M̂Ĺ (ŝér̂v́êd́ âś M̂ÍM̂É t̂ýp̂é {mimeType})."
2389
2392
  },