-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Composite: export new stable version, deprecate unstable version #63364
Conversation
Size Change: -260 B (-0.01%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
Flaky tests detected in 08b9b2c. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9880931629
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
16aac5c
to
6ba7ce9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @ciampo 👍
So much work in a single PR though - can make it more difficult to review and test properly 😅
I'd recommend splitting into multiple PRs, for example:
- Export the new stable version
- Remove the v2 from private APIs
- Update consumer components to use the v2
- Deprecate the legacy version
I wonder if there was a reason to prefer doing it all in a single PR?
No preference, I thought the size would still be manageable for one unique PR. I will go ahead and split it into smaller ones 👌 |
Closing this PR as I will split the changes over smaller PRs. |
What?
Closes #58850
This PR promotes the new private
CompositeV2
component family to stable, and marks the "unstable" (legacy) version of the component as deprecated.Why?
The unstable version is using a sub-optimal API layer and is currently not 100% supported. Consumers of the component should migrate to using the new, unprefixed, stable version of
Composite
.How?
Composite
component from the@wordpress/components
package__unstable
components as deprecated, and update unit testsCompositeV2
private APIs, and update imports across the packageTODO:
Warning
This PR shouldn't be merged until we reach consensus on what naming strategy should be adopted for compounds components.
Testing Instructions
Composite