@mui/x-codemod 6.0.0-beta.5 → 6.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
CHANGED
|
@@ -201,7 +201,7 @@ If you were always using the same text value in all your components, consider mo
|
|
|
201
201
|
</LocalizationProvider>
|
|
202
202
|
```
|
|
203
203
|
|
|
204
|
-
You can find more details about Date and Time breaking changes in [the migration guide](https://
|
|
204
|
+
You can find more details about Date and Time breaking changes in [the migration guide](https://mui.com/x/migration/migration-pickers-v5/).
|
|
205
205
|
|
|
206
206
|
#### `replace-tabs-props`
|
|
207
207
|
|
|
@@ -699,4 +699,4 @@ This change only affects data grid components.
|
|
|
699
699
|
npx @mui/x-codemod v6.0.0/data-grid/rename-components-to-slots <path>
|
|
700
700
|
```
|
|
701
701
|
|
|
702
|
-
You can find more details about Data Grid breaking change in [the migration guide](https://
|
|
702
|
+
You can find more details about Data Grid breaking change in [the migration guide](https://mui.com/x/migration/migration-data-grid-v5/).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-codemod",
|
|
3
|
-
"version": "6.0.0
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"bin": "./codemod.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "MUI Team",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "packages/x-codemod"
|
|
26
26
|
},
|
|
27
27
|
"license": "MIT",
|
|
28
|
-
"homepage": "https://github.com/mui/mui-x/
|
|
28
|
+
"homepage": "https://github.com/mui/mui-x/blob/-/packages/x-codemod",
|
|
29
29
|
"funding": {
|
|
30
30
|
"type": "opencollective",
|
|
31
31
|
"url": "https://opencollective.com/mui"
|
|
@@ -8,7 +8,7 @@ exports.default = transformer;
|
|
|
8
8
|
var _removeObjectProperty = _interopRequireDefault(require("../../../util/removeObjectProperty"));
|
|
9
9
|
const componentsNames = ['DataGrid', 'DataGridPro', 'DataGridPremium'];
|
|
10
10
|
const propName = 'experimentalFeatures';
|
|
11
|
-
const
|
|
11
|
+
const propKeys = ['newEditingApi', 'rowPinning', 'aggregation'];
|
|
12
12
|
function transformer(file, api, options) {
|
|
13
13
|
const j = api.jscodeshift;
|
|
14
14
|
const root = j(file.source);
|
|
@@ -16,12 +16,14 @@ function transformer(file, api, options) {
|
|
|
16
16
|
quote: 'single',
|
|
17
17
|
trailingComma: true
|
|
18
18
|
};
|
|
19
|
-
(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
propKeys.forEach(propKey => {
|
|
20
|
+
(0, _removeObjectProperty.default)({
|
|
21
|
+
root,
|
|
22
|
+
j,
|
|
23
|
+
propName,
|
|
24
|
+
componentsNames,
|
|
25
|
+
propKey
|
|
26
|
+
});
|
|
25
27
|
});
|
|
26
28
|
return root.toSource(printOptions);
|
|
27
29
|
}
|