chore(main): release json-viewer 3.0.0 #320
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤖 I have created a release beep boop
3.0.0 (2023-04-25)
For the detail and migration guide, check out the Migrating from v2 to v3
Main Changes
This major focus on providing the ability to customize and extend data types. We also moved MUI to peerdependency to reflect the correct dependency relationship.
Dependencies
Starting from v3, dependencies from
Material-UI
are no longer included in the package's dependencies.Run this to install all the necessary dependencies.
Browser compatibility
This package was set to support
ES5
by default, but it's no longer the case.Since V3, as this package is using
Material-UI
, we have adjusted the browser compatibility to match the Material-UI's one.Use
defineDataType
instead ofcreateDataType
serialize
anddeserialize
have been added to datatype to support editing feature on any data type.As the result,
createDataType
has been renamed todefineDataType
and the signature has been changed to accept an object instead of a long list of arguments. For more information, please refer to Defining data types.Rename
displayObjectSize
todisplaySize
displayObjectSize
has been renamed todisplaySize
to describe the prop's purpose more accurately.Now you can provide a function to customize this behavior by returning a boolean based on the value and path.
Expose built-in type for extending
For more information, check Extend Built-in Data Types.
Features
createDataType
and change the signature of EditorComponent to only accept stringdefineEasyType
for easier customization (d727adb)displayObjectSize
todisplaySize
(2e5739c)Bug Fixes
@emotion/*
from jsx importSource (658fddb)This PR was generated with Release Please. See documentation.