Skip to content

v0.2.0

Choose a tag to compare

@bgotink bgotink released this 21 Dec 19:25
· 81 commits to main since this release
v0.2.0
367b240

What's Changed

The package now reads and writes KDL v2, a new version of the KDL language that's even better than v1.
Notable changes include

  • Strings no longer have to be quoted if they don't contain certain disallowed characters and if there can't be any confusion with other data types like numbers or keywords
    print to=stderr Hello World
    // is equivalent to
    print to="stderr" "Hello" "World"
  • Keywords are now prefixed with #: #true, #false, and #null
  • New keywords: #inf, #-inf, and #nan
  • Raw strings drop the r at the front, for example #"raw string"#
  • Strings are now split into two kinds: single-line strings with single quotes, or multiline strings with three quotes
  • Improved handling of whitespace throughout a KDL file

A new export @bgotink/kdl/v1-compat helps projects support both KDL v1 and v2 as well as automate the migration from v1 to v2.

Full Changelog: v0.1.6...v0.2.0