-
-
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
[core] Rename packages #28049
[core] Rename packages #28049
Conversation
🎉 Over 3600 changed files, you're going for the record :)
Do you intend to do a follow-up PR to rename the directories? |
Yes, I think it will make sense, I just don't want to do any changes that are not necessary with his PR :D |
Each rebase with the |
Good question. I don't know, to be honest I think it's enough to have one lab package to test out new things, rather than creating a new one for each design system (but it may be problematic with the dependencies). I don't have strong preference, but maybe I would lean towards agreeing with you and renaming it to @mui/lab-material (I've added the material as a suffix to follow @mui/icons-material) |
I can't believe I have a green build 😄 @mui-org/core please have a look. Also, we need to decide on the two open questions from the PR description. I would recommend reviewing per commit (probably it's the only way possible) |
@eps1lon I just approved #28060, looks like all comments were resolved. Should I merge it and rebase this one? How should we handle the bundle size? |
The names in |
Done with 390de56 @eps1lon looks like it fails now 😕 https://dev.azure.com/mui-org/Material-UI/_build/results?buildId=32546&view=logs&j=5ab4dc89-fdbd-5515-5007-71e9b3b221f6&t=865800ee-c958-58a0-9938-e205624d5850 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bundling
workflow failing is expected right now.
profile
workflow is fine (same failures on next
): https://app.circleci.com/pipelines/github/mui-org/material-ui/51561/workflows/ce073148-5f94-4651-9617-b73ff9b32131
benchmark
workflow is green: https://dev.azure.com/mui-org/Material-UI/_build/results?buildId=32586&view=logs&jobId=9ef21fd1-5d60-5fa4-f8b2-6dc79e173863
Will revert the changes to translated markdown files (since they'll be invalidated anyway).
As a follow-up, I'll update the bundle size tracking view to display the new package names properly and follow up with some clearer documentation in size:snapshot
.
```bash ~/D/p/m/fork (feat/rename-packages|✔) $ git co next -- '*-de.md' ~/D/p/m/fork (feat/rename-packages|●68) $ git co next -- '*-es.md' ~/D/p/m/fork (feat/rename-packages|●136) $ git co next -- '*-fr.md' ~/D/p/m/fork (feat/rename-packages|●202) $ git co next -- '*-ja.md' ~/D/p/m/fork (feat/rename-packages|●270) $ git co next -- '*-pt.md' ~/D/p/m/fork (feat/rename-packages|●339) $ git co next -- '*-ru.md' ~/D/p/m/fork (feat/rename-packages|●406) $ git co next -- '*-zh.md' ```
```bash ~/D/p/m/fork (feat/rename-packages|✔) $ git co next -- '*-de.json' ~/D/p/m/fork (feat/rename-packages|●1) $ git co next -- '*-es.json' ~/D/p/m/fork (feat/rename-packages|●2) $ git co next -- '*-fr.json' ~/D/p/m/fork (feat/rename-packages|●3) $ git co next -- '*-ja.json' ~/D/p/m/fork (feat/rename-packages|●4) $ git co next -- '*-pt.json' ~/D/p/m/fork (feat/rename-packages|●5) $ git co next -- '*-ru.json' ~/D/p/m/fork (feat/rename-packages|●6) $ git co next -- '*-zh.json' ~/D/p/m/fork (feat/rename-packages|●7) $ git co next -- '*-zh.json' ```
Please add npm/yarn/pnpm alias as a possible migration way. I use the following command to defer the renaming work in our codebase.
|
It did. iamhosseindhv/notistack#423 |
I have added the counterpart to these changes in the v4 migration guide with #27912. I believe it hasn't been done: https://next--material-ui.netlify.app/guides/migration-v4/. |
BREAKING CHANGE
The packages were renamed. Here is the mapping between the old and new names:
Step 2 of #27666
Things we need to resolve.
@material-ui/styles
->@mui/styles
package? ✅Should the @material-ui/lab be renamed to@mui/lab
or@mui/lab-material
?