Skip to content
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

Components: Bump DateTimePicker deprecated prop removal version #46006

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

tyxla
Copy link
Member

@tyxla tyxla commented Nov 23, 2022

What?

This PR bumps the version in which the deprecated props of DateTimePicker will be removed in 6 more months of Gutenberg releases.

This is an alternative to #45999.

Closes #45999.

Why?

The DateTimePicker calendar help has been deprecated since Version 13.4 and was scheduled to be removed for 14.6.

Bumping the removal version of the deprecated props fixes the Static Analysis check which is currently failing in trunk.

How?

Simply bumping the deprecated props removal version.

Testing Instructions

Verify all checks are green.

✍️ Dev Note

The removal of the __nextRemoveHelpButton and __nextRemoveResetButton props on the DateTimePicker component in @wordpress/components, initially scheduled for Gutenberg 14.6, has been postponed to the Gutenberg 15.8 release.

@tyxla tyxla added [Type] Enhancement A suggestion for improvement. [Package] Components /packages/components labels Nov 23, 2022
@tyxla tyxla self-assigned this Nov 23, 2022
@codesandbox
Copy link

codesandbox bot commented Nov 23, 2022

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

Copy link
Contributor

@ciampo ciampo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Copy link
Contributor

@ntsekouras ntsekouras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix @tyxla! It'd be very unfortunate if we have to keep for ever such code.. If we do though, it seems we need to update the eslint rule for deprecations..

@tyxla
Copy link
Member Author

tyxla commented Nov 23, 2022

Thanks for the fix @tyxla! It'd be very unfortunate if we have to keep for ever such code.. If we do though, it seems we need to update the eslint rule for deprecations..

That's true. Or we can even remove the rule altogether, if we're not planning to be removing deprecations... Not a sustainable path forward if you ask me, as we'll need to find a better way to deal with cleaning up those deprecations at some point.

@ntsekouras ntsekouras merged commit 5d4a12d into trunk Nov 23, 2022
@ntsekouras ntsekouras deleted the bump/date-time-deprecated-props-version branch November 23, 2022 15:16
@github-actions github-actions bot added this to the Gutenberg 14.7 milestone Nov 23, 2022
@bph bph mentioned this pull request Feb 7, 2023
47 tasks
@ciampo ciampo added the has dev note when dev note is done (for upcoming WordPress release) label Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has dev note when dev note is done (for upcoming WordPress release) [Package] Components /packages/components [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants