@mui/codemod 5.15.4 → 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.
Files changed (3) hide show
  1. package/README.md +9 -9
  2. package/codemod.js +1 -1
  3. package/package.json +3 -3
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 UI default exports were changed to named ones. Previously we had a mix of default and named ones.
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 UI component names, including names of types and other related identifiers.
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 UI components by transferring its value into `slots.root`.
99
+ Remove `component` prop from all Base UI components by transferring its value into `slots.root`.
100
100
 
101
- This change only affects Base UI components.
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 UI hooks to adapt to the new directories of the hooks.
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 UI components.
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
- MUI v1.0.0 flatten the import paths.
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 MUI color palettes.
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
- MUI v0.15.0 is reorganizing the folder distribution of the project.
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
package/codemod.js CHANGED
@@ -40,7 +40,7 @@ async function runTransform(transform, files, flags, codemodFlags) {
40
40
  transformerPath,
41
41
  ...codemodFlags,
42
42
  '--extensions',
43
- 'js,ts,jsx,tsx',
43
+ 'js,ts,jsx,tsx,json',
44
44
  '--parser',
45
45
  flags.parser || 'tsx',
46
46
  '--ignore-pattern',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/codemod",
3
- "version": "5.15.4",
3
+ "version": "5.15.6",
4
4
  "bin": "./codemod.js",
5
5
  "private": false,
6
6
  "author": "MUI Team",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@babel/core": "^7.23.7",
28
- "@babel/runtime": "^7.23.7",
28
+ "@babel/runtime": "^7.23.8",
29
29
  "@babel/traverse": "^7.23.7",
30
30
  "jscodeshift": "^0.13.1",
31
31
  "jscodeshift-add-imports": "^1.0.10",
@@ -34,7 +34,7 @@
34
34
  "devDependencies": {
35
35
  "@types/chai": "^4.3.11",
36
36
  "@types/jscodeshift": "0.11.5",
37
- "chai": "^4.4.0"
37
+ "chai": "^4.4.1"
38
38
  },
39
39
  "sideEffects": false,
40
40
  "publishConfig": {