Skip to content

remove migrate prop, finish deprecation #3075

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

Closed

Conversation

adids1221
Copy link
Contributor

@adids1221 adids1221 commented May 19, 2024

Description

Picker refactor - finish prop deprecation.
Finish migrate prop deprecation, the migrate prop was in prop deprecation error phase.
Note: take a look at this PR, I checked that 0 value works.

Changelog

Picker finish migrate prop deprecation.

Additional info

MDAS - 4195

Copy link
Collaborator

@M-i-k-e-l M-i-k-e-l left a comment

Choose a reason for hiding this comment

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

This PR should be opened for v8

const itemAsArray = [item];
if (!migrate) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can't remove code from public without changing the major version - this should be part of the v8 effort

Comment on lines -83 to -91
"component": "Picker",
"source": "module-with-deprecations",
"props": [
{
"prop": "migrate",
"message": "Please make sure to pass the 'migrate' prop.",
"isRequired": true
}
]
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be taken as an example, it can stay here even after the removal of the migrate prop (or you can add a different example instead; this also fails a test that is run on this package)

@adids1221
Copy link
Contributor Author

@M-i-k-e-l closing this PR, this will be the last stage in the refactor, opening for v8

@adids1221 adids1221 closed this May 21, 2024
@adids1221 adids1221 deleted the infra/Picker_refactor_migrate_prop_deprecation branch May 21, 2024 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants