@iarna/toml
2.2.5 · 22 Apr 2020ISC12M / weekRepositoryHomepagenpmAtom feed
Upgrading @iarna/toml from 1.5.6 to 1.7.1
3 releases in betweenevery note read
Release by release
1.7.0 – 1.7.12 releases, nothing new or fixed in the notes
- new
TOML.stringify: Allow toJSON properties that aren't functions, to align with JSON.stringify's behavior.
- fixed
TOML.stringify: Don't use ever render keys as literal strings.
- fixed
TOML.stringify: Don't try to escape control characters in literal strings.
- new
6 other lines we could not sort, mostly version bumps
- 1.7.0
Date parsing was rewritten to not use regexps, resulting in a huge speed increase.
- 1.7.0
Strings of all kinds and bare keywords now use tight loops to collect characters when this will help.
- 1.7.0
Regexps in general were mostly removed. This didn't result in a speed change, but it did allow refactoring the parser to be a lot easier to follow.
- 1.7.0
The internal state tracking now uses a class and is constructed with a fixed set of properties, allowing v8's optimizer to be more effective.
- 1.7.0
Errors in the syntax of your TOML will now have the
fromTOMLproperty set to true. This is in addition to theline,colandposproperties they already have. - 1.6.0
New Export: TOML.stringify.value, for encoding a stand alone inline value as TOML would. This produces a TOML fragment, not a complete valid document.