From 08b3a05611099fa32098b7f5338eb50f33eeb074 Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette Date: Fri, 1 Apr 2022 10:57:11 +0200 Subject: [PATCH 01/10] release v5.8.0 --- CHANGELOG.md | 57 +++++++++++++++++++ benchmark/package.json | 2 +- docs/package.json | 2 +- lerna.json | 2 +- package.json | 4 +- .../eslint-plugin-material-ui/package.json | 2 +- .../grid/x-data-grid-generator/package.json | 4 +- packages/grid/x-data-grid-pro/package.json | 4 +- packages/grid/x-data-grid/package.json | 2 +- packages/storybook/package.json | 8 +-- 10 files changed, 72 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15a7f244383da..5c394cdaf8be7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,63 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 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 ✨: + +- 🚀 Add the documentation to save and restore the grid state (#4028) @flaviendelangle + + The different methods to save and restore the data-grid state are now [documented](mui.com/components/data-grid/state/#save-and-restore-the-state) + +- ⌚️ Import date-piker components from the lab (#3451) @flaviendelangle + + date-picker components has been added to the MUI-X repo. + They are now accessible in their own packages: `@mui/x-date-pickers` and `@mui/x-date-pickers-pro`. + For more information, you can read the [blog article](mui.com/blog/lab-pickers-to-mui-x). + +- 🐞 Bug and typo fixes + +### `@mui/x-data-grid@v5.8.0` / `@mui/x-data-grid-pro@v5.8.0` + +#### Changes + +- [DataGrid] Add `onProcessRowUpdateError` prop (#4267) @m4theushw +- [DataGrid] Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle +- [DataGrid] Add missing classes on `gridClasses` and `gridPanelClasses` (#4273) @flaviendelangle +- [DataGrid] Add `onPreferencePanelClose`/`onPreferencePanelOpen` props (#4265) @kyeongsoosoo +- [DataGrid] Add slot for filter icon button (#4276) @m4theushw +- [DataGrid] Add the documentation of the portable state (#4028) @flaviendelangle +- [DataGrid] Allows to use keyboard navigation even with no rows (#4302) @alexfauquette +- [DataGrid] Fix last column border inconsistency (#4224) @alexfauquette +- [DataGrid] Fix overlay blocking scrollbar when rows is empty (#4281) @m4theushw +- [DataGrid] Improve selection with keyboard (#4157) @flaviendelangle +- [DataGrid] Scroll to the top of the page when changing page (#4272) @flaviendelangle +- [l10n] Improve Danish (da-DK) locale (#4271) @simplenotezy + +### Docs + +- [docs] Update installation docs (#4259) @cherniavskii + +### Core + +- [core] Fix typo in issue template @oliviertassinari +- [core] Move last variables outside of the models folder (#4303) @flaviendelangle +- [core] Remove dead code (#4283) @oliviertassinari +- [core] Rename the "pre-processing" concept "pipe-processing" (#4261) @flaviendelangle +- [core] Reuse previous state when updating the columns prop (#4229) @m4theushw + +### `@mui/x-date-pickers@v5.0.0-alpha.0` / `@mui/x-date-pickers-pro@v5.0.0-alpha.0` + +### Changes + +- [DatePicker] Import date-piker components from the lab (#3451) @flaviendelangle + +### Core + +- [core] Fix Argos flakyness for pickers tests (#4312) @flaviendelangle + ## 5.7.0 _Mar 24, 2022_ diff --git a/benchmark/package.json b/benchmark/package.json index 11fa1b443f101..ab98c20070c93 100644 --- a/benchmark/package.json +++ b/benchmark/package.json @@ -1,6 +1,6 @@ { "name": "benchmark", - "version": "5.7.0", + "version": "5.8.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 a93c2e96ab3b1..2c2d142e9fa22 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,6 +1,6 @@ { "name": "docs", - "version": "5.7.0", + "version": "5.8.0", "private": true, "author": "MUI Team", "license": "MIT", diff --git a/lerna.json b/lerna.json index 18fa07147a1f8..7c4f81013d924 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "5.7.0", + "version": "5.8.0", "npmClient": "yarn", "useWorkspaces": true } diff --git a/package.json b/package.json index 9505063d82089..e4de65ec8f80e 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "5.7.0", + "version": "5.8.0", "private": true, "scripts": { "start": "yarn docs:dev", @@ -178,4 +178,4 @@ "dependencies": { "html-webpack-plugin": "^5.5.0" } -} +} \ No newline at end of file diff --git a/packages/eslint-plugin-material-ui/package.json b/packages/eslint-plugin-material-ui/package.json index be339472c6fb0..924eebd6487f8 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.7.0", + "version": "5.8.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 83a3f54572cb6..b212d95a77790 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.7.0", + "version": "5.8.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.73", - "@mui/x-data-grid-pro": "5.7.0", + "@mui/x-data-grid-pro": "5.8.0", "chance": "^1.1.8", "clsx": "^1.1.1", "lru-cache": "^7.7.1" diff --git a/packages/grid/x-data-grid-pro/package.json b/packages/grid/x-data-grid-pro/package.json index a714272624980..19d25dd14a746 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.7.0", + "version": "5.8.0", "description": "The commercial edition of the data grid component (MUI X).", "author": "MUI Team", "main": "src/index.ts", @@ -43,7 +43,7 @@ }, "dependencies": { "@mui/utils": "^5.4.4", - "@mui/x-data-grid": "5.7.0", + "@mui/x-data-grid": "5.8.0", "@mui/x-license-pro": "5.7.0", "@types/format-util": "^1.0.2", "clsx": "^1.0.4", diff --git a/packages/grid/x-data-grid/package.json b/packages/grid/x-data-grid/package.json index 29f6280624a4e..72595e8a561ed 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.7.0", + "version": "5.8.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 7de59c04c426a..954aa4920c8ed 100644 --- a/packages/storybook/package.json +++ b/packages/storybook/package.json @@ -1,6 +1,6 @@ { "name": "storybook", - "version": "5.7.0", + "version": "5.8.0", "description": "Storybook components", "author": "MUI Team", "private": true, @@ -18,9 +18,9 @@ "dependencies": { "@mui/icons-material": "^5.5.1", "@mui/material": "^5.5.2", - "@mui/x-data-grid": "5.7.0", - "@mui/x-data-grid-generator": "5.7.0", - "@mui/x-data-grid-pro": "5.7.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", "@storybook/builder-webpack5": "^6.4.19", "@storybook/manager-webpack5": "^6.4.19", From f2054dc104f5f5419a6019d40b2b343374b68712 Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette Date: Fri, 1 Apr 2022 11:03:21 +0200 Subject: [PATCH 02/10] update script readme --- package.json | 2 +- scripts/README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e4de65ec8f80e..d0dd780df7b6b 100644 --- a/package.json +++ b/package.json @@ -178,4 +178,4 @@ "dependencies": { "html-webpack-plugin": "^5.5.0" } -} \ No newline at end of file +} diff --git a/scripts/README.md b/scripts/README.md index c0a1c68f5d5f4..7a9ab5e65f044 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -27,6 +27,7 @@ The following steps must be proposed as a pull request. - [ ] Clean the generated changelog, to match the format of [https://github.com/mui/mui-x/releases](https://github.com/mui/mui-x/releases). - [ ] Update the root `package.json`'s version - [ ] Update the versions of the other `package.json` files and of the dependencies with `yarn release:version`. +- [ ] Fix manually the package version in `x-date-picker/package.json` and `x-date-picker-pro/package.json`. - [ ] Open PR with changes and wait for review and green CI. - [ ] Merge PR once CI is green, and it has been approved. From 89293a1c36575f3d709ea5bc2c5ac98a794d3aeb Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette Date: Fri, 1 Apr 2022 11:22:48 +0200 Subject: [PATCH 03/10] fix structure --- CHANGELOG.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c394cdaf8be7..9b26515a8c7d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,12 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss - [DataGrid] Scroll to the top of the page when changing page (#4272) @flaviendelangle - [l10n] Improve Danish (da-DK) locale (#4271) @simplenotezy +### `@mui/x-date-pickers@v5.0.0-alpha.0` / `@mui/x-date-pickers-pro@v5.0.0-alpha.0` + +#### Changes + +- [DatePicker] Import date-piker components from the lab (#3451) @flaviendelangle + ### Docs - [docs] Update installation docs (#4259) @cherniavskii @@ -49,15 +55,6 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss - [core] Remove dead code (#4283) @oliviertassinari - [core] Rename the "pre-processing" concept "pipe-processing" (#4261) @flaviendelangle - [core] Reuse previous state when updating the columns prop (#4229) @m4theushw - -### `@mui/x-date-pickers@v5.0.0-alpha.0` / `@mui/x-date-pickers-pro@v5.0.0-alpha.0` - -### Changes - -- [DatePicker] Import date-piker components from the lab (#3451) @flaviendelangle - -### Core - - [core] Fix Argos flakyness for pickers tests (#4312) @flaviendelangle ## 5.7.0 From b776f70978b030cf1538b449882c627f063a1b83 Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette Date: Fri, 1 Apr 2022 12:09:18 +0200 Subject: [PATCH 04/10] flavien's feedbacks --- CHANGELOG.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b26515a8c7d6..992fb25dc8678 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,17 +9,18 @@ _Apr 4, 2022_ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨: -- 🚀 Add the documentation to save and restore the grid state (#4028) @flaviendelangle +- 🚀 Publicly expose new methods to save and restore the grid state (#4028) @flaviendelangle The different methods to save and restore the data-grid state are now [documented](mui.com/components/data-grid/state/#save-and-restore-the-state) -- ⌚️ Import date-piker components from the lab (#3451) @flaviendelangle +- ⌚️ Move date and time picker components from the lab (#3451) @flaviendelangle date-picker components has been added to the MUI-X repo. They are now accessible in their own packages: `@mui/x-date-pickers` and `@mui/x-date-pickers-pro`. - For more information, you can read the [blog article](mui.com/blog/lab-pickers-to-mui-x). + For more information, you can read the [blog article](mui.com/blog/lab-pickers-to-mui-x) and the [migration guide](mui.com/x/react-date-pickers/migration-lab) -- 🐞 Bug and typo fixes +- 📝 Add `onProcessRowUpdateError` prop to simplify error management in edit mode (#4267) @m4theushw +- ✨ Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle ### `@mui/x-data-grid@v5.8.0` / `@mui/x-data-grid-pro@v5.8.0` From adb722df6803b73d62ca82c0a626ccc1ee64750b Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette Date: Fri, 1 Apr 2022 13:41:39 +0200 Subject: [PATCH 05/10] add the example --- CHANGELOG.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 992fb25dc8678..c8a53c1430869 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,22 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss - 📝 Add `onProcessRowUpdateError` prop to simplify error management in edit mode (#4267) @m4theushw - ✨ Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle + This allows to strongly type all the objects related to the row and the cell values. + Here is an example, you can can find out more in the description of #4064. + + ```tsx + const rows: Movie[] = [] + + return ( + Movie (R) + valueGetter: params => params.row.year, + }]} + /> + ``` + ### `@mui/x-data-grid@v5.8.0` / `@mui/x-data-grid-pro@v5.8.0` #### Changes From 7f5a9021e3247f894deb7cec3b3b10367554b0c7 Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com> Date: Fri, 1 Apr 2022 15:08:12 +0200 Subject: [PATCH 06/10] Apply suggestions from code review Co-authored-by: Flavien DELANGLE --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c8a53c1430869..63b363f09f7d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,14 +15,14 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss - ⌚️ Move date and time picker components from the lab (#3451) @flaviendelangle - date-picker components has been added to the MUI-X repo. + Date and time picker components has been added to the MUI-X repo. They are now accessible in their own packages: `@mui/x-date-pickers` and `@mui/x-date-pickers-pro`. For more information, you can read the [blog article](mui.com/blog/lab-pickers-to-mui-x) and the [migration guide](mui.com/x/react-date-pickers/migration-lab) - 📝 Add `onProcessRowUpdateError` prop to simplify error management in edit mode (#4267) @m4theushw - ✨ Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle - This allows to strongly type all the objects related to the row and the cell values. + You can now strongly type all the objects related to the row and the cell values. Here is an example, you can can find out more in the description of #4064. ```tsx From 56cf71d29ea968f69a768c621348c67df60a6c63 Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com> Date: Fri, 1 Apr 2022 20:08:36 +0200 Subject: [PATCH 07/10] Apply suggestions from code review Co-authored-by: Matheus Wichman Co-authored-by: Danail Hadjiatanasov --- CHANGELOG.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63b363f09f7d3..52e55fe560120 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,24 +9,24 @@ _Apr 4, 2022_ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨: -- 🚀 Publicly expose new methods to save and restore the grid state (#4028) @flaviendelangle +- 🚀 Expose new methods to save and restore the grid state (#4028) @flaviendelangle The different methods to save and restore the data-grid state are now [documented](mui.com/components/data-grid/state/#save-and-restore-the-state) -- ⌚️ Move date and time picker components from the lab (#3451) @flaviendelangle +- ⌚️ Move date and time picker components from the lab (#3451) @flaviendelangle - Date and time picker components has been added to the MUI-X repo. + Date and time picker components have been moved to the MUI-X repo. They are now accessible in their own packages: `@mui/x-date-pickers` and `@mui/x-date-pickers-pro`. - For more information, you can read the [blog article](mui.com/blog/lab-pickers-to-mui-x) and the [migration guide](mui.com/x/react-date-pickers/migration-lab) + For more information, you can read the [blog article](https://mui.com/blog/lab-pickers-to-mui-x) and the [migration guide](https://mui.com/x/react-date-pickers/migration-lab) - 📝 Add `onProcessRowUpdateError` prop to simplify error management in edit mode (#4267) @m4theushw -- ✨ Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle +- ✨ Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle You can now strongly type all the objects related to the row and the cell values. Here is an example, you can can find out more in the description of #4064. ```tsx - const rows: Movie[] = [] + const rows: Movie[] = []; return ( params.row.year, }]} /> + ); ``` ### `@mui/x-data-grid@v5.8.0` / `@mui/x-data-grid-pro@v5.8.0` @@ -48,8 +49,8 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss - [DataGrid] Add `onPreferencePanelClose`/`onPreferencePanelOpen` props (#4265) @kyeongsoosoo - [DataGrid] Add slot for filter icon button (#4276) @m4theushw - [DataGrid] Add the documentation of the portable state (#4028) @flaviendelangle -- [DataGrid] Allows to use keyboard navigation even with no rows (#4302) @alexfauquette -- [DataGrid] Fix last column border inconsistency (#4224) @alexfauquette +- [DataGrid] Allow to use keyboard navigation even with no rows (#4302) @alexfauquette +- [DataGrid] Fix inconsistency in the border of the last column (#4224) @alexfauquette - [DataGrid] Fix overlay blocking scrollbar when rows is empty (#4281) @m4theushw - [DataGrid] Improve selection with keyboard (#4157) @flaviendelangle - [DataGrid] Scroll to the top of the page when changing page (#4272) @flaviendelangle @@ -59,7 +60,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss #### Changes -- [DatePicker] Import date-piker components from the lab (#3451) @flaviendelangle +- [DatePicker] Import date-picker components from the lab (#3451) @flaviendelangle ### Docs From f7d48f0861eace0a36b25b4605520bd6972454c6 Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette Date: Mon, 4 Apr 2022 13:45:53 +0200 Subject: [PATCH 08/10] fix typo --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52e55fe560120..52bf74cf4a079 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,7 +23,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss - ✨ Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle You can now strongly type all the objects related to the row and the cell values. - Here is an example, you can can find out more in the description of #4064. + Here is an example, you can find out more in the description of #4064. ```tsx const rows: Movie[] = []; From 9d0bda0e2933c968d5ba11ac0d3ed7d63bcbe878 Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette Date: Mon, 4 Apr 2022 13:56:26 +0200 Subject: [PATCH 09/10] add doc modification to the release note --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52bf74cf4a079..dd3d8958ca738 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -65,6 +65,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss ### Docs - [docs] Update installation docs (#4259) @cherniavskii +- [docs] New page for the migration of date and time pickers from the lab (#4327) @flaviendelangle ### Core From c0a6f4a6a2ac162e6a9409caa5578fb260b2ff4d Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette Date: Mon, 4 Apr 2022 16:07:30 +0200 Subject: [PATCH 10/10] add last PR --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd3d8958ca738..6d1d58f9a6cfb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,6 +64,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss ### Docs +- [docs] Create an home page for "Advanced Components" (#4298) @flaviendelangle - [docs] Update installation docs (#4259) @cherniavskii - [docs] New page for the migration of date and time pickers from the lab (#4327) @flaviendelangle