Skip to content

Commit

Permalink
deps(lighthouse-stack-packs): upgrade to 1.10.0 (#15038)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark authored May 3, 2023
1 parent 40c1608 commit 6403654
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 5 deletions.
4 changes: 4 additions & 0 deletions core/lib/stack-packs.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import * as i18n from './i18n/i18n.js';
* @type {Array<{packId: string, requiredStacks: Array<string>}>}
*/
const stackPacksToInclude = [
{
packId: 'gatsby',
requiredStacks: ['js:gatsby'],
},
{
packId: 'wordpress',
requiredStacks: ['js:wordpress'],
Expand Down
8 changes: 8 additions & 0 deletions core/scripts/i18n/collect-strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,8 +730,16 @@ function checkKnownFixedCollisions(strings) {
'Potential Savings',
'The page was evicted from the cache to allow another page to be cached.',
'The page was evicted from the cache to allow another page to be cached.',
'Use $MARKDOWN_SNIPPET_0$ to detect unused JavaScript code. $LINK_START_0$Learn more$LINK_END_0$',
'Use $MARKDOWN_SNIPPET_0$ to detect unused JavaScript code. $LINK_START_0$Learn more$LINK_END_0$',
'Use the $MARKDOWN_SNIPPET_0$ component and set the appropriate $MARKDOWN_SNIPPET_1$. $LINK_START_0$Learn more$LINK_END_0$.',
'Use the $MARKDOWN_SNIPPET_0$ component and set the appropriate $MARKDOWN_SNIPPET_1$. $LINK_START_0$Learn more$LINK_END_0$.',
'Use the $MARKDOWN_SNIPPET_0$ component instead of $MARKDOWN_SNIPPET_1$ to adjust image quality. $LINK_START_0$Learn more$LINK_END_0$.',
'Use the $MARKDOWN_SNIPPET_0$ component instead of $MARKDOWN_SNIPPET_1$ to adjust image quality. $LINK_START_0$Learn more$LINK_END_0$.',
'Use the $MARKDOWN_SNIPPET_0$ component instead of $MARKDOWN_SNIPPET_1$ to automatically lazy-load images. $LINK_START_0$Learn more$LINK_END_0$.',
'Use the $MARKDOWN_SNIPPET_0$ component instead of $MARKDOWN_SNIPPET_1$ to automatically lazy-load images. $LINK_START_0$Learn more$LINK_END_0$.',
'Use the $MARKDOWN_SNIPPET_0$ component instead of $MARKDOWN_SNIPPET_1$ to automatically optimize image format. $LINK_START_0$Learn more$LINK_END_0$.',
'Use the $MARKDOWN_SNIPPET_0$ component instead of $MARKDOWN_SNIPPET_1$ to automatically optimize image format. $LINK_START_0$Learn more$LINK_END_0$.',
]);
} catch (err) {
console.log('The number of duplicate strings has changed. Consider duplicating the `description` to match existing strings so they\'re translated together or update this assertion if they must absolutely be translated separately');
Expand Down
15 changes: 15 additions & 0 deletions core/test/lib/stack-packs-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Array [
"angular",
"drupal",
"ezoic",
"gatsby",
"joomla",
"magento",
"next.js",
Expand Down Expand Up @@ -132,6 +133,20 @@ Array [
"font-display",
],
},
Object {
"id": "gatsby",
"keys": Array [
"unused-css-rules",
"modern-image-formats",
"offscreen-images",
"render-blocking-resources",
"unused-javascript",
"uses-long-cache-ttl",
"uses-optimized-images",
"uses-responsive-images",
"prioritize-lcp-image",
],
},
Object {
"id": "joomla",
"keys": Array [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
"jpeg-js": "^0.4.4",
"js-library-detector": "^6.6.0",
"lighthouse-logger": "^1.3.0",
"lighthouse-stack-packs": "1.9.1",
"lighthouse-stack-packs": "1.10.0",
"lodash": "^4.17.21",
"lookup-closest-locale": "6.2.0",
"metaviewport-parser": "0.3.0",
Expand Down
27 changes: 27 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.

27 changes: 27 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.

8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5117,10 +5117,10 @@ lighthouse-plugin-soft-navigation@^1.0.1:
resolved "https://registry.yarnpkg.com/lighthouse-plugin-soft-navigation/-/lighthouse-plugin-soft-navigation-1.0.1.tgz#82fb2008991458d753a819dd3e1f076d55eb2bfb"
integrity sha512-lvwiC9Bp/kzx7WTsPw/tjv1MkeRnvX2rKNTHDBSOOPYLsvaPrnaCk+6n+1sfinwLM6LAAWp5B9mTdi+G/31iDQ==

lighthouse-stack-packs@1.9.1:
version "1.9.1"
resolved "https://registry.yarnpkg.com/lighthouse-stack-packs/-/lighthouse-stack-packs-1.9.1.tgz#e83f76e302cb3dec717ad6a3af2da07c91d8f8f5"
integrity sha512-9prq6oMkVHz3GeCkphq4FHXXdj3M/WPiFWUvJAczLYV8j/oTxsgiHSPMqh1KVV11CP0VTxD40hFC0pDfXF+khQ==
lighthouse-stack-packs@1.10.0:
version "1.10.0"
resolved "https://registry.yarnpkg.com/lighthouse-stack-packs/-/lighthouse-stack-packs-1.10.0.tgz#1036db27deb27506012e767202489689524a26e9"
integrity sha512-5nvJS+IkZUbnDpIeJLi1xdnCfftBFMkxXfA5HHlEC1EQFQ2a8YPos6vl11oERHuIlDFEnVkaOeNaSIrL2K/9Gg==

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

0 comments on commit 6403654

Please sign in to comment.