Skip to content

Commit

Permalink
v5.8.0 (#4328)
Browse files Browse the repository at this point in the history
Co-authored-by: Flavien DELANGLE <flaviendelangle@gmail.com>
Co-authored-by: Matheus Wichman <matheushw@outlook.com>
Co-authored-by: Danail Hadjiatanasov <hadjiatanasov@gmail.com>
  • Loading branch information
4 people authored Apr 4, 2022
1 parent 1c707e9 commit 7f55c6e
Show file tree
Hide file tree
Showing 11 changed files with 89 additions and 14 deletions.
74 changes: 74 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,80 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 5.8.0
<!-- generated comparing v5.7.0..master -->
_Apr 4, 2022_

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

- 🚀 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

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](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

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 (
<DataGrid
rows={rows}
columns={[{
// typeof params.row => Movie (R)
valueGetter: params => params.row.year,
}]}
/>
);
```

### `@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] 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
- [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-picker components from the lab (#3451) @flaviendelangle

### 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

### 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
- [core] Fix Argos flakyness for pickers tests (#4312) @flaviendelangle

## 5.7.0

_Mar 24, 2022_
Expand Down
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "5.7.0",
"version": "5.8.0",
"private": true,
"author": "MUI Team",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.7.0",
"version": "5.8.0",
"npmClient": "yarn",
"useWorkspaces": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.7.0",
"version": "5.8.0",
"private": true,
"scripts": {
"start": "yarn docs:dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-material-ui/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/grid/x-data-grid-generator/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/grid/x-data-grid-pro/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/x-data-grid/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 4 additions & 4 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "storybook",
"version": "5.7.0",
"version": "5.8.0",
"description": "Storybook components",
"author": "MUI Team",
"private": true,
Expand All @@ -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",
Expand Down
1 change: 1 addition & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 7f55c6e

Please sign in to comment.