Skip to content

v2.0.0

Compare
Choose a tag to compare
@Lodin Lodin released this 02 Aug 20:22
· 89 commits to master since this release

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.

Changes

  • Update README.md (#22 by @johannalee)
  • Allow updating node openness programmatically + global refactoring and dependecy updates (#23 by @Lodin).
  • Use GitHub actions and SonarCloud for testing and analysis (#24 by @Lodin).