@iarna/toml
2.2.5 · 22 Apr 2020ISC12M / weekRepositoryHomepagenpmAtom feed
2.2.5 is the newest release of 2.x.
In short
1 new5 fixed2 changed
Release note
Features
Types for typescript support, thank you @momocow!
Fixes
stringify: Always strip invalid dates. This fixes a bug where an
invalid date in an inline array would not be removed and would instead
result in an error.stringify: If an invalid type is found make sure it's thrown as an
error object. Previously the type name was, unhelpfully, being thrown.stringify: Multiline strings ending in a quote would generate invalid TOML.
parse: Error if a signed integer has a leading zero, eg,
-01or+01.parse: Error if _ appears at the end of the integer part of a float, eg
1_.0. _ is only valid between digits.
Fun
BurntSushi's comprehensive TOML 0.4.0 test suite is now used in addition to our existing test suite.
You can see exactly how the other JS TOML libraries stack up in testing
against both BurntSushi's tests and my own in the new
TOML-SPEC-SUPPORT doc.