Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Mar 06:47
· 144 commits to main since this release
bac7bed

New:

  • JsonTree got almost fully re-implemented with a different approach for better performance. While the first version was based on recursive rendering of Composables, the new version manages the json tree in a list and renders it in a LazyColumn
  • New parameter onLoading on JsonTree for a Composable which is rendered during initial loading
  • New parameter showIndices on JsonTree, which shows the index in front of each array element. Defaults to false.
  • New parameter showItemCount on JsonTree, which shows the amount of items in arrays and objects. Defaults to true.
  • New parameter indexColor on TreeColors for the newly added array indices

Breaking changes:

  • The new version uses a LazyColumn, which should not be placed in a another scrollable container
  • If you are using a custom instance of TreeColors, then you need to add a value for the new indexColor
  • Add the new parameter onLoading to JsonTree, which renders the given Composable during the initial loading
  • Compile SDK 34
  • JDK 17