BetterCodable

Better Codable through Property Wrappers

MIT License

Stars
1.7K
Committers
15

Bot releases are hidden (Show)

BetterCodable - 0.4.0 Latest Release

Published by marksands over 3 years ago

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.
BetterCodable - 0.3.0

Published by marksands over 3 years ago

New

  • Adds LossyOptional #30. (@moyerr)

Enhancements

  • Lowers Swift version to 5.0 #27. (@abonham)
BetterCodable - 0.2.0

Published by marksands about 4 years ago

New

  • Adds LosslessArray.

Enhancements

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

Published by marksands over 4 years ago