Skip to content
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

[lab] Remove @mui/base dependency #45602

Merged
merged 17 commits into from
Mar 20, 2025

Conversation

mnajdova
Copy link
Member

@mnajdova mnajdova commented Mar 17, 2025

This PR removes the legacy @mui/base dependency in @mui/lab. This was missed when we were removing the @mui/base from the other @mui/* packages. The changes done replicate what was done in the @mui/material package.

We can now safely remove the packages/mui-base code and leave it only in the v6.x branches (we stopped releasing @mui/base from the main branch some time ago).

@mnajdova mnajdova changed the title Lab/remove base dependency [lab] Remove @mui/base depepdency Mar 17, 2025
@mnajdova mnajdova added the package: lab Specific to @mui/lab label Mar 17, 2025
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Mar 18, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Mar 20, 2025
@mui-bot
Copy link

mui-bot commented Mar 20, 2025

Netlify deploy preview

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

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 3e0b860

@mnajdova mnajdova marked this pull request as ready for review March 20, 2025 08:30
@@ -1,5 +1,5 @@
'use client';
import { unstable_composeClasses as composeClasses } from '@mui/base';
import composeClasses from '@mui/utils/composeClasses';
Copy link
Member Author

Choose a reason for hiding this comment

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

Using the same import as in @mui/material.

@@ -1 +1 @@
export { useAutocomplete as default } from '@mui/base';
export { default } from '@mui/material/useAutocomplete';
Copy link
Member Author

@mnajdova mnajdova Mar 20, 2025

Choose a reason for hiding this comment

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

The hook was already copied in @mui/material when we were removing the @mui/base dependency from there. Here, we are just changing the location of where we re-export.

@aarongarciah aarongarciah changed the title [lab] Remove @mui/base depepdency [lab] Remove @mui/base dependency Mar 20, 2025
Copy link
Member

@aarongarciah aarongarciah left a comment

Choose a reason for hiding this comment

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

🧹

@aarongarciah
Copy link
Member

@mnajdova can you add a short PR description?

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

Looks good.

@mnajdova
Copy link
Member Author

@mnajdova can you add a short PR description?

Yep, done 👌

@mnajdova mnajdova merged commit c2d938d into mui:master Mar 20, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: lab Specific to @mui/lab
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants