Version 2: Final Release!
·
8 commits
to stable-2.x
since this release
Summary: Night-Config is now much more powerful and also more easy to use!
Changes since the previous big version (stable 1.x):
- Unmodifiable configurations
- Commented configurations. TOML and HOCON are the only formats supported.
- Better, easier conversions between plain objects and configurations
- Annotations for converting objects to and from configs: Path, AdvancedPath, Conversion, ForceBreakdown, Spec...
- New way to create a checked config:
Config.checked()
returns a checked view of the config UnmodifiableConfig.entrySet()
CommentedConfig.commentMap()
- Renamed
asMap()
tovalueMap()
- Renamed
asUnmodifiable()
tounmodifiable()
- Renamed
readFrom(File)
toparse(File)
- Renamed
writeTo(File)
towrite(File)
- Renamed ConfigParser.
parseConfig
toparse
- Renamed ConfigWriter.
writeConfig
towrite
- Optimized TOML parser
- More configurable parsers and writers, e.g. with IndentStyle and NewlineStyle.
- Javadoc and Sources jar files can be created, and are available through jitpack
Changes since the last beta version (2.0-beta3):
- A conversion function can no longer be used with the ObjectConverter
- Added Config.checked()
- Added UnmodifiableCommentedConfig.commentMap()
- Added UnmodifiableCommentedConfig.getOptionalComment(path)
- More powerful annotations for converting objects to configurations.
- Bugfixes