yarn @mui/x-date-pickers 5.0.0-beta.6
v5.0.0-beta.6

latest releases: 7.22.2, 7.22.1, 7.22.0...
2 years ago

Oct 29, 2021

A big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:

@mui/x-data-grid@v5.0.0-beta.6 / @mui/x-data-grid-pro@v5.0.0-beta.6

Breaking changes

  • [DataGridPro] The following methods from apiRef were renamed. Use the provided alternatives. (#2870) @flaviendelangle

    1. apiRef.current.applyFilters was renamed to apiRef.current.unsafe_applyFilters
    2. apiRef.current.applyFilterLinkOperator was renamed to apiRef.current.setFilterLinkOperator
    3. apiRef.current.upsertFilter was renamed to apiRef.current.upsertFilterItem
    4. apiRef.current.deleteFilter was renamed to apiRef.current.deleteFilterItem
  • [DataGridPro] The apiRef.current.applyFilter method was removed. (#2870) @flaviendelangle
    You should never have to call it directly since the filters are already applied when the filterModel prop changes.
    To manually apply the filters, use apiRef.current.unsafe_applyFilters.

    -apiRef.current.applyFilter
    +apiRef.current.unsafe_applyFilters
  • [DataGridPro] Rename filtering, sorting, and rows selectors to match the naming convention (#2942) @flaviendelangle

    1. unorderedGridRowIdsSelector was renamed to gridRowIdsSelector
    2. sortingGridStateSelector was renamed to gridSortingStateSelector
    3. sortedGridRowIdsSelector was renamed to gridSortedRowIdsSelector
    4. visibleSortedGridRowIdsSelector was renamed to gridVisibleSortedRowIdsSelector
    5. visibleGridRowCountSelector was renamed to gridVisibleRowCountSelector
    6. filterGridColumnLookupSelector was renamed to gridFilterActiveItemsSelector
  • [DataGridPro] The sortedGridRowsSelector was renamed to gridSortedRowEntriesSelector (#2942) @flaviendelangle

    The return value was also changed as below:

    -sortedGridRowsSelector: (state: GridState) => Map<GridRowId, GridRowModel>
    -const map = sortedGridRowsSelector(state);
    +gridSortedRowEntriesSelector: (state: GridState) => GridRowEntry[]
    +const map = new Map(gridSortedRowEntriesSelector(state).map(row => [row.id, row.model]));
  • [DataGridPro] The visibleSortedGridRowsSelector was replaced with gridVisibleSortedRowEntriesSelector (#2942) @flaviendelangle

    The return value was also changed as below:

    -visibleSortedGridRowsSelector: (state: GridState) => Map<GridRowId, GridRowModel>;
    -const map = visibleSortedGridRowsSelector(state);
    +gridVisibleSortedRowEntriesSelector: (state: GridState) => GridRowEntry[]
    +const map = new Map(gridVisibleSortedRowEntriesSelector(state).map(row => [row.id, row.model]));
  • [DataGridPro] The visibleSortedGridRowsAsArraySelector was replaced with gridVisibleSortedRowEntriesSelector (#2942) @flaviendelangle

    The return value was also changed as below:

    -visibleSortedGridRowsAsArraySelector: (state: GridState) => [GridRowId, GridRowData][];
    +gridVisibleSortedRowEntriesSelector: (state: GridState) => GridRowEntry[]
  • [DataGridPro] The filterGridItemsCounterSelector selector was removed. (#2942) @flaviendelangle
    Use gridFilterActiveItemsSelector as replacement.

    -const filterCount = filterGridItemsCounterSelector(state);
    +const filterCount = gridFilterActiveItemsSelector(state).length;
  • [DataGridPro] The unorderedGridRowModelsSelector selector was removed. (#2942) @flaviendelangle
    Use apiRef.current.getRowModels or gridRowIdsSelector and gridRowsLookupSelector.

Changes

Docs

Core

Don't miss a new x-date-pickers release

NewReleases is sending notifications on new releases.