ukrbublik / react-awesome-query-builder

User-friendly query builder for React
https://ukrbublik.github.io/react-awesome-query-builder
MIT License
2.01k stars 500 forks source link

Support MUI v6.0 #1113

Open TheWeirdDev opened 2 months ago

TheWeirdDev commented 2 months ago

Is your feature request related to a problem? Please describe. The stable version of MUI v6.0 has been released recently. It does not have significant differences compared to v5, so upgrading is easy and straight forward.

Describe the solution you'd like It would be nice if 'react-awesome-query-builder' supported both v5 and v6 by using something like: ^5.15.0 || ^6.0.0

Describe alternatives you've considered Staying on v5 until more libraries support it.

Additional context None

rrust commented 1 month ago

MUI 6 can be used since https://github.com/ukrbublik/react-awesome-query-builder/pull/951 But @react-awesome-query-builder/mui@6.6.3 still depends on @mui/icons-material@"^5.2.4"

TheWeirdDev commented 1 month ago

MUI 6 can be used since #951 But @react-awesome-query-builder/mui@6.6.3 still depends on @mui/icons-material@"^5.2.4"

Yeah, I get these peer dependency warnings:

├─┬ @react-awesome-query-builder/mui 6.6.3
│ ├── ✕ unmet peer @mui/material@^5.2.4: found 6.1.1
│ └── ✕ unmet peer @mui/icons-material@^5.2.4: found 6.0.1
rrust commented 1 month ago

One way to work around this for now could be an "overrides" in your package.json:

"overrides": {
    "@mui/icons-material": "6.1.1",
    "@mui/material": "6.1.1"
  }