Skip to content

Releases: jszwec/csvutil

Release v1.10.0

03 Feb 22:21
53deda7
Compare
Choose a tag to compare

What's Changed

  • feat: allow struct slice and struct array for Header and Encoder.EncodeHeader by @cia-rana in #70

New Contributors

Full Changelog: v1.9.0...v1.10.0

Release v1.9.0

11 Dec 03:21
4c3b8e6
Compare
Choose a tag to compare

Highlights

  • Added AlignRecord flag to Decoder

Release v1.8.0

26 Feb 01:53
0805d99
Compare
Choose a tag to compare

Highlights

  • Implement the new way of registering custom types using generics greatly improving performance and type safety (credit goes to encoding/json proposal golang/go#5901 for API design)
  • Deprecate Encoder.Register in favor of Encoder.WithMarshalers
  • Deprecate Decoder.Register in favor of Decoder.WithUnmarshalers
  • Go1.18 is now the minimum supported version

Release v1.7.1

29 Jun 22:08
2b7b86b
Compare
Choose a tag to compare

Highlights

  • Fix prefix order with inline tag (#54)

Release v1.7.0

27 May 02:09
7c7652d
Compare
Choose a tag to compare

Highlights

  • Export DecodeError that adds more context to the error message

Release v1.6.0

22 Nov 04:47
6bfc75a
Compare
Choose a tag to compare

Highlights

  • Add more context info when error happens during Unmarshal
  • Add SetHeader to Encoder for header overrides
  • Add NormalizeHeader to Decoder for normalizing header/column names
  • Minimal Go version is now Go1.8

Release v1.5.1

29 Aug 21:05
4f1aebe
Compare
Choose a tag to compare

Highlights

  • Adjust tests to pass on Go1.17+

Release v1.5.0

18 Feb 01:46
1726944
Compare
Choose a tag to compare

Highlights

  • Add Decoder option DisallowMissingColumns
  • Add MissingColumnsError type
  • MarshalerError now implements Unwrap method for errors package

Release v1.4.0

24 Jul 19:22
Compare
Choose a tag to compare

Highlights

  • Added Encoder.Register method
  • Added Decoder.Register method
  • Value receiver Unmarshalers/TextUnmarshalers are now properly called if they are under interface value
  • Pointer receiver Marshalers/TextMarshalers are now properly called if they are under interface value

Release v1.3.0

26 Feb 03:41
Compare
Choose a tag to compare

Highlights

  • Added inline tag
  • Decoder now sets pointer fields to nil on blank values
  • Encode and Decode now accept slices and arrays
  • Marshal and Unmarshal now accept arrays
  • Fixed omitempty for initialized pointers with default values
  • Fixed omitempty for initialized interface with default values
  • Improved UnmarshalTypeError error message