Skip to content

v1.2.2

Latest

Choose a tag to compare

@jackpal jackpal released this 04 Dec 00:19
  • Return errors on integer and float32 overflows in Unmarshal (including float fallback and avoiding zero-value map flushes on error). Thanks to @amalsaidov (#26) for reporting the integer overflow issue.
  • Reject nil and typed-nil Unmarshal targets instead of panicking or silently succeeding.
  • Support pointer fields (*int, *string, *[]T, map[string]*T) without allocating on type mismatch.
  • Support []byte and named byte-slice types symmetrically in both Marshal and Unmarshal.
  • Respect bencode:"-" tags during Unmarshal.
  • Tighten RawMessage validation (require string dictionary keys; enforce int64 range in strict mode).
  • Align Decode with Unmarshal on uint64 integers and non-strict string lengths.