Skip to content

Commit

Permalink
v7.0.0-beta.1 (#11903)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas <[email protected]>
Co-authored-by: Andrew Cherniavskii <[email protected]>
  • Loading branch information
LukasTy and cherniavskii authored Feb 1, 2024
1 parent 0c7c674 commit ff52290
Show file tree
Hide file tree
Showing 9 changed files with 262 additions and 15 deletions.
247 changes: 247 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,169 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 7.0.0-beta.1

_Feb 1, 2024_

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

- 🏃 Improve the filtering performance of the Data Grid by changing the `GridColDef` methods signatures (#11573) @cherniavskii
- 🎁 The Line Chart component now has animation by default (#11620) @alexfauquette
- 🚀 All charts have click handlers (#11411) @alexfauquette
Test their respective documentation demonstrations to know more about the data format:

- [Scatter Chart](https://next.mui.com/x/react-charts/scatter/#click-event)
- [Line Chart](https://next.mui.com/x/react-charts/lines/#click-event)
- [Bar Chart](https://next.mui.com/x/react-charts/bars/#click-event)
- [Pie Chart](https://next.mui.com/x/react-charts/pie/#click-event)

Big thanks to @giladappsforce and @yaredtsy for their contribution on exploring this feature.

### Data Grid

### Breaking changes

- The signature of `GridColDef['valueGetter']` has been changed for performance reasons:

```diff
- valueGetter: ({ value, row }) => value,
+ valueGetter: (value, row, column, apiRef) => value,
```

The `GridValueGetterParams` interface has been removed:

```diff
- const customValueGetter = (params: GridValueGetterParams) => params.row.budget;
+ const customValueGetter: GridValueGetterFn = (value, row) => row.budget;
```

- The signature of `GridColDef['valueFormatter']` has been changed for performance reasons:

```diff
- valueFormatter: ({ value }) => value,
+ valueFormatter: (value, row, column, apiRef) => value,
```

The `GridValueFormatterParams` interface has been removed:

```diff
- const gridDateFormatter = ({ value, field, id }: GridValueFormatterParams<Date>) => value.toLocaleDateString();
+ const gridDateFormatter: GridValueFormatter = (value: Date) => value.toLocaleDateString();
```

- The signature of `GridColDef['valueSetter']` has been changed for performance reasons:

```diff
- valueSetter: (params) => {
- const [firstName, lastName] = params.value!.toString().split(' ');
- return { ...params.row, firstName, lastName };
- }
+ valueSetter: (value, row) => {
+ const [firstName, lastName] = value!.toString().split(' ');
+ return { ...row, firstName, lastName };
+}
```

The `GridValueSetterParams` interface has been removed:

```diff
- const setFullName = (params: GridValueSetterParams) => {
- const [firstName, lastName] = params.value!.toString().split(' ');
- return { ...params.row, firstName, lastName };
- };
+ const setFullName: GridValueSetter<Row> = (value, row) => {
+ const [firstName, lastName] = value!.toString().split(' ');
+ return { ...row, firstName, lastName };
+ }
```

- The signature of `GridColDef['valueParser']` has been changed for performance reasons:

```diff
- valueParser: (value, params: GridCellParams) => value.toLowerCase(),
+ valueParser: (value, row, column, apiRef) => value.toLowerCase(),
```

- The signature of `GridColDef['colSpan']` has been changed for performance reasons:

```diff
- colSpan: ({ row, field, value }: GridCellParams) => (row.id === 'total' ? 2 : 1),
+ colSpan: (value, row, column, apiRef) => (row.id === 'total' ? 2 : 1),
```

- The signature of `GridColDef['pastedValueParser']` has been changed for performance reasons:

```diff
- pastedValueParser: (value, params) => new Date(value),
+ pastedValueParser: (value, row, column, apiRef) => new Date(value),
```

- The signature of `GridColDef['groupingValueGetter']` has been changed for performance reasons:

```diff
- groupingValueGetter: (params) => params.value.name,
+ groupingValueGetter: (value: { name: string }) => value.name,
```

#### `@mui/[email protected]`

- [DataGrid] Add `toggleAllMode` prop to the `columnsManagement` slot (#10794) @H999
- [DataGrid] Change `GridColDef` methods signatures (#11573) @cherniavskii
- [DataGrid] Fix row reorder with cell selection (#11783) @PEsteves8
- [DataGrid] Make columns management' casing consistent (#11858) @MBilalShafi
- [l10n] Improve Hebrew (he-IL) locale (#11788) @danielmishan85

#### `@mui/[email protected]` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')

Same changes as in `@mui/[email protected]`.

#### `@mui/[email protected]` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')

Same changes as in `@mui/[email protected]`.

### Date Pickers

#### `@mui/[email protected]`

- [TimePicker] Add missing toolbar classes descriptions (#11856) @LukasTy

#### `@mui/[email protected]` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')

Same changes as in `@mui/[email protected]`.

### Charts

#### Breaking changes

- The line chart now have animation by default.
You can disable it with `skipAnimation` prop.
See [animation documentation](next.mui.com/x/react-charts/lines/#animation) for more information.

- Pie charts `onClick` get renamed `onItemClick` for consistency with other charts click callback.

`@mui/[email protected]`

- [charts] Add `onClick` support (#11411) @alexfauquette
- [charts] Add line animation (#11620) @alexfauquette
- [charts] Document how to modify color according to values (#11824) @alexfauquette
- [charts] Fix Tooltip crash with out of range lines (#11898) @alexfauquette

### Docs

- [docs] Add a general uplift to the changelog page (#11396) @danilo-leal
- [docs] Do not reference the Tree View overview page in the API pages (#11826) @flaviendelangle
- [docs] Fix charts API links (#11832) @alexfauquette
- [docs] Improve Support page (#11556) @oliviertassinari
- [docs] Improve column visibility documentation (#11857) @MBilalShafi
- [docs] Polish header @oliviertassinari
- [docs] Sync support page with core @oliviertassinari
- [docs] Update whats new page with "v7 Beta blogpost" content (#11879) @joserodolfofreitas

### Core

- [core] Rely on immutable ref when possible (#11847) @oliviertassinari
- [core] Bump monorepo (#11897) @alexfauquette

## 7.0.0-beta.0

_Jan 26, 2024_
Expand Down Expand Up @@ -1873,6 +2036,90 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
- [license] Correctly throw errors (#10924) @oliviertassinari

## 6.19.3

_Feb 1, 2024_

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

- 🌍 Improve Hebrew (he-IL) locale (#11831) @danielmishan85
- 🐞 Bugfixes
- 📚 Documentation improvements

### Data Grid

#### `@mui/[email protected]`

- [l10n] Improve Hebrew (he-IL) locale (@danielmishan85) (#11831)

#### `@mui/[email protected]` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')

Same changes as in `@mui/[email protected]`.

#### `@mui/[email protected]` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')

Same changes as in `@mui/[email protected]`.

### Date Pickers

#### `@mui/[email protected]`

- [TimePicker] Add missing toolbar classes descriptions (#11862) @LukasTy

#### `@mui/[email protected]` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')

Same changes as in `@mui/[email protected]`.

### Charts / `@mui/[email protected]`

- [charts] Document how to modify color according to values (#11854) @alexfauquette

### Docs

- [docs] Add a general uplift to the whats new page (#11883) @danilo-leal
- [docs] Fix 404 (#11852) @alexfauquette
- [docs] Fix <title> generation (#11825) @alexfauquette
- [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
- [docs] Improve Support page (#11556) @oliviertassinari
- [docs] Sync support page with core @oliviertassinari
- [docs] These API don't exist in MUI X v6 @oliviertassinari
- [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas

## 6.19.2

_Jan 25, 2024_

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

- 🚀 Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
- 🐞 Bugfixes

### Date Pickers

#### `@mui/[email protected]`

- [pickers] Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)

#### `@mui/[email protected]` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')

Same changes as in `@mui/[email protected]`, plus:

- [DateRangePicker] Remove `calendars` prop on `Mobile` (@LukasTy) (#11771)

### Data Grid

#### `@mui/[email protected]`

- [DataGrid] Fix support for tree with more than 50,000 children (@zenazn) (#11808)

#### `@mui/[email protected]` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')

Same changes as in `@mui/[email protected]`.

#### `@mui/[email protected]` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')

Same changes as in `@mui/[email protected]`.

## 6.19.1

_Jan 19, 2024_
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "7.0.0-beta.0",
"version": "7.0.0-beta.1",
"private": true,
"scripts": {
"start": "yarn && yarn docs:dev",
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": "7.0.0-beta.0",
"version": "7.0.0-beta.1",
"description": "Generate fake data for demo purposes only.",
"author": "MUI Team",
"main": "src/index.ts",
Expand Down Expand Up @@ -35,7 +35,7 @@
"dependencies": {
"@babel/runtime": "^7.23.9",
"@mui/base": "^5.0.0-beta.34",
"@mui/x-data-grid-premium": "7.0.0-beta.0",
"@mui/x-data-grid-premium": "7.0.0-beta.1",
"chance": "^1.1.11",
"clsx": "^2.1.0",
"lru-cache": "^7.18.3"
Expand Down
6 changes: 3 additions & 3 deletions packages/grid/x-data-grid-premium/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/x-data-grid-premium",
"version": "7.0.0-beta.0",
"version": "7.0.0-beta.1",
"description": "The Premium plan edition of the data grid component (MUI X).",
"author": "MUI Team",
"main": "src/index.ts",
Expand Down Expand Up @@ -46,8 +46,8 @@
"@babel/runtime": "^7.23.9",
"@mui/system": "^5.15.7",
"@mui/utils": "^5.15.7",
"@mui/x-data-grid": "7.0.0-beta.0",
"@mui/x-data-grid-pro": "7.0.0-beta.0",
"@mui/x-data-grid": "7.0.0-beta.1",
"@mui/x-data-grid-pro": "7.0.0-beta.1",
"@mui/x-license-pro": "7.0.0-beta.0",
"@types/format-util": "^1.0.4",
"clsx": "^2.1.0",
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": "7.0.0-beta.0",
"version": "7.0.0-beta.1",
"description": "The Pro plan edition of the data grid component (MUI X).",
"author": "MUI Team",
"main": "src/index.ts",
Expand Down Expand Up @@ -46,7 +46,7 @@
"@babel/runtime": "^7.23.9",
"@mui/system": "^5.15.7",
"@mui/utils": "^5.15.7",
"@mui/x-data-grid": "7.0.0-beta.0",
"@mui/x-data-grid": "7.0.0-beta.1",
"@mui/x-license-pro": "7.0.0-beta.0",
"@types/format-util": "^1.0.4",
"clsx": "^2.1.0",
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": "7.0.0-beta.0",
"version": "7.0.0-beta.1",
"description": "The community edition of the data grid component (MUI X).",
"author": "MUI Team",
"main": "src/index.ts",
Expand Down
6 changes: 3 additions & 3 deletions packages/x-charts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/x-charts",
"version": "7.0.0-beta.0",
"version": "7.0.0-beta.1",
"description": "The community edition of the charts components (MUI X).",
"author": "MUI Team",
"main": "./src/index.js",
Expand Down Expand Up @@ -48,9 +48,9 @@
"clsx": "^2.1.0",
"d3-color": "^3.1.0",
"d3-delaunay": "^6.0.4",
"d3-interpolate": "^3.0.1",
"d3-scale": "^4.0.2",
"d3-shape": "^3.2.0",
"d3-interpolate": "^3.0.1",
"prop-types": "^15.8.1"
},
"peerDependencies": {
Expand All @@ -71,8 +71,8 @@
"devDependencies": {
"@types/d3-color": "^3.1.3",
"@types/d3-delaunay": "^6.0.4",
"@types/d3-scale": "^4.0.8",
"@types/d3-interpolate": "^3.0.4",
"@types/d3-scale": "^4.0.8",
"@types/d3-shape": "^3.1.6"
},
"exports": {
Expand Down
4 changes: 2 additions & 2 deletions packages/x-date-pickers-pro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/x-date-pickers-pro",
"version": "7.0.0-beta.0",
"version": "7.0.0-beta.1",
"description": "The commercial edition of the date picker components (MUI X).",
"author": "MUI Team",
"main": "src/index.ts",
Expand Down Expand Up @@ -46,7 +46,7 @@
"@mui/base": "^5.0.0-beta.34",
"@mui/system": "^5.15.7",
"@mui/utils": "^5.15.7",
"@mui/x-date-pickers": "7.0.0-beta.0",
"@mui/x-date-pickers": "7.0.0-beta.1",
"@mui/x-license-pro": "7.0.0-beta.0",
"clsx": "^2.1.0",
"prop-types": "^15.8.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/x-date-pickers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/x-date-pickers",
"version": "7.0.0-beta.0",
"version": "7.0.0-beta.1",
"description": "The community edition of the date picker components (MUI X).",
"author": "MUI Team",
"main": "src/index.ts",
Expand Down

0 comments on commit ff52290

Please sign in to comment.