-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Framework: Drop deprecations slated for 3.2 removal #7747
Conversation
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.
Looks like utils/deprecated.js
is slated to be removed but the file and function are still there: https://github.com/WordPress/gutenberg/blob/remove/3-2-deprecations/utils/deprecated.js
Otherwise looks good.
I did some grepping and testing and things seem fine. I think the only thing missing is the removal of the deprecated wrapper from /utils/deprecated. |
We should mention this step of checking for deprecations in the release document. |
Nice catch. Our custom lint rule is dumb and can't find by the aliased |
I might agree, but the document as written is more oriented to steps to undertake when already in the process of doing a release. Since the lint rule will forbid the merge of the version bump pull request anyways, I'm not sure it's of huge help. Maybe we should add a section on things to look out further ahead of the next release? (Maybe more as a step after a release) |
Easily solved with a Release Checklist section, which totally belongs in the release docs. 🚲🏠 |
That would work, but only if it's the last step, not a pre-release step. Otherwise we risk reenforcing the idea that this be done at the time of a release, which I disagree with. 3.3 deprecations, for example, should ideally be removed immediately after the upcoming 3.2 release. |
Oh, wait, right. Okay! I will add... |
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "gutenberg", | |||
"version": "3.1.1", | |||
"version": "3.2.0", |
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.
Sigh.. this wasn't meant to be included 😞 Only to help trigger the failing E2E locally.
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.
Sorry I missed it too 😢
This pull request seeks to remove deprecations slated for removal in the upcoming 3.2.0 release.
Specifically, this includes:
wp.data.withRehydratation
has been renamed towp.data.withRehydration
.wp.editor.ImagePlaceholder
component is removed. Please usewp.editor.MediaPlaceholder
instead.wp.utils.deprecated
function removed. Please usewp.deprecated
instead.getInserterItems
: theallowedBlockTypes
argument was removed and theparentUID
argument was added.getFrecentInserterItems
selector removed. Please usegetInserterItems
instead.getSupportedBlocks
selector removed. Please usecanInsertBlockType
instead.See: https://wordpress.org/gutenberg/handbook/reference/deprecated/#3-2-0
Testing instructions:
Verify that there are no regressions in impacted behavior, and importantly that no references to deprecated behaviors exist in core code.