From 40af2ff529d84fbb28c693115bcf0cc68190d5f2 Mon Sep 17 00:00:00 2001 From: Diego Andai Date: Wed, 20 Mar 2024 11:32:24 -0300 Subject: [PATCH] Add breaking changes to migration guide --- .../migration/migration-v5/migration-v5.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/data/system/migration/migration-v5/migration-v5.md b/docs/data/system/migration/migration-v5/migration-v5.md index 8b9028dcc249fe..dc9fa51622a50c 100644 --- a/docs/data/system/migration/migration-v5/migration-v5.md +++ b/docs/data/system/migration/migration-v5/migration-v5.md @@ -23,3 +23,19 @@ The steps you need to take to migrate from MUI System v5 to v6 are described b This list is a work in progress. Expect updates as new breaking changes are introduced. ::: + +### Root code is now ESM + +The ESM code, previously under the `esm/` build, has been moved to the root of the package. +The CommonJS code, previously on the root, has been moved to the `node/` build. + +:::info +This is an intermediate step to prepare for adding the `exports` field to the `package.json` file. +If you have trouble using this new structure, please wait for the future update which adds the `exports` field. +You can follow progress on https://github.com/mui/material-ui/issues/30671. +::: + +### GridProps type + +The `cssGrid` function's `GridProps` type has been renamed to `CssGridProps`. +This is to avoid collision with the `GridProps` type corresponding to the `Grid` component props.