-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependencies for Twenty Twenty-One. #5672
Conversation
@carolinan Do you mind giving this a once over? Mainly looking to get validation that these consolidated selectors will not be problematic. The following errors are happening now when running build. This is likely due to that consolidated.
|
One option to fix this is to use postcss-discard-empty, here is a patch that I tested which does so.
|
To get the correct line numbers for the errors, one can use
I have confirmed that the styles are indeed still present in the files, consolidated, moved to a different media query. I would expect the empty block to be removed, but this does not seem to happen for the media queries. |
Thanks all! I went with @aaronjorbin's patch above. |
Merged in core.trac.wordpress.org/changeset/57122. |
This updates all Twenty Twenty-One dependencies to their latest versions and run
npm audit fix
.The one exception to this is
stylelint
, which has only been updated to14.16.1
, the latest version of that major branch. The stylelint related dependencies maintained upstream in WordPress/gutenberg do not yet seem to support 15.x.This update is primarily to get TT1 to a state where there are no errors when running
install
and build tasks on Node.js 18.x. Runningnpm install
with 18.x currently produces the following output:These updates fix this issue.
Trac tickets:
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.