kaml v0.20.0 Release Notes

Release Date: 2020-08-30 // over 3 years ago
  • What's changed

    ๐Ÿ†• New : YamlMap now has get(key) and getScalar(key) methods that return the YAML node or scalar value (respectively) in the map for key (#32 - thanks to @Vampire for the suggestion)

    ๐Ÿ†• New : it is now possible to change the indentation level and maximum scalar value width when encoding values to YAML (#33 - thanks to @Vampire for the suggestion)

    0๏ธโƒฃ Set encodingIndentationSize or breakScalarsAt on YamlConfiguration to alter the default values (indent by two spaces, and split scalars onto a new line at 80 characters).

    ๐Ÿ†• New : calling toString() on an exception now includes line and column numbers in the result, for example: com.charleskorn.kaml.YamlException at line 123, column 456: Something went wrong (#36 - thanks to @Vampire for the suggestion)

    ๐Ÿ”„ Changed : Kotlin 1.4's explicit API mode has been enabled. Some internal APIs that were previously exposed are now correctly marked as internal.

    If you were relying on these previously public APIs, please file an issue explaining your use case.

    โฌ†๏ธ Upgrading

    If you're using Gradle, reference kaml in your dependencies block like this:

    implementation("com.charleskorn.kaml:kaml:0.20.0")
    

    ๐Ÿš€ For other tools, refer to the Maven Central release page for more information.