Skip to content

Releases: davidecaroselli/jsonthis

v0.3.0

15 Apr 23:20
Compare
Choose a tag to compare

Highlights

  • The old JsonFieldFunction signature has been updated to JsonTraversalFn. This change impact custom serializers, field's visible parameter functions, and custom circular-reference serializers.
  • Jsonthis.toJSON() arguments have been updated replacing context with more future-proof ToJsonOptions and the JsonTraversalState optional argument has been added to allow for chained toJson() invocations by custom serializers.

Features

  • Rework JsonFieldFunction to JsonTraversalFn and JsonTraversalState (#5) [f029da6]
  • Replace context with ToJsonOptions in Jsonthis.toJSON() to support further customization (#4) [9a8299b]

Bug Fixes

  • Fix bug with duplicated property leading to incorrect circular reference detection.

v0.2.2

14 Apr 18:46
Compare
Choose a tag to compare

Features

  • Improve README.md with Table of Contents.

v0.2.1

14 Apr 09:43
Compare
Choose a tag to compare

Features

  • Add custom circular references serialization handler circularReferenceSerializer in JsonthisOptions.

Bug Fixes

  • Fix bug causing infinite recursion with circular references (#3) [d287941]

v0.2.0

13 Apr 21:11
Compare
Choose a tag to compare

Features

  • Add pascal casing option in JsonthisOptions class (#2) [5a2e9cd]
  • Improve README.md and source code documentation [79bba66] [5d79485]

v0.1.0

13 Apr 18:07
Compare
Choose a tag to compare

Features