Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v5.8.0 #4328

Merged
merged 10 commits into from
Apr 4, 2022
Merged

v5.8.0 #4328

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
}]}
/>
alexfauquette marked this conversation as resolved.
Show resolved Hide resolved
);
```

### `@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
flaviendelangle marked this conversation as resolved.
Show resolved Hide resolved
- [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`.
Copy link
Member

@oliviertassinari oliviertassinari Jul 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that in Material UI we had to set the version to independent as we had too many npm packages in the alpha release state. https://github.com/mui/material-ui/blob/88ad7d4e623183b8e20702e7961ef9c8de330dc7/lerna.json#L4.

If the date picker becomes stable soon enough and we don't have new unstable npm packages, maybe we can stick to the current configuration of MUI X. Hopefully, in Material UI, follow the same direction as well.

mui-x/lerna.json

Lines 1 to 4 in 4ba02b8

{
"npmClient": "yarn",
"useWorkspaces": true,
"version": "5.13.0"

- [ ] Open PR with changes and wait for review and green CI.
- [ ] Merge PR once CI is green, and it has been approved.

Expand Down