diff --git a/CHANGELOG.md b/CHANGELOG.md index 29b38ae0c5e66..11778ecfb9c4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,84 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## v5.9.0 + +_Apr 14, 2022_ + +We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨: + +- ⚡ Update peer dependencies to support React 18 (#4332) @m4theushw + + Now the data grid and pickers components support the concurrent mode. + +- 🎁 Add support for [Column spanning](https://mui.com/x/react-data-grid/columns/#column-spanning) (#4020) @cherniavskii + + + +- 📚 New standalone documentation for MUI X (#4313) @siriwatknp + + Each MUI product now has its own documentation. + More information on our [blog post](https://mui.com/blog/docs-restructure-2022/). + +- 🌍 Add Hungarian (hu-HU) locale (#4458) @x22tri + +- 🐞 Bug fixes + +### `@mui/x-data-grid@v5.9.0` / `@mui/x-data-grid-pro@v5.9.0` + +- [DataGrid] Add indexes relative to the filtered rows and the current page to the `getRowClassName` and `getRowSpacing` props (#3882) @flaviendelangle +- [DataGrid] Add React 18 to peer dependencies (#4332) @m4theushw +- [DataGrid] Add support for column spanning (#4020) @cherniavskii +- [DataGrid] Apply filtering before sorting (#4359) @flaviendelangle +- [DataGrid] Enable using non-native Select in filter panel (#4361) @kyeongsoosoo +- [DataGrid] Fix `api` prop leaking to DOM (#4384) @m4theushw +- [DataGrid] Fix column dimensions import/export with flex and resizing (#4311) @flaviendelangle +- [DataGrid] Fix focus after stopping row edit mode with pagination enabled (#4326) @m4theushw +- [DataGrid] Fix inconsistent overlay when changing the `loading` prop (#4334) @m4theushw +- [DataGrid] Fix scrollbar grabbing issue in Safari (#4405) @cherniavskii +- [DataGrid] `GridCellParams.formattedValue` should be nullable (#4376) @flaviendelangle +- [DataGrid] Improve accessibility of the `actions` column (#4325) @m4theushw +- [DataGrid] Pass updated row to edit components (#4392) @m4theushw +- [DataGrid] Prevent column header scroll (#4280) @m4theushw +- [DataGridPro] Fix toggling detail panel using keyboard (#4409) @cherniavskii +- [l10n] Add Hungarian (hu-HU) locale (#4458) @x22tri + +### `@mui/x-date-pickers@5.0.0-alpha.1` / `@mui/x-date-pickers-pro@5.0.0-alpha.1` + +- [ClockPicker] Should call `shouldDisableTime` with the hours with meridiem (#4404) @flaviendelangle +- [MonthPicker] Clicking on a `PickersMonth` button should not trigger the form submit (#4402) @flaviendelangle +- [TimePicker] Do not update date when updating input in `TimePicker` (#4398) @flaviendelangle +- [pickers] Add react-dom to pickers peer deps to satisfy react-transition-group (#4411) @CarsonF +- [pickers] Add `TDate` generic to `CalendarOrClockPicker` component (#4465) @flaviendelangle +- [pickers] Fix default props behavior on all pickers (#4451) @flaviendelangle +- [pickers] Export `MuiPickersAdapterContext` (#4367) @flaviendelangle + +### Docs + +- [docs] Avoid redirections (#4365) @oliviertassinari +- [docs] Fix docs about date adapter (#4386) @alexfauquette +- [docs] Fix small external links issue (#4436) @oliviertassinari +- [docs] Fix some links to date picker docs (#4362) @oliviertassinari +- [docs] Fix wrong URL (#4415) @siriwatknp +- [docs] Go live with the new URLs (#4313) @siriwatknp +- [docs] Update the product names to be in sync @oliviertassinari + +### Core + +- [core] Add technical doc for pipe processing and family processing (#4322) @flaviendelangle +- [core] Don't upgrade CircleCI node (#4457) @m4theushw +- [core] Fix flaky e2e-website tests in CI (#4136) @cherniavskii +- [core] Fix license file copying during build (#4462) @flaviendelangle +- [core] Fix links on v5.8.0 (#4464) @oliviertassinari +- [core] Fix npm page description mistake (#4364) @oliviertassinari +- [core] Fix typos and JSDoc (#4406) @flaviendelangle +- [core] Move away for the event system to trigger pipe processings (#4378) @flaviendelangle +- [core] Small fixes TS on pickers (#4461) @flaviendelangle +- [core] Unify tests (#4368) @flaviendelangle +- [core] Enforce `noImplicitAny` in `docs` folder (#4412) @cherniavskii + ## 5.8.0 - + _Apr 4, 2022_ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨: @@ -24,17 +100,19 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss You can now strongly type all the objects related to the row and the cell values. Here is an example, you can find out more in the description of #4064. - + ```tsx const rows: Movie[] = []; return ( - Movie (R) - valueGetter: params => params.row.year, - }]} + columns={[ + { + // typeof params.row => Movie (R) + valueGetter: (params) => params.row.year, + }, + ]} /> ); ``` @@ -226,7 +304,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos -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; diff --git a/benchmark/package.json b/benchmark/package.json index 08bc4fc160560..5dd28e8288e0b 100644 --- a/benchmark/package.json +++ b/benchmark/package.json @@ -1,6 +1,6 @@ { "name": "benchmark", - "version": "5.8.0", + "version": "5.9.0", "private": true, "scripts": { "browser": "webpack --config browser/webpack.config.js && node browser/scripts/benchmark.js" diff --git a/docs/package.json b/docs/package.json index 678f8cb040fff..b21cad713ba8c 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,6 +1,6 @@ { "name": "docs", - "version": "5.8.0", + "version": "5.9.0", "private": true, "author": "MUI Team", "license": "MIT", diff --git a/lerna.json b/lerna.json index 7c4f81013d924..b26ccf18c26bf 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "5.8.0", + "version": "5.9.0", "npmClient": "yarn", "useWorkspaces": true } diff --git a/package.json b/package.json index 37c5313053681..6fb10a92740d1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "5.8.0", + "version": "5.9.0", "private": true, "scripts": { "start": "yarn docs:dev", diff --git a/packages/eslint-plugin-material-ui/package.json b/packages/eslint-plugin-material-ui/package.json index 51a8f7752d2ad..1b581c6c3a8e8 100644 --- a/packages/eslint-plugin-material-ui/package.json +++ b/packages/eslint-plugin-material-ui/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-material-ui", - "version": "5.8.0", + "version": "5.9.0", "private": true, "description": "Custom eslint rules for MUI X.", "main": "src/index.js", diff --git a/packages/grid/x-data-grid-generator/package.json b/packages/grid/x-data-grid-generator/package.json index eccbe83516c7b..a6a19b523a09a 100644 --- a/packages/grid/x-data-grid-generator/package.json +++ b/packages/grid/x-data-grid-generator/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-data-grid-generator", - "version": "5.8.0", + "version": "5.9.0", "description": "Generate fake data for demo purposes only.", "author": "MUI Team", "main": "src/index.ts", @@ -31,7 +31,7 @@ }, "dependencies": { "@mui/base": "^5.0.0-alpha.75", - "@mui/x-data-grid-pro": "5.8.0", + "@mui/x-data-grid-pro": "5.9.0", "chance": "^1.1.8", "clsx": "^1.1.1", "lru-cache": "^7.8.1" diff --git a/packages/grid/x-data-grid-pro/package.json b/packages/grid/x-data-grid-pro/package.json index 731af17d40c2e..f3c10724164b9 100644 --- a/packages/grid/x-data-grid-pro/package.json +++ b/packages/grid/x-data-grid-pro/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-data-grid-pro", - "version": "5.8.0", + "version": "5.9.0", "description": "The commercial edition of the data grid component (MUI X).", "author": "MUI Team", "main": "src/index.ts", @@ -43,8 +43,8 @@ }, "dependencies": { "@mui/utils": "^5.6.0", - "@mui/x-data-grid": "5.8.0", - "@mui/x-license-pro": "5.7.0", + "@mui/x-data-grid": "5.9.0", + "@mui/x-license-pro": "5.9.0", "@types/format-util": "^1.0.2", "clsx": "^1.0.4", "prop-types": "^15.8.1", diff --git a/packages/grid/x-data-grid/package.json b/packages/grid/x-data-grid/package.json index 06379dee3270c..ffb1c67d8e8a0 100644 --- a/packages/grid/x-data-grid/package.json +++ b/packages/grid/x-data-grid/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-data-grid", - "version": "5.8.0", + "version": "5.9.0", "description": "The community edition of the data grid component (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/storybook/package.json b/packages/storybook/package.json index 2510b647eb7e3..8b779d9eada12 100644 --- a/packages/storybook/package.json +++ b/packages/storybook/package.json @@ -1,6 +1,6 @@ { "name": "storybook", - "version": "5.8.0", + "version": "5.9.0", "description": "Storybook components", "author": "MUI Team", "private": true, @@ -18,10 +18,10 @@ "dependencies": { "@mui/icons-material": "^5.6.0", "@mui/material": "^5.6.0", - "@mui/x-data-grid": "5.8.0", - "@mui/x-data-grid-generator": "5.8.0", - "@mui/x-data-grid-pro": "5.8.0", - "@mui/x-license-pro": "5.7.0", + "@mui/x-data-grid": "5.9.0", + "@mui/x-data-grid-generator": "5.9.0", + "@mui/x-data-grid-pro": "5.9.0", + "@mui/x-license-pro": "5.9.0", "@storybook/builder-webpack5": "^6.4.21", "@storybook/manager-webpack5": "^6.4.21", "react": "^17.0.2", diff --git a/packages/x-date-pickers-pro/package.json b/packages/x-date-pickers-pro/package.json index 70221d3f0ccba..a23f5aefaaec0 100644 --- a/packages/x-date-pickers-pro/package.json +++ b/packages/x-date-pickers-pro/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-date-pickers-pro", - "version": "5.0.0-alpha.0", + "version": "5.0.0-alpha.1", "description": "The commercial edition of the date picker components (MUI X).", "author": "MUI Team", "main": "./src/index.js", @@ -46,8 +46,8 @@ "@date-io/luxon": "^2.11.1", "@date-io/moment": "^2.11.0", "@mui/utils": "^5.6.0", - "@mui/x-date-pickers": "5.0.0-alpha.0", - "@mui/x-license-pro": "^5.7.0", + "@mui/x-date-pickers": "5.0.0-alpha.1", + "@mui/x-license-pro": "5.9.0", "clsx": "^1.1.1", "prop-types": "^15.7.2", "react-transition-group": "^4.4.2", diff --git a/packages/x-date-pickers/package.json b/packages/x-date-pickers/package.json index 4c2d8e2179da0..5892e376e8944 100644 --- a/packages/x-date-pickers/package.json +++ b/packages/x-date-pickers/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-date-pickers", - "version": "5.0.0-alpha.0", + "version": "5.0.0-alpha.1", "description": "The community edition of the date picker components (MUI X).", "author": "MUI Team", "main": "./src/index.js", diff --git a/packages/x-license-pro/package.json b/packages/x-license-pro/package.json index c3d1d3c50cae0..fde1dbeea39ec 100644 --- a/packages/x-license-pro/package.json +++ b/packages/x-license-pro/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-license-pro", - "version": "5.7.0", + "version": "5.9.0", "description": "MUI X License verification", "author": "MUI Team", "main": "src/index.ts",