Skip to content

Releases: TheElectronWill/night-config

2.1 Bugfix for ConfigSpec

02 Aug 23:56
Compare
Choose a tag to compare

Fix a ConcurrentModificationException that occurs when ConfigSpec.correct(Config) removes a value from the config.

2.1 Bugfix release

02 Aug 16:50
Compare
Choose a tag to compare

This is a bugfix release for the 2.1 branch. It resolves:

2.0 Bugfix for ConfigSpec

02 Aug 23:54
Compare
Choose a tag to compare

Fix a ConcurrentModificationException that occurs when ConfigSpec.correct(Config) removes a value from the config.

2.0 TOML bugfix release

02 Aug 16:47
Compare
Choose a tag to compare

This is a bugfix release for the 2.0 branch. It resolves the following issues, all related to the toml module:
#21, #22 , #23 and #24

Move SimpleCommentedConfig to the right package

26 Jun 16:46
Compare
Choose a tag to compare

SimpleCommentedConfig was in the default package. It has been moved to the package "com.electronwill.core".

Small bugfix release

08 Jun 16:32
Compare
Choose a tag to compare

Fixes issue #21: Exception when a comment is at the end of the file.

v2.1: Better comment management

26 Apr 18:40
Compare
Choose a tag to compare
  • API not broken between 2.0 and 2.1.
  • Add getComments and setComments 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!

19 Apr 15:07
Compare
Choose a tag to compare

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() to valueMap()
  • Renamed asUnmodifiable() to unmodifiable()
  • Renamed readFrom(File) to parse(File)
  • Renamed writeTo(File) to write(File)
  • Renamed ConfigParser.parseConfig to parse
  • Renamed ConfigWriter.writeConfig to write
  • 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

18 Apr 19:20
Compare
Choose a tag to compare
  • 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

17 Apr 15:24
Compare
Choose a tag to compare

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