|
| 1 | +import Table from '@mui/material/Table'; |
| 2 | +import TableBody from '@mui/material/TableBody'; |
| 3 | +import TableCell from '@mui/material/TableCell'; |
| 4 | +import TableContainer from '@mui/material/TableContainer'; |
| 5 | +import TableHead from '@mui/material/TableHead'; |
| 6 | +import TableRow from '@mui/material/TableRow'; |
| 7 | +import Paper from '@mui/material/Paper'; |
| 8 | + |
1 | 9 | # Migrating from 0.11.x to 0.12+
|
| 10 | + |
| 11 | +As 0.12+ is not backward compatible with 0.11.x, below is a quick mapping |
| 12 | +table to transform 0.11.x to 0.12+ |
| 13 | + |
| 14 | +<TableContainer> |
| 15 | + <Table sx={{ minWidth: 650 }} aria-label="simple table"> |
| 16 | + <TableHead> |
| 17 | + <TableRow> |
| 18 | + <TableCell align="center">0.11.x</TableCell> |
| 19 | + <TableCell align="center">0.12+</TableCell> |
| 20 | + <TableCell align="center">Note</TableCell> |
| 21 | + </TableRow> |
| 22 | + </TableHead> |
| 23 | + <TableBody> |
| 24 | + {[ |
| 25 | + {"0.11.x": "import { createFFmpeg } from '@ffmpeg/ffmpeg'", "0.12+": "import { FFmpeg } from '@ffmpeg/ffmpeg'", note: ""}, |
| 26 | + {"0.11.x": "createFFmpeg()", "0.12+": "new FFmpeg()", note: "argumens of createFFmpeg() is moved to ffmpeg.load()"}, |
| 27 | + {"0.11.x": "await ffmpeg.load()", "0.12+": "await ffmpeg.load()", note: ""}, |
| 28 | + {"0.11.x": "await ffmpeg.run(...args)", "0.12+": "await ffmpeg.exec([...args])", note: ""}, |
| 29 | + {"0.11.x": "ffmpeg.FS.writeFile()", "0.12+": "await ffmpeg.writeFile()", note: ""}, |
| 30 | + {"0.11.x": "ffmpeg.FS.readFile()", "0.12+": "await ffmpeg.readFile()", note: ""}, |
| 31 | + {"0.11.x": "ffmpeg.exit()", "0.12+": "await ffmpeg.terminate()", note: ""}, |
| 32 | + {"0.11.x": "ffmpeg.setLogger()", "0.12+": "ffmpeg.on(\"log\", () => {})", note: ""}, |
| 33 | + {"0.11.x": "ffmpeg.setProgress()", "0.12+": "ffmpeg.on(\"progress\", () => {})", note: ""}, |
| 34 | + {"0.11.x": "import { fetchFile } from '@ffmpeg/ffmpeg'", "0.12+": "import { fetchFile } from '@ffmpeg/util'", note: ""}, |
| 35 | + ].map((row) => ( |
| 36 | + <TableRow |
| 37 | + key={row['0.11.x']} |
| 38 | + > |
| 39 | + <TableCell component="th" scope="row"> |
| 40 | + {row['0.11.x']} |
| 41 | + </TableCell> |
| 42 | + <TableCell align="left">{row['0.12+']}</TableCell> |
| 43 | + <TableCell align="left">{row.note}</TableCell> |
| 44 | + </TableRow> |
| 45 | + ))} |
| 46 | + </TableBody> |
| 47 | + </Table> |
| 48 | +</TableContainer> |
0 commit comments