lighthouse 9.4.0-dev.20220307 → 9.5.0
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/changelog.md +54 -0
- package/dist/report/bundle.esm.js +3 -2
- package/dist/report/flow.js +2 -2
- package/dist/report/standalone.js +2 -2
- package/lighthouse-cli/test/smokehouse/lighthouse-runners/devtools.js +4 -1
- package/lighthouse-core/fraggle-rock/api.js +12 -2
- package/lighthouse-core/fraggle-rock/user-flow.js +88 -40
- package/lighthouse-core/gather/gatherers/full-page-screenshot.js +33 -25
- package/lighthouse-core/lib/asset-saver.js +15 -0
- package/package.json +2 -1
- package/report/assets/templates.html +2 -1
- package/report/renderer/components.js +1 -1
- package/report/renderer/topbar-features.js +2 -1
- package/third-party/snyk/snapshot.json +1 -0
- package/types/global-lh.d.ts +3 -0
- package/types/user-flow.d.ts +19 -0
package/changelog.md
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
1
|
+
<a name="9.5.0"></a>
|
|
2
|
+
# 9.5.0 (2022-03-09)
|
|
3
|
+
[Full Changelog](https://github.com/compare/v9.4.0...v9.5.0)
|
|
4
|
+
|
|
5
|
+
We expect this release to ship in the DevTools of [Chrome 101](https://chromiumdash.appspot.com/schedule), and to PageSpeed Insights within 2 weeks.
|
|
6
|
+
|
|
7
|
+
## New Contributors
|
|
8
|
+
|
|
9
|
+
Thanks to our new contributor 👽🐷🐰🐯🐻!
|
|
10
|
+
|
|
11
|
+
- Marc Hassan @mhassan1
|
|
12
|
+
|
|
13
|
+
## Core
|
|
14
|
+
|
|
15
|
+
* full-page-screenshot: leave emulated width unchanged ([#13643](https://github.com/GoogleChrome/lighthouse/pull/13643))
|
|
16
|
+
* inspector-issues: update sameSiteCookie to cookie ([#13708](https://github.com/GoogleChrome/lighthouse/pull/13708))
|
|
17
|
+
* script-treemap-data: correct value for size ([#13716](https://github.com/GoogleChrome/lighthouse/pull/13716))
|
|
18
|
+
* lighthouse-logger: convert to ES modules ([#13720](https://github.com/GoogleChrome/lighthouse/pull/13720))
|
|
19
|
+
|
|
20
|
+
## ⛏️👷 Fraggle Rock
|
|
21
|
+
|
|
22
|
+
Support for auditing user flows ([#11313](https://github.com/GoogleChrome/lighthouse/issues/11313))
|
|
23
|
+
|
|
24
|
+
* separate audit phase for flows ([#13623](https://github.com/GoogleChrome/lighthouse/pull/13623))
|
|
25
|
+
* use frame url in gather context ([#13699](https://github.com/GoogleChrome/lighthouse/pull/13699))
|
|
26
|
+
* add `logLevel` to config context ([#13681](https://github.com/GoogleChrome/lighthouse/pull/13681))
|
|
27
|
+
* user-flow: audit flow from artifacts json ([#13715](https://github.com/GoogleChrome/lighthouse/pull/13715))
|
|
28
|
+
|
|
29
|
+
## Report
|
|
30
|
+
|
|
31
|
+
* fix timespan/snapshot sticky header ([#13732](https://github.com/GoogleChrome/lighthouse/pull/13732))
|
|
32
|
+
|
|
33
|
+
## Deps
|
|
34
|
+
|
|
35
|
+
* lodash: replace `lodash` per-method packages with full `lodash` ([#13695](https://github.com/GoogleChrome/lighthouse/pull/13695))
|
|
36
|
+
* snyk: update snyk snapshot ([#13731](https://github.com/GoogleChrome/lighthouse/pull/13731) [#13712](https://github.com/GoogleChrome/lighthouse/pull/13712))
|
|
37
|
+
|
|
38
|
+
## Clients
|
|
39
|
+
|
|
40
|
+
* convert devtools and lightrider entries to ES modules ([#13722](https://github.com/GoogleChrome/lighthouse/pull/13722))
|
|
41
|
+
|
|
42
|
+
## Tests
|
|
43
|
+
|
|
44
|
+
* add more cases for oopif smoke test ([#13705](https://github.com/GoogleChrome/lighthouse/pull/13705))
|
|
45
|
+
* devtools: add yarn install timeout ([#13717](https://github.com/GoogleChrome/lighthouse/pull/13717))
|
|
46
|
+
* devtools: update Lighthouse sniffer for smokes ([#13693](https://github.com/GoogleChrome/lighthouse/pull/13693))
|
|
47
|
+
* devtools: navigation web test ([#13673](https://github.com/GoogleChrome/lighthouse/pull/13673))
|
|
48
|
+
* smoke: enable more devtools smoke tests ([#13624](https://github.com/GoogleChrome/lighthouse/pull/13624))
|
|
49
|
+
* smoke: add _excludes and _runner ([#13707](https://github.com/GoogleChrome/lighthouse/pull/13707))
|
|
50
|
+
|
|
51
|
+
## Misc
|
|
52
|
+
|
|
53
|
+
* support --chrome-flags in run devtools script ([#13625](https://github.com/GoogleChrome/lighthouse/pull/13625))
|
|
54
|
+
|
|
1
55
|
<a name="9.4.0"></a>
|
|
2
56
|
# 9.4.0 (2022-02-16)
|
|
3
57
|
[Full Changelog](https://github.com/compare/v9.3.1...v9.4.0)
|
|
@@ -1141,7 +1141,7 @@ function createScorescaleComponent(dom) {
|
|
|
1141
1141
|
function createScoresWrapperComponent(dom) {
|
|
1142
1142
|
const el0 = dom.createFragment();
|
|
1143
1143
|
const el1 = dom.createElement('style');
|
|
1144
|
-
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 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 ');
|
|
1144
|
+
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 ');
|
|
1145
1145
|
el0.append(el1);
|
|
1146
1146
|
const el2 = dom.createElement('div', 'lh-scores-wrapper');
|
|
1147
1147
|
const el3 = dom.createElement('div', 'lh-scores-container');
|
|
@@ -5606,7 +5606,8 @@ class TopbarFeatures {
|
|
|
5606
5606
|
categoriesAboveTheMiddle.length > 0 ? categoriesAboveTheMiddle.length - 1 : 0;
|
|
5607
5607
|
|
|
5608
5608
|
// Category order matches gauge order in sticky header.
|
|
5609
|
-
const gaugeWrapperEls =
|
|
5609
|
+
const gaugeWrapperEls =
|
|
5610
|
+
this.stickyHeaderEl.querySelectorAll('.lh-gauge__wrapper, .lh-fraction__wrapper');
|
|
5610
5611
|
const gaugeToHighlight = gaugeWrapperEls[highlightIndex];
|
|
5611
5612
|
const origin = gaugeWrapperEls[0].getBoundingClientRect().left;
|
|
5612
5613
|
const offset = gaugeToHighlight.getBoundingClientRect().left - origin;
|