@mui/codemod 5.15.5 → 5.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ npx @mui/codemod@latest <transform> <path> --jscodeshift="--printOptions='{\"quo
|
|
|
64
64
|
|
|
65
65
|
### `base-use-named-exports`
|
|
66
66
|
|
|
67
|
-
Base
|
|
67
|
+
Base UI default exports were changed to named ones. Previously we had a mix of default and named ones.
|
|
68
68
|
This was changed to improve consistency and avoid problems some bundlers have with default exports.
|
|
69
69
|
See https://github.com/mui/material-ui/issues/21862 for more context.
|
|
70
70
|
|
|
@@ -83,7 +83,7 @@ npx @mui/codemod@latest v5.0.0/base-use-named-exports <path>
|
|
|
83
83
|
|
|
84
84
|
### `base-remove-unstyled-suffix`
|
|
85
85
|
|
|
86
|
-
The `Unstyled` suffix has been removed from all Base
|
|
86
|
+
The `Unstyled` suffix has been removed from all Base UI component names, including names of types and other related identifiers.
|
|
87
87
|
|
|
88
88
|
```diff
|
|
89
89
|
- <Input component='a' href='url' />;
|
|
@@ -96,9 +96,9 @@ npx @mui/codemod@latest v5.0.0/base-remove-unstyled-suffix <path>
|
|
|
96
96
|
|
|
97
97
|
#### `base-remove-component-prop`
|
|
98
98
|
|
|
99
|
-
Remove `component` prop from all Base
|
|
99
|
+
Remove `component` prop from all Base UI components by transferring its value into `slots.root`.
|
|
100
100
|
|
|
101
|
-
This change only affects Base
|
|
101
|
+
This change only affects Base UI components.
|
|
102
102
|
|
|
103
103
|
```diff
|
|
104
104
|
- <Input component={CustomRoot} />
|
|
@@ -126,7 +126,7 @@ npx @mui/codemod@latest v5.0.0/rename-css-variables <path>
|
|
|
126
126
|
|
|
127
127
|
#### `base-hook-imports`
|
|
128
128
|
|
|
129
|
-
Updates the sources of the imports of the Base
|
|
129
|
+
Updates the sources of the imports of the Base UI hooks to adapt to the new directories of the hooks.
|
|
130
130
|
|
|
131
131
|
```diff
|
|
132
132
|
- import { useBadge } from '@mui/base/BadgeUnstyled';
|
|
@@ -452,7 +452,7 @@ You can find more details about this breaking change in [the migration guide](ht
|
|
|
452
452
|
Renames the `components` and `componentsProps` props to `slots` and `slotProps`, respectively.
|
|
453
453
|
Also, changes `slots`' fields names to camelCase.
|
|
454
454
|
|
|
455
|
-
This change only affects Base
|
|
455
|
+
This change only affects Base UI components.
|
|
456
456
|
|
|
457
457
|
```diff
|
|
458
458
|
<BadgeUnstyled
|
|
@@ -1551,7 +1551,7 @@ Head to https://mui.com/guides/minimizing-bundle-size/ to understand when it's u
|
|
|
1551
1551
|
#### `import-path`
|
|
1552
1552
|
|
|
1553
1553
|
Updates the `import-paths` for the new location of the components.
|
|
1554
|
-
|
|
1554
|
+
Material UI v1.0.0 flatten the import paths.
|
|
1555
1555
|
The diff should look like this:
|
|
1556
1556
|
|
|
1557
1557
|
```diff
|
|
@@ -1576,7 +1576,7 @@ Subsequently, you can run the above `find ...` command to flatten your imports.
|
|
|
1576
1576
|
|
|
1577
1577
|
#### `color-imports`
|
|
1578
1578
|
|
|
1579
|
-
Updates the `color-imports` for the new location of
|
|
1579
|
+
Updates the `color-imports` for the new location of Material UI color palettes.
|
|
1580
1580
|
The diff should look like this:
|
|
1581
1581
|
|
|
1582
1582
|
```diff
|
|
@@ -1641,7 +1641,7 @@ npx @mui/codemod@latest v1.0.0/menu-item-primary-text <path>
|
|
|
1641
1641
|
#### `import-path`
|
|
1642
1642
|
|
|
1643
1643
|
Updates the `import-paths` for the new location of the components.
|
|
1644
|
-
|
|
1644
|
+
Material UI v0.15.0 is reorganizing the folder distribution of the project.
|
|
1645
1645
|
The diff should look like this:
|
|
1646
1646
|
|
|
1647
1647
|
```diff
|