Releases: ToruNiina/toml11
Releases · ToruNiina/toml11
version 4.2.0
Added
- Support std::optional members for TOML11_DEFINE_CONVERSION_NON_INTRUSIVE (#260) (by Ken Matsui @ken-matsui)
- Make thread_local for color_mode optional (#259) (#261) (by Ken Matsui @ken-matsui)
- add usage with CPM to README
- add explanation about
ordered_map
to README and update doc
Fixed
- Manually cast file size to std::streamsize (#258) (by Pino Toscano @pinotree)
- Typographical error in
table_format
output - Format an empty array specified as array-of-table in one line (#262)
- Added a missing include file (#263)
- Fix typos in documentation template syntax (#264) (by Jack W @jackwil1)
- Fix
toml::find_or
for deeply nested tables (#266)
version 4.1.0
Added
- support
std::get<std::u8string>
- support
toml::value(std::u8string)
- support
string_type = std::u8string
inconfig
type - support
operator<<(std::ostream&, toml::value)
- add
bool uppercase
totoml::integer_format
- support
template into_toml()
(#255) (#256) (by 萧迩珀 @CDK6182CHR)
Fixed
- Fix not checking for
\r\n
when parsing line comments (#252) (#253) (by Andreas Keller @andreaskeller96)
Changed
- speedup CI tests by multicore build
version 4.0.3
Fixed
- remove default
template
argument from forward declaration intoml_fwd.hpp
- enable to call
make_error_info
with multipletoml::value
s - enable to copy/move
result
withstd::reference_wrapper
- fix document generation error with the latest version of hugo
- fix several tiny errors that causes warning
- fix CMake compatibility warning
Changed
- add
-Werror
//WX
to build script - set MSVC warning level to
/W4
- add explanation of features to README
version 4.0.2
version 4.0.1
v4.0.1
Fixed
- Resolved naming conflict of
sematic_version::{major, minor}
with macros defined in<sys/sysmacro.h>
(#246 ) - Fixed the definition of
operator<<
indiscard_comments
(#248) (#247 ) (by @egorpugin) - Fixed the issue where the first blank line was not output in
format_location
- Fixed the issue where error messages pointing to
source_location
referring to lines containing only newline characters were displayed in two lines - Corrected links in the README
- Corrected the title of the README in
example/unicode
Added
- Configured CI to automatically update
single_include/toml.hpp
when changes are made tomain
version 4.0.0
Major version update!
Added features
- Added
toml::spec
to control TOML version - Added
toml::parse
variants, e.g. nothrow version, string version, and byte array version - Added formatting information to
toml::value
(e.g. inline tables, hex ints, etc). - Changed to saving comments in
toml::value
by default. - Added
single_include/toml.hpp
. - Enabled to use as a precompiled library.
- Added reference manual.
Breaking Changes
- Changed branch from
master
tomain
. - Changed template arguments of
toml::basic_value
. - Removed
toml::string
and explicitly store formatting information of all the values. - Modified arguments of
toml::format
to accommodate formatting information. - Changed default arguments of
toml::parse
to taketoml::spec
for specifying TOML version information. - Updated the interface of
toml::source_location
to accommodate multiline regions. - Modified arguments of
toml::format_error
. - Renamed
toml::format_underline
totoml::format_location
. - Unified control method of
toml::color
totoml::color::enable/disable()
.
version 3.8.1
Fixed
- stop using
strerror_x
variants intoml::parse(FILE*)
overload (#235)
version 3.8.0
Fixed
- Remove needless copy of
std::string
(#189) (by @muggenhor) - Report an error when integer overflows (#190)
- Report an error if a table is inserted to array-of-table
- Avoid self-assignment (#192)
- Fix typo in README (#194) (by @spiderman-idog)
- Avoid possible lexer truncation warnings (#196) (by @Jajauma)
- Do not set
CMAKE_CXX_STANDARD
in CMakeLists (#202) - Fix function name in error messages (#207) (by @cxw42)
- Fix invalid-utf8 error in literal string (#208) (by @cxw42)
- Enable to reopen implicitly defined table (#211)
- Fix long binary integer (#213)
- Fix for case when vector iterator is raw pointer (#214) (by @VestniK)
- Consider locale while serialization (#218)
- Do not move temporary object (#229)
- Escape control characters in keys (#230) (by @arp242)
- Fix function signature of
strerror_r
on macos (#231, #233) (by @Esonhugh) - Limit value recursion depth (#234)
Added
- Add escape sequence of ESC
- Support opting out of the default
[error]
prefix (#187) (by @ken-matsui) - Support changing color mode at runtime (#188) (by @ken-matsui)
- Add toml::parse(FILE*) overload (#193) (by @lukash)
- Add installation example with checkinstall and cmake (#225) (by @kfirgollan)
- Add fuzzing test based on ClusterFuzzLite (#232) (by @DavidKorczynski)
Changed
- Simplify unit test build (#200) (by @ctcmkl)
- Update github actions checkout v2 to v3 (#210) (by @offa)
- Update toml-test to v1.3.0
- Add note for C++17 feature in README (#217)
- Require CMake 3.5+ (#223) (by @offa)
- Remove travis ci setup (#224) (by @offa)
- Use secure version of
strerror
, instead ofstd
(#226)
version 3.7.1
Fixed
Fixed many corner-cases.
- spelling fixes (#167) (@karl-nilsson)
- fix condition of inlining while serialization (#169) (@ohdarling)
- fix warning on MSVC C26478 (#171) (@estshorter)
- replace
not
in README by!
(#172) (@estshorter) - fix many warnings around macro (#176) (@phlptp)
- fix g++ free-nonheap-object warning (#173) (#178) (@marascio)
- make installation optional if embedded (#185) (@ax3l)
- fix out_of_range exception with malformed toml file (#164)
- workaround __cplusplus macro on MSVC (#182)
- fix SFINAE condition while conversion (#177)
- reorder macro to detect MSVC earlier (#166)
- fix EOF after comment without line feed (#180)
- fix serialization of empty key
- fix serialization of NaN and Inf; use literal string instead of printf
- fix serialization of an array containing a table; if an array has a table and other value (e.g. integer), the table must be inlined.
- fix serialization of control chars in a string
- disallow non-existing datetime
- disallow 0x0A-1F in a string
- disallow invalid UTF-8 sequence in a string
- disallow subtable key conflict
- disallow null char at the end of input (#181)
- disallow mixing dotted key and inline table
- disallow mixing dotted key and table (#183)
- show better error message for a trailing comma in an inline table
version 3.7.0
Added
- add a macro
TOML11_PRESERVE_COMMENTS_BY_DEFAULT
- add
find_or(value, key1, key2, ..., keyN, opt)
(#156) - add a macro
TOML11_DEFINE_CONVERSION_NON_INTRUSIVE
(#139)
Fixed
- show filename of an empty file in error messages (#161) (@founderio)
- suppress warnings by
-Wshadow
(#158) - fix uneven spacing between tables (#152)
Changed
- define precedence between conversion function and constructor in
toml::get/find
(#159)