-
Notifications
You must be signed in to change notification settings - Fork 215
Update @wordpress/components and merge into single dependency #7962
Conversation
|
The release ZIP for this PR is accessible via: |
TypeScript Errors ReportFiles with errors: 419 Detailsassets/js/base/components/button/index.tsxpackages/checkout/slot/index.js |
|
Size Change: -175 kB (-17%) 👏 Total Size: 836 kB
ℹ️ View Unchanged
|
Script Dependencies ReportThe
This comment was automatically generated by the |
|
The release ZIP for this PR is accessible via: Script Dependencies ReportThe
This comment was automatically generated by the TypeScript Errors Report
Detailsassets/js/base/components/button/index.tsx |
|
This PR has been marked as If deemed still relevant, the pr can be kept active by ensuring it's up to date with the main branch and removing the stale label. |
* Update FormTokenField styles after @wordpress/components update * Remove unnecessary CSS declarations
|
That path won't be followed, hence closing the PR |
Background
WooCommerce Blocks relies on
@wordpress/componentsin two ways:What PR does
This PR updates the
@wordpress/componentsto version 22.0.0 and narrow down the dependency to single one with no difference between Editor and the FrontendWhat PR does not
Current newest version of
@wordpress/componentsis 23.0.0. This PR does not update the dependency to the newest version, since version 23.0.0 relies on React 18, while we rely on React 17. Although, the update of React may be easy I believe it deserves a separate PR.Also, I encountered problems with build with version 22.1.0 of
@wordpress/components(missing SCSS variable), hence I sticked to 22.0.0. I believe the key problem was to bump it as far as possible and then fix the following issues from there.Fixes #7665
Fixes #7950
Fixes #5611
Accessibility
prefers-reduced-motionUser Facing Testing
Impacted blocks/components should be smoke tested (and overall monkey tested).
WooCommerce Visibility
Performance Impact
Changelog