Skip to content

Releases: snappdevelopment/JsonTree

v2.2.0

18 Apr 05:28
9303c84
Compare
Choose a tag to compare

New:

  • Added a new parameter expandSingleChildren, which will automatically expand every child item that has no siblings until there are no children or multiple children. Similar to how some IDEs expand file trees when there is only one folder per level until there are none or multiple. The parameter defaults to false.

Bug fix:

  • Fixed the indent of the root elements end bracket to align it with the opening bracket

Other:

  • Dependency updates

v2.1.1

29 Mar 14:58
c94f9cb
Compare
Choose a tag to compare
  • Performance improvements
  • Dependency updates

v2.1.0

09 Mar 08:16
743aa35
Compare
Choose a tag to compare

New:

  • Adds a new parameter contentPadding which is applied to the internal LazyColumn. Defaults to PaddingValues(0.dp).

Behaviour change:

  • The onLoading Composable is not affected by the modifier parameter anymore. This avoids unexpected behavior in cases where the modifiers on JsonTree are not compatible with the modifiers used in the loading Composable and gives more flexibility for the loading UI.

v2.0.0

01 Mar 06:47
bac7bed
Compare
Choose a tag to compare

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

v2.0.0-SNAPSHOT

28 Feb 07:00
fb23a7c
Compare
Choose a tag to compare
v2.0.0-SNAPSHOT Pre-release
Pre-release

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 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

v1.0.1

25 May 11:21
63f8528
Compare
Choose a tag to compare
Version 1.0.1

v1.0.0

03 Apr 09:47
635e9c4
Compare
Choose a tag to compare
Version 1.0.0