Skip to content

Commit 6922a6f

Browse files
authored
Merge pull request #5554 from ampproject/update-dependencies
Update dependencies
2 parents e47416f + 36fe212 commit 6922a6f

File tree

17 files changed

+6500
-4034
lines changed

17 files changed

+6500
-4034
lines changed

.github/workflows/build-test-measure.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
echo "::set-output name=dir::$(composer config cache-files-dir)"
3939
4040
- name: Configure Composer cache
41-
uses: actions/cache@v1
41+
uses: actions/cache@v2
4242
with:
4343
path: ${{ steps.composer-cache.outputs.dir }}
4444
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -56,7 +56,7 @@ jobs:
5656
echo "::set-output name=dir::$(npm config get cache)"
5757
5858
- name: Configure npm cache
59-
uses: actions/cache@v1
59+
uses: actions/cache@v2
6060
with:
6161
path: ${{ steps.npm-cache.outputs.dir }}
6262
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -117,7 +117,7 @@ jobs:
117117
echo "::set-output name=dir::$(composer config cache-files-dir)"
118118
119119
- name: Configure Composer cache
120-
uses: actions/cache@v1
120+
uses: actions/cache@v2
121121
with:
122122
path: ${{ steps.composer-cache.outputs.dir }}
123123
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -135,7 +135,7 @@ jobs:
135135
echo "::set-output name=dir::$(npm config get cache)"
136136
137137
- name: Configure npm cache
138-
uses: actions/cache@v1
138+
uses: actions/cache@v2
139139
with:
140140
path: ${{ steps.npm-cache.outputs.dir }}
141141
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ jobs:
6969
env: WP_VERSION=latest DEV_LIB_ONLY=phpsyntax
7070
before_script:
7171
- phpenv config-rm xdebug.ini || echo "xdebug.ini does not exist."
72-
- composer require --dev localheinz/composer-normalize --ignore-platform-reqs
72+
# TODO: Exact version of ergebnis/composer-normalize can be removed once Composer v2 is supported.
73+
- composer require --dev ergebnis/composer-normalize:2.9.0 --ignore-platform-reqs
7374
script:
7475
- source "$DEV_LIB_PATH/travis.script.sh"
7576
- composer validate --no-check-all

assets/src/components/amp-setting-toggle/test/__snapshots__/index.js.snap

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/src/components/reader-theme-carousel/index.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -174,19 +174,21 @@ export function ReaderThemeCarousel() {
174174
<p>
175175
{ AMP_QUERY_VAR_CUSTOMIZED_LATE
176176
/* dangerouslySetInnerHTML reason: Injection of code tags. */
177-
? <span
178-
dangerouslySetInnerHTML={ {
179-
__html: sprintf(
180-
/* translators: 1: customized AMP query var, 2: default query var, 3: the AMP_QUERY_VAR constant name, 4: the amp_query_var filter, 5: the plugins_loaded action */
181-
__( 'The following themes are not available because your site (probably the active theme) has customized the AMP query var too late (it is set to %1$s as opposed to the default of %2$s). Please make sure that any customizations done by defining the %3$s constant or adding an %4$s filter are done before the %5$s action with priority 8.', 'amp' ),
182-
`<code>${ AMP_QUERY_VAR }</code>`,
183-
`<code>${ DEFAULT_AMP_QUERY_VAR }</code>`,
184-
'<code>AMP_QUERY_VAR</code>',
185-
'<code>amp_query_var</code>',
186-
'<code>plugins_loaded</code>',
187-
),
188-
} }
189-
/>
177+
? (
178+
<span
179+
dangerouslySetInnerHTML={ {
180+
__html: sprintf(
181+
/* translators: 1: customized AMP query var, 2: default query var, 3: the AMP_QUERY_VAR constant name, 4: the amp_query_var filter, 5: the plugins_loaded action */
182+
__( 'The following themes are not available because your site (probably the active theme) has customized the AMP query var too late (it is set to %1$s as opposed to the default of %2$s). Please make sure that any customizations done by defining the %3$s constant or adding an %4$s filter are done before the %5$s action with priority 8.', 'amp' ),
183+
`<code>${ AMP_QUERY_VAR }</code>`,
184+
`<code>${ DEFAULT_AMP_QUERY_VAR }</code>`,
185+
'<code>AMP_QUERY_VAR</code>',
186+
'<code>amp_query_var</code>',
187+
'<code>plugins_loaded</code>',
188+
),
189+
} }
190+
/>
191+
)
190192
: __( 'Some supported themes cannot be installed automatically on this site. To use, please install them manually or contact your hosting provider.', 'amp' )
191193
}
192194
</p>

assets/src/components/reader-theme-selection/index.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,21 @@ export function ReaderThemeSelection() {
8989
<p>
9090
{ AMP_QUERY_VAR_CUSTOMIZED_LATE
9191
/* dangerouslySetInnerHTML reason: Injection of code tags. */
92-
? <span
93-
dangerouslySetInnerHTML={ {
94-
__html: sprintf(
95-
/* translators: 1: customized AMP query var, 2: default query var, 3: the AMP_QUERY_VAR constant name, 4: the amp_query_var filter, 5: the plugins_loaded action */
96-
__( 'The following themes are not available because your site (probably the active theme) has customized the AMP query var too late (it is set to %1$s as opposed to the default of %2$s). Please make sure that any customizations done by defining the %3$s constant or adding an %4$s filter are done before the %5$s action with priority 8.', 'amp' ),
97-
`<code>${ AMP_QUERY_VAR }</code>`,
98-
`<code>${ DEFAULT_AMP_QUERY_VAR }</code>`,
99-
'<code>AMP_QUERY_VAR</code>',
100-
'<code>amp_query_var</code>',
101-
'<code>plugins_loaded</code>',
102-
),
103-
} }
104-
/>
92+
? (
93+
<span
94+
dangerouslySetInnerHTML={ {
95+
__html: sprintf(
96+
/* translators: 1: customized AMP query var, 2: default query var, 3: the AMP_QUERY_VAR constant name, 4: the amp_query_var filter, 5: the plugins_loaded action */
97+
__( 'The following themes are not available because your site (probably the active theme) has customized the AMP query var too late (it is set to %1$s as opposed to the default of %2$s). Please make sure that any customizations done by defining the %3$s constant or adding an %4$s filter are done before the %5$s action with priority 8.', 'amp' ),
98+
`<code>${ AMP_QUERY_VAR }</code>`,
99+
`<code>${ DEFAULT_AMP_QUERY_VAR }</code>`,
100+
'<code>AMP_QUERY_VAR</code>',
101+
'<code>amp_query_var</code>',
102+
'<code>plugins_loaded</code>',
103+
),
104+
} }
105+
/>
106+
)
105107
: __( 'The following themes are compatible but cannot be installed automatically. Please install them manually, or contact your host if you are not able to do so.', 'amp' )
106108
}
107109
</p>

assets/src/components/redirect-toggle/test/__snapshots__/redirect-toggle.js.snap

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/src/components/template-mode-option/test/__snapshots__/index.js.snap

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/src/settings-page/analytics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function AnalyticsEntry( { entryIndex, onChange, onDelete, type = '', config = '
106106
if ( ! textAreaRef?.current ) {
107107
return false;
108108
}
109-
return textAreaRef.current === document.activeElement;
109+
return textAreaRef.current === textAreaRef.current.ownerDocument.activeElement;
110110
};
111111

112112
const defaultValue = vendorConfigs[ type ]?.sample || '{}';

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"ext-spl": "*",
1616
"ampproject/common": "*",
1717
"ampproject/optimizer": "*",
18-
"cweagans/composer-patches": "1.6.7",
18+
"cweagans/composer-patches": "1.7.0",
1919
"fasterimage/fasterimage": "1.5.0",
2020
"sabberworm/php-css-parser": "dev-master#bfdd976"
2121
},
@@ -34,7 +34,7 @@
3434
"wp-cli/extension-command": "^2.0",
3535
"wp-cli/wp-cli": "^2.4",
3636
"wp-coding-standards/wpcs": "2.3.0",
37-
"xwp/wp-dev-lib": "1.6.4"
37+
"xwp/wp-dev-lib": "1.6.5"
3838
},
3939
"suggest": {
4040
"ext-intl": "Enables use of idn_to_utf8() to convert punycode domains to UTF-8 for use with an AMP Cache.",

0 commit comments

Comments
 (0)