Skip to content

Version 2: Final Release!

Compare
Choose a tag to compare
@TheElectronWill TheElectronWill released this 19 Apr 15:07
· 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() 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