Skip to content

Releases: marksands/BetterCodable

0.4.0

10 Jul 20:42
Compare
Choose a tag to compare

New

  • Adds LosslessDecodingStrategy allowing you to create a custom variant for lossless decoding scenarios.
  • Adds ISO8601WithFractionalSecondsStrategy type when working with ISO601 dates with fractional seconds.

Enhancements

  • Codable types have been separated into Encodable and Decodable variants. This is helpful if you only need a property wrapper for decoding. Existing code will continue to work. (@yonaskolb)

Bug Fixes

  • LosslessValue was incorrectly parsing numeric 1 as true and would fail if this was expected to be parsed as a numeric type. #39

Breaking Changes

  • LosslessBoolValue has been split from LosslessValue when preserving boolean types is preferred.

0.3.0

06 Feb 21:38
9913396
Compare
Choose a tag to compare

New

Enhancements

0.2.0

28 Sep 19:56
866a1f2
Compare
Choose a tag to compare

New

  • Adds LosslessArray.

Enhancements

  • Extends LosslessValue usage outside of Codable. (@igorkulman)
  • Extends LosslessValue to decode Bool value from integers. (@serjooo)

0.1.0

01 Apr 20:02
3b91cd0
Compare
Choose a tag to compare
Merge pull request #17 from serjooo/master

Add support to DefaultCodable to default when key is not available