toml 0.7.0
toml: ^0.7.0 copied to clipboard
Parser and encoder for TOML v0.4.0 (Tom's Obvious, Minimal Language) configuration files.
Changelog #
0.7.0 / 2021-01-17 #
This is a major update that does not only bring along many changes to the internal architecture of the library but also to its public interface.
- Removed the
TomlParserclass. UseTomlDocument.parseandTomlDocument.toMapinstead. - In preparation to support TOML v0.5.0 in an upcoming version of the library, the parser is now based on TOML's official ABNF.
- Removed the
TomlEncoderclass. UseTomlDocument.fromMapandTomlDocument.toStringinstead. - Removed the
toml.decoderandtoml.encoderlibraries. You should always use thetomllibrary instead. - Removed the
toml.loaderlibrary as well as thetoml.loader.*libraries. UseTomlDocument.loadinstead. In order to implement a custom loading mechanism, useTomlDocument.parseinstead. - Removed the
yamldependency. JSON and YAML documents cannot be loaded with this package anymore. - Renamed
TomlEncodabletoTomlEncodableValueandtoTomltotoTomlValue. - Added
TomlEncodableKeyinterface. Objects that implement this interface are allowed to be used as keys in hash maps instead of strings. TheirtoTomlKeymethod must return aTomlEncodeableKeyitself or a string that can be used as a TOML key. By defaulttoTomlKeyis implemented viatoTomlValue.
0.6.1 / 2020-11-19 #
- Upgraded dependencies.
0.6.0 / 2020-05-22 #
- Upgraded to Dart 2.
0.5.1 / 2017-06-19 #
- Upgraded dependencies.
0.5.0 / 2016-07-24 #
- Removed deprecated
use*ConfigLoaderfunctions. - Improved testing and added support for BurntSushi's
toml-testsuite.
0.4.0 / 2015-06-05 #
- Removed deprecated
toml.browserandtoml.serverlibraries. - Dropped support for
dart_config. There is now a customConfigLoaderinterface with two default implementations. - The
use*ConfigLoaderfunctions are still available for backward compatibility, but are deprecated and will be removed in the next release. Each of theConfigLoaderimplementations has a staticusemethod which you should use instead.
0.3.0 / 2015-04-08 #
- Introduced new
toml.loaderlibrary. - The
toml.browserandtoml.serverlibraries are now deprecated and will be removed in the next release. Use the newtoml.loaderlibrary instead.
0.2.0 / 2015-02-12 #
- Updated to v0.4.0 of the TOML spec.
- Added bare/quoted keys.
- Added inline table syntax.
- Allowed underscores in numbers.
- Removed forward slash as an escapable character.
0.1.1 / 2015-01-26 #
- Fixed links and markdown.
0.1.0 / 2015-01-23 #
- Initial version, implements v0.3.1 of the TOML spec.