From 9ef001affe8051bb435afb6ce50d390241c50457 Mon Sep 17 00:00:00 2001 From: Michel Engelen <32863416+michelengelen@users.noreply.github.com> Date: Fri, 10 Nov 2023 11:52:27 +0100 Subject: [PATCH] [release] v7.0.0-alpha.0 (#10966) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bilal Shafi Signed-off-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com> Signed-off-by: Danail Hadjiatanasov Co-authored-by: Bilal Shafi Co-authored-by: Rom Grk Co-authored-by: Maxime THOMAS Co-authored-by: alexandre Co-authored-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com> Co-authored-by: Lukas Co-authored-by: Olivier Tassinari Co-authored-by: Andrew Cherniavskii Co-authored-by: Andrew Cherniavskii Co-authored-by: Danail Hadjiatanasov Co-authored-by: José Rodolfo Freitas --- CHANGELOG.md | 207 ++++++++++++++++++ package.json | 2 +- .../grid/x-data-grid-generator/package.json | 4 +- .../grid/x-data-grid-premium/package.json | 8 +- packages/grid/x-data-grid-pro/package.json | 6 +- packages/grid/x-data-grid/package.json | 2 +- packages/x-charts/package.json | 2 +- packages/x-codemod/package.json | 2 +- packages/x-date-pickers-pro/package.json | 6 +- packages/x-date-pickers/package.json | 2 +- packages/x-license-pro/package.json | 2 +- 11 files changed, 225 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 287579f178bd..96792f246363 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,213 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 7.0.0-alpha.0 + +_Nov 10, 2023_ + +We're thrilled to announce the first alpha release of our next major version, v7. +This release introduces a few breaking changes, paving the way for the upcoming features like Pivoting and DateTimeRangePicker. + +A special shoutout to thank the 12 contributors who made this release possible. Here are some highlights ✨: + +- 🚀 First v7 alpha release +- ✨ Fix aggregation label not showing when `renderHeader` is used (#10961) @cherniavskii +- 📘 Server side data source [early documentation](https://mui.com/x/react-data-grid/server-side-data/) +- 💫 New recipes added for the data grid +- 📈 `` component is now available +- 🌍 Add Basque (eu) locale, improve Czech (cs-CZ) and Spanish (es-ES) locales +- 🐞 Bugfixes +- 📚 Documentation improvements + +### Data Grid + +#### Breaking changes + +- The deprecated `components` and `componentsProps` props have been removed. Use `slots` and `slotProps` instead. See [components section](/x/react-data-grid/components/) for more details. +- The print export will now only print the selected rows if there are any. + If there are no selected rows, it will print all rows. This makes the print export consistent with the other exports. + You can [customize the rows to export by using the `getRowsToExport` function](/x/react-data-grid/export/#customizing-the-rows-to-export). +- The `getApplyFilterFnV7` in `GridFilterOperator` was renamed to `getApplyFilterFn`. + If you use `getApplyFilterFnV7` directly - rename it to `getApplyFilterFn`. +- The signature of the function returned by `getApplyFilterFn` has changed for performance reasons: + +```diff + const getApplyFilterFn: GetApplyFilterFn = (filterItem) => { + if (!filterItem.value) { + return null; + } + const filterRegex = new RegExp(escapeRegExp(filterItem.value), 'i'); +- return (cellParams) => { +- const { value } = cellParams; ++ return (value, row, colDef, apiRef) => { + return value != null ? filterRegex.test(String(value)) : false; + }; + } +``` + +- The `getApplyQuickFilterFnV7` in `GridColDef` was renamed to `getApplyQuickFilterFn`. + If you use `getApplyQuickFilterFnV7` directly - rename it to `getApplyQuickFilterFn`. +- The signature of the function returned by `getApplyQuickFilterFn` has changed for performance reasons: + +```diff + const getGridStringQuickFilterFn: GetApplyQuickFilterFn = (value) => { + if (!value) { + return null; + } + const filterRegex = new RegExp(escapeRegExp(value), 'i'); +- return (cellParams) => { +- const { formattedValue } = cellParams; ++ return (value, row, column, apiRef) => { ++ let formattedValue = apiRef.current.getRowFormattedValue(row, column); + return formattedValue != null ? filterRegex.test(formattedValue.toString()) : false; + }; + }; +``` + +#### `@mui/x-data-grid@7.0.0-alpha.0` + +- [DataGrid] Fix for error thrown when removing skeleton rows, after sorting is applied (#10807) @benjaminbialy +- [DataGrid] Fix: `undefined` slot value (#10937) @romgrk +- [DataGrid] Print selected rows by default (#10846) @cherniavskii +- [DataGrid] Remove deprecated `components` and `componentsProps` (#10911) @MBilalShafi +- [DataGrid] Remove legacy filtering API (#10897) @cherniavskii +- [DataGrid] Fix keyboard navigation for actions cell with disabled buttons (#10882) @michelengelen +- [DataGrid] Added a recipe for using non-native select in filter panel (#10916) @michelengelen +- [DataGrid] Added a recipe to style cells without impacting the aggregation cells (#10913) @michelengelen +- [l10n] Improve Czech (cs-CZ) locale (#10949) @luborepka + +#### `@mui/x-data-grid-pro@7.0.0-alpha.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan') + +Same changes as in `@mui/x-data-grid@7.0.0-alpha.0`, plus: + +- [DataGridPro] Autosize Columns - Fix headers being cut off (#10666) @gitstart +- [DataGridPro] Add data source interface and basic documentation (#10543) @MBilalShafi + +#### `@mui/x-data-grid-premium@7.0.0-alpha.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan') + +Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.0`, plus: + +- [DataGridPremium] Render aggregation label when `renderHeader` is used (#10936) @cherniavskii + +### Date Pickers + +#### Breaking changes + +- The deprecated `components` and `componentsProps` props have been removed. Use `slots` and `slotProps` instead. + +#### `@mui/x-date-pickers@7.0.0-alpha.0` + +- [pickers] Escape non tokens words (#10400) @alexfauquette +- [fields] Fix `MultiInputTimeRangeField` section selection (#10922) @noraleonte +- [pickers] Refine `referenceDate` behavior in views (#10863) @LukasTy +- [pickers] Remove `components` and `componentsProps` props (#10700) @alexfauquette +- [l10n] Add Basque (eu) locale and improve Spanish (es-ES) locale (#10819) @lajtomekadimon +- [pickers] Add short weekdays token (#10988) @alexfauquette + +#### `@mui/x-date-pickers-pro@7.0.0-alpha.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan') + +Same changes as in `@mui/x-date-pickers@7.0.0-alpha.0`. + +### Charts / `@mui/x-charts@7.0.0-alpha.0` + +#### Breaking changes + +Types for `slots` and `slotProps` got renamed by removing the "Component" which is meaningless for charts. +Unless you imported those types, to create a wrapper, you should not be impacted by this breaking change. + +Here is an example of the renaming for the `` component. + +```diff +-ChartsTooltipSlotsComponent ++ChartsTooltipSlots + +-ChartsTooltipSlotComponentProps ++ChartsTooltipSlotProps +``` + +- [charts] Add `` component (#10597) (#10946) @alexfauquette +- [charts] Improve properties JSDoc (#10931) (#10955) @alexfauquette +- [charts] Rename `slots` and `slotProps` types (#10875) @alexfauquette + +### `@mui/x-codemod@7.0.0-alpha.0` + +- [codemod] Add `v7.0.0/preset-safe` (#10973) @LukasTy + +### Docs + +- [docs] Add `@next` tag to the installation instructions (#10963) @MBilalShafi +- [docs] Document how to hide the legend (#10951) @alexfauquette +- [docs] Fix typo in the migration guide (#10972) @flaviendelangle + +### Core + +- [core] Adds migration docs for charts, pickers and tree view (#10926) @michelengelen +- [core] Bump monorepo (#10959) @LukasTy +- [core] Changed prettier branch value to next (#10917) @michelengelen +- [core] Fix GitHub title tag consistency @oliviertassinari +- [core] Fixed wrong package names in migration docs (#10953) @michelengelen +- [core] Merge `master` into `next` (#10929) @cherniavskii +- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi +- [license] Correctly throw errors (#10924) @oliviertassinari + +## 6.18.1 + +_Nov 9, 2023_ + +We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨: + +- ✨ Fix aggregation label not showing when `renderHeader` is used (#10961) @cherniavskii +- 📘 Server side data source [early documentation](https://mui.com/x/react-data-grid/server-side-data/) published +- 📈 `` component is now available +- 🐞 Bugfixes +- 📚 Documentation improvements + +### Data Grid + +#### `@mui/x-data-grid@6.18.1` + +- [DataGrid] Fix cell value type in quick filtering v7 (#10884) @cherniavskii +- [DataGrid] Fix keyboard navigation for actions cell with disabled buttons (#10947) @michelengelen +- [DataGrid] Fix `undefined` slot values (#10934) @romgrk + +#### `@mui/x-data-grid-pro@6.18.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan') + +Same changes as in `@mui/x-data-grid@6.18.1`, plus: + +- [DataGridPro] Add data source interface and basic documentation (#10543) @MBilalShafi + +#### `@mui/x-data-grid-premium@6.18.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan') + +Same changes as in `@mui/x-data-grid-pro@6.18.1`, plus: + +- [DataGridPremium] Render aggregation label when `renderHeader` is used (#10961) @cherniavskii + +### Date Pickers + +#### `@mui/x-date-pickers@6.18.1` + +- [fields] Fix multi input date time field section selection (#10915) @noraleonte +- [pickers] Always use up-to-date `defaultView` (#10889) @LukasTy + +#### `@mui/x-date-pickers-pro@6.18.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan') + +Same changes as in `@mui/x-date-pickers@6.18.1`. + +### Charts / `@mui/x-charts@6.18.1` + +- [charts] Add `` component (#10597) @wascou +- [charts] Improve properties JSDoc (#10931) @alexfauquette + +### Docs + +- [docs] Fix charts docs as stable (#10888) @alexfauquette +- [docs] Document how to hide the legend (#10954) @alexfauquette + +### Core + +- [core] Adds new alpha version to version select on the docs (#10944) @michelengelen +- [core] Fix GitHub title tag consistency @oliviertassinari + ## 6.18.0 _Nov 3, 2023_ diff --git a/package.json b/package.json index 2ed5b4650529..1bd79c0ac6bc 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "6.18.0", + "version": "7.0.0-alpha.0", "private": true, "scripts": { "start": "yarn && yarn docs:dev", diff --git a/packages/grid/x-data-grid-generator/package.json b/packages/grid/x-data-grid-generator/package.json index 3d2635b260fa..ec7cbce7953a 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": "6.18.0", + "version": "7.0.0-alpha.0", "description": "Generate fake data for demo purposes only.", "author": "MUI Team", "main": "src/index.ts", @@ -32,7 +32,7 @@ "dependencies": { "@babel/runtime": "^7.23.2", "@mui/base": "^5.0.0-beta.22", - "@mui/x-data-grid-premium": "6.18.0", + "@mui/x-data-grid-premium": "7.0.0-alpha.0", "chance": "^1.1.11", "clsx": "^2.0.0", "lru-cache": "^7.18.3" diff --git a/packages/grid/x-data-grid-premium/package.json b/packages/grid/x-data-grid-premium/package.json index 33ed5bb10dd0..5eae8b5ef228 100644 --- a/packages/grid/x-data-grid-premium/package.json +++ b/packages/grid/x-data-grid-premium/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-data-grid-premium", - "version": "6.18.0", + "version": "7.0.0-alpha.0", "description": "The Premium plan edition of the data grid component (MUI X).", "author": "MUI Team", "main": "src/index.ts", @@ -44,9 +44,9 @@ "dependencies": { "@babel/runtime": "^7.23.2", "@mui/utils": "^5.14.16", - "@mui/x-data-grid": "6.18.0", - "@mui/x-data-grid-pro": "6.18.0", - "@mui/x-license-pro": "6.10.2", + "@mui/x-data-grid": "7.0.0-alpha.0", + "@mui/x-data-grid-pro": "7.0.0-alpha.0", + "@mui/x-license-pro": "7.0.0-alpha.0", "@types/format-util": "^1.0.3", "clsx": "^2.0.0", "exceljs": "^4.3.0", diff --git a/packages/grid/x-data-grid-pro/package.json b/packages/grid/x-data-grid-pro/package.json index abedce9de2c2..fd0ef08cbcb8 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": "6.18.0", + "version": "7.0.0-alpha.0", "description": "The Pro plan edition of the data grid component (MUI X).", "author": "MUI Team", "main": "src/index.ts", @@ -44,8 +44,8 @@ "dependencies": { "@babel/runtime": "^7.23.2", "@mui/utils": "^5.14.16", - "@mui/x-data-grid": "6.18.0", - "@mui/x-license-pro": "6.10.2", + "@mui/x-data-grid": "7.0.0-alpha.0", + "@mui/x-license-pro": "7.0.0-alpha.0", "@types/format-util": "^1.0.3", "clsx": "^2.0.0", "prop-types": "^15.8.1", diff --git a/packages/grid/x-data-grid/package.json b/packages/grid/x-data-grid/package.json index c319be66aca0..cd166500b075 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": "6.18.0", + "version": "7.0.0-alpha.0", "description": "The community edition of the data grid component (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-charts/package.json b/packages/x-charts/package.json index 43bfbf829840..4187a3817cc6 100644 --- a/packages/x-charts/package.json +++ b/packages/x-charts/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-charts", - "version": "6.18.0", + "version": "7.0.0-alpha.0", "description": "The community edition of the charts components (MUI X).", "author": "MUI Team", "main": "./src/index.js", diff --git a/packages/x-codemod/package.json b/packages/x-codemod/package.json index 1539e77bb60d..ab6ceafefbc6 100644 --- a/packages/x-codemod/package.json +++ b/packages/x-codemod/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-codemod", - "version": "6.9.0", + "version": "7.0.0-alpha.0", "bin": "./codemod.js", "private": false, "author": "MUI Team", diff --git a/packages/x-date-pickers-pro/package.json b/packages/x-date-pickers-pro/package.json index 539731747572..f7b79ad4bece 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": "6.18.0", + "version": "7.0.0-alpha.0", "description": "The commercial edition of the date picker components (MUI X).", "author": "MUI Team", "main": "src/index.ts", @@ -44,8 +44,8 @@ "@babel/runtime": "^7.23.2", "@mui/base": "^5.0.0-beta.22", "@mui/utils": "^5.14.16", - "@mui/x-date-pickers": "6.18.0", - "@mui/x-license-pro": "6.10.2", + "@mui/x-date-pickers": "7.0.0-alpha.0", + "@mui/x-license-pro": "7.0.0-alpha.0", "clsx": "^2.0.0", "prop-types": "^15.8.1", "react-transition-group": "^4.4.5" diff --git a/packages/x-date-pickers/package.json b/packages/x-date-pickers/package.json index aeb2ce0fe8da..e1bad9d2bba5 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": "6.18.0", + "version": "7.0.0-alpha.0", "description": "The community edition of the date picker components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-license-pro/package.json b/packages/x-license-pro/package.json index c76b6fbb6687..ba77e2930ce6 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": "6.10.2", + "version": "7.0.0-alpha.0", "description": "MUI X License verification", "author": "MUI Team", "main": "src/index.ts",