- bbb1a40: Convert React packages to ESM
- Updated dependencies [bbb1a40]
-
81926f32: Remove UNSAFE method from react-json-tree
- Replace
shouldExpandNode
withshouldExpandNodeInitially
. This function is now only called when a node in the tree is first rendered, when before it would update the expanded state of the node if the results of callingshouldExpandNode
changed between renders. There is no way to replicate the old behavior exactly, but the new behavior is the intended behavior for the use cases within Redux DevTools. Please open an issue if you need a way to programatically control the expanded state of nodes. - Bump the minimum React version from
16.3.0
to16.8.0
so thatreact-json-tree
can use hooks. - Tightened TypeScript prop types to use
unknown
instead ofany
where possible and make the key path arrayreadonly
.
- Replace
- 8a7eae4: Add React 18 to peerDependencies range
- 4c9a890: Fix type import for Typescript versions <4.5
- Adds ESM build (#997) and switches the default export to a named export in order to ensure that the CommonJS output and the ESM output are interchangeable:
- import JSONTree from 'react-json-tree';
+ import { JSONTree } from 'react-json-tree';
0.15.0 (2021-03-06)
0.14.0 (2021-03-06)
0.13.0 (2020-09-07)
- react-dock: convert to TypeScript (#607) (78ded9e)
- redux-devtools: convert counter example to TypeScript (#616) (f1e3f4f)
- redux-devtools: convert todomvc example to TypeScript (#618) (37191e4)