Skip to content

Releases: no-problem-dev/swift-structured-data

3.0.1

Choose a tag to compare

@github-actions github-actions released this 11 Aug 07:21

Changed

  • Builds and tests on Linux. The Bool discriminator went through CFGetTypeID, which
    corelibs-foundation does not expose; it now compares against NSNumber(value: true)'s dynamic
    type, which reports __NSCFBoolean on both platforms and rejects Int and Double on both.

3.0.0

Choose a tag to compare

@github-actions github-actions released this 11 Aug 04:43

Changed

  • BREAKING — YAML constructs this parser does not model now throw instead of being silently dropped.
    Tags, anchors, aliases, complex keys, and a %YAML directive for anything other than 1.2
    previously produced a value that was not in the document — !!str 42 came back as the
    number 42, and an alias came back as null. Returning an invented value is worse than
    refusing, because nothing downstream can tell the difference.
  • A floating-point literal that overflows Double now throws rather than returning infinity.
    Infinity is not what 1e400 rounds to; it means the value is absent.

Added

  • ParseError cases naming the unsupported construct, so a caller can report which part of
    the document it could not read.

2.0.0

Choose a tag to compare

@github-actions github-actions released this 19 Jul 12:55

Full Changelog: 1.4.1...2.0.0

1.4.1

Choose a tag to compare

@github-actions github-actions released this 19 Jul 08:57

Full Changelog: 1.4.0...1.4.1