Releases: no-problem-dev/swift-structured-data
Releases · no-problem-dev/swift-structured-data
Release list
3.0.1
Changed
- Builds and tests on Linux. The Bool discriminator went through
CFGetTypeID, which
corelibs-foundation does not expose; it now compares againstNSNumber(value: true)'s dynamic
type, which reports__NSCFBooleanon both platforms and rejects Int and Double on both.
3.0.0
Changed
- BREAKING — YAML constructs this parser does not model now throw instead of being silently dropped.
Tags, anchors, aliases, complex keys, and a%YAMLdirective for anything other than 1.2
previously produced a value that was not in the document —!!str 42came 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
Doublenow throws rather than returning infinity.
Infinity is not what1e400rounds to; it means the value is absent.
Added
ParseErrorcases naming the unsupported construct, so a caller can report which part of
the document it could not read.