This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
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 aList
instead of aMap
to preserve the item orderCodec.Error
was moved toParse.Error
since duplicate keys now trigger an error too