Skip to content

Releases: thoth-org/Thoth.Json.Net

12.0.0

23 May 08:52
Compare
Choose a tag to compare

Changed

  • Upgrade to Newtonsoft.Json 13.0.1 to fix security vulnerability

11.0.0

08 Feb 09:57
Compare
Choose a tag to compare

Fixed

  • Guard decodeMaybeNull to evaluates the decoder only if the value is not null

10.1.0

01 Feb 14:20
Compare
Choose a tag to compare

Changed

  • Fix #51: Relax Fable.Core restriction to >= 3 allowing use of Fable.Core 4

9.0.0

09 Nov 19:36
Compare
Choose a tag to compare

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

8.0.0

05 Jan 11:10
Compare
Choose a tag to compare

Changed

  • BREAKING CHANGE: Represent sbyte using number instead of string.
  • BREAKING CHANGE: Represent byte using number instead of string.
  • BREAKING CHANGE: Represent int16 using number instead of string.
  • BREAKING CHANGE: Represent uint16 using number instead of string.

7.1.0

16 Sep 12:51
Compare
Choose a tag to compare

Fixed

  • Fix #42: Force Newtonsoft to consider the whole JSON at once and not token per token

7.0.0

12 Sep 14:44
Compare
Choose a tag to compare

Removed

6.0.0

12 Sep 14:46
Compare
Choose a tag to compare

Changed

  • PR #44: Port API change from Thoth.Json [v6.0.0] Expose the helpers module so it can be used for custom decoders (by @weslenng)
  • PR #43: Port API change from Thoth.Json [v5.1.0] Improve tree shaking for longs (by @weslenng)

Fixed

  • Fix #30: Fix Decode.Auto support for StringEnum

5.0.0

15 Oct 18:40
Compare
Choose a tag to compare

Fixed

  • PR #39: optionalAt now returns Ok None even when the path does not exist (by @rommsen)

4.0.0

04 Mar 19:53
Compare
Choose a tag to compare

Changed

  • isCamelCase is now replaced by caseStrategy=CamelCase

Added

  • Added caseStrategy that accept CamelCase | PascalCase | SnakeCase