Skip to content

9.0.0

Compare
Choose a tag to compare
@MangelMaxime MangelMaxime released this 09 Nov 19:36
· 8 commits to main since this release

Fixed

  • BREAKING CHANGE: Encode sbyte, byte, int16, uint16, uint32 using integer representation instead of decimal.

    12u is represented using 12 instead of 12.0. I don't know why Newtonsoft.Json defaults to decimal representation for these types.

  • Fix path when auto decoding unions

  • Fix auto coders for nested anon records

Added

  • Add source link support.
  • Add Decode.map' and Encode.map to support Map<'Key, 'Value>
  • Add Decode.datetimeUtc, Decode.datetimeLocal
  • Add Encode.Auto.toString(value) which is equivalent to Encode.Auto.toString(0, value)
  • Add doc comment to Decode.fromValue, Decode.fromString, Decode.unsafeFromString
  • Add support for char
  • Add link to the "extra coders" section when coders fail for missing types information
  • Add Decode.andMap allowing to decoder large objects incrementally

Changed

  • Capture JsonException instead of JsonReaderException this seems to cover more cases (by @PierreYvesR)

Deprecated

  • Mark Decode.datetime as deprecated