Renovate: update bundled wp package rules#50007
Conversation
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
anomiex
left a comment
There was a problem hiding this comment.
I like the general idea. Some comments inline.
I don't think this change would result in #49272 getting closed. Since the groupName isn't changing, it should still recognize it as the same change. I'll test that in a fork in a bit.
| // @wordpress/stylelint-config is grouped with theme because its WPDS rules lint against | ||
| // the token set shipped in @wordpress/theme — the two should be updated in lockstep. |
There was a problem hiding this comment.
Is this true? Looks like the actual rules are in @wordpress/theme, and @wordpress/stylelint-config just loads them from there.
There was a problem hiding this comment.
Hmm I'm not sure — I think that would work if @wordpress/stylelint-config would define @wordpress/theme as peer dependency, but it's a direct dependency so it likely uses its own version?
"dependencies": {
"@stylistic/stylelint-plugin": "^3.0.1",
"@wordpress/theme": "^0.16.0",
"stylelint-config-recommended": "^14.0.1",
"stylelint-config-recommended-scss": "^14.1.0"
},
I had exactly this mismatch happen after updating wp-theme+variables in JP locally to new ones, and stylelint started complaining it until I updated it. So I assumed stylelint was the issue but I did not confirm that. If you think it's safe to leave out, happy to do so.
There was a problem hiding this comment.
Hmm. Best thing in that case might be to pnpmfile-hack it to turn that into a peer dep. Or to >=0.16.0. 😀
Otherwise, I think it'd work fine for updating @wordpress/theme to something like 0.16.1, pnpm dedupe should take care of the indirect dep, but not 0.17.0 (because for 0.x caret deps like ^0.16.0, it works like >=0.16.0 <0.17.0).
| // @wordpress/build is still heavily developed; its dashboards share the same bundled | ||
| // packages and test surface, so exercising build alongside the rest is practical. | ||
| // | ||
| // Bundled @wordpress/grid is missing here as its updates with "Widgets Dashboard" grouping separately. |
There was a problem hiding this comment.
Maybe we should just merge that here too?
There was a problem hiding this comment.
My preference as well, and likely safer long-term, although right now anything using grid/dashboard stuff is non-production for at least another month.
@Automattic/red @Automattic/ventures WDYT if we merge the Dashboard renovate block added in #49815 with the Bundled WordPress deps? Might be more straightforward and safer with cross-dependencies.
Worked fine in my fork on anomiex#58, no deletion. |
Follow-up to #49272 (review)
Latest bundled WP packages update revealed a few gaps.
Best to have #49272 merged first before this so that Renovate doesn't close it.
Proposed changes
@wordpress/themeto avoid mismatching versions of bundled deps (notably@wordpress/ui,@wordpress/dataviews,@wordpress/admin-uiand others) using style tokens from different version than Jetpack is shipping.@wordpress/stylelint-configto lint invalid design tokens, we need to bump that together with@wordpress/theme.@wordpress/style-runtimefrom the latest bundled deps listRelated product discussion/links
Does this pull request change what data or activity we track or use?
Testing instructions