Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

Latest commit

 

History

History
141 lines (87 loc) · 3.63 KB

CHANGELOG.md

File metadata and controls

141 lines (87 loc) · 3.63 KB

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.1] - 2022-12-30

Added

  • TomlLiteralAttribute custom attribute for serializing literal strings
  • TomlMultilineAttribute custom attribute for serializing multi-line strings (including literals)
  • TomlInlineAttribute custom attribute for serializing inline tables explicitly
  • TomlExpandAttribute custom attribute for serializing expanded tables explicitly
  • More unit tests for various serialization cases

Changed

  • TomlFloat values can be coerced into integer values (will be truncated)

[0.4.0] - 2022-12-30

Added

  • TomlKeyAttribute custom attribute for overriding the TOML key of a field
  • TomlCasingAttribute custom 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 \uXXXX syntax
  • More documentation on deserialization rules
  • Proper escaping of serialized strings

Changed

  • Updated icons for TomlImporter and TomlExporter components

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 HasDefaultConstructor method private, as it is an internal helper method

Fixed

  • Escaping of quoted strings

[0.3.3] - 2022-12-27

Added

  • TomlImporter component to import TOML files into Unity objects
  • Custom editor for TomlExporter component
  • Custom editor for TomlImporter component
  • Sample scene for TomlImporter component
  • Icons for TomlExporter and TomlImporter components

Changed

  • Renamed sourceObject to targetObject for TomlExporter component
  • Removed outputDirectory from TomlExporter component
  • Renamed defaultFilename to outputFile for TomlExporter component
  • 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 null values
  • 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

  • Deserialize methods for TomlSerializer static class
  • Unit tests for Deserialize methods
  • Unit tests for Serialize methods
  • Updated documentation

Changed

  • Serialize now only serializes IList instead of IEnumerable fields

Fixed

  • Escape double quotes and backslashes in serialized strings

[0.2.0] - 2022-12-21

Added

  • TomlExporter component for exporting TOML files from Unity objects
  • Documentation for TomlExporter component
  • Exporter sample scene
  • Serializer sample scene

Fixed

  • TomlSerializer not putting a new line space between tables

[0.1.0] - 2022-12-20

Added

  • TomlSerializer class for serializing objects to TOML format
  • Unit tests for TomlSerializer class
  • Documentation for TomlSerializer class
  • Documentation for serialization rules
  • Documentation for supported types