[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
ListItemSecondaryActionin v5 in favor of thesecondaryActionprop inListItem, but we forgot to do it officially so we can't remove it in v6. This PR adds a newListItemSecondaryActiondeprecation 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