Skip to content

Releases

v2.4.3

Choose a tag to compare

@github-actions github-actions released this 05 Jul 02:35
071a36c

What's Changed

What's new

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

Other changes

New Contributors

Full Changelog: v2.4.2...v2.4.3

v2.4.2

Choose a tag to compare

@github-actions github-actions released this 24 Jun 03:18
25fc130

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

Choose a tag to compare

@github-actions github-actions released this 22 Jun 19:58
2586526

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

Choose a tag to compare

@github-actions github-actions released this 17 Jun 02:27
b99e8db

What's Changed

What's new

Performance

  • Reimplementation of the parser, decoder, and encoder by @pelletier Fable 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

Full Changelog: v2.3.1...v2.4.0

v2.3.1

Choose a tag to compare

@github-actions github-actions released this 02 May 11:38
f85c4e8

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

  • README.md: remove reference to old go versions and modules by @maruel in #1048

New Contributors

Full Changelog: v2.3.0...v2.3.1

v2.3.0

Choose a tag to compare

@github-actions github-actions released this 24 Mar 14:16
f36a3ec

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

Fixed bugs

Documentation

Other changes

New Contributors

Full Changelog: v2.2.4...v2.3.0

v2.2.4

Choose a tag to compare

@github-actions github-actions released this 07 Apr 14:20
ee07c92

Highlight

In this release, @mikattack removed the last dependency of go-toml! πŸŽ‰ (#981)

What's Changed

Documentation

Other changes

New Contributors

Full Changelog: v2.2.3...v2.2.4

v2.2.3

Choose a tag to compare

@github-actions github-actions released this 23 Aug 17:49
b730b2b

What's Changed

What's new

Performance

  • Remove unstable.Parser allocation when creating Decoder by @mvdan in #953

Fixed bugs

Documentation

Other changes

New Contributors

Full Changelog: v2.2.2...v2.2.3

v2.2.2

Choose a tag to compare

@github-actions github-actions released this 01 May 15:13
a3d5a0b

What's Changed

Fixed bugs

  • Fix race condition when tracking keys that have already been seen by @sysulq in #947

New Contributors

Full Changelog: v2.2.1...v2.2.2

v2.2.1

Choose a tag to compare

@github-actions github-actions released this 12 Apr 14:49
d00d2cc

What's Changed

Fixed bugs

  • Encode: fix indentation when marshalling slices as array tables by @daniel-weisse in #944

New Contributors

Full Changelog: v2.2.0...v2.2.1