Skip to content

v2.0.2

Latest
Compare
Choose a tag to compare
@romshark romshark released this 30 Dec 14:58
· 3 commits to main since this release
  • fix: Passing types derived from string or []byte to Scan, ScanOne, Validate or ValidateOne caused a nil-pointer deref panic. This was caused by a bad design decision to allow [S ~string | []byte] and a default type-switch case missing. An iterator/validator instance is now dynamically allocated instead. jscan v3+ will no longer allow passing types like json.RawMessage and similar directly and will require the API user to convert explicitly.
  • perf: Number parsing performance has been improved slightly through refactoring.
  • perf: The size of an Iterator instance has been reduced by 8 bytes on 64-bit systems.
  • test: A false positive was fixed in the jsonnum benchmark.