Night Config Versions Save

Powerful java configuration library for toml, yaml, hocon, json and in-memory configurations

v3.6.7

8 months ago

More bug fixes :)

What's Changed

New Contributors

Full Changelog: https://github.com/TheElectronWill/night-config/compare/v3.6.6...v3.6.7

v3.6.6

1 year ago

Fixes include: #101, #113

v3.6.5

2 years ago

v3.6.4

2 years ago

Fix #87, fix #82

v3.6.3

4 years ago

See #77

v3.6.1

4 years ago

See #71 :smiley:

v3.6.0

5 years ago

This release resolves the issue #62 by adding two methods to FileConfigBuilder:

  • preserveInsertionOrder()
  • backingMapCreator(Supplier<Map<String, Object>>)

And some other things around the backing map of configurations.

Breaking change if you implement your own ConfigFormat (for advanced users)

If you implement your own ConfigFormat, please note that the interface now requires you to implement the new method createConfig(Supplier<Map<String, Object>>).

The two methods createConfig() and createConcurrentConfig() are now default methods and don't need to be implemented. They both call createConfig(Supplier) with the result of Config.getDefaultMapCreator(boolean).

You can read the detailed changes here.

I don't implement my own ConfigFormat, what happens to me? (for normal users)

If you don't implement your own ConfigFormat then everything is fine! Just enjoy the new features. :smiley:

v3.5.3

5 years ago

You can now use the following code to make all new configurations preserve the insertion order of their values.

Config.setInsertionOrderPreserved(true)

You can also provide your own map supplier ("map creator") on a case-by-case basis. See PR https://github.com/TheElectronWill/Night-Config/pull/61

Unlike wrapping a LinkedHashMap, these two new possibilities also work with nested configs.

v3.5.2

5 years ago

v3.5.1

5 years ago

Fix writing of enum values for TOML and JSON languages.