From b50f248493a2587a0b8738a2f887112d24c88141 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 5 Sep 2024 16:13:49 +0300 Subject: [PATCH 1/4] Add changelog --- CHANGELOG.md | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72a65f252389..4c8e9a1cc4b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,102 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 7.16.0 + +_Sep 5, 2024_ + +We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨: + +- 🌍 Improve Chinese (zh-CN) and Dutch (nl-NL) locales on the Data Grid +- 🐞 Bugfixes +- 📚 Documentation improvements + + + +### Data Grid + +#### `@mui/x-data-grid@7.16.0` + +- [DataGrid] Add key prop to `GridFilterInputMultipleValue` (#14302) @sai6855 +- [DataGrid] Allow to control the indeterminate checkbox behavior (#14247) @MBilalShafi +- [DataGrid] Column header design updates (#14293) @KenanYusuf +- [DataGrid] Fix error on simultaneous `columns` and `columnGroupingModel` update (#14368) @cherniavskii +- [DataGrid] Fix first row flickering with autoHeight enabled (#14235) @KenanYusuf +- [DataGrid] Fix separator styles on touch devices (#14471) @KenanYusuf +- [DataGrid] Remove cell min-width / max-width styles (#14448) @oliviertassinari +- [DataGrid] Restore reselect behavior (#14410) @romgrk +- [l10n] Improve Chinese (zh-CN) locale (#14394) @lawvs +- [l10n] Improve Dutch (nl-NL) locale (#14398) @Janpot + +#### `@mui/x-data-grid-pro@7.16.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.16.0`, plus: + +- [DataGridPro] Fix double top border in header filters (#14375) @MBilalShafi + +#### `@mui/x-data-grid-premium@7.16.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.16.0`. + +### Date and Time Pickers + +#### `@mui/x-date-pickers@7.16.0` + +- [pickers] Improve `onError` JSDoc (#14492) @flaviendelangle +- [pickers] Keep the calendar header and content in sync when switching locale (#14125) @flaviendelangle +- [pickers] Move multi input range field validation tests to the describe test file (#14501) @flaviendelangle + +#### `@mui/x-date-pickers-pro@7.16.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.16.0`. + +### Charts + +#### `@mui/x-charts@7.16.0` + +- [charts] Fix JSDocs typo (#14497) @alexfauquette +- [charts] Fix `LineChart` not properly animating when hydrating (#14355) @JCQuintas +- [charts] Fix themeAugmentation (#14372) @alexfauquette +- [charts] Pass all props to legend (#14392) @JCQuintas +- [charts] Replace ESM extensions by .mjs (#14387) @alexfauquette +- [charts] Update `package.json` for vendor package (#14465) @alexfauquette +- [charts] Use real world data for `PieChart` examples (#14297) @JCQuintas + +#### `@mui/x-charts-pro@7.0.0-alpha.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan') + +Same changes as in `@mui/x-charts@7.16.0`, plus: + +- [charts-pro] Fix props and automatic documentation on `BarChartPro` and `LineChartPro` (#14391) @JCQuintas + +### Tree View + +#### `@mui/x-tree-view@7.16.0` + +- [TreeView] Clean label editing code (#14264) @flaviendelangle + +### `@mui/x-codemod@7.16.0` + +- [codemod] Fix `experimentalFeatures` codemod for typescript parser (#14150) @MBilalShafi + +### Docs + +- [docs] Add RTL documentation for the pickers (#13855) @flaviendelangle +- [docs] Add the `slots` concept introduction page (#13881) @flaviendelangle +- [docs] Remove TypeScript v3 outdated version mentions (#14443) @k-rajat19 +- [docs] Remove notion of seats (#14351) @oliviertassinari + +### Core + +- [core] Fix changelog spelling @oliviertassinari +- [core] Fix failing tests on the pickers (#14457) @flaviendelangle +- [core] Reset permissions for codspeed GitHub Action (#14420) @oliviertassinari +- [code-infra] Add babel runtime version check (#14483) @Janpot +- [code-infra] Fully resolve imports in ESM target (#14234) @Janpot +- [code-infra] Update runners from node 18 to 20 (#14466) @JCQuintas +- [infra] Added `secrets: inherit` to workflow call (#14454) @michelengelen +- [infra] Switch 'add closing message' to reusable workflow (#14499) @michelengelen +- [infra] Switch issue triage workflow to reusable workflows (#14390) @michelengelen + ## 7.15.0 _Aug 29, 2024_ From 32b744f952ad852603e7d3380fb614da721c5a99 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 5 Sep 2024 16:15:39 +0300 Subject: [PATCH 2/4] Bump versions --- package.json | 2 +- packages/x-charts-pro/package.json | 2 +- packages/x-charts-vendor/package.json | 2 +- packages/x-charts/package.json | 2 +- packages/x-codemod/package.json | 2 +- packages/x-data-grid-generator/package.json | 2 +- packages/x-data-grid-premium/package.json | 2 +- packages/x-data-grid-pro/package.json | 2 +- packages/x-data-grid/package.json | 2 +- packages/x-date-pickers-pro/package.json | 2 +- packages/x-date-pickers/package.json | 2 +- packages/x-internals/package.json | 2 +- packages/x-license/package.json | 2 +- packages/x-tree-view-pro/package.json | 2 +- packages/x-tree-view/package.json | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 00146fb546db..5f358bf2fae5 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "7.15.0", + "version": "7.16.0", "private": true, "scripts": { "preinstall": "npx only-allow pnpm", diff --git a/packages/x-charts-pro/package.json b/packages/x-charts-pro/package.json index 765359ab82d3..fb58686b051d 100644 --- a/packages/x-charts-pro/package.json +++ b/packages/x-charts-pro/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-charts-pro", - "version": "7.0.0-alpha.3", + "version": "7.0.0-alpha.4", "description": "The Pro plan edition of the Charts components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-charts-vendor/package.json b/packages/x-charts-vendor/package.json index 0da2f9aa3fd0..d7a322bfbccb 100644 --- a/packages/x-charts-vendor/package.json +++ b/packages/x-charts-vendor/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-charts-vendor", - "version": "7.15.0", + "version": "7.16.0", "description": "Vendored dependencies for MUI X Charts", "author": "MUI Team", "keywords": [ diff --git a/packages/x-charts/package.json b/packages/x-charts/package.json index a6600e79f27f..ebd5bd8c47d7 100644 --- a/packages/x-charts/package.json +++ b/packages/x-charts/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-charts", - "version": "7.15.0", + "version": "7.16.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 bac5d2322c37..7a400bf3f38a 100644 --- a/packages/x-codemod/package.json +++ b/packages/x-codemod/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-codemod", - "version": "7.15.0", + "version": "7.16.0", "bin": "./codemod.js", "private": false, "author": "MUI Team", diff --git a/packages/x-data-grid-generator/package.json b/packages/x-data-grid-generator/package.json index 8522cd2b980f..a65319d22f27 100644 --- a/packages/x-data-grid-generator/package.json +++ b/packages/x-data-grid-generator/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-data-grid-generator", - "version": "7.15.0", + "version": "7.16.0", "description": "Generate fake data for demo purposes only.", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-data-grid-premium/package.json b/packages/x-data-grid-premium/package.json index 20658901315a..3ac6ab7e3b6f 100644 --- a/packages/x-data-grid-premium/package.json +++ b/packages/x-data-grid-premium/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-data-grid-premium", - "version": "7.15.0", + "version": "7.16.0", "description": "The Premium plan edition of the Data Grid Components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-data-grid-pro/package.json b/packages/x-data-grid-pro/package.json index 2f247fca02d1..944d5bd4796b 100644 --- a/packages/x-data-grid-pro/package.json +++ b/packages/x-data-grid-pro/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-data-grid-pro", - "version": "7.15.0", + "version": "7.16.0", "description": "The Pro plan edition of the Data Grid components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-data-grid/package.json b/packages/x-data-grid/package.json index 9af9934e8531..bf2f271889fb 100644 --- a/packages/x-data-grid/package.json +++ b/packages/x-data-grid/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-data-grid", - "version": "7.15.0", + "version": "7.16.0", "description": "The Community plan edition of the Data Grid components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-date-pickers-pro/package.json b/packages/x-date-pickers-pro/package.json index 594bd42a3bcf..d1da1121ba92 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": "7.15.0", + "version": "7.16.0", "description": "The Pro plan edition of the Date and Time Picker components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-date-pickers/package.json b/packages/x-date-pickers/package.json index 065254e21735..2ac4fb9a50f5 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": "7.15.0", + "version": "7.16.0", "description": "The community edition of the Date and Time Picker components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-internals/package.json b/packages/x-internals/package.json index c25efbc16a3a..a6fb90ead4d3 100644 --- a/packages/x-internals/package.json +++ b/packages/x-internals/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-internals", - "version": "7.15.0", + "version": "7.16.0", "description": "Utility functions for the MUI X packages (internal use only).", "author": "MUI Team", "license": "MIT", diff --git a/packages/x-license/package.json b/packages/x-license/package.json index 20bbae4c3afb..17c7affd0697 100644 --- a/packages/x-license/package.json +++ b/packages/x-license/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-license", - "version": "7.15.0", + "version": "7.16.0", "description": "MUI X License verification", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-tree-view-pro/package.json b/packages/x-tree-view-pro/package.json index 420647735458..a0feb93e2e3b 100644 --- a/packages/x-tree-view-pro/package.json +++ b/packages/x-tree-view-pro/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-tree-view-pro", - "version": "7.15.0", + "version": "7.16.0", "description": "The Pro plan edition of the Tree View components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-tree-view/package.json b/packages/x-tree-view/package.json index fb3ec5d1ed10..7eb2372532ed 100644 --- a/packages/x-tree-view/package.json +++ b/packages/x-tree-view/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-tree-view", - "version": "7.15.0", + "version": "7.16.0", "description": "The community edition of the Tree View components (MUI X).", "author": "MUI Team", "main": "src/index.ts", From 1bb883aba1437b2446a34bdf676594315c2144bd Mon Sep 17 00:00:00 2001 From: Lukas Tyla Date: Thu, 5 Sep 2024 17:09:03 +0300 Subject: [PATCH 3/4] Apply suggestions from code review Co-authored-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com> Co-authored-by: Kenan Yusuf Co-authored-by: Flavien DELANGLE Co-authored-by: Jose C Quintas Jr Co-authored-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com> Signed-off-by: Lukas Tyla --- CHANGELOG.md | 23 ++++++++++++----------- packages/x-charts-pro/package.json | 2 +- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c8e9a1cc4b1..6d3d1b1f1015 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ _Sep 5, 2024_ We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨: +- 🎨 Update the design of Data Grid column headers (#14293) +- 🧠 Add the `slots` concept introduction documentation page (#13881) - 🌍 Improve Chinese (zh-CN) and Dutch (nl-NL) locales on the Data Grid - 🐞 Bugfixes - 📚 Documentation improvements @@ -23,8 +25,7 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos - [DataGrid] Allow to control the indeterminate checkbox behavior (#14247) @MBilalShafi - [DataGrid] Column header design updates (#14293) @KenanYusuf - [DataGrid] Fix error on simultaneous `columns` and `columnGroupingModel` update (#14368) @cherniavskii -- [DataGrid] Fix first row flickering with autoHeight enabled (#14235) @KenanYusuf -- [DataGrid] Fix separator styles on touch devices (#14471) @KenanYusuf +- [DataGrid] Fix first row flickering with `autoHeight` prop enabled (#14235) @KenanYusuf - [DataGrid] Remove cell min-width / max-width styles (#14448) @oliviertassinari - [DataGrid] Restore reselect behavior (#14410) @romgrk - [l10n] Improve Chinese (zh-CN) locale (#14394) @lawvs @@ -34,7 +35,7 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos Same changes as in `@mui/x-data-grid@7.16.0`, plus: -- [DataGridPro] Fix double top border in header filters (#14375) @MBilalShafi +- [DataGridPro] Fix duplicate top border in header filters (#14375) @MBilalShafi #### `@mui/x-data-grid-premium@7.16.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan') @@ -56,19 +57,18 @@ Same changes as in `@mui/x-date-pickers@7.16.0`. #### `@mui/x-charts@7.16.0` -- [charts] Fix JSDocs typo (#14497) @alexfauquette +- [charts] Fix JSDoc typos (#14497) @alexfauquette - [charts] Fix `LineChart` not properly animating when hydrating (#14355) @JCQuintas -- [charts] Fix themeAugmentation (#14372) @alexfauquette +- [charts] Fix theme augmentation (#14372) @alexfauquette - [charts] Pass all props to legend (#14392) @JCQuintas -- [charts] Replace ESM extensions by .mjs (#14387) @alexfauquette +- [charts] Use `.mjs` extension for ESM build (#14387) @alexfauquette - [charts] Update `package.json` for vendor package (#14465) @alexfauquette -- [charts] Use real world data for `PieChart` examples (#14297) @JCQuintas -#### `@mui/x-charts-pro@7.0.0-alpha.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan') +#### `@mui/x-charts-pro@7.0.0-beta.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-charts@7.16.0`, plus: -- [charts-pro] Fix props and automatic documentation on `BarChartPro` and `LineChartPro` (#14391) @JCQuintas +- [charts-pro] Fix props and automated documentation on `BarChartPro` and `LineChartPro` (#14391) @JCQuintas ### Tree View @@ -86,6 +86,7 @@ Same changes as in `@mui/x-charts@7.16.0`, plus: - [docs] Add the `slots` concept introduction page (#13881) @flaviendelangle - [docs] Remove TypeScript v3 outdated version mentions (#14443) @k-rajat19 - [docs] Remove notion of seats (#14351) @oliviertassinari +- [docs] Use real world data for `PieChart` examples (#14297) @JCQuintas ### Core @@ -96,8 +97,8 @@ Same changes as in `@mui/x-charts@7.16.0`, plus: - [code-infra] Fully resolve imports in ESM target (#14234) @Janpot - [code-infra] Update runners from node 18 to 20 (#14466) @JCQuintas - [infra] Added `secrets: inherit` to workflow call (#14454) @michelengelen -- [infra] Switch 'add closing message' to reusable workflow (#14499) @michelengelen -- [infra] Switch issue triage workflow to reusable workflows (#14390) @michelengelen +- [infra] Switch "add closing message" to reusable workflow (#14499) @michelengelen +- [infra] Switch "issue triage workflow" to reusable workflows (#14390) @michelengelen ## 7.15.0 diff --git a/packages/x-charts-pro/package.json b/packages/x-charts-pro/package.json index fb58686b051d..6f142b0001d6 100644 --- a/packages/x-charts-pro/package.json +++ b/packages/x-charts-pro/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-charts-pro", - "version": "7.0.0-alpha.4", + "version": "7.0.0-beta.0", "description": "The Pro plan edition of the Charts components (MUI X).", "author": "MUI Team", "main": "src/index.ts", From 6ee336e1782e9dd390351b1090ee614e39d263d5 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 5 Sep 2024 16:46:58 +0300 Subject: [PATCH 4/4] Try fixing unstable tests --- .../src/DateCalendar/tests/DateCalendar.test.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/x-date-pickers/src/DateCalendar/tests/DateCalendar.test.tsx b/packages/x-date-pickers/src/DateCalendar/tests/DateCalendar.test.tsx index 8332954d9937..81833dfd0e52 100644 --- a/packages/x-date-pickers/src/DateCalendar/tests/DateCalendar.test.tsx +++ b/packages/x-date-pickers/src/DateCalendar/tests/DateCalendar.test.tsx @@ -9,7 +9,7 @@ import { createPickerRenderer, adapterToUse } from 'test/utils/pickers'; const isJSDOM = /jsdom/.test(window.navigator.userAgent); describe('', () => { - const { render } = createPickerRenderer(); + const { render, clock } = createPickerRenderer({ clockConfig: new Date(2019, 0, 2) }); it('switches between views uncontrolled', async () => { const handleViewChange = spy(); @@ -128,17 +128,13 @@ describe('', () => { }); describe('with fake timers', () => { - const { render: renderWithFakeTimers, clock } = createPickerRenderer({ - clock: 'fake', - clockConfig: new Date('2019-01-02'), - }); + clock.withFakeTimers(); + // test: https://github.com/mui/mui-x/issues/12373 it('should not reset day to `startOfDay` if value already exists when finding the closest enabled date', () => { const onChange = spy(); const defaultDate = adapterToUse.date('2019-01-02T11:12:13.550Z'); - renderWithFakeTimers( - , - ); + render(); fireEvent.click( screen.getByRole('button', { name: 'calendar view is open, switch to year view' }),