Skip to content

Releases: pelletier/go-toml

v1.1.0

18 Jan 23:05
acdc450
Compare
Choose a tag to compare

What's new

  • Comment annotation for Marshal #185
  • Support single-quoted keys #193
  • Add Encoder / Decoder capabilities #192
  • Encode can encode arrays on multiple lines #203
  • Support for hexadecimal, octal, and binary literals #205
  • Unmarshal into custom number types and check for overflows #209
  • Support for special float values (inf and nan) #210

Fixed Bugs

  • Unmarshal should report a type mismatch as an error #196
  • Actually show the error message from an Error token #208

All changes: v1.0.1...v1.1.0

v1.0.1

01 Oct 19:11
Compare
Choose a tag to compare

What's new

Fixed Bugs

  • Fix float to string encoding. #172
  • Fix example in the README. #187
  • Fix Marshal examples. #178

All changes: v1.0.0...v1.0.1

v1.0.0

31 May 01:52
Compare
Choose a tag to compare

Breaking changes

  • Renamed TomlTree to Tree. #159
  • Query support moved to its own sub-package, with slight API changes. #152

What's new

  • Reflection-based Marshaling / Unmarshaling. #149
  • Use String() method when available when constructing a Tree from a map. #142
  • Several performance improvements.

Fixed Bugs

  • Support lower-case unicode sequences. #140
  • Fix error message for TestMissingFile on Windows. #148
  • Fix incorrect slice type in TreeFromMap. #145
  • WriteTo and tomll now emit empty tables to match the TOML specification. #169

All changes: v0.5.0...v1.0.0

v0.5.0

08 Mar 17:38
Compare
Choose a tag to compare

What's new

  • TomlTree.ToString() now returns an error instead of panicking. #117
  • Overhauled TOML encoding logic, more robust and stable. #133
  • New TomlTree.WriteTo(io.Writer) (int64, error) method. It encodes a tree to TOML and writes it to the given Writer. #133
  • Go 1.8 support. #129

Fixed Bugs

  • Fix bug that produced an error when a comment is after a value. #122
  • Fix syntax errors in the documentation. #126
  • Fix compatibility with go-buffruneio v0.2.0. #131

All changes: v0.4.0...v0.5.0

v0.4.0

03 Dec 10:24
Compare
Choose a tag to compare

What's new

  • New tool: tomljson. It provides a CLI tool similar to tomll to read TOML files and output their JSON representation. #85
  • Queries now support \U notation. #88

Fixed Bugs

  • Fix ToMap conversion of arrays of tables. #83
  • Empty quoted keys "" are now valid. #97
  • Fix conversion of all numeric types. #102
  • Fix conversion of map[string][string] and map[interface{}]interface{}. #103
  • Fix incorrect wrapping of []*TomlTree in a TomlValue. #110
  • Fix output of ToString to allow re-parsing it. #111

All changes: v0.3.5...v0.4.0

v0.3.5

16 Jul 12:28
Compare
Choose a tag to compare

What's new

Fixed Bugs

  • Don't hang when reading an invalid value. #76

v0.3.4

25 Apr 12:31
Compare
Choose a tag to compare

What's new

  • TomlTree.ToMap() convert a TomlTree to a regular map[string]interface{} #59

Fixed Bugs

  • Query matcher doesn't handle arrays tables #52
  • Update query documentation #54
  • Fix multiline strings #62

v0.3.3

20 Feb 12:21
Compare
Choose a tag to compare

Fixed Bugs

  • Fix support for CRLF line endings (Windows). #51 2df0835

v0.3.2

31 Jan 16:25
Compare
Choose a tag to compare

What's new

  • The interface now accepts any type implementing io.Reader: toml.LoadReader(reader io.Reader). The usual entry point toml.Load is still accepting a string in order not to break compatibility. #47 f963bc3

Fixed Bugs

  • Fix formatting of some error messages raised when using matching. 8176e30

v0.3.1

02 Dec 08:59
Compare
Choose a tag to compare

Fixed Bugs

  • Don't crash when assigning a group array to an existing array a6c6ad1
  • Return a sensible error when using an empty key fa1c2ab
  • Improve checking during numbers parsing (especially the use of _ in number literals) 6d743bb