Skip to content

Releases: dduan/TOMLDecoder

0.3.1

15 Dec 08:23
0181279
Compare
Choose a tag to compare
  • Fixed a bug where extending table via dotted key was not allowed (#54)
  • Declare support for Swift 6
  • Add experimental support for building with Bazel

0.3.0

20 Nov 00:10
9326b64
Compare
Choose a tag to compare
  • Lowercase "z" is now accepted as zero-timezone-offset indicator
  • Space is no longer accepted as an escaped character
  • Hex/Octal/Binary numbers with no digits surrounding _ is considered invalid
  • Comments or whitespace at start of document no longer causes parsing failure
  • TOML with invalid UTF-8 byte sequence will be rejected. Previously these have
    been decoded with the replacement character (U-FFFD).
  • Local date with a trailing T such as 2023-04-16T is considered invalid.
  • Day with value 00 is invalid.
  • Allow defining super table after it has been implicitly defined. For example,
    one could define [a.b.c], then later [a].
  • Using dotted keys to add up to a previously header-defined table is now
    invalid. For example, use [a.b.c] to create the table, and later have
    b.c = under [a].
  • A standalone carriage return is no longer considered a valid newline
  • Inline tables are now immutable
  • Mutating array of tables that were implicitly created (e.g. a = [{}]) is now
    invalid
  • Keys with spaces in between segments are now valid
  • Multiline strings can now have 1 or two quotes as valid content
  • Local date with a comment (1970-01-01 # some comment) is now accepted
  • Control characters (except taps) in comments are now invalid
  • Escaped CLRF character in multiline string is properly handled

0.2.2

10 May 07:36
a70a127
Compare
Choose a tag to compare
  • Fixed a bug when parsing float decimals (#47)
  • Add support for Windows

0.2.1

18 Jan 07:34
Compare
Choose a tag to compare
  • Include a new type DeserializationError. It contains information regarding
    deserialization.
  • Improve error reporting. After encountering one error, the parser will
    disgard characters until new line, and attempt to parse another top-level
    expression. This is more determinastic compared to previous recovery attempts.
  • Add more specific errors regarding missing pices at closing position. For
    example, string missing closing quotes, or table missing closing bracket.
    These errors will cause the parser to report detailed error message.
  • Fix a bug where newline characters sometimes are considered valid as part of
    basic string content.

0.2.0

13 Jan 07:37
Compare
Choose a tag to compare
  • Rewritten from scratch to support TOML Spec 1.0
  • Remove support for CocoaPods and Carthage
  • Remove dependency on NetTime, parser returns Foundation.Date and
    Foundation.DateComponents instead.
  • Remove SwiftPM dependency on the TOMLDeserializer packege. It has been
    merged into the same project.
  • Improved error reporting: a parsing error won't cause parsing to stop.
    Instead, the parser will attempt to parse as much as possible and report all
    errors it encounters.

0.1.6

21 May 06:51
Compare
Choose a tag to compare
Bump version to 0.1.6

0.1.5

14 Oct 07:16
Compare
Choose a tag to compare
Bumb release to 0.1.5

0.1.4

16 Sep 19:43
Compare
Choose a tag to compare

Swift 5.1 support

0.1.3

26 Mar 07:47
Compare
Choose a tag to compare
0.1.3 Pre-release
Pre-release

Swift 5 Support

0.0.3

12 Mar 06:34
18d3ed4
Compare
Choose a tag to compare
0.0.3 Pre-release
Pre-release

Added support for decoding NSNumber.