Skip to content

Latest commit

 

History

History
95 lines (63 loc) · 2.74 KB

File metadata and controls

95 lines (63 loc) · 2.74 KB

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

Added

Changed

Deprecated

Removed

Fixed

Changed

  • Remove duplicate fields to avoid unnecessary struct grows. (PR #38)
  • Reorder elements in structs to reduce memory. (PR #37)

Fixed

  • Fix to break out of endless loop. (PR #36)

Added

  • Added IsZeroer interface to allow custom types to report that they are not initialized. A structs field is not serialized if the omitempty struct tag is set and IsZero() returns true. #32

Fixed

  • Ensure Fold can be called when a value is given by value, but the Folder interface is implemented on the pointer type. #32

Added

  • Add optional support to JSON encoder to encode a NaN or Inf floating point value to null. (PR #28)

Fixed

  • Fix potential use after free in string and []byte conversions. (PR #21)

Added

  • Regenerate code with new stringer. (PR #9)
  • Add support for custom unfolders when generating gotype.Unfolder. (PR #14, PR #15, PR #17)
  • Add go.mod file

Added

  • Add Reset to gotype.Unfolder. (PR #7)

Added

  • Add SetEscapeHTML to json visitor. (PR #4)

Added

  • Add visitors.NilVisitor. (Commit ab1cb2d)

Changed

  • Replace code generator with mktmlp (github.com/urso/mktmpl). (Commit 0356386)
  • Introduce custom number parser. (Commit 41308dd)

Fixed

  • Fix gc failures by removing region allocator for temporary objects in decoder. Decoding into map[string]X with X being a custom go struct will require an extra alloc by now. (Commit 9b12176)
  • Fix invalid cast on pointer math. (Commit ea18344)

Added

  • Add struct tag option ",omitempty".
  • Add StringConvVisitor converting all primitive values to strings.
  • Move and export object visitor into visitors package

Fixed

  • Fix invalid pointer indirections in struct to array/map.