Changelog
All notable changes to this library will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[0.4.10] - 2023-05-01
Changed
- Use custom
IsEquivalentTocomparison method to preventGetHashCodeoverride warnings
Fixed
- Missing
.metafile
[0.4.9] - 2023-01-13
Fixed
TomlInlineAttributenow properly applied to complex types during serialization
[0.4.8] - 2023-01-13
Fixed
- Nested table and table array keys are now properly prefixed with the parent table key when serialized
- Empty table keys are no longer serialized (as they are not necessary)
- Nested tables and table arrays are now properly deserialized
[0.4.7] - 2023-01-09
Fixed
- Escape whitespace strings in non-multiline strings
- Escape
\fform-feed character in strings - Unescape whitespace chars in character and string arrays
- All code is now C# 7.3 and .NET Framework 4.6 compatible for Unity 2019.1+
[0.4.6] - 2023-01-04
Added
TomlCamelCaseAttributecustom attributeTomlPascalCaseAttributecustom attributeTomlSnakeCaseAttributecustom attribute (allow for uppercase)TomlKebabCaseAttributecustom attribute
Removed
TomlCasingAttributecustom attribute in favor of specific ones
[0.4.5] - 2023-01-04
Added
TomlHexNumberAttributecustom attributeTomlOctalNumberAttributecustom attributeTomlBinaryNumberAttributecustom attributeTomlDateTimeFormatAttributecustom attribute
Removed
TomlNumberFormatAttributecustom attribute in favor of specific ones
[0.4.4] - 2023-01-02
Added
- Serialization support for
PositiveInfinity,NegativeInfinityandNaNvalues - Deserialization support for
PositiveInfinity,NegativeInfinityandNaNvalues TomlNumberFormatAttributefor serializing integer values in different formats- Deserialize
hexinteger values (e.g.0xdead_beef) - Deserialize
octinteger values (e.g.0o755) - Deserialize
bininteger values (e.g.0b1101010) - Unit tests for number formats and digit separators (e.g.
1_000_000)
[0.4.3] - 2022-12-31
Added
TomlMultilineAttributecan be applied to arrays and lists to serialize them as multiline TOML arraysTomlLiteralAttributecan be applied to lists of strings to serialize them as TOML literal stringsTomlLiteralAttributecan be applied to dictionaries of strings to serialize them as TOML literal strings
[0.4.2] - 2022-12-31
Added
- Deserialization support for multiline arrays (including jagged arrays)
Fixed
- Allow trailing commas for arrays
[0.4.1] - 2022-12-30
Added
TomlLiteralAttributecustom attribute for serializing literal stringsTomlMultilineAttributecustom attribute for serializing multi-line strings (including literals)TomlInlineAttributecustom attribute for serializing inline tables explicitlyTomlExpandAttributecustom attribute for serializing expanded tables explicitly- More unit tests for various serialization cases
Changed
TomlFloatvalues can be coerced into integer values (will be truncated)
[0.4.0] - 2022-12-30
Added
TomlKeyAttributecustom attribute for overriding the TOML key of a fieldTomlCasingAttributecustom attribute for overriding the TOML key casing of an object or field
Fixed
- Excessive escaping of strings in TOML output
[0.3.5] - 2022-12-29
Added
- Deserialization of multiline basic strings using
"""syntax - Deserialization of multiline literal strings using
'''syntax - Deserialization of unicode escape sequences in basic strings using
\uXXXXsyntax - More documentation on deserialization rules
- Proper escaping of serialized strings
Changed
- Updated icons for
TomlImporterandTomlExportercomponents
Fixed
- Now properly ignores inline comments when parsing TOML
- Ignore escape sequences in literal strings
[0.3.4] - 2022-12-28
Added
- Serialization of jagged arrays
- Unit tests for jagged arrays
Changed
- Made
HasDefaultConstructormethod private, as it is an internal helper method
Fixed
- Escaping of quoted strings
[0.3.3] - 2022-12-27
Added
TomlImportercomponent to import TOML files into Unity objects- Custom editor for
TomlExportercomponent - Custom editor for
TomlImportercomponent - Sample scene for
TomlImportercomponent - Icons for
TomlExporterandTomlImportercomponents
Changed
- Renamed
sourceObjecttotargetObjectforTomlExportercomponent - Removed
outputDirectoryfromTomlExportercomponent - Renamed
defaultFilenametooutputFileforTomlExportercomponent - Updated documentation
[0.3.2] - 2022-12-27
Added
- Unit tests for bidirectional serialization to and from TOML
- Support for serializing nested objects using dot (
.) notation
Fixed
- Serialization of arrays and lists containing
nullvalues - Serialization of mixed arrays and lists containing nested arrays and lists
- Serialization of mixed dictionaries containing arrays and lists
[0.3.1] - 2022-12-26
Fixed
- Serialization order of tables and arrays within another table
[0.3.0] - 2022-12-26
Added
Deserializemethods forTomlSerializerstatic class- Unit tests for
Deserializemethods - Unit tests for
Serializemethods - Updated documentation
Changed
Serializenow only serializesIListinstead ofIEnumerablefields
Fixed
- Escape double quotes and backslashes in serialized strings
[0.2.0] - 2022-12-21
Added
TomlExportercomponent for exporting TOML files from Unity objects- Documentation for
TomlExportercomponent - Exporter sample scene
- Serializer sample scene
Fixed
TomlSerializernot putting a new line space between tables
[0.1.0] - 2022-12-20
Added
TomlSerializerclass for serializing objects to TOML format- Unit tests for
TomlSerializerclass - Documentation for
TomlSerializerclass - Documentation for serialization rules
- Documentation for supported types