lighthouse 11.0.0-dev.20230827 → 11.0.0-dev.20230829

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "11.0.0-dev.20230827",
4
+ "version": "11.0.0-dev.20230829",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {
package/readme.md CHANGED
@@ -52,7 +52,8 @@ The Chrome extension was available prior to Lighthouse being available in Chrome
52
52
 
53
53
  The Node CLI provides the most flexibility in how Lighthouse runs can be configured and reported. Users who want more advanced usage, or want to run Lighthouse in an automated fashion should use the Node CLI.
54
54
 
55
- _Lighthouse requires Node 18 LTS (18.x) or later._
55
+ > **Note**
56
+ > Lighthouse requires Node 18 LTS (18.x) or later.
56
57
 
57
58
  **Installation**:
58
59
 
@@ -202,6 +202,8 @@ limitations under the License.
202
202
  position: absolute;
203
203
  grid-column: 1;
204
204
  bottom: -1px;
205
+ left: 0px;
206
+ right: 0px;
205
207
  }
206
208
 
207
209
  .lh-gauge__wrapper:first-of-type {
@@ -7,7 +7,7 @@
7
7
 
8
8
  import fs from 'fs';
9
9
 
10
- import {getModuleDirectory} from '../../esm-utils.js';
10
+ import {getModuleDirectory} from '../../shared/esm-utils.js';
11
11
 
12
12
  const moduleDir = getModuleDirectory(import.meta);
13
13
 
@@ -8,7 +8,7 @@
8
8
  import fs from 'fs';
9
9
 
10
10
  import {flowReportAssets} from './flow-report-assets.js';
11
- import {getModuleDirectory} from '../../esm-utils.js';
11
+ import {getModuleDirectory} from '../../shared/esm-utils.js';
12
12
 
13
13
  const moduleDir = getModuleDirectory(import.meta);
14
14
 
@@ -8,9 +8,9 @@
8
8
  },
9
9
  "references": [
10
10
  {"path": "../../types/lhr/"},
11
+ {"path": "../../shared/"},
11
12
  ],
12
13
  "include": [
13
14
  "**/*.js",
14
- "../../esm-utils.js",
15
15
  ],
16
16
  }
@@ -444,7 +444,7 @@ function createScorescaleComponent(dom) {
444
444
  function createScoresWrapperComponent(dom) {
445
445
  const el0 = dom.createFragment();
446
446
  const el1 = dom.createElement("style");
447
- el1.append("\n .lh-scores-container {\n display: flex;\n flex-direction: column;\n padding: var(--default-padding) 0;\n position: relative;\n width: 100%;\n }\n\n .lh-sticky-header {\n --gauge-circle-size: var(--gauge-circle-size-sm);\n --plugin-badge-size: 16px;\n --plugin-icon-size: 75%;\n --gauge-wrapper-width: 60px;\n --gauge-percentage-font-size: 13px;\n position: fixed;\n left: 0;\n right: 0;\n top: var(--topbar-height);\n font-weight: 500;\n display: none;\n justify-content: center;\n background-color: var(--sticky-header-background-color);\n border-bottom: 1px solid var(--color-gray-200);\n padding-top: var(--score-container-padding);\n padding-bottom: 4px;\n z-index: 1;\n pointer-events: none;\n }\n\n .lh-devtools .lh-sticky-header {\n /* The report within DevTools is placed in a container with overflow, which changes the placement of this header unless we change `position` to `sticky.` */\n position: sticky;\n }\n\n .lh-sticky-header--visible {\n display: grid;\n grid-auto-flow: column;\n pointer-events: auto;\n }\n\n /* Disable the gauge arc animation for the sticky header, so toggling display: none\n does not play the animation. */\n .lh-sticky-header .lh-gauge-arc {\n animation: none;\n }\n\n .lh-sticky-header .lh-gauge__label,\n .lh-sticky-header .lh-fraction__label {\n display: none;\n }\n\n .lh-highlighter {\n width: var(--gauge-wrapper-width);\n height: 1px;\n background-color: var(--highlighter-background-color);\n /* Position at bottom of first gauge in sticky header. */\n position: absolute;\n grid-column: 1;\n bottom: -1px;\n }\n\n .lh-gauge__wrapper:first-of-type {\n contain: none;\n }\n ");
447
+ el1.append("\n .lh-scores-container {\n display: flex;\n flex-direction: column;\n padding: var(--default-padding) 0;\n position: relative;\n width: 100%;\n }\n\n .lh-sticky-header {\n --gauge-circle-size: var(--gauge-circle-size-sm);\n --plugin-badge-size: 16px;\n --plugin-icon-size: 75%;\n --gauge-wrapper-width: 60px;\n --gauge-percentage-font-size: 13px;\n position: fixed;\n left: 0;\n right: 0;\n top: var(--topbar-height);\n font-weight: 500;\n display: none;\n justify-content: center;\n background-color: var(--sticky-header-background-color);\n border-bottom: 1px solid var(--color-gray-200);\n padding-top: var(--score-container-padding);\n padding-bottom: 4px;\n z-index: 1;\n pointer-events: none;\n }\n\n .lh-devtools .lh-sticky-header {\n /* The report within DevTools is placed in a container with overflow, which changes the placement of this header unless we change `position` to `sticky.` */\n position: sticky;\n }\n\n .lh-sticky-header--visible {\n display: grid;\n grid-auto-flow: column;\n pointer-events: auto;\n }\n\n /* Disable the gauge arc animation for the sticky header, so toggling display: none\n does not play the animation. */\n .lh-sticky-header .lh-gauge-arc {\n animation: none;\n }\n\n .lh-sticky-header .lh-gauge__label,\n .lh-sticky-header .lh-fraction__label {\n display: none;\n }\n\n .lh-highlighter {\n width: var(--gauge-wrapper-width);\n height: 1px;\n background-color: var(--highlighter-background-color);\n /* Position at bottom of first gauge in sticky header. */\n position: absolute;\n grid-column: 1;\n bottom: -1px;\n left: 0px;\n right: 0px;\n }\n\n .lh-gauge__wrapper:first-of-type {\n contain: none;\n }\n ");
448
448
  el0.append(el1);
449
449
  const el2 = dom.createElement("div", "lh-scores-wrapper");
450
450
  const el3 = dom.createElement("div", "lh-scores-container");
@@ -141,7 +141,7 @@ export class I18nFormatter {
141
141
  * If undefined, the number will be displayed in full.
142
142
  * @return {string}
143
143
  */
144
- formatBytesWithBestUnit(size, granularity = undefined) {
144
+ formatBytesWithBestUnit(size, granularity = 0.1) {
145
145
  if (size >= MiB) return this.formatBytesToMiB(size, granularity);
146
146
  if (size >= KiB) return this.formatBytesToKiB(size, granularity);
147
147
  return this._formatNumberWithGranularity(size, granularity, {
package/root.js CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  import fs from 'fs';
8
8
 
9
- import {getModuleDirectory} from './esm-utils.js';
9
+ import {getModuleDirectory} from './shared/esm-utils.js';
10
10
 
11
11
  const LH_ROOT = getModuleDirectory(import.meta);
12
12
  const pkg = JSON.parse(fs.readFileSync(`${LH_ROOT}/package.json`, 'utf-8'));
@@ -8,7 +8,7 @@ import fs from 'fs';
8
8
 
9
9
  import IntlMessageFormat from 'intl-messageformat';
10
10
 
11
- import {getModuleDirectory} from '../../esm-utils.js';
11
+ import {getModuleDirectory} from '../esm-utils.js';
12
12
  import {isObjectOfUnknownValues, isObjectOrArrayOfUnknownValues} from '../type-verifiers.js';
13
13
  import {locales} from './locales.js';
14
14
 
@@ -1856,6 +1856,9 @@
1856
1856
  "core/gather/gatherers/link-elements.js | headerParseWarning": {
1857
1857
  "message": "Error parsing `link` header ({error}): `{header}`"
1858
1858
  },
1859
+ "core/gather/timespan-runner.js | warningNavigationDetected": {
1860
+ "message": "A page navigation was detected during the run. Using timespan mode to audit page navigations is not recommended. Use navigation mode to audit page navigations for better third-party attribution and main thread detection."
1861
+ },
1859
1862
  "core/lib/bf-cache-strings.js | appBanner": {
1860
1863
  "message": "Pages that requested an AppBanner are not currently eligible for back/forward cache."
1861
1864
  },
@@ -1856,6 +1856,9 @@
1856
1856
  "core/gather/gatherers/link-elements.js | headerParseWarning": {
1857
1857
  "message": "Êŕr̂ór̂ ṕâŕŝín̂ǵ `link` ĥéâd́êŕ ({error}): `{header}`"
1858
1858
  },
1859
+ "core/gather/timespan-runner.js | warningNavigationDetected": {
1860
+ "message": "Â ṕâǵê ńâv́îǵât́îón̂ ẃâś d̂ét̂éĉt́êd́ d̂úr̂ín̂ǵ t̂h́ê ŕûń. Ûśîńĝ t́îḿêśp̂án̂ ḿôd́ê t́ô áûd́ît́ p̂áĝé n̂áv̂íĝát̂íôńŝ íŝ ńôt́ r̂éĉóm̂ḿêńd̂éd̂. Úŝé n̂áv̂íĝát̂íôń m̂ód̂é t̂ó âúd̂ít̂ ṕâǵê ńâv́îǵât́îón̂ś f̂ór̂ b́êt́t̂ér̂ t́ĥír̂d́-p̂ár̂t́ŷ át̂t́r̂íb̂út̂íôń âńd̂ ḿâín̂ t́ĥŕêád̂ d́êt́êćt̂íôń."
1861
+ },
1859
1862
  "core/lib/bf-cache-strings.js | appBanner": {
1860
1863
  "message": "P̂áĝéŝ t́ĥát̂ ŕêq́ûéŝt́êd́ âń Âṕp̂B́âńn̂ér̂ ár̂é n̂ót̂ ćûŕr̂én̂t́l̂ý êĺîǵîb́l̂é f̂ór̂ b́âćk̂/f́ôŕŵár̂d́ ĉáĉh́ê."
1861
1864
  },
@@ -23,7 +23,7 @@
23
23
 
24
24
  import fs from 'fs';
25
25
 
26
- import {getModuleDirectory} from '../../esm-utils.js';
26
+ import {getModuleDirectory} from '../esm-utils.js';
27
27
 
28
28
  /** @typedef {import('../../types/lhr/settings').Locale} Locale */
29
29
  /** @typedef {Record<string, {message: string}>} LhlMessages */
@@ -13,7 +13,6 @@
13
13
  "include": [
14
14
  "**/*.js",
15
15
  "types/**/*.d.ts",
16
- "../esm-utils.js",
17
16
  ],
18
17
  "exclude": [
19
18
  "test/**/*.js",
package/tsconfig.json CHANGED
@@ -12,7 +12,6 @@
12
12
  ],
13
13
  "include": [
14
14
  "root.js",
15
- "esm-utils.js",
16
15
  "cli/**/*.js",
17
16
  "core/**/*.js",
18
17
  "core/index.cjs",
package/dependabot.yml DELETED
@@ -1,10 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: "yarn"
4
- allow:
5
- - "production"
6
- schedule:
7
- interval: "weekly"
8
- commit-message:
9
- prefix: "deps"
10
- include: "scope"
File without changes
File without changes