@mui/codemod 7.0.0-beta.4 → 7.0.0
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 +8 -8
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Some of the codemods also run [postcss](https://github.com/postcss/postcss) plug
|
|
|
14
14
|
<!-- #npm-tag-reference -->
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npx @mui/codemod
|
|
17
|
+
npx @mui/codemod <codemod> <paths...>
|
|
18
18
|
|
|
19
19
|
Applies a `@mui/codemod` to the specified paths
|
|
20
20
|
|
|
@@ -1618,7 +1618,7 @@ npx @mui/codemod@latest deprecations/outlined-input-props <path>
|
|
|
1618
1618
|
```
|
|
1619
1619
|
|
|
1620
1620
|
```bash
|
|
1621
|
-
npx @mui/codemod
|
|
1621
|
+
npx @mui/codemod deprecations/snackbar-props <path>
|
|
1622
1622
|
```
|
|
1623
1623
|
|
|
1624
1624
|
#### `select-classes`
|
|
@@ -1713,7 +1713,7 @@ npx @mui/codemod@latest deprecations/slider-props <path>
|
|
|
1713
1713
|
```
|
|
1714
1714
|
|
|
1715
1715
|
```bash
|
|
1716
|
-
npx @mui/codemod
|
|
1716
|
+
npx @mui/codemod deprecations/snackbar-props <path>
|
|
1717
1717
|
```
|
|
1718
1718
|
|
|
1719
1719
|
#### `slider-classes`
|
|
@@ -1862,7 +1862,7 @@ JS transforms:
|
|
|
1862
1862
|
```
|
|
1863
1863
|
|
|
1864
1864
|
```bash
|
|
1865
|
-
npx @mui/codemod
|
|
1865
|
+
npx @mui/codemod deprecations/step-connector-classes <path>
|
|
1866
1866
|
```
|
|
1867
1867
|
|
|
1868
1868
|
#### `step-content-props`
|
|
@@ -2093,7 +2093,7 @@ npx @mui/codemod@latest deprecations/typography-props <path>
|
|
|
2093
2093
|
<!-- #npm-tag-reference -->
|
|
2094
2094
|
|
|
2095
2095
|
```bash
|
|
2096
|
-
npx @mui/codemod
|
|
2096
|
+
npx @mui/codemod v7.0.0/grid-props <path>
|
|
2097
2097
|
```
|
|
2098
2098
|
|
|
2099
2099
|
Updates the usage of the `@mui/material/Grid`, `@mui/system/Grid`, and `@mui/joy/Grid` components to their updated APIs.
|
|
@@ -2114,7 +2114,7 @@ You can provide the theme breakpoints via options, for example, `--jscodeshift='
|
|
|
2114
2114
|
<!-- #npm-tag-reference -->
|
|
2115
2115
|
|
|
2116
2116
|
```bash
|
|
2117
|
-
npx @mui/codemod
|
|
2117
|
+
npx @mui/codemod v7.0.0/grid-props <path> --jscodeshift='--muiBreakpoints=mobile,desktop'
|
|
2118
2118
|
```
|
|
2119
2119
|
|
|
2120
2120
|
```diff
|
|
@@ -2127,7 +2127,7 @@ npx @mui/codemod@next v7.0.0/grid-props <path> --jscodeshift='--muiBreakpoints=m
|
|
|
2127
2127
|
<!-- #npm-tag-reference -->
|
|
2128
2128
|
|
|
2129
2129
|
```bash
|
|
2130
|
-
npx @mui/codemod
|
|
2130
|
+
npx @mui/codemod v7.0.0/lab-removed-components <path>
|
|
2131
2131
|
```
|
|
2132
2132
|
|
|
2133
2133
|
Update the import of the following components and hook moved from `@mui/lab` to `@mui/material`:
|
|
@@ -2173,7 +2173,7 @@ Updates the `InputLabel`'s `size` value from `normal` to `medium`.
|
|
|
2173
2173
|
<!-- #npm-tag-reference -->
|
|
2174
2174
|
|
|
2175
2175
|
```bash
|
|
2176
|
-
npx @mui/codemod
|
|
2176
|
+
npx @mui/codemod v7.0.0/input-label-size-normal-medium <path>
|
|
2177
2177
|
```
|
|
2178
2178
|
|
|
2179
2179
|
<!-- #host-reference -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/codemod",
|
|
3
|
-
"version": "7.0.0
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"bin": "./codemod.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "MUI Team",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"url": "https://opencollective.com/mui-org"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@babel/core": "^7.26.
|
|
28
|
-
"@babel/runtime": "^7.26.
|
|
29
|
-
"@babel/traverse": "^7.26.
|
|
27
|
+
"@babel/core": "^7.26.10",
|
|
28
|
+
"@babel/runtime": "^7.26.10",
|
|
29
|
+
"@babel/traverse": "^7.26.10",
|
|
30
30
|
"jscodeshift": "^17.1.2",
|
|
31
31
|
"jscodeshift-add-imports": "^1.0.11",
|
|
32
32
|
"postcss": "^8.5.3",
|
|
33
|
-
"postcss-cli": "^11.0.
|
|
33
|
+
"postcss-cli": "^11.0.1",
|
|
34
34
|
"yargs": "^17.7.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|