v2.0.0
This release adds a new feature to open or close nodes programmatically along with moving to the GitHub Actions/SonarCloud and refactoring that reduces the size of the package.
Open and close nodes programmatically
Now there is an ability to change the node openness state programmatically. To do it, you have to call the recomputeTree
method with a new opennessState
parameter. You have to specify an object that contains IDs of nodes you want to toggle as keys and their new openness state as values.
treeRef.current.recomputeTree({
opennessState: {
foo: true,
bar: false,
}
});
NOTE: If you specify both useDefaultOpenness
and opennessState
, opennessState
will be overridden by useDefaultOpenness
results.
Moving to SonarClound and GitHub Actions
Now the project uses GitHub Actions for CI along with SonarCloud for analyzing test coverage.
Reducing the package size
This release contains quite a big refactoring that deduplicates the common code for FixedSizeTree
and VariableSizeTree
. It also changes Typescript types a lot which is considered breaking changes and makes this release major.