Releases: pelletier/go-toml
Releases · pelletier/go-toml
v1.4.0
What's new
- Docker image for tools #269
- Allow unmarshaling top level maps #273
- Unmarshal handles custom key types convertible to string #276
All changes: v1.3.0...v1.4.0
v1.3.0
What's new
- Allow to change default tags for Decoder and Encoder #241
- Support time.duration #248
- Map camelCased keys to fields in structs #251
- Allow to marshal pointer to struct and map #247
- Support byte order mark #250
- Add Delete* functions to Tree #256
- Provide "default" tag for unmarshal #259
- Go 1.12 support #261
- Provide Go mod #265
- Option to keep fields ordered when marshaling struct #266
Fixed Bugs
- Fix path not found message on Windows #227
- Fix panic when type mismatch between toml and struct #236
- Fix integer-only keys in inline tables #224
All changes: v1.2.0...v1.3.0
v1.2.0
v1.1.0
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
v1.0.0
Breaking changes
- Renamed
TomlTreetoTree. #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 aTreefrom a map. #142 - Several performance improvements.
Fixed Bugs
- Support lower-case unicode sequences. #140
- Fix error message for
TestMissingFileon Windows. #148 - Fix incorrect slice type in
TreeFromMap. #145 WriteToandtomllnow emit empty tables to match the TOML specification. #169
All changes: v0.5.0...v1.0.0
v0.5.0
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 givenWriter. #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
What's new
- New tool:
tomljson. It provides a CLI tool similar totomllto read TOML files and output their JSON representation. #85 - Queries now support
\Unotation. #88
Fixed Bugs
- Fix
ToMapconversion 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]andmap[interface{}]interface{}. #103 - Fix incorrect wrapping of
[]*TomlTreein aTomlValue. #110 - Fix output of
ToStringto allow re-parsing it. #111
All changes: v0.3.5...v0.4.0