Update dependency lighthouse to v6 #96
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.2.1
->^6.0.0
By merging this PR, the issue #31 will be automatically resolved and closed:
Release Notes
GoogleChrome/lighthouse (lighthouse)
v6.2.0
Compare Source
6.2.0 (2020-08-06)
Full Changelog
We expect this release to ship in the DevTools of Chrome 86, and to PageSpeed
Insights within 2 weeks.
New Contributors
Thanks to our new contributors 👽🐷🐰🐯🐻!
New Audits
Core
CLI
Report
Deps
I18n
Docs
Tests
Misc
v6.1.1
Compare Source
6.1.1 (2020-07-07)
Full Changelog
This is a patch release to fix an issue that only occurred in 6.1.0 for Node environments. It will only be released to npm.
Core
v6.1.0
Compare Source
6.1.0 (2020-06-25)
Full Changelog
We expect this release to ship to DevTools in Chrome
8586, and to PageSpeed Insights within 2 weeks.New Contributors
Thanks to our new contributors 👽🐷🐰🐯🐻!
Notable Changes
unused-javascript
audit. In future versions of Lighthouse, source maps will be used for entirely new audits (#10990).KiB
instead ofKB
. This is simply a label change; the value was and still is equal to1024 bytes
(#10870).New Audits
Core
Experimental
Features hidden behind the
--preset=experimental
flag.Deps
Report
Docs
Tests
Misc
__LIGHTHOUSE_JSON__
(#10879)v6.0.0
Compare Source
Raw commit changelog
We expect this release to ship in the DevTools of Chrome 84.
Notable changes
So many! See the Lighthouse 6.0: What's New blog post for an in-depth look.
🆕 New audits
largest-contentful-paint-element
is a companion audit that gives information about which element triggered the LCP (#10517, #10713).layout-shift-elements
is another companion diagnostic that gives information about the elements that shifted as the page loaded (#10702).unused-javascript
is an audit that has been kicking around for some time but is only now turned on by default. It accounts for what JavaScript was loaded but never executed during page load and estimates the load time that could be saved via code splitting, dead code elimination, or judicious use of the delete key (#9854).maskable-icon
just looks better on your homescreen, so this new audit encourages you to have at least one available in your manifest (#10370).timing-budget
expands budget assertions to now be settable on all the performance metrics (#9901, #9925).charset
audit ensures a proper character encoding for page content (#10284, #10389, #10689).image-size-responsive
checks that images have an aspect ratio and resolution that match well with how they are displayed on a page (#10460).axe-core
has unlocked a number of new accessibility audits:aria-hidden-body
,aria-hidden-focus
,aria-input-field-name
,aria-toggle-field-name
,duplicate-id-active
,duplicate-id-aria
,form-field-multiple-labels
,heading-order
(#9798).⚗️ Experimental audits
These audits are not yet part of the default Lighthouse experience, but they will provide performance advice based on analysis of a page's JavaScript bundles. They can be tested today on the command line with the
--preset=experimental
flag.legacy-javascript
rummages through your bundles looking for polyfills and bundler transforms that aren't necessary or are outdated (#10303, #10568, #10564).duplicated-javascript
also takes a dive through a page's JavaScript looking for code that has ended up duplicated within bundles or across multiple bundles (#10314).unused-javascript
now runs by default (as mentioned above), but when run underexperimental
, the audit can use source maps to show what original source code was never run and could be postponed or eliminated (#10090).New contributors!
Thanks to @TGiles, @roelfjan, @chruxin, @warrengm, @alexgreencode, @mikedijkstra, @egsweeny, @johnsampson, @jazyan, @b3none, @mattjared, @Malvoz, @Beytoven, @Munter, @jayaddison, @msomji, @piotrzarycki, @awdltd, @mathiasbynens, @Carr1005, @staabm, @SphinxKnight, @sk-, @AndreasKubasa, @jantimon, @kmanuel, @Kikobeats, @RolandBurrows, @nxqamar, @catalinred, and @baseeee for their first contributions! So many!
💥 Breaking changes
frameNavigated
events are now used to track redirects, which means JS redirects are now accounted for when determining the run'sfinalUrl
(#10339).mixed-content
preset has been removed as it was not widely used and takes too long to be added to the default Lighthouse experience (#10159, #10750).full
preset has been renamedexperimental
to signify that the code there may not be ready for running by default (#9930, #10311, #10333, #10585).installable-manifest
: icons in the Web app manifest must be fetchable to be considered installable (#10168, #10320)🤖💥 Breaking changes for programmatic users
These changes are unlikely to affect end users, but may be important if you are writing custom configs, plugins, or processing the Lighthouse JSON output.
LH.Audit.Context
passed into audits is now treated as immutable. If code previously pushed tocontext.LighthouseRunWarnings
to get a top-level warning, it should now pass that back inrunWarnings
on the audit's product (#10555).Audit.computeLogNormalScore
has been redefined to specify log-normal curves with median and p10 points (dropping the "point of diminishing returns"). Existing audits have been moved to this new definition so that no score changes should occur (#10715).loadFailureMode
setting has been added toConfig
passes to control behavior in case of page load failure. Previously this was implicitly controlled (e.g. no offline page available did not cause an error) (#9987)time-to-first-byte
has been renamedserver-response-time
to better reflect what is being measured by the audit (#10735).resource-summary
:details.items.size
has been renamed totransferSize
for clarity (#10700, #10743).🧱 Core
Improvements, bug fixes, clarifications
The following changes are considered to be bug fixes or updates to better match what was intended to be audited, but the changes may cause adjustments in audit scores or behavior.
initiatorRequest
when there are duplicate records (#10097)offscreen-images
: look outside three viewports for possible images to defer (#10643)uses-responsive-images
: include offscreen images larger than viewport (#10506, #10561)accessibility
: includeaxe-core
'incomplete' results in artifact to include even partial a11y results (#10072, #10270)audio-caption
: remove check that has been disabled byaxe-core
(#10453)link-text
: Add more keywords to blocklist (#9986)font-size
: don't allow a deleted node to fail gatherer (#9928)installable-manifest
: lower required icon size from 192px to 144px (#10175)is-on-https
: addfilesystem
to secure schemes (#10073)offscreen-images
: excludelazy
oreager
loading
images (#10117)resource-summary
: don't include favicon.ico in summary (#10190)uses-rel-preconnect
: warn if more than three preconnects found (#9903, #10293)third-party-summary
: don't include main resource if origin in third-party list (#10006)js-lib-detector
: handle new fast lib detection entries, version heterogeneity (#9888, #10295, #10176)is-on-https
: update description to reference mixed content (#10712)definition-list
: mention<div>
is allowed to group content in<dl>
(#10479)offline-start-url
: improve failure messages (#9982)New things for programmatic users
numericUnit
property to specify the units for theirnumericResult
(#9979)ImageElements
: addusesPixelArtScaling
andusesSrcSetDensityDescriptor
properties (#10481)MetaElements
: includeproperty
attribute (#9978)HostFormFactor
(#9923)unused-javascript-summary
as a computed artifact (#10387, #10634)js-bundles
(#10078)unused-css
as a computed artifact (#10160)firstPartyHostnames
to the API (#10105, #10324)tolerance
property from API (#9770)Internal refactors and improvements
axe-core
errors are properly serialized (#10646)audit-details
type names (#10603)finished
state on hiddennetwork-requests
audit (#10530)driver
: dead code cleanup (#10491, #10571)__internalOptionalArtifacts
for experimental artifacts (#10355)font-size
: useDOMSnapshot.captureSnapshot
for better performance (#10200)evaluateAsync
when fetching content from the test page (#10130)script-elements
: fetch script content in parallel (#9713)GatherRunner.runPass
in internal perf timing numbers (#10205)GatherRunner.isPerfPass
for clarity (#9896)💻 CLI
--chrome-flags
(#10607)--output
(#10188)--chrome-ignore-default-flags
(#10184)--extra-headers
as object (#9962)📔 Report
external-anchors-use-rel-noopener
: usenode
audit details type (#10242)is-crawlable
: includerobots.txt
line number that blocks crawling (#10154)font-size
relative toreport-font-size
(#10761)null
jsdoc type annotations for internal linter (#10454)channel
to runtime settings (#10099)Util.UIStrings
toUtil.i18n
(#10153)source-location
details for linking to source code (#9354)👥 Clients
runLighthouseInWorker
and expose to worker (#10005)settings.internalDisableDeviceScreenEmulation
(#9377)lighthouse-plugin-publisher-ads
in bundle (#9924, #10583, #10682)roll-to-devtools
and track upstream changes (#9942, #10310, #10036, #10758, #10762)🌍 i18n
log.verbose()
for outdated-strings warning (#9931)Docs
NODE_PATH
(#9997, #10028)--disable-storage-reset
in recipe (#10189)build/
directory (#10004)yarn test-docs
(#10263)Tests
yarn update:sample-json
(#10557, #10661)bundle.js
runner for driving bundled lighthouse tests (#9943)bundle.js
runner + bundled lighthouse for integration testing in a browser (#9873, #10727)static-server
hook to modify response body (#9872)pwa.rocks
for testing (#10648)driver-test
(#10135, #10123)gather-runner-test
(#10136, #10215, #10230)i18n-test.js
bugs in Node 13 (#10595)assert
in strict assertion mode (#10606, #10733)report-ui-features
: add tests and remove interdependencies (#10199, #10201)coveragePathIgnore
jest configuration (#10448)speedline
: remove flaky test (#10181)global.URL
for jsdom tests (#10186)puppeteer
's chromium (#9877)yarn now-build
(#10151)Misc
Lighthouse Authors
(#10469)timings-data/
to.npmignore
(#10584)CODEOWNERS
for codereview assignment (#10265, #10274, #10282)bump-versions.js
release script (#9998).mailmap
file (#10766)compare-runs
script (#10296, #10519, #10526, #10652)git3po
scripts for managing Github issues and PRs (#10231, #10266, #10255, #10271, #10338, #10256, #10304, #10658, #10257)Deps
lighthouse-plugin-publisher-ads
: upgrade to 1.1.0-beta.0 (#10544, #10776)chrome-launcher
: upgrade to 0.13.2 (#9904, #10535, #10724)yargs-parser
: upgrade to 18.1.3 (#10723)third-party-web
: upgrade to 0.11.1 (#10711)axe-core
: upgrade to 3.5.3 (#10056, #10344, #10637)