Skip to content

[core] Fix the deprecated examples version to v7#48026

Draft
silviuaavram wants to merge 1 commit intomui:masterfrom
silviuaavram:dev/fix-codemod-deprecated-version
Draft

[core] Fix the deprecated examples version to v7#48026
silviuaavram wants to merge 1 commit intomui:masterfrom
silviuaavram:dev/fix-codemod-deprecated-version

Conversation

@silviuaavram
Copy link
Copy Markdown
Member

Fixing the version in the codemod deprecated files imports, otherwise in v9 those deprecated props won't exist anymore.

@mui-bot
Copy link
Copy Markdown

mui-bot commented Mar 18, 2026

Netlify deploy preview

https://deploy-preview-48026--material-ui.netlify.app/

Bundle size report

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against ff266eb

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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) to packages/mui-codemod dependencies and lockfile.
  • Update deprecations codemod test-case fixtures (actual.js/expected.js) to use @mui/material-v7 imports.

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",
@silviuaavram silviuaavram marked this pull request as draft March 19, 2026 10:07
@zannager zannager added the internal Behind-the-scenes enhancement. Formerly called “core”. label Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Behind-the-scenes enhancement. Formerly called “core”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants