@mui/codemod 5.12.3 → 5.13.3
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 +13 -0
- package/codemod.js +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -62,6 +62,19 @@ npx @mui/codemod <transform> <path> --jscodeshift="--printOptions='{\"quote\":\"
|
|
|
62
62
|
|
|
63
63
|
### v5.0.0
|
|
64
64
|
|
|
65
|
+
### `base-remove-unstyled-suffix`
|
|
66
|
+
|
|
67
|
+
The `Unstyled` suffix has been removed from all Base UI component names, including names of types and other related identifiers.
|
|
68
|
+
|
|
69
|
+
```diff
|
|
70
|
+
- <Input component='a' href='url' />;
|
|
71
|
+
+ <Input slots={{ root: 'a' }} href='url' />;
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
npx @mui/codemod v5.0.0/base-remove-unstyled-suffix <path>
|
|
76
|
+
```
|
|
77
|
+
|
|
65
78
|
#### `base-remove-component-prop`
|
|
66
79
|
|
|
67
80
|
Remove `component` prop from all Base UI components by transferring its value into `slots.root`.
|
package/codemod.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/codemod",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.13.3",
|
|
4
4
|
"bin": "./codemod.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "MUI Team",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@babel/traverse": "^7.21.4",
|
|
36
36
|
"jscodeshift": "^0.13.1",
|
|
37
37
|
"jscodeshift-add-imports": "^1.0.10",
|
|
38
|
-
"yargs": "^17.7.
|
|
38
|
+
"yargs": "^17.7.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/jscodeshift": "0.11.5"
|