Skip to content

tomlkt 0.3.2

Choose a tag to compare

@eav-eav-eav eav-eav-eav released this 14 Sep 05:22
89a7c5c

New

  • Add official JSON format like polymorphism serialization.
    • Add TomlConfigBuilder.classDiscriminator and @TomlClassDiscriminator for changing the key of the class discriminator.
  • Add support for accessing values of a TomlArray by index in TomlTable.get(keys).
  • Add a Toml.decodeFromString overload with keys parameter for only deserializing a certain part of a TOML file.
  • Add TomlArray(values) and TomlTable(entries) overloads to reduce the redundance when creating instances manually.

Change

  • Fix a bug in nested table encoding when the super-table is structured and the sub-table is unstructured.
  • Unify class and object serialization.
  • Major refactor in encoders and decoders.