PureConfig v0.5.0 Release Notes

Release Date: 2017-01-03 // over 7 years ago
    • ๐Ÿ†• New features
      • Sealed families are now converted to and from configs unambiguously by using an extra type field (customizable) in their config representation;
      • New CoproductHint trait which allows customization of the derived ConfigConvert for sealed families;
    • ๐Ÿ’ฅ Breaking changes
      • The default config representation for sealed families has changed:
      • By default pureconfig now expects to find a type field containing the lowercase simple class name of the type to be read. For example, for a family including DogConf and CatConf, pureconfig expects to find a type: "dogconf" field in the config file;
      • The old behavior can be restored by putting an implicit instance of FirstSuccessCoproductHint in scope (the migration to the new format is strongly recommended though, as the previous one may lead to ambiguous behavior);
      • More information about the default representation and on how to customize it can be seen in the documentation.
    • ๐Ÿ› Bug fixes
      • 0 is accepted again as a valid Duration in configs.