3.7.0: NightConfig rejuvenated ✨ #171
TheElectronWill
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Major changes
FileWatchernow comes with out-of-the-box debouncing, which improves the performance of autoreloading and autosaving configurations ⚡, see Optimize the file watcher #148FileConfiginstances are now actually thread-safe and work better with autoreload, which should prevent most of the corruption issues 🛡️, see Improves thread-safety and ensures that FileConfigs reload properly #152serdepackage 🚀, see Serialization/deserialization revamped 🚀 #163.Unlike the old
ObjectConverter, the newObjectSerializerandObjectDeserializerare modular and extensible: you can register your own serializers and deserializers. Deserializers (config -> object) are chosen based on the generic type of the field to set and the type of the config value to deserialize. This allows for fine-grained deserialization. The oldObjectConverterstill works but is now deprecated. The goal is to remove the oldconversionpackage in version 4.0.0.NightConfig 3.7.0 is backward-compatible with previous releases, but I encourage you to upgrade to 3.7.0 in order to benefit from its many improvements.
Enhancements
conversionpackage; the newserdepackage supports multiple@SerdeAssertconditions out of the box)serdeDeserializer, automatically apply some "risky" conversions (e.g. long -> int) when it is not lossy, close ConfigSpec defineInRange doesn't play nicely with Long values #119Configstorage inConfigSpec, by @PaintNinja in Allow customConfigstorage inConfigSpec#168Bug fixes
ObjectConverterby @TheElectronWill in Serialization/deserialization revamped 🚀 #163New Contributors
Configstorage inConfigSpec#168Thank you everyone!
Full Changelog: v3.6.7...v3.7.0
This discussion was created from the release 3.7.0: NightConfig rejuvenated ✨.
Beta Was this translation helpful? Give feedback.
All reactions