All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
1.0.0 - 2018-02-20
- Linux support
- Updated to Swift 4.0.3
- Significant performance improvements
- Move equatable == method to a static member to better conform with Swift3 conventions
- SetValueProtocol method renamed from func setValue(key: , value: ) to func set(value:, for:)
- Add support for running tests from XCode
- Updated examples in README.md to reflect current API
- Update String handling to not use .characters view per Swift4 conventions
- Use range(at:) instead of rangeAt(_:)
0.4.0 - 2016-08-24
- Serialize a
Toml
object to a valid TOML string - Resolve the full key path to tables through
prefixPath: [String]
- All accessors have [String] and String... (variadic) based variants
- Issue #4 All accessor methods now return
Optionals
and do not throw. Notably, this means thatTomlError.KeyError
is no longer thrown if a missing key is requested. Toml.keys
removed; use:keyNames: Set<[String]>
to access key namestableNames: Set<[String]>
is now part of the public API for accessing table namesToml.description
now returns a valid TOML stringToml.setValue(_:[String])
is now part of the public APIToml.float
has been removed
0.3.1 - 2016-08-23
hasKey(_ key: [String]) throws -> Bool
changed tohasKey(key: [String], includeTables: Bool = true) throws -> Bool
to support inclusion of inline tables as valid key paths.hasKey(_ key: ...) throws -> Bool
now returns true if the key path refers to a table
- Issue #3
hasTable(_: [String])
now correctly returns true for inline tables table(_: String...)
now correctly returns a Toml table for the requested key path
0.3.0 - 2016-08-19
- Issue #2 Support for iterating over all tables at a given level with
tables(_: [String])
method. - Added public API call for retrieving a TOML table at a specified level with
table(from: [String])
method.
- Rename
arrayWithPath(keyPath: [String])
toarray(_: [String])
for consistency with the rest of the public API.
hasTable(_: [String])
now correctly returns true for implicitly defined tables.
0.2.0 - 2016-08-16
- Updated to Swift 3.0 preview 6
0.1.0 - 2016-08-14
- Parse TOML 0.4.0 files with Swift 3.0