Skip to content

Update material-ui monorepo - autoclosed

Tine Wittler requested to merge renovate/material-ui-monorepo into master

This MR contains the following updates:

Package Type Update Change
@material-ui/core (source) dependencies minor ^4.11.3 -> 4.12.4
@material-ui/data-grid (source) dependencies patch ^4.0.0-alpha.23 -> 4.0.0-alpha.35
@material-ui/icons dependencies patch ^4.11.2 -> 4.11.3
@material-ui/lab dependencies patch ^4.0.0-alpha.57 -> 4.0.0-alpha.61

Release Notes

mui-org/material-ui

v4.12.4

Compare Source

Big thanks to the 6 contributors who made this release possible. Here are some highlights :

This release was motivated by fixing compatibility issues with TypeScript 4.7 (#​32041).

@material-ui/core@4.12.4

  • [core] Fix TS 4.7 compat issues (#​32041, #​32126) @​eps1lon
  • [TextField] Use deprecatedPropType on the deprecated props (#​27503) @​mnajdova

Docs

  • update all the links to the new domain @​oliviertassinari
  • Update canonicals to point to the new domain @​oliviertassinari
  • [Badge] Warn on default `overlap` value as well (#​27573) @​eps1lon
  • [docs] Fix seo issues on v4 (#​28999) @​mnajdova
  • [docs] Use branch deploy for v4 docs (#​28896) @​oliviertassinari
  • [docs] Improve the banner that points to v5 @​oliviertassinari
  • [docs] Fix various broken master links (#​28358) @​eps1lon
  • [docs] Remove job ad on the website (#​28343) @​eps1lon
  • [docs] Prepare for v4.material-ui.com deploy (#​28227) @​mnajdova
  • [docs] Cancelled subscription @​oliviertassinari
  • [docs] v5 is no longer a beta @​oliviertassinari
  • [docs] Sync redirections from X into Core @​oliviertassinari
  • [docs] Add GridExportCSVOptions page to documentation pages (#​27414) @​flaviendelangle
  • [docs] Add job ad (#​27784) @​oliviertassinari
  • [docs] Fix api generation for `deprecatedPropType` (#​27576) @​mnajdova
  • [v4] Batch fixes (#​28684) @​mnajdova
  • [website] Experiment without compensation @​oliviertassinari
  • [website] Add spicefactory as gold sponsor @​oliviertassinari

Core

  • [core] Consider v4.x as the base (#​28344) @​eps1lon

All contributors of this release in alphabetical order: @​eps1lon, @​flaviendelangle, @​mbrookes, @​mnajdova, @​oliviertassinari, @​spiftire

v4.12.3

Compare Source

@material-ui/core@4.12.3
  • [Accordion] Fix AccordionSummary false-positive propType warning with `disableGeneration` (#​27385) @​eps1lon
  • [ImageList] Fix deprecation warnings (#​27502) @​mnajdova
  • [Table] Re-introduce deprecated TablePagination `onChangePage` to `ActionsComponent` (#​27407) @​eps1lon
  • [TextareaAutosize] Updated deprecation warning to suggest minRows instead of rowsMin (#​27398) @​HumbertoL
Docs
  • [docs] Fix 404 link to ImageList @​oliviertassinari
  • [docs] Fix DataTable.tsx demo in v4 (#​27196) @​Siv-tspab
Core
  • [core] Add release scripts (#​27399) @​eps1lon

All contributors of this release in alphabetical order: @​eps1lon, @​mnajdova, @​HumbertoL, @​oliviertassinari, @​Siv-tspab

v4.12.2

Compare Source

@material-ui/core@4.12.2
  • [Accordion, Collapse] Fix failed proptype error (#​27307) @​serenalin121
  • [Accordion] Ensure AccordionSummary backwards compatible deprecation of classes.focused (#​27351) @​eps1lon
  • [TextField] Add support for `minRows` (#​27293) @​eps1lon
Docs
  • [blog] Danilo Leal joins Material-UI (#​27231) @​oliviertassinari
  • [blog] Jun did join in Q1 @​oliviertassinari
  • [blog] Fix typo @​oliviertassinari
  • [blog] Q2 2021 Update (#​27089) @​oliviertassinari
  • [docs] Add constant for the banner height (#​27309) @​mnajdova
  • [docs] Fix various layout issues with the v5 banner (#​27237) @​mnajdova
  • [docs] Fix https protocol (#​27262) @​m4theushw
  • [docs] Remove Ethical Ads (#​27173) @​mbrookes
  • [website] Open 4 new roles (#​27123) @​oliviertassinari

All contributors of this release in alphabetical order: @​eps1lon, @​m4theushw, @​mbrookes, @​mnajdova, @​oliviertassinari, @​serenalin121

v4.12.1

Compare Source

This release is released to fix the package.json generation in the previous release.

Core

v4.12.0

Compare Source

Big thanks to the 12 contributors who made this release possible. It includes deprecations that should help developers to have an easier adoption of v5.

@material-ui/core@4.12.0
@material-ui/system@4.12.0
Docs
Core

v4.11.4

Compare Source

Apr 27, 2021

Big thanks to the 6 contributors who made this release possible. Here are some highlights :

We fixed an issue related to some packages using incompatible versions of @material-ui/types. This affected @material-ui/core, @material-ui/lab, and @material-ui/styles @material-ui/types@5.1.7 accidentally included a breaking change.

@​material-ui/core@​4.11.4

  • [Avatar] Remove circular variant deprecation (#​25543) @​michal-perlakowski
  • [types] Ensure Omit type exists (#​25978) @​eps1lon

Docs

  • [DataGrid] Update docs sections (#​25980) @​dtassone
  • [docs] Sync master redirections with next @​oliviertassinari
  • [docs] Fix deploy @​oliviertassinari
  • [docs] Move DataGrid editing nav link (#​25769) @​dtassone
  • [docs] Design is what matters @​oliviertassinari
  • [docs] Add the new demo page (#​25285) @​DanailH
  • [docs] Add a temporary hiring block in the docs (#​25111) @​oliviertassinari
  • [docs] Remove under construction icons from DataGrid feature pages (#​24946) @​DanailH
  • [docs] Add HoodieBees to sponsors (#​24735) @​mbrookes
  • [docs] Add sorting section (#​24637) @​dtassone
  • [docs] v4 is not under active development @​oliviertassinari

Core

  • remove job ad @​oliviertassinari
  • clearer header @​oliviertassinari
  • [blog] Fix typos @​oliviertassinari
  • [core] Update the codesandbox issue templates (#​25501) @​oliviertassinari
  • [core] Support /r/issue-template back (#​24870) @​oliviertassinari
  • [website] Q1 2021 Update (#​25591) @​oliviertassinari
  • [website] Matheus Wichman joins Material-UI (#​25590) @​oliviertassinari
  • [website] Fix 404 page @​oliviertassinari
  • [website] Update Careers page (#​24948) @​oliviertassinari

All contributors of this release in alphabetical order: @​DanailH, @​dtassone, @​eps1lon, @​mbrookes, @​michal-perlakowski, @​oliviertassinari

mui-org/material-ui-x

v4.0.0-alpha.35

Compare Source

July 31, 2021

Big thanks to the 8 contributors who made this release possible. Here are some highlights :

@material-ui/data-grid@v4.0.0-alpha.35 / @material-ui/x-grid@v4.0.0-alpha.35
Breaking changes
  • [DataGrid] Improve controllable cell edit (#​2143) @​m4theushw

    • The onEditCellChange prop was renamed to onEditCellPropsChange.
    • The onEditCellChangeCommitted prop was renamed to onCellEditCommit.
    • The onEditRowModelChange prop was removed. Use the new onEditRowsModelChange prop.
      -onEditRowModelChange?: (params: GridEditRowModelParams)
      +onEditRowsModelChange?: (editRowsModel: GridEditRowsModel)
  • [XGrid] Improve controllable cell edit (#​2143) @​m4theushw

    • The cellEditPropsChange event was renamed to editCellPropsChange.
    • The cellEditPropsChangeCommitted event was renamed to cellEditCommit.
    • The cellValueChange event was removed. Listen to cellEditCommit to detect when the value is committed.
    • The editRowModelChange event was renamed to editRowsModelChange.
  • [DataGrid] Improve controllable pagination (#​2099) @​flaviendelangle

    • The pageSize is now a controlled prop. If you set a value, you also need to handle updates with onPageSizeChange. See the documentation.

    • Change the controllable API signature:

      // Signature
      -onPageChange?: (params: GridPageChangeParams) => void;
      +onPageChange?: (page: number) => void;
      
      // Usage
      -<DataGrid onPageChange={(params: GridPageChangeParams) => setPage(params.page)} />
      +<DataGrid onPageChange={(page: number) => setPage(page)} />
      // Signature
      -onPageSizeChange?: (params: GridPageChangeParams) => void;
      +onPageSizeChange?: (pageSize: number) => void;
      
      // Usage
      -<DataGrid onPageSizeChange={(params: GridPageChangeParams) => setPageSize(params.pageSize)} />
      +<DataGrid onPageSizeChange={(pageSize: number) => setPageSize(pageSize)} />
Changes
Docs
Core

v4.0.0-alpha.34

Compare Source

July 21, 2021

Big thanks to the 11 contributors who made this release possible. Here are some highlights :

@​material-ui/x-grid@​v4.0.0-alpha.34 / @​material-ui/data-grid@​v4.0.0-alpha.34
Breaking changes
  • [DataGrid] Fix scrollToIndexes behavior (#​2162) @​oliviertassinari

    Remove public apiRef.current.isColumnVisibleInWindow() as it servers private use cases.

    -apiRef.current.isColumnVisibleInWindow()
  • [DataGrid] Remove stateId argument from GridApi getState method (#​2141) @​flaviendelangle

    -const filterState = apiRef.current.getState('filter');
    +const filterState = apiRef.current.getState().filter;
  • [DataGrid] Improve controllable sorting (#​2095) @​dtassone

    Normalize the controlled prop signature:

     <DataGrid
    -  onSortModelChange={(params: GridSortModelParams) => setSortModel(params.model)}
    +  onSortModelChange={(model: GridSortModel) => setSortModel(model)}
     />
  • [DataGrid] Improve controllable filter (#​1909) @​dtassone

    Normalize the controlled prop signature:

     <DataGrid
    -  onFilterModelChange={(params: GridFilterModelParams) => setFilterModel(params.model)}
    +  onFilterModelChange={(model: GridFilterModel) => setFilterModel(model)}
     />
  • [DataGrid] Improve the editing API (#​1955) @​m4theushw

    • The props key in the first argument of commitCellChange was removed to promote the use of the value already stored in the state. To update the value in the state, call setEditCellProps before.

      -apiRef.current.commitCellChange({ id: 1, field: 'name', props: { value: 'Ana' } });
      +apiRef.current.setEditCellProps({ id: 1, field: 'name', props: { value: 'Ana' } });
      +apiRef.current.commitCellChange({ id: 1, field: 'name' });
    • Calling commitCellChange in a cell in view mode will throw an error. Make sure to first enter the edit mode.

      +apiRef.current.setCellMode(1, 'name', 'edit');
      apiRef.current.commitCellChange({ id: 1, field: 'name' });
    • The setCellValue was removed from the API. Use commitCellChange or updateRows in place.

      -apiRef.current.setCellValue({ id: 1, field: 'name', value: 'Ana' });
      +apiRef.current.updateRows([{ id: 1, name: 'Ana' }]);

      or

      -apiRef.current.setCellValue({ id: 1, field: 'name', value: 'Ana' });
      +apiRef.current.setCellMode(1, 'name', 'edit');
      +apiRef.current.setEditCellProps({ id: 1, field: 'name', props: { value: 'Ana' } });
      +apiRef.current.commitCellChange({ id: 1, field: 'name' });
    • The getEditCellProps was removed because getEditCellPropsParams offers the same functionality.

      -const props = apiRef.current.getEditCellProps(1, 'name');
      +const { props } = apiRef.current.getEditCellPropsParams(1, 'name');

      Note: This method will now throw an error if the cell is in view mode.

  • [DataGrid] Implement useControlState hook, and add control state on selectionModel (#​1823) @​dtassone

    Normalize the controlled prop signature:

     <DataGrid
    -  onSelectionModelChange={(params: GridSelectionModelChangeParams) => setSelectionModel(params.model)}
    +  onSelectionModelChange={(model: GridSelectionModel) => setSelectionModel(model)}
     />

    Replace onRowSelected with the existing API:

     <DataGrid
    -  onRowSelected={(params: GridRowSelectedParams) =>  }
    +  onSelectionModelChange={(model: GridSelectionModel) => }
     />
Changes
Docs
Core

v4.0.0-alpha.33

Compare Source

July 1, 2021

Big thanks to the 6 contributors who made this release possible. Here are some highlights :

  • 🐞 As a focus of Q2, we have kept fixing bugs

  • 💅 End users are now allowed to copy the selected rows to the clipboard with CTRL + c (#​1929) @​m4theushw

  • 🐛 We have fixed the Select all checkbox. When triggered, it should only select the filtered rows (#​1879) @​ZeeshanTamboli

  • ️ We have added a new singleSelect column type (#​1956) @​DanailH

    Using the column type: 'singleSelect' defaults to Select component when the cell is in edit mode. You can find the documentation following this link.

    <DataGrid
      columns={[
        {
          field: 'country',
          type: 'singleSelect',
          valueOptions: ['France', 'Netherlands', 'Brazil'],
          editable: true,
        }
      ]}
      rows={[
        { id: 0, country: 'France' },
        { id: 1, country: 'Netherlands' },
        { id: 2, country: 'Brazil' },
      ]}
    />
@​material-ui/x-grid@​v4.0.0-alpha.33 / @​material-ui/data-grid@​v4.0.0-alpha.33
Breaking changes
  • [DataGrid] Rename onColumnResizeCommitted to onColumnWidthChange (#​1967) @​m4theushw

    -<DataGrid onColumnResizeCommitted={...} />
    +<DataGrid onColumnWidthChange={...} />
  • [DataGrid] Make GRID_ROWS_CLEAR private (#​1925) @​oliviertassinari

    The rowsCleared event was always triggered alongside rowsSet. You can listen to the latter event only.

  • [DataGrid] Fix events naming (#​1862) @​m4theushw

    The following XGrid events were renamed:

    • columnHeaderNavigationKeydown to columnHeaderNavigationKeyDown
    • columnResizeCommitted to columnWidthChange
    • rowsUpdated to rowsUpdate
    • columnsUpdated to columnsChange

    The following XGrid DOM events were removed:

    • focusout
    • keydown
    • keyup
Changes
Docs
Core

v4.0.0-alpha.32

Compare Source

June 18, 2021

Big thanks to the 10 contributors who made this release possible. Here are some highlights :

@​material-ui/x-grid@​v4.0.0-alpha.32 / @​material-ui/data-grid@​v4.0.0-alpha.32
Breaking changes
  • [DataGrid] The onEditCellChangeCommitted prop won't be called with an event when committing changes by clicking outside the cell (#​1910) @​m4theushw

  • [DataGrid] Translation for Material-UI Core components are no longer included in the Material-UI X translation (#​1913) @​DanailH

     import { createMuiTheme, ThemeProvider } from '@&#8203;material-ui/core/styles';
     import { DataGrid, bgBG } from '@&#8203;material-ui/data-grid';
    +import { bgBG as coreBgBG } from '@&#8203;material-ui/core/locale';
    
     const theme = createMuiTheme(
       {
         // ...
       },
       bgBG,
    +  coreBgBG,
     );
  • [DataGrid] The disableClickEventBubbling prop was removed (#​1910) @​m4theushw

    The same outcome can be obtained by using the React synthetic event, calling event.stopPropagation():

    -<DataGrid disableClickEventBubbling />
    +<DataGrid onCellClick={(event) => event.stopPropagation()} />
  • [DataGrid] Rename CSS classes according to new convention (#​1872) @​DanailH

    The main grid components:

    • .data-container was removed
    • .MuiDataGrid-columnHeaderSortable was renamed to .MuiDataGrid-columnHeader--sortable
    • .MuiDataGrid-columnHeaderCenter was renamed to .MuiDataGrid-columnHeader--alignCenter
    • .MuiDataGrid-columnHeaderRight was renamed to .MuiDataGrid-columnHeader--alignRight
    • .MuiDataGrid-columnHeader-draggable was renamed to .MuiDataGrid-columnHeaderDraggableContainer
    • .MuiDataGrid-columnHeaderSortable was renamed to .MuiDataGrid-columnHeader--sortable
    • .MuiDataGrid-columnHeaderMoving was renamed to .MuiDataGrid-columnHeader--moving
    • .MuiDataGrid-columnHeaderSorted was renamed to .MuiDataGrid-columnHeader--sorted
    • .MuiDataGrid-columnHeaderNumeric was renamed to .MuiDataGrid-columnHeader--numeric
    • .MuiDataGrid-columnHeader-dropZone was renamed to .MuiDataGrid-columnHeaderDropZone
    • .MuiDataGrid-columnSeparatorResizable was renamed to .MuiDataGrid-columnSeparator--resizable
    • .MuiDataGrid-cellWithRenderer was renamed to .MuiDataGrid-cell--withRenderer
    • .MuiDataGrid-cellLeft was renamed to .MuiDataGrid-cell--textLeft
    • .MuiDataGrid-cellRight was renamed to .MuiDataGrid-cell--textRight
    • .MuiDataGrid-cellCenter was renamed to .MuiDataGrid-cell--textCenter
    • .MuiDataGrid-cellEditing was renamed to .MuiDataGrid-cell--editing
    • .MuiDataGrid-cellEditable was renamed to .MuiDataGrid-cell--editable
    • .MuiDataGrid-editCellBoolean was renamed to .MuiDataGrid-editBooleanCell
    • .MuiDataGrid-editCellInputBase was renamed to .MuiDataGrid-editInputCell
    • .MuiDataGrid-scrollArea-left was renamed to .MuiDataGrid-scrollArea--left
    • .MuiDataGrid-scrollArea-right was renamed to .MuiDataGrid-scrollArea--right

    The standalone components:

    • .MuiDataGridMenu-* was renamed to .MuiGridMenu-*
    • .MuiDataGridPanel-* was renamed to .MuiGridPanel-*
    • .MuiDataGridPanelContent-* was renamed to .MuiGridPanelContent-*
    • .MuiDataGridPanelFooter-* was renamed to .MuiGridPanelFooter-*
    • .MuiDataGridPanelWrapper-* was renamed to .MuiGridPanelWrapper-*
    • .MuiDataGridFilterForm-* was renamed to .MuiGridFilterForm-*
    • .MuiDataGridToolbarFilterButton-* was renamed to .MuiGridToolbarFilterButton-*
    • .MuiDataGrid-footer was renamed to .MuiDataGrid-footerContainer
    • .MuiDataGrid-toolbar was renamed to .MuiDataGrid-toolbarContainer
Changes
Docs
Core

v4.0.0-alpha.31

Compare Source

June 9, 2021

Big thanks to the 6 contributors who made this release possible. Here are some highlights :

@​material-ui/x-grid@​v4.0.0-alpha.31 / @​material-ui/data-grid@​v4.0.0-alpha.31
Breaking changes
  • [DataGrid] Improve headerClassName type (#​1778) @​DanailH

    cellClassName and headerClassName no longer accept array of strings.

    -cellClassName?: string | string[] | (params: GridCellParams) => string;
    +cellClassName?: string | (params: GridCellParams) => string;
    -headerClassName?: string | string[];
    +headerClassName?: string | (params: GridColumnHeaderParams) => string;
Changes
Docs
Core

v4.0.0-alpha.30

Compare Source

May 31, 2021

Big thanks to the 8 contributors who made this release possible. Here are some highlights :

@​material-ui/x-grid@​v4.0.0-alpha.30 / @​material-ui/data-grid@​v4.0.0-alpha.30
Breaking changes
  • [DataGrid] Rename toolbar components for consistency (#​1724) @​DanailH

    Prefix all the toolbar-related components with GridToolbar.

    -.MuiDataGridFilterToolbarButton-list
    +.MuiDataGridToolbarFilterButton-list
    -<GridColumnsToolbarButton />
    +<GridToolbarColumnsButton />
    -<GridFilterToolbarButton />
    +<GridToolbarFilterButton />
    -<GridDensitySelector />
    +<GridToolbarDensitySelector />
  • [DataGrid] Remove cellClassRules from GridColDef (#​1716) @​m4theushw

    The GridCellClassParams type is not exported anymore. Replace it with GridCellParams.

    -import { GridCellClassParams} from '@&#8203;material-ui/data-grid';
    +import { GridCellParams } from '@&#8203;material-ui/data-grid';
    
    -cellClassName: (params: GridCellClassParams) =>
    +cellClassName: (params: GridCellParams) =>

    The cellClassRules in GridColDef was removed because it's redundant. The same functionality can be obtained using cellClassName and the clsx utility:

    +import clsx from 'clsx';
    
     {
       field: 'age',
       width: 150,
    -  cellClassRules: {
    -    negative: params => params.value < 0,
    -    positive: params => params.value > 0,
    -  },
    +  cellClassName: params => clsx({
    +    negative: params.value < 0,
    +    positive: params.value > 0,
    +  }),
     }
  • [DataGrid] Fix onPageChange doesn't update the page when a pagination button is clicked (#​1719) @​ZeeshanTamboli

    Fix naming of pageChange and pageSizeChange events variables. The correct event variable name should be prefixed with GRID_ and converted to UPPER_CASE.

    -import { GRID_PAGESIZE_CHANGED, GRID_PAGE_CHANGED } from '@&#8203;material-ui/data-grid';
    +import { GRID_PAGESIZE_CHANGE, GRID_PAGE_CHANGE } from '@&#8203;material-ui/data-grid';
  • [XGrid] The getEditCellValueParams method was removed from the apiRef (#​1767) @​m4theushw

    The getEditCellValueParams method was almost a straightforward alias of getEditCellPropsParams.

    -const { value } = apiRef.current.getEditCellValueParams(id, field);
    +const { props: { value } } = apiRef.current.getEditCellPropsParams(id, field);
Changes
Docs
Core

v4.0.0-alpha.29

Compare Source

May 19, 2021

Big thanks to the 11 contributors who made this release possible. Here are some highlights :

  • 🚀 Performance increased when filtering, sorting, and rendering (#​1513) @​dtassone

  • 💅 Add columnHeader, row and cell to the classes prop (#​1660) @​DanailH

  • Add the isRowSelectable prop to disable selection on certain rows (#​1659) @​m4theushw

    See the documentation for more details.

  • ️ Add new icon slot to be displayed when the column is unsorted (#​1415) @​m4theushw

  • Improve consistency of the API to prepare for the first beta release

  • 🐞 Bugfixes

@​material-ui/x-grid@​v4.0.0-alpha.29 / @​material-ui/data-grid@​v4.0.0-alpha.29
Breaking changes
  • [DataGrid] Remove the properties element, rowIndex, and colIndex from all params arguments (#​1513) @​dtassone

    You can use the following apiRef methods to replace some of them:

    -params.rowIndex
    -params.colIndex
    +apiRef.current.getRowIndex(params.id)
    +apiRef.current.getColumnIndex(params.field)
  • [DataGrid] Calling params.getValue now requires the id to be passed (#​1513) @​dtassone

    -params.getValue(field)
    +params.getValue(params.id, field)
  • [DataGrid] Rename CSS classes (#​1660) @​DanailH

    1. MuiDataGrid-colCellWrapper to MuiDataGrid-columnHeaderWrapper
    2. MuiDataGrid-colCell to MuiDataGrid-columnHeader
    3. MuiDataGrid-colCellCheckbox to MuiDataGrid-columnHeaderCheckbox
    4. MuiDataGrid-colCellSortable to MuiDataGrid-columnHeaderSortable
    5. MuiDataGrid-colCellCenter to MuiDataGrid-columnHeaderCenter
    6. MuiDataGrid-colCellLeft to MuiDataGrid-columnHeaderLeft
    7. MuiDataGrid-colCellRight to MuiDataGrid-columnHeaderRight
  • [XGrid] Calling setCellFocus now requires the id and field to be passed (#​1513) @​dtassone

    -apiRef.current.setCellFocus: (indexes: GridCellIndexCoordinates) => void;
    +apiRef.current.setCellFocus: (id: GridRowId, field: string) => void;
  • [XGrid] Rename apiRef methods (#​1513) @​dtassone

    Changes on apiRef.current:

    -apiRef.current.getRowIndexFromId: (id: GridRowId) => number;
    +apiRef.current.getRowIndex: (id: GridRowId) => number;
  • [XGrid] Rename apiRef methods (#​1667) @​m4theushw

    Changes on apiRef.current:

    -apiRef.current.getColumnFromField: (field: string) => GridColDef;
    -apiRef.current.getRowFromId: (id: GridRowId) => GridRowModel;
    +apiRef.current.getColumn: (field: string) => GridColDef;
    +apiRef.current.getRow: (id: GridRowId) => GridRowModel;
Changes
Docs
Core

v4.0.0-alpha.28

Compare Source

May 10, 2021

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

@​material-ui/x-grid@​v4.0.0-alpha.28 / @​material-ui/data-grid@​v4.0.0-alpha.28
Breaking changes
  • [XGrid] Rename apiRef toggleColumn method for consistency (#​1578) @​DanailH

    -apiRef.current.toggleColumn: (field: string, forceHide?: boolean) => void;
    +apiRef.current.setColumnVisibility: (field: string, isVisible: boolean) => void;
  • [XGrid] Fix event typo (#​1574) @​DanailH

    -import { GRID_COLUMN_RESIZE_COMMITED } from '@&#8203;material-ui/x-grid';
    +import { GRID_COLUMN_RESIZE_COMMITTED } from '@&#8203;material-ui/x-grid';
Changes
Docs
Core

v4.0.0-alpha.27

Compare Source

Apr 30, 2021

Big thanks to the 9 contributors who made this release possible. Here are some highlights :

@​material-ui/x-grid@​v4.0.0-alpha.27 / @​material-ui/data-grid@​v4.0.0-alpha.27
Breaking changes
  • [core] Drop support for Node v10 (#​1499) @​ZeeshanTamboli

  • [XGrid] Remove onAction APIs (#​1453) @​DanailH

    These event handlers on the apiRef were duplicating with the react props and the event subscribe API. Changes on apiRef.current:

    -onFilterModelChange
    -onPageChange
    -onPageSizeChange
    -onResize
    -onUnmount
    -onRowSelected
    -onSelectionModelChange
    -onSortModelChange
    -onStateChange

    Note: These methods are available as React props.

  • [XGrid] Refactor useGridColumnResize (#​1380) @​DanailH

    Changes on apiRef.current:

    -startResizeOnMouseDown
    +setColumnWidth
Changes
Docs
Core

v4.0.0-alpha.26

Compare Source

Apr 22, 2021

Big thanks to the 7 contributors who made this release possible. Here are some highlights :

  • 💄 Release the cell editing feature (#​1287) @​dtassone

    This is the first release of the Cell editing feature. You can find the documentation following this link. We have spent the last three months working on it.

    cell edit

  • 🐞 A focus on bug fixes and documentation improvements

@​material-ui/x-grid@​v4.0.0-alpha.26 / @​material-ui/data-grid@​v4.0.0-alpha.26
Docs
Core
  • [core] Setup e2e tests (#​1443) @​DanailH

    This infrastructure relies on Playwright to control Chrome with the end-to-end API. It differentiates from our current end-to-end tests by running outside of the browser (Karma runs inside). It's slower and doesn't have a great DX, but it allows to test things like the Tab behavior.

v4.0.0-alpha.25

Compare Source

Apr 14, 2021

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

@​material-ui/x-grid@​v4.0.0-alpha.25 / @​material-ui/data-grid@​v4.0.0-alpha.25
Breaking changes
  • [DataGrid] Add support for custom row ids without cloning (#​1377) @​m4theushw This change has involved the following refactorings.

    • Changes on apiRef.current.
-  getRowModels: () => GridRowModel[];
+  getRowModels: () => Map<GridRowId, GridRowModel>;
-  getVisibleRowModels: () => GridRowModel[];
+  getVisibleRowModels: () => Map<GridRowId, GridRowModel>;
-  getSelectedRows: () => GridRowModel[];
+  getSelectedRows: () => Map<GridRowId, GridRowModel>;
  • Changes on GridFilterModelParams.
export interface GridFilterModelParams {
  /**
   * The full set of rows.
   */
-  rows: GridRowModel[];
+  rows: Map<GridRowId, GridRowModel>;
  /**
   * The set of currently visible rows.
   */
-  visibleRows: GridRowModel[];
+  visibleRows: Map<GridRowId, GridRowModel>;
}
Changes
Docs
Core

v4.0.0-alpha.24

Compare Source

Apr 2, 2021

Big thanks to the 8 contributors who made this release possible. Here are some highlights :

@​material-ui/x-grid@​v4.0.0-alpha.24 / @​material-ui/data-grid@​v4.0.0-alpha.24
Breaking Changes
  • [DataGrid] All slot components no longer get access to GridBaseComponentProps through the props. To use the GridBaseComponentProps call the useGridSlotComponentProps hook. (#​1252) @​DanailH
  • [DataGrid] Type GridSlotsComponent changed (#​1252) @​DanailH
  • [DataGrid] Rename GridBaseComponentProps type to GridSlotComponentProps (#​1252) @​DanailH
  • [DataGrid] Rename useGridBaseComponentProps hook to useGridSlotComponentProps (#​1252) @​DanailH
  • [DataGrid] Rename modules (#​1292) @​DanailH
  • [DataGrid] Rename all events related to column reordering, e.g. GRID_COL_REORDER_START -> GRID_COLUMN_REORDER_START (#​1299) @​m4theushw
  • [DataGrid] Methods onColItemDragStart, onColHeaderDragOver, onColItemDragOver, onColItemDragEnter removed from the grid API. Prefer listening to column reordering events (#​1299) @​m4theushw
  • [DataGrid] Calling apiRef.current.getColumnHeaderParams returns a GridColumnHeaderParams instead of GridColParams (#​1299) @​m4theushw
  • [DataGrid] Events that follow the pattern GRID_COLUMN_HEADER_xxx will be called with a GridColumnHeaderParams instead of GridColParams (#​1299) @​m4theushw
  • [DataGrid] The renderHeader will be called with a GridColumnHeaderParams instead of GridColParams (#​1299) @​m4theushw
  • [DataGrid] The apiRef.current.moveColumn was renamed to apiRef.current.setColumnIndex (#​1299) @​m4theushw
Changes
Core

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This MR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this MR, click this checkbox.

This MR has been generated by Renovate Bot.

Edited by Tine Wittler

Merge request reports