Skip to content

v0.3.0

Compare
Choose a tag to compare
@davidecaroselli davidecaroselli released this 15 Apr 23:20
· 25 commits to main since this release

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.