@mui/x-codemod 8.0.0-beta.3 → 8.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.
Files changed (2) hide show
  1. package/README.md +18 -18
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -13,7 +13,7 @@ This repository contains a collection of codemod scripts based for use with
13
13
  <!-- #default-branch-switch -->
14
14
 
15
15
  ```bash
16
- npx @mui/x-codemod@next <codemod> <paths...>
16
+ npx @mui/x-codemod@latest <codemod> <paths...>
17
17
 
18
18
  Applies a `@mui/x-codemod` to the specified paths
19
19
 
@@ -29,8 +29,8 @@ Options:
29
29
  --jscodeshift Pass options directly to jscodeshift [array]
30
30
 
31
31
  Examples:
32
- npx @mui/x-codemod@next v8.0.0/preset-safe src
33
- npx @mui/x-codemod@next v6.0.0/component-rename-prop src --
32
+ npx @mui/x-codemod@latest v8.0.0/preset-safe src
33
+ npx @mui/x-codemod@latest v6.0.0/component-rename-prop src --
34
34
  --component=DataGrid --from=prop --to=newProp
35
35
  ```
36
36
 
@@ -63,13 +63,13 @@ npx @mui/x-codemod@next <transform> <path> --jscodeshift="--printOptions='{\"quo
63
63
 
64
64
  A combination of all important transformers for migrating v7 to v8.
65
65
  ⚠️ This codemod should be run only once.
66
- It runs codemods for all MUI X packages (Data Grid, Date and Time Pickers, Tree View, and Charts).
66
+ It runs codemods for all MUI X packages (Data Grid, Date and Time Pickers, Tree View, and Charts).
67
67
  To run codemods for a specific package, refer to the respective section.
68
68
 
69
69
  <!-- #default-branch-switch -->
70
70
 
71
71
  ```bash
72
- npx @mui/x-codemod@next v8.0.0/preset-safe <path|folder>
72
+ npx @mui/x-codemod@latest v8.0.0/preset-safe <path|folder>
73
73
  ```
74
74
 
75
75
  The corresponding sub-sections are listed below
@@ -88,7 +88,7 @@ The `preset-safe` codemods for Tree View.
88
88
  <!-- #default-branch-switch -->
89
89
 
90
90
  ```bash
91
- npx @mui/x-codemod@next v8.0.0/tree-view/preset-safe <path|folder>
91
+ npx @mui/x-codemod@latest v8.0.0/tree-view/preset-safe <path|folder>
92
92
  ```
93
93
 
94
94
  The list includes these transformers
@@ -137,7 +137,7 @@ The `preset-safe` codemods for Charts.
137
137
  <!-- #default-branch-switch -->
138
138
 
139
139
  ```bash
140
- npx @mui/x-codemod@next v8.0.0/charts/preset-safe <path|folder>
140
+ npx @mui/x-codemod@latest v8.0.0/charts/preset-safe <path|folder>
141
141
  ```
142
142
 
143
143
  The list includes these transformers
@@ -318,7 +318,7 @@ The `preset-safe` codemods for Data Grid.
318
318
  <!-- #default-branch-switch -->
319
319
 
320
320
  ```bash
321
- npx @mui/x-codemod@next v8.0.0/data-grid/preset-safe <path|folder>
321
+ npx @mui/x-codemod@latest v8.0.0/data-grid/preset-safe <path|folder>
322
322
  ```
323
323
 
324
324
  The list includes these transformers
@@ -346,7 +346,7 @@ Remove feature flags for stabilized `experimentalFeatures`.
346
346
  <!-- #default-branch-switch -->
347
347
 
348
348
  ```bash
349
- npx @mui/x-codemod@next v8.0.0/data-grid/remove-stabilized-experimentalFeatures <path>
349
+ npx @mui/x-codemod@latest v8.0.0/data-grid/remove-stabilized-experimentalFeatures <path>
350
350
  ```
351
351
 
352
352
  #### `remove-props`
@@ -370,7 +370,7 @@ The list includes these props:
370
370
  <!-- #default-branch-switch -->
371
371
 
372
372
  ```bash
373
- npx @mui/x-codemod@next v8.0.0/data-grid/remove-props <path>
373
+ npx @mui/x-codemod@latest v8.0.0/data-grid/remove-props <path>
374
374
  ```
375
375
 
376
376
  #### `rename-props`
@@ -412,7 +412,7 @@ The list includes these props:
412
412
  <!-- #default-branch-switch -->
413
413
 
414
414
  ```bash
415
- npx @mui/x-codemod@next v8.0.0/data-grid/rename-props <path>
415
+ npx @mui/x-codemod@latest v8.0.0/data-grid/rename-props <path>
416
416
  ```
417
417
 
418
418
  #### `rename-imports`
@@ -430,7 +430,7 @@ This codemod renames the imports of the Data Grid components. The list includes
430
430
  <!-- #default-branch-switch -->
431
431
 
432
432
  ```bash
433
- npx @mui/x-codemod@next v8.0.0/data-grid/rename-imports <path>
433
+ npx @mui/x-codemod@latest v8.0.0/data-grid/rename-imports <path>
434
434
  ```
435
435
 
436
436
  #### `reform-row-selection-model`
@@ -453,7 +453,7 @@ Reforms the controlled `rowSelectionModel` prop value to the new one.
453
453
  <!-- #default-branch-switch -->
454
454
 
455
455
  ```bash
456
- npx @mui/x-codemod@next v8.0.0/data-grid/reform-row-selection-model <path>
456
+ npx @mui/x-codemod@latest v8.0.0/data-grid/reform-row-selection-model <path>
457
457
  ```
458
458
 
459
459
  #### `rename-package`
@@ -468,7 +468,7 @@ Reorganizes the imports moved from `@mui/x-data-grid-pro` and `@mui/x-data-grid-
468
468
  <!-- #default-branch-switch -->
469
469
 
470
470
  ```bash
471
- npx @mui/x-codemod@next v8.0.0/data-grid/rename-package <path>
471
+ npx @mui/x-codemod@latest v8.0.0/data-grid/rename-package <path>
472
472
  ```
473
473
 
474
474
  #### `add-showToolbar-prop`
@@ -487,7 +487,7 @@ Adds the `showToolbar` prop to the Data Grid components that are using `slots.to
487
487
  <!-- #default-branch-switch -->
488
488
 
489
489
  ```bash
490
- npx @mui/x-codemod@next v8.0.0/data-grid/add-showToolbar-prop <path>
490
+ npx @mui/x-codemod@latest v8.0.0/data-grid/add-showToolbar-prop <path>
491
491
  ```
492
492
 
493
493
  ### Pickers codemods
@@ -499,7 +499,7 @@ The `preset-safe` codemods for Pickers.
499
499
  <!-- #default-branch-switch -->
500
500
 
501
501
  ```bash
502
- npx @mui/x-codemod@next v8.0.0/pickers/preset-safe <path|folder>
502
+ npx @mui/x-codemod@latest v8.0.0/pickers/preset-safe <path|folder>
503
503
  ```
504
504
 
505
505
  The list includes these transformers
@@ -534,7 +534,7 @@ The list includes these transformers
534
534
  <!-- #default-branch-switch -->
535
535
 
536
536
  ```bash
537
- npx @mui/x-codemod@next v8.0.0/pickers/rename-adapter-date-fns-imports <path>
537
+ npx @mui/x-codemod@latest v8.0.0/pickers/rename-adapter-date-fns-imports <path>
538
538
  ```
539
539
 
540
540
  #### `rename-type-imports`
@@ -568,7 +568,7 @@ Renames:
568
568
  <!-- #default-branch-switch -->
569
569
 
570
570
  ```bash
571
- npx @mui/x-codemod@next v8.0.0/pickers/rename-type-imports <path>
571
+ npx @mui/x-codemod@latest v8.0.0/pickers/rename-type-imports <path>
572
572
  ```
573
573
 
574
574
  ## v7.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-codemod",
3
- "version": "8.0.0-beta.3",
3
+ "version": "8.0.0",
4
4
  "bin": "./codemod.js",
5
5
  "private": false,
6
6
  "author": "MUI Team",
@@ -30,7 +30,7 @@
30
30
  "@babel/traverse": "^7.27.0",
31
31
  "jscodeshift": "17.1.2",
32
32
  "yargs": "^17.7.2",
33
- "@mui/x-internals": "8.0.0-beta.3"
33
+ "@mui/x-internals": "8.0.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/jscodeshift": "^0.12.0",