Skip to content

Commit

Permalink
deps(lighthouse-stack-packs): upgrade to 1.9.0 (#14713)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark authored Jan 25, 2023
1 parent 49a8f12 commit 955586c
Show file tree
Hide file tree
Showing 8 changed files with 97 additions and 17 deletions.
4 changes: 4 additions & 0 deletions core/lib/stack-packs.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ const stackPacksToInclude = [
packId: 'wordpress',
requiredStacks: ['js:wordpress'],
},
{
packId: 'wp-rocket',
requiredStacks: ['js:wp-rocket'],
},
{
packId: 'ezoic',
requiredStacks: ['js:ezoic'],
Expand Down
12 changes: 6 additions & 6 deletions core/test/fixtures/fraggle-rock/reports/sample-flow-result.json

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions core/test/lib/stack-packs-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Array [
"octobercms",
"react",
"wordpress",
"wp-rocket",
]
`);
});
Expand Down Expand Up @@ -224,6 +225,21 @@ Array [
"server-response-time",
],
},
Object {
"id": "wp-rocket",
"keys": Array [
"unused-css-rules",
"modern-image-formats",
"unused-javascript",
"render-blocking-resources",
"unminified-css",
"unminified-javascript",
"uses-optimized-images",
"uses-rel-preconnect",
"uses-rel-preload",
"offscreen-images",
],
},
]
`);
});
Expand Down
2 changes: 1 addition & 1 deletion core/test/results/sample_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -6311,7 +6311,7 @@
{
"id": "wordpress",
"title": "WordPress",
"iconDataURL": "data:image/svg+xml,%3Csvg viewBox=\"0 0 122.5 122.5\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cg fill=\"%232f3439\"%3E%3Cpath d=\"M8.7 61.3c0 20.8 12.1 38.7 29.6 47.3l-25-68.7c-3 6.5-4.6 13.7-4.6 21.4zM96.7 58.6c0-6.5-2.3-11-4.3-14.5-2.7-4.3-5.2-8-5.2-12.3 0-4.8 3.7-9.3 8.9-9.3h.7a52.4 52.4 0 0 0-79.4 9.9h3.3c5.5 0 14-.6 14-.6 2.9-.2 3.2 4 .4 4.3 0 0-2.9.4-6 .5l19.1 57L59.7 59l-8.2-22.5c-2.8-.1-5.5-.5-5.5-.5-2.8-.1-2.5-4.5.3-4.3 0 0 8.7.7 13.9.7 5.5 0 14-.7 14-.7 2.8-.2 3.2 4 .3 4.3 0 0-2.8.4-6 .5l19 56.5 5.2-17.5c2.3-7.3 4-12.5 4-17z\"/%3E%3Cpath d=\"M62.2 65.9l-15.8 45.8a52.6 52.6 0 0 0 32.3-.9l-.4-.7zM107.4 36a49.6 49.6 0 0 1-3.6 24.2l-16.1 46.5A52.5 52.5 0 0 0 107.4 36z\"/%3E%3Cpath d=\"M61.3 0a61.3 61.3 0 1 0 .1 122.7A61.3 61.3 0 0 0 61.3 0zm0 119.7a58.5 58.5 0 1 1 .1-117 58.5 58.5 0 0 1-.1 117z\"/%3E%3C/g%3E%3C/svg%3E",
"iconDataURL": "data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 122.5 122.5\"><g fill=\"%232f3439\"><path d=\"M8.7 61.3c0 20.8 12.1 38.7 29.6 47.3l-25-68.7c-3 6.5-4.6 13.7-4.6 21.4zm88-2.7c0-6.5-2.3-11-4.3-14.5-2.7-4.3-5.2-8-5.2-12.3 0-4.8 3.7-9.3 8.9-9.3h.7a52.4 52.4 0 0 0-79.4 9.9h3.3c5.5 0 14-.6 14-.6 2.9-.2 3.2 4 .4 4.3 0 0-2.9.4-6 .5l19.1 57L59.7 59l-8.2-22.5c-2.8-.1-5.5-.5-5.5-.5-2.8-.1-2.5-4.5.3-4.3 0 0 8.7.7 13.9.7 5.5 0 14-.7 14-.7 2.8-.2 3.2 4 .3 4.3 0 0-2.8.4-6 .5l19 56.5 5.2-17.5c2.3-7.3 4-12.5 4-17z\"/><path d=\"m62.2 65.9-15.8 45.8a52.6 52.6 0 0 0 32.3-.9l-.4-.7zM107.4 36a49.6 49.6 0 0 1-3.6 24.2l-16.1 46.5A52.5 52.5 0 0 0 107.4 36z\"/><path d=\"M61.3 0a61.3 61.3 0 1 0 .1 122.7A61.3 61.3 0 0 0 61.3 0zm0 119.7a58.5 58.5 0 1 1 .1-117 58.5 58.5 0 0 1-.1 117z\"/></g></svg>",
"descriptions": {
"unused-css-rules": "Consider reducing, or switching, the number of [WordPress plugins](https://wordpress.org/plugins/) loading unused CSS in your page. To identify plugins that are adding extraneous CSS, try running [code coverage](https://developer.chrome.com/docs/devtools/coverage/) in Chrome DevTools. You can identify the theme/plugin responsible from the URL of the stylesheet. Look out for plugins that have many stylesheets in the list which have a lot of red in code coverage. A plugin should only enqueue a stylesheet if it is actually used on the page.",
"modern-image-formats": "Consider using the [Performance Lab](https://wordpress.org/plugins/performance-lab/) plugin to automatically convert your uploaded JPEG images into WebP, wherever supported.",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@
"http-link-header": "^0.8.0",
"intl-messageformat": "^4.4.0",
"jpeg-js": "^0.4.4",
"js-library-detector": "^6.5.0",
"js-library-detector": "^6.6.0",
"lighthouse-logger": "^1.3.0",
"lighthouse-stack-packs": "1.8.2",
"lighthouse-stack-packs": "1.9.0",
"lodash": "^4.17.21",
"lookup-closest-locale": "6.2.0",
"metaviewport-parser": "0.3.0",
Expand Down
30 changes: 30 additions & 0 deletions shared/localization/locales/en-US.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions shared/localization/locales/en-XL.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4827,10 +4827,10 @@ jpeg-js@*, jpeg-js@^0.4.1, jpeg-js@^0.4.4:
resolved "https://registry.yarnpkg.com/jpeg-js/-/jpeg-js-0.4.4.tgz#a9f1c6f1f9f0fa80cdb3484ed9635054d28936aa"
integrity sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==

js-library-detector@^6.5.0:
version "6.5.0"
resolved "https://registry.yarnpkg.com/js-library-detector/-/js-library-detector-6.5.0.tgz#96de02e9926a185c2d7a9a6967286d2ba20b5f79"
integrity sha512-Kq7VckJ5kb26kHMAu1sDO8t2qr7M5Uw6Gf7fVGtu1YceoHdqTcobwnB5kStcktusPuPmiCE8PbCaiLzhiBsSAw==
js-library-detector@^6.6.0:
version "6.6.0"
resolved "https://registry.yarnpkg.com/js-library-detector/-/js-library-detector-6.6.0.tgz#b531a4784f8242d87f68f6f3eafc771a0650fb9d"
integrity sha512-z8OkDmXALZ22bIzBtIW8cpJ39MV93/Zu1rWrFdhsNw+sity2rOLaGT2kfWWQ6mnRTWs4ddONY5kiroA8e98Gvg==

js-tokens@^4.0.0:
version "4.0.0"
Expand Down Expand Up @@ -5044,10 +5044,10 @@ [email protected]:
intl-messageformat "^4.1.2"
yargs "^16.1.1"

lighthouse-stack-packs@1.8.2:
version "1.8.2"
resolved "https://registry.yarnpkg.com/lighthouse-stack-packs/-/lighthouse-stack-packs-1.8.2.tgz#55111bebe50ed516de3fad0a474795a2556ac36e"
integrity sha512-vlCUxxQAB8Nu6LQHqPpDRiMi06Du593/my/6JbMttQeEfJ7pf4OS8obSTh5xSOS80U/O7fq59Q8rQGAUxQatUQ==
lighthouse-stack-packs@1.9.0:
version "1.9.0"
resolved "https://registry.yarnpkg.com/lighthouse-stack-packs/-/lighthouse-stack-packs-1.9.0.tgz#2353aaab497b01ea7679a1cbcb04ea234f374211"
integrity sha512-xV6thXsxoHWgIluhLhp4zQ09c0T2zZNIDXoKy0emRoD2xCGJAFxoabRdyZpY0VnKwW8evMNXnMdPZtukKk2lhA==

lines-and-columns@^1.1.6:
version "1.2.4"
Expand Down

0 comments on commit 955586c

Please sign in to comment.