Migrating from v3 to v4
Update version
npm install @textea/json-viewer@^4.0.0
npm install @mui/material@^6.0.0
For MUI
users, you should also check the MUI v6 migration guide (opens in a new tab).
Breaking changes
Check browser compatibility
This package was set to support ES5
by default, but it's no longer the case.
Since V3 and V4, as this package is using Material-UI
, we have adjusted the browser compatibility to match the Material-UI's one (opens in a new tab).
MUI 6 also removed support for IE 11, so this package will no longer support IE 11. If you need to support IE 11, you can stay on v3. Note that it will not receive updates or bug fixes in the future.
Minimum TypeScript version
The minimum supported version of TypeScript has been increased from v3.5
to v4.7
.
Use defineDataType
instead of createDataType
createDataType
has been deprecated in v3 and removed in v4. Use defineDataType
instead.
For more information, please refer to V3 Migration Guide.