-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[material-ui][ListItemSecondaryAction] Deprecate component #42251
[material-ui][ListItemSecondaryAction] Deprecate component #42251
Conversation
@siriwatknp some notes:
|
Netlify deploy previewBundle size report |
I don't have answers for all questions but:
We can read the user's implementation and try to apply the changes accordingly, but if it would be too difficult to know the correct replacement, then it's better not to have a codemod. If that's the case, we should explain in detail how to adapt.
We could implement this capability, what do you think @alexfauquette @danilo-leal?
Yes |
We have a specific rule to validate that every public component is included in at least one docs md page. Removing |
The rendering part you're looking to modify is here: material-ui/docs/src/modules/components/ApiPage.js Lines 251 to 261 in df6516e
The description is generated here:
|
Could we add a "skip" list so we can skip some of them? |
I think we should look into being able to mark components as
Also, consumers would see components as deprecated in their IDE, which is not the case at the moment afaik. But probably in another PR. I'm lacking quite some context on how docs are built so tell me if this is not a good idea. |
I opened a draft PR with a potential approach we could use to treat JSDoc comments as the source of truth for deprecations: #42280 |
171972b
to
18ffff4
Compare
18ffff4
to
ae4992c
Compare
We intended to deprecate
ListItemSecondaryAction
in v5 in favor of thesecondaryAction
prop inListItem
, but we forgot to do it officially so we can't remove it in v6. This PR adds a newListItemSecondaryAction
deprecation entry in the docs for v6 so we can remove it in v7. See #26446 for context.Preview link: https://deploy-preview-42251--material-ui.netlify.app/material-ui/migration/migrating-from-deprecated-apis/#listitemsecondaryaction