-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add 'since' versions to the deprecated features #30072
Add 'since' versions to the deprecated features #30072
Conversation
I'm wondering how valuable those versions are without context. They should make it clear that this version is related to the plugin: plugin: 'Gutenberg', Aside: For folks consuming the block editor from the WordPress core, this information might be less useful as they would rather prefer seeing the version of WordPress core. |
Hi @gziolo, I also would prefer seeing the WP version in those messages. As a plugin developer, it would make it easier for me to check if the suggested alternative will work with my minimum required WP version. Maybe we should use the WP version in log messages and add the Gutenberg version in DocBlocks. P.S. I remember there was a document with a list, which WP version included which Gutenberg version. But I'm not able to find it right now. |
You can open a file and switch to the branch for a given WP version, e.g.: https://github.com/WordPress/gutenberg/blob/wp/5.7/packages/block-editor/src/components/block-card/index.js |
So we could default to the Gutenberg version in the code when introducing a deprecation and update them just before every major WordPress release. How does it sound? It would give good feedback on where the deprecation comes from. |
Sounds great. I will update PR to use WP versions. |
0919fa0
to
aa9120b
Compare
@gziolo I've updated |
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.
There are some places where it would be valuable to explicitly say that the since
comes from the Gutenberg plugin. Otherwise, nice improvements 👍🏻
Thanks, @gziolo for the suggestion. I provided a plugin option for Gutenberg deprecations and removed them from WP ones. |
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.
All good 🚢
The last step would be to update the documentation and share recommendations on how to use |
Sounds good. I will create a separate PR for this if it's okay with you. |
Yes, for sure 👍🏻 |
Description
This is a follow-up of #30017 and adds deprecation versions to the features.
I've used a combination of git history, Github milestones, and inline comments to track down deprecation versions.
How has this been tested?
Locally by using the deprecated features. Example:
Calling the following selector in the console should result in a deprecation message with a version it was deprecated.
Types of changes
New feature
Checklist: