[core] Fix the deprecated examples version to v7#48026
Draft
silviuaavram wants to merge 1 commit intomui:masterfrom
Draft
[core] Fix the deprecated examples version to v7#48026silviuaavram wants to merge 1 commit intomui:masterfrom
silviuaavram wants to merge 1 commit intomui:masterfrom
Conversation
Netlify deploy previewhttps://deploy-preview-48026--material-ui.netlify.app/ Bundle size report
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces an @mui/material-v7 dependency alias and updates many @mui/codemod deprecations fixtures to import from that alias instead of @mui/material.
Changes:
- Add
@mui/material-v7(npm alias to@mui/material@7.3.9) topackages/mui-codemoddependencies and lockfile. - Update deprecations codemod test-case fixtures (
actual.js/expected.js) to use@mui/material-v7imports.
Reviewed changes
Copilot reviewed 111 out of 112 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-lock.yaml | Adds lock entries for @mui/material@7.3.9 and related v7 dependencies. |
| packages/mui-codemod/package.json | Adds @mui/material-v7 npm alias dependency. |
| packages/mui-codemod/src/deprecations/typography-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/typography-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/tooltip-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/tooltip-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/toggle-button-group-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/toggle-button-group-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/text-field-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/text-field-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/tabs-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/tabs-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/tabs-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/tabs-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/table-sort-label-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/table-sort-label-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/table-pagination-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/table-pagination-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/tab-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/tab-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/step-label-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/step-label-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/step-content-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/step-content-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/step-connector-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/step-connector-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/speed-dial-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/speed-dial-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/speed-dial-action-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/speed-dial-action-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/snackbar-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/snackbar-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/slider-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/slider-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/slider-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/slider-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/select-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/select-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/rating-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/rating-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/popper-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/popper-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/popover-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/popover-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/pagination-item-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/pagination-item-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/pagination-item-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/pagination-item-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/outlined-input-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/outlined-input-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/modal-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/modal-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/mobile-stepper-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/mobile-stepper-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/menu-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/menu-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/list-item-text-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/list-item-text-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/list-item-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/list-item-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/linear-progress-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/linear-progress-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/input-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/input-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/input-base-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/input-base-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/input-base-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/input-base-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/image-list-item-bar-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/image-list-item-bar-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/form-control-label-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/form-control-label-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/filled-input-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/filled-input-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/drawer-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/drawer-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/drawer-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/drawer-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/divider-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/divider-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/dialog-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/dialog-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/dialog-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/dialog-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/circular-progress-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/circular-progress-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/chip-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/chip-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/card-header-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/card-header-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/button-group-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/button-group-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/button-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/button-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/badge-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/badge-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/backdrop-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/backdrop-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/avatar-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/avatar-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/avatar-group-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/avatar-group-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/autocomplete-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/autocomplete-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/alert-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/alert-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/alert-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/alert-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/accordion-summary-classes/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/accordion-summary-classes/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/accordion-props/test-cases/expected.js | Switch fixture imports to @mui/material-v7. |
| packages/mui-codemod/src/deprecations/accordion-props/test-cases/actual.js | Switch fixture imports to @mui/material-v7. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
+1
to
+2
| import Typography from '@mui/material-v7/Typography'; | ||
| import { Typography as MyTypography } from '@mui/material-v7'; |
| "@babel/runtime": "^7.28.6", | ||
| "@babel/traverse": "^7.29.0", | ||
| "@mui/material-v5": "npm:@mui/material@5.18.0", | ||
| "@mui/material-v7": "npm:@mui/material@7.3.9", |
| "@babel/runtime": "^7.28.6", | ||
| "@babel/traverse": "^7.29.0", | ||
| "@mui/material-v5": "npm:@mui/material@5.18.0", | ||
| "@mui/material-v7": "npm:@mui/material@7.3.9", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixing the version in the codemod deprecated files imports, otherwise in v9 those deprecated props won't exist anymore.