Skip to content

v5.6.0

Compare
Choose a tag to compare
@alexfauquette alexfauquette released this 04 Mar 17:07
· 5669 commits to master since this release
d7cb410

We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:

  • 📦 Use the same bundling scripts as those in the material-ui repository (#3965) @flaviendelangle

    The code structure and the bundling strategy have been modified to provide better isolation between components.
    The bundle size is slightly reduced, but with tree shaking, the doors are open for significant gains in the future. 🏋
    We predict that such modifications could potentially impact edge cases.
    If you encounter problems with your build, please open an issue.
    These issues will have high priority as part of our risk mitigation strategy.

  • 🧼 Clean and document the column selectors (#4010) @flaviendelangle

    Column selectors have been renamed to improve clarity.
    The old names have been deprecated and will be removed in v6.
    Here are the new names and the modifications needed to get the same information with the new selectors.

    Old name New name
    allGridColumnsFieldsSelector gridColumnFieldsSelector
    allGridColumnsSelector gridColumnDefinitionsSelector
    visibleGridColumnsSelector gridVisibleColumnDefinitionsSelector
    filterableGridColumnsSelector gridFilterableColumnDefinitionsSelector
    -const { all, lookup, columnVisibilityModel } = gridColumnsSelector(apiRef)
    +const all = gridColumnFieldsSelector(apiRef)
    +const lookup = gridColumnLookupSelector(apiRef)
    +const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef)
    
    -const filterableFields = filterableGridColumnsIdsSelector(apiRef);
    +const lookup = gridFilterableColumnLookupSelector(apiRef);
    +const filterableFields = gridColumnFieldsSelector(apiRef).filter(field => lookup[field]);
    
    -const visibleColumnsNumber = visibleGridColumnsLengthSelector(apiRef);
    +const visibleColumnsNumber = gridVisibleColumnDefinitionsSelector(apiRef).length;
    
    -const { totalWidth, positions } = gridColumnsMetaSelector(apiRef);
    +const totalWidth = gridColumnsTotalWidthSelector(apiRef);
    +const positions = gridColumnPositionsSelector(apiRef);
  • 📚 Documentation improvements

  • 🐞 Bug and typo fixes

@mui/x-data-grid@v5.6.0 / @mui/x-data-grid-pro@v5.6.0

Changes

Docs

Core