Repository navigation
Releases
v2.4.3
What's Changed
What's new
- Add RawMessage marshal support to unstable by @pelletier in #1084
Fixed bugs
- Fix invalid TOML from commented multi-line values by @pelletier in #1081
- Deliver the whole document to a root Unmarshaler (#994) by @pelletier in #1083
- fix: report table placement errors with position and key context by @pelletier in #1086
- fix: do not recurse forever on recursively embedded structs by @pelletier in #1087
- fix: error instead of panic on nil unexported embedded pointer by @pelletier in #1089
- fix: bound array and inline table nesting depth to prevent stack-overflow DoS by @pelletier in #1092
Documentation
- unstable/kind: drop duplicate 'a' from LocalDate comment by @c-tonneslan in #1062
Other changes
- perf: avoid interface boxing when decoding date/time values by @nishantmehta in #1085
New Contributors
- @nishantmehta made their first contribution in #1085
- @c-tonneslan made their first contribution in #1062
Full Changelog: v2.4.2...v2.4.3
v2.4.2
What's Changed
Fixed bugs
- Fix decode of embedded structs tagged with options only (e.g.
,inline) by @pelletier in #1079
Full Changelog: v2.4.1...v2.4.2
v2.4.1
What's Changed
Fixed bugs
- Fix multiline string, array indentation, and omitempty behavior by @pelletier in #1076
Full Changelog: v2.4.0...v2.4.1
v2.4.0
What's Changed
What's new
- Support TOML v1.1.0 by @jcmfernandes, @pelletier in #1068
Performance
- Reimplementation of the parser, decoder, and encoder by
@pelletierFable 5 in #1067 - New benchmarks from dependent projects in #1067
Fixed bugs
- Populate DecodeError.Key() on type mismatch errors by @leno23 in #1064
- Contextualize redefinition errors as DecodeError by @leno23, @pelletier in #1069
- Report quoted string requirement for unquoted values by @leno23 in #1063
Documentation
- Explain omitempty behavior for time.Time fields by @leno23 in #1061
- Remove "Migrating from v1" section from README by @pelletier in #1070
New Contributors
- @leno23 made their first contribution in #1064
- @jcmfernandes made their first contribution in #1068
Full Changelog: v2.3.1...v2.4.0
v2.3.1
What's Changed
Fixed bugs
- Fix incorrect error positions in unstable parser Range() (#1047) by @pelletier in #1056
- fix: change DisallowUnknownFields error from "missing field" to "unknown field" by @Yanhu007 in #1054
Other changes
New Contributors
Full Changelog: v2.3.0...v2.3.1
v2.3.0
This is the first release built largely with the help of AI coding agents. Highlights include the complete removal of the unsafe package. go-toml is now fully safe Go code, with a geomean overhead of only ~1.4% vs v2.2.4 and zero additional allocations on benchmarks. This release also adds omitzero struct tag support, improves UnmarshalText/Unmarshaler handling for tables and array tables, and fixes several bugs including nil pointer marshaling, leap second handling, and datetime unmarshaling panics.
What's Changed
What's new
- marshal: don't escape quotes unnecessarily by @virtuald in #991
- Add
omitzerotag support by @NathanBaulch in #998 - Support custom IsZero() methods with omitzero tag by @pelletier in #1020
- UnmarshalText fallbacks to struct unmarshaling for tables and arrays by @pelletier in #1026
- [unstable] Support Unmarshaler interface for tables and array tables by @pelletier in #1027
Fixed bugs
- Add missing UnmarshalTOML call by @pelletier in #996
- Handle array table into an empty slice by @pelletier in #997
- Unwrap strict errors by @bersace in #1012
- Fix leap second handling found by fuzz by @pelletier in #1019
- Fix nil pointer map values not being marshaled by @pelletier in #1025
- Fix panic when unmarshaling datetime values to incompatible types (#1028) by @pelletier in #1029
- Fix parser error pointing to wrong line at EOF without trailing newline by @pelletier in #1041
Documentation
- Improve Unmarshaling README by @heckelson in #1016
- Create AGENTS.md guidelines file by @pelletier in #1017
Other changes
- Unsafe package removal by @pelletier in #1021
- Bump CI and test scripts to Go 1.26 by @pelletier in #1030
New Contributors
- @virtuald made their first contribution in #991
- @NathanBaulch made their first contribution in #999
- @bersace made their first contribution in #1012
- @flyn-org made their first contribution in #1013
- @heckelson made their first contribution in #1016
Full Changelog: v2.2.4...v2.3.0
v2.2.4
Highlight
In this release, @mikattack removed the last dependency of go-toml! π (#981)
What's Changed
Documentation
- Fix typos in comments and tests by @alexandear in #972
Other changes
- Replace
stretchr/testifywith an internal test suite by @mikattack in #981 - Update to go 1.24 by @pelletier in #982
New Contributors
- @alexandear made their first contribution in #972
- @mikattack made their first contribution in #981
Full Changelog: v2.2.3...v2.2.4
v2.2.3
What's Changed
What's new
- Allow
int,uint, andfloatas map keys by @daniel-weisse in #958
Performance
Fixed bugs
- Fix reflect.Pointer backward compatibility by @xxxVitoxxx in #956
Documentation
Other changes
- go.mod: bump minimum language version to 1.21 by @mvdan in #949
- Bump testing to go 1.23 by @pelletier in #961
New Contributors
- @mvdan made their first contribution in #949
- @testwill made their first contribution in #951
- @xxxVitoxxx made their first contribution in #956
Full Changelog: v2.2.2...v2.2.3
v2.2.2
v2.2.1
What's Changed
Fixed bugs
- Encode: fix indentation when marshalling slices as array tables by @daniel-weisse in #944
New Contributors
- @daniel-weisse made their first contribution in #944
Full Changelog: v2.2.0...v2.2.1