Skip to content

v0.2.2

Latest
Compare
Choose a tag to compare
@tindzk tindzk released this 14 Oct 12:26
· 2 commits to master since this release

Compatibility 💻

This release improves compliance with the TOML specification.

If you previously parsed TOML files containing inline tables spanning multiple lines, you will need to explicitly enable this feature from now on:

toml.Toml.parse("""key = {
  a = 23,
  b = 42,
}""", Set(toml.Extension.MultiLineInlineTables))

Multi-line tables are a language extension that are not part of the standard yet and were therefore disabled.

Furthermore, there were two minor user-facing changes:

  • NamedTable takes a List instead of a Map to preserve the item order
  • Codec.Error was moved to Parse.Error since duplicate keys now trigger an error too

Changes ⭐

  • Rules: Fix parsing of floating point numbers (#12)
  • Embed: Forbid duplicate keys (#13)
  • Introduce language extension for multi-line inline tables (#15)
  • Build: Update dependencies (#17)
  • Build: Retrieve version from Git tag (#17)