Skip to content

Releases: charleskorn/kaml

0.50.0

21 Jan 21:52
bd2b8d4
Compare
Choose a tag to compare
  • New: add Yaml.decodeFromYamlNode() method to deserialize an object from a previously read YamlNode instance (#369 - thanks to @dellisd for the PR)
  • Updated: use kotlinx.serialization 1.4.1
  • Updated: use Kotlin 1.8.0
  • Updated: use snakeyaml-engine 2.6

0.49.0

04 Oct 06:14
Compare
Choose a tag to compare
  • Updated: use snakeyaml-engine 2.5.

0.48.0

06 Sep 00:44
feb92d2
Compare
Choose a tag to compare
  • Updated: use snakeyaml-engine 2.4.

    This improves support for some older versions of Android, amongst other improvements.

0.47.0

15 Aug 07:09
6271150
Compare
Choose a tag to compare
  • New: it is now possible to emit lists indented, rather than aligned with their parent (#317 - thanks to @Cloudate9 for the PR)

    For example, previously, kaml would produce output like this:

    list:
    - 1
    - 2
    - 3

    With this change, if you set the newly added sequenceBlockIndent property on YamlConfiguration to 2, the output would be: (notice the extra indentation for the list items)

    list:
      - 1
      - 2
      - 3
  • Updated: build against Kotlin 1.7.10.

0.46.0

23 Jun 07:38
804ceac
Compare
Choose a tag to compare
  • New: it is now possible to parse a string or stream to a YamlNode rather than decoding to a Kotlin object (#296 - thanks to @kitterion for the PR)
  • Updated: build against Kotlin 1.7.

0.45.0

05 Jun 06:24
1b26562
Compare
Choose a tag to compare
  • New: it is now possible to serialise comments for object properties by applying a YamlComment annotation to the property (#287 - thanks to @slava110 for the PR)

    For example, serializing this class:

    @Serializable
    data class Configuration(
        @YamlComment("The host to connect to")
        val hostname: String,
        @YamlComment("The port to connect to ")
        val port: Int
    )

    will result in output like:

    # The host to connect to
    hostname: my.server.com
    # The port to connect to
    port: 1234

0.44.0

13 May 22:17
db4a797
Compare
Choose a tag to compare
  • Updated: build against Kotlin 1.6.21
  • Updated: use kotlinx.serialization 1.3.3

0.43.0

12 Mar 01:41
78e07a0
Compare
Choose a tag to compare
  • New: it's now possible to emit plain (unquoted) string values with SingleLineStringStyle.Plain and MultiLineStringStyle.Plain (#253 - thanks to @nefilim for the PR)

  • ⚠️ Breaking change: YamlConfiguration.singleLineScalarStyle has been renamed to singleLineStringStyle (#253 - thanks to @nefilim for the PR)

0.42.0

02 Mar 21:26
e843342
Compare
Choose a tag to compare
  • New: it's now possible to use generic versions of encodeToStream and decodeFromStream (#246 / #248 - thanks to @FloEdelmann for the suggestion and PR)

0.41.0

01 Mar 02:23
2a83f2d
Compare
Choose a tag to compare
  • New: it is now possible to specify what style is used for single-line and multi-line scalar values (#245 and #247 - thanks to @nefilim and @peterfigure for the suggestion and PR)