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/core/config/config-helpers.js +1 -1
- package/core/config/config.js +1 -1
- package/core/gather/timespan-runner.d.ts +3 -0
- package/core/gather/timespan-runner.js +23 -0
- package/core/lib/i18n/i18n.js +1 -1
- package/core/runner.js +1 -1
- package/dist/report/bundle.esm.js +3 -1
- package/dist/report/flow.js +3 -1
- package/dist/report/standalone.js +3 -1
- package/flow-report/tsconfig.json +0 -1
- package/package.json +1 -1
- package/readme.md +2 -1
- package/report/assets/templates.html +2 -0
- package/report/generator/flow-report-assets.js +1 -1
- package/report/generator/report-assets.js +1 -1
- package/report/generator/tsconfig.json +1 -1
- package/report/renderer/components.js +1 -1
- package/report/renderer/i18n-formatter.js +1 -1
- package/root.js +1 -1
- package/shared/localization/format.js +1 -1
- package/shared/localization/locales/en-US.json +3 -0
- package/shared/localization/locales/en-XL.json +3 -0
- package/shared/localization/locales.js +1 -1
- package/shared/tsconfig.json +0 -1
- package/tsconfig.json +0 -1
- package/dependabot.yml +0 -10
- /package/{esm-utils.d.ts → shared/esm-utils.d.ts} +0 -0
- /package/{esm-utils.js → shared/esm-utils.js} +0 -0
package/package.json
CHANGED
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
|
-
|
|
55
|
+
> **Note**
|
|
56
|
+
> Lighthouse requires Node 18 LTS (18.x) or later.
|
|
56
57
|
|
|
57
58
|
**Installation**:
|
|
58
59
|
|
|
@@ -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
|
|
|
@@ -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 =
|
|
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 '
|
|
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 '
|
|
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 */
|
package/shared/tsconfig.json
CHANGED
package/tsconfig.json
CHANGED
package/dependabot.yml
DELETED
|
File without changes
|
|
File without changes
|