v2.0.0-beta.4
Pre-release
Pre-release
Almost 5 months after the previous v2.0.0-beta.3 release, this beta version contains a lot of bug fixes, effectively closing all the known issues on v2 so far. It creates a solid foundation on the way to the stable release. Thank you to everybody involved!
What's Changed
What's new
- Provide own implementation of Local* by @pelletier in #558
- Decode: convert ints if target type is compatible by @pelletier in #594
- Decode: support lowercase 'T' and 'Z' in date-time parsing by @moorereason in #601
- Decode: preserve nanosecond precision when decoding time by @moorereason in #626
Performance
Fixed bugs
- Decode: don't panic on recursive structs by @pelletier in #557
- Decode: handle LocalTime to interface{} unmarshal by @kkHAIKE in #567
- Decode: make copy of non addressable values by @pelletier in #576
- Decode: don't crash on unterminated table key by @pelletier in #580
- Decode: fix non-terminated array error by @pelletier in #584
- Decode: don't crash on unterminated inline table by @pelletier in #587
- Decode: fix error reporting for last comments by @pelletier in #591
- Decode: don't overflow when parsing bad times by @pelletier in #593
- Decode: don't panic when date time is missing timezone by @RiyaJohn in #614
- Decode: fail when array is missing separator by @jidicula in #616
- Encode: make floats always contain a decimal point by @zostay in #615
- Decode: validate UTF-8 by @pelletier in #629
- Decode: validate dates by @jidicula in #622
- Encode: Follow RFC3339 spec for LocalTime by @jidicula in #632
- Decode: handle more cases when during float validation by @pelletier in #636
- Decode: Floats and integers parsing fixes by @pelletier in #638
- Decode: check for explicit tables on dotted keys by @pelletier in #639
- Decode: empty document should result in a map by @pelletier in #640
- Decode: don't panic when storing table in slice by @pelletier in #641
- Decode: use UnmarshalText for any type not just structs by @pelletier in #642
- Decode: properly handle multiline strings termination by @pelletier in #643
Documentation
- Add installation instructions by @pelletier in #572
- Update benchmarks results by @pelletier in #630
Other changes
- Go 1.17 release by @pelletier in #574
New Contributors
- @mmorel-35 made their first contribution in #570
- @kkHAIKE made their first contribution in #568
- @zostay made their first contribution in #615
Full Changelog: v2.0.0-beta.3...v2.0.0-beta.4