Releases: TheElectronWill/night-config
Releases · TheElectronWill/night-config
2.1 Bugfix for ConfigSpec
Fix a ConcurrentModificationException that occurs when ConfigSpec.correct(Config) removes a value from the config.
2.1 Bugfix release
2.0 Bugfix for ConfigSpec
Fix a ConcurrentModificationException that occurs when ConfigSpec.correct(Config) removes a value from the config.
2.0 TOML bugfix release
Move SimpleCommentedConfig to the right package
SimpleCommentedConfig was in the default package. It has been moved to the package "com.electronwill.core".
Small bugfix release
Fixes issue #21: Exception when a comment is at the end of the file.
v2.1: Better comment management
- API not broken between 2.0 and 2.1.
- Add
getComments
andsetComments
which resolves #20 - Add method
clearComments
to clear the comments but not the values. - Add SimpleCommentedConfig: like SimpleConfig but with comments.
Version 2: Final 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
v2, beta 3: Conversion function in ObjectConverter, Javadoc build
- Method
removeComment
returns the previous comment - You can now use a conversion function when converting a configuration to an object (or vice-versa)
- The gradle build creates javadoc and sources jar files
- Code cleanup
Version 2, beta 2: Better conversion with commented configs
Changes since the last beta release:
- Wrapping a CommentedConfig with a ConversionTable now returns a CommentedConfig, so you don't lose the comments.
- New class CommentedConvertedConfig
- Code decuplication
- Improved TOML parser