Skip to content

Commit f57d0e6

Browse files
committed
release 2.2.0
1 parent c79349e commit f57d0e6

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 2.2.0
2+
3+
### New Features
4+
5+
- [Officially adds support for the React 19](https://github.com/AnyRoad/react-json-view-lite/pull/43)
6+
- Adds render for the `function` fields
7+
8+
### Bug Fixes
9+
10+
- [Fixes object type detection](https://github.com/AnyRoad/react-json-view-lite/pull/44)
11+
112
## 2.1.0
213

314
### New Features

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ npm install --save react-json-view-lite
4141

4242
Versions 2.x.x supports only React 18 and later. Please use 1.5.0 if your project uses React 16 or 17.
4343
Also version 2 provides better a11y support, collapsing/expanding and navigation through nested elements using arrow keys ("Space" button does not collapse/expand element anymore), but library size increased about 20%.
44-
If your project uses custom styles you might need to update the css for the `basicChildStyle` property like below:
44+
If your project uses custom styles you will need to add the css for the `childFieldsContainer` property like below:
4545

4646
```css
47-
.basic-child-style > ul {
47+
.child-fields-container {
4848
margin: 0;
4949
padding: 0;
5050
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-json-view-lite",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "JSON viewer component for React focused on performance for large volume input while still providing few customiziation features",
55
"homepage": "https://github.com/AnyRoad/react-json-view-lite",
66
"author": "AnyRoad",

src/DataTypeDetection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const isArray = (data: any): data is Array<any> => {
2323
};
2424

2525
export const isObject = (data: any): data is object => {
26-
return typeof data === "object" && data !== null;
26+
return typeof data === 'object' && data !== null;
2727
};
2828

2929
export const isNull = (data: any): data is null => {

0 commit comments

Comments
 (0)