@mui/codemod 5.9.3 → 5.10.5
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 -2
- package/codemod.js +0 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -993,8 +993,15 @@ npx @mui/codemod v5.0.0/theme-options <path>
|
|
|
993
993
|
Renames `type` to `mode`.
|
|
994
994
|
|
|
995
995
|
```diff
|
|
996
|
-
|
|
997
|
-
|
|
996
|
+
{
|
|
997
|
+
palette: {
|
|
998
|
+
- type: 'dark',
|
|
999
|
+
+ mode: 'dark',
|
|
1000
|
+
},
|
|
1001
|
+
}
|
|
1002
|
+
```
|
|
1003
|
+
|
|
1004
|
+
```diff
|
|
998
1005
|
-theme.palette.type === 'dark'
|
|
999
1006
|
+theme.palette.mode === 'dark'
|
|
1000
1007
|
```
|
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.10.5",
|
|
4
4
|
"bin": "./codemod.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "MUI Team",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"url": "https://opencollective.com/mui"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@babel/core": "^7.
|
|
34
|
-
"@babel/runtime": "^7.
|
|
35
|
-
"@babel/traverse": "^7.
|
|
33
|
+
"@babel/core": "^7.18.13",
|
|
34
|
+
"@babel/runtime": "^7.18.9",
|
|
35
|
+
"@babel/traverse": "^7.18.13",
|
|
36
36
|
"jscodeshift": "^0.13.1",
|
|
37
37
|
"jscodeshift-add-imports": "^1.0.10",
|
|
38
38
|
"yargs": "^17.5.1"
|