From eefc4a8777ce07dbf5fa613bf6dd282ab48f4742 Mon Sep 17 00:00:00 2001 From: Jose C Quintas Jr Date: Thu, 1 Aug 2024 18:27:08 +0200 Subject: [PATCH] v7.12.0 (#14064) Signed-off-by: Jose C Quintas Jr Co-authored-by: Lukas Tyla Co-authored-by: Flavien DELANGLE Co-authored-by: Andrew Cherniavskii --- CHANGELOG.md | 106 ++++++++++++++++++ docs/data/introduction/licensing/licensing.md | 1 + package.json | 2 +- packages/x-charts-vendor/package.json | 36 +++--- packages/x-charts/package.json | 6 +- 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, 139 insertions(+), 32 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3f3d899b88af..2da1e48cfc593 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,112 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 7.12.0 + +_Aug 1, 2024_ + +### 💵 Our commercial offering is evolving + +The [Pro plan](https://mui.com/x/introduction/licensing/#pro-plan) is receiving two new packages: + +- `@mui/x-tree-view-pro` (available today!) +- `@mui/x-charts-pro` (available in the coming weeks) + +As always, every feature released as part of the MIT plan will remain free and MIT licensed forever. + +This expansion of the Pro plan comes with some adjustments to our pricing strategy. Learn more about those in the [Upcoming changes to MUI X pricing in 2024](https://mui.com/blog/mui-x-sep-2024-price-update/) blog post. + +### Highlights + +We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨: + +- 🎁 Introduce [item reordering using drag and drop](https://mui.com/x/react-tree-view/rich-tree-view/ordering/) on the `RichTreeViewPro` component + + Item reordering using drag and drop + +- 📦 Support Common JS bundle out of the box on `@mui/x-charts` by adding vendored D3 dependencies. + + - This modifies how the package imports D3.js. It will impact you if you use `d3` packages installed by `@mui/x-charts` and don't have them in your `package.json`. You shouldn't be affected otherwise. + - For more context, the initial issue is caused by D3 only exporting ESM. + + ![image](https://github.com/user-attachments/assets/d705b4de-0c93-420e-a416-528e7a044c1d) + + - The solution up until now was to export charts with only ESM. But some frameworks are confused by this configuration. + + ![image](https://github.com/user-attachments/assets/18a09703-9dd4-4226-a33d-167af059219c) + + - So in order to fix this, we are providing a CJS version of D3. + + ![image](https://github.com/user-attachments/assets/56387fe6-85d8-4750-bb9d-9866d5be68fa) + +- 🌍 Improve Turkish (tr-TR) locale on the Data Grid +- 🌍 Improve Finnish (fi-FI) locale on the Date and Time Pickers +- 🐞 Bugfixes +- 📚 Documentation improvements + + + +### Data Grid + +#### `@mui/x-data-grid@7.12.0` + +- [DataGrid] Fix crash when updating columns immediately after scrolling (#13781) @cherniavskii +- [DataGrid] Fix `role=presentation` a11y issue (#13891) @romgrk +- [DataGrid] Fix top corner pixels & outline radius (#13943) @romgrk +- [DataGrid] Refactor: remove useless copy (#14039) @romgrk +- [l10n] Improve Turkish (tr-TR) locale (#13996) @bagcivan + +#### `@mui/x-data-grid-pro@7.12.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.12.0`. + +#### `@mui/x-data-grid-premium@7.12.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.12.0`. + +### Date and Time Pickers + +#### `@mui/x-date-pickers@7.12.0` + +- [l10n] Improve Finnish (fi-FI) locale (#14054) @frozenzia + +#### `@mui/x-date-pickers-pro@7.12.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.12.0`. + +### Charts + +#### `@mui/x-charts@7.12.0` + +- [charts] Fix incorrect `axisId` prop being allowed in xAxis/yAxis config. Use `id` instead. (#13986) @JCQuintas +- [charts] Use vendor to have Common JS bundle working out of the box (#13608) @alexfauquette +- [charts] Divide the `SeriesProvider` to use in filtering (#14026) @JCQuintas + +### Tree View + +#### `@mui/x-tree-view@7.12.0` + +- [TreeView] Add new prop `onItemClick` on the Tree View components (#14018) @flaviendelangle +- [TreeView] Add new utility function `isEventTargetInDescendants` (#13982) @flaviendelangle +- [TreeView] Support item reordering using drag and drop (#12213) @flaviendelangle + +### Docs + +- [docs] Add Pickers `minDate` and `maxDate` `default` description (#14024) @LukasTy +- [docs] Fix 404 (#13989) @alexfauquette +- [docs] Fix Vale errors (#14025) @oliviertassinari +- [docs] Update on `renderCell` & autogenerated rows (#13879) @romgrk + +### Core + +- [core] Fix event naming convention @oliviertassinari +- [core] Replace @mui/base with @mui/utils + @mui/material (#13823) @mnajdova +- [core] Test `charts` performance with codspeed (#13952) @JCQuintas +- [infra] Consolidate issue cleanup and support labeling action (#14031) @michelengelen +- [infra] Revert `vale` action `paths` filtering (#14038) @LukasTy +- [test] Fix adapters code coverage (#13969) @alexfauquette +- [test] Fix mocha config to run charts tests (#14041) @alexfauquette + ## 7.11.1 _Jul 25, 2024_ diff --git a/docs/data/introduction/licensing/licensing.md b/docs/data/introduction/licensing/licensing.md index 85f8955bead3f..fccbdc8442846 100644 --- a/docs/data/introduction/licensing/licensing.md +++ b/docs/data/introduction/licensing/licensing.md @@ -43,6 +43,7 @@ These are the Pro npm packages: - [`@mui/x-data-grid-pro`](https://www.npmjs.com/package/@mui/x-data-grid-pro) - [`@mui/x-date-pickers-pro`](https://www.npmjs.com/package/@mui/x-date-pickers-pro) +- [`@mui/x-tree-view-pro`](https://www.npmjs.com/package/@mui/x-tree-view-pro) ### Premium plan diff --git a/package.json b/package.json index 9a5c889e66300..ad0c4abefdf59 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "7.11.1", + "version": "7.12.0", "private": true, "scripts": { "preinstall": "npx only-allow pnpm", diff --git a/packages/x-charts-vendor/package.json b/packages/x-charts-vendor/package.json index 92e890da5ca1a..35d438d0d5592 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.8.0", + "version": "7.12.0", "description": "Vendored dependencies for MUI X Charts", "author": "MUI Team", "main": "./index.js", @@ -25,34 +25,34 @@ }, "dependencies": { "@babel/runtime": "^7.25.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-time": "^3.1.0", "@types/d3-color": "^3.1.3", "@types/d3-delaunay": "^6.0.4", "@types/d3-interpolate": "^3.0.4", "@types/d3-scale": "^4.0.8", "@types/d3-shape": "^3.1.6", "@types/d3-time": "^3.0.3", - "robust-predicates": "^3.0.2", - "delaunator": "^5.0.1" + "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-time": "^3.1.0", + "delaunator": "^5.0.1", + "robust-predicates": "^3.0.2" }, "devDependencies": { - "d3-format": "^3.1.0", - "d3-time-format": "^4.1.0", - "d3-path": "^3.0.1", - "d3-array": "^3.1.6", + "@babel/plugin-transform-runtime": "^7.24.7", + "@types/d3-array": "^3.0.3", "@types/d3-format": "^3.0.4", - "@types/d3-time-format": "^4.0.3", "@types/d3-path": "^3.0.1", - "@types/d3-array": "^3.0.3", - "internmap": "^2.0.3", + "@types/d3-time-format": "^4.0.3", + "d3-array": "^3.1.6", + "d3-format": "^3.1.0", + "d3-path": "^3.0.1", + "d3-time-format": "^4.1.0", "execa": "^9.3.0", - "rimraf": "^5.0.8", - "@babel/plugin-transform-runtime": "^7.24.7" + "internmap": "^2.0.3", + "rimraf": "^5.0.8" }, "publishConfig": { "provenance": true diff --git a/packages/x-charts/package.json b/packages/x-charts/package.json index 28fc77a6daadc..7ee9390fb6d0b 100644 --- a/packages/x-charts/package.json +++ b/packages/x-charts/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-charts", - "version": "7.11.1", + "version": "7.12.0", "description": "The community edition of the Charts components (MUI X).", "author": "MUI Team", "main": "./src/index.js", @@ -42,11 +42,11 @@ "@babel/runtime": "^7.25.0", "@mui/system": "^5.16.5", "@mui/utils": "^5.16.5", + "@mui/x-charts-vendor": "workspace:*", "@react-spring/rafz": "^9.7.4", "@react-spring/web": "^9.7.4", "clsx": "^2.1.1", - "prop-types": "^15.8.1", - "@mui/x-charts-vendor": "workspace:*" + "prop-types": "^15.8.1" }, "peerDependencies": { "@emotion/react": "^11.9.0", diff --git a/packages/x-data-grid-generator/package.json b/packages/x-data-grid-generator/package.json index c45ba4a8a521b..11da83bbec09d 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.11.1", + "version": "7.12.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 9b1c244c808f2..357adba42c5d1 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.11.1", + "version": "7.12.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 4ab27308d3cce..97fb042a5ed2d 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.11.1", + "version": "7.12.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 a4eda7b280c3b..4018bbb601cb0 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.11.1", + "version": "7.12.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 45fc2a705a6b5..9ab8869c92cab 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.11.1", + "version": "7.12.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 9bd1c74dae012..7c82a56b19af6 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.11.1", + "version": "7.12.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 ce017cd12f5b2..405e3106e5d09 100644 --- a/packages/x-internals/package.json +++ b/packages/x-internals/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-internals", - "version": "7.11.1", + "version": "7.12.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 9fe318b3ffefa..dcc406c7f0b75 100644 --- a/packages/x-license/package.json +++ b/packages/x-license/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-license", - "version": "7.11.1", + "version": "7.12.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 e31b9e195ed71..b2f2f014f6d18 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.11.1", + "version": "7.12.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 900ba5e3db751..0ab596434f568 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.11.1", + "version": "7.12.0", "description": "The community edition of the Tree View components (MUI X).", "author": "MUI Team", "main": "src/index.ts",