Skip to content

Components: Bump DateTimePicker deprecated prop removal version#46006

Merged
ntsekouras merged 1 commit into
trunkfrom
bump/date-time-deprecated-props-version
Nov 23, 2022
Merged

Components: Bump DateTimePicker deprecated prop removal version#46006
ntsekouras merged 1 commit into
trunkfrom
bump/date-time-deprecated-props-version

Conversation

@tyxla

@tyxla tyxla commented Nov 23, 2022

Copy link
Copy Markdown
Member

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
@tyxla tyxla requested a review from ajitbohra as a code owner November 23, 2022 14:34
@codesandbox

codesandbox Bot commented Nov 23, 2022

Copy link
Copy Markdown

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

@ciampo ciampo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚀

@ntsekouras ntsekouras left a comment

Copy link
Copy Markdown
Contributor

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

tyxla commented Nov 23, 2022

Copy link
Copy Markdown
Member Author

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