PureConfig v0.8.0 Release Notes

Release Date: 2017-08-27 // over 6 years ago
    • ๐Ÿ†• New features

      • loadConfig methods now allow loading any type from a config when using a namespace, and not only types represented by config objects;
      • ConfigFieldMapping now has a withOverrides method that allows users to easily define exceptional cases to an existing mapping;
      • ConfigReader and ConfigWriter for java.math.BigDecimal and java.math.BigInteger;
      • ConfigReader for Booleans allows reading them from "yes", "no", "on" and "off" strings;
      • ConfigReader and ConfigWriter for shapeless.HList;
      • ConfigReader for Scala tuples can now read from ConfigListss;
      • Added an experimental way to debug when a converter fails to be derived because an implicit is not found. See the documentation for more information on how to enable it.
    • ๐Ÿ’ฅ Breaking changes

      • ConfigWriter for tuples now writes them as ConfigLists, instead of a ConfigObject with keys _1, _2, and so on.
    • ๐Ÿ› Bug fixes

      • A breaking change introduced in v0.7.1 where loadConfigFromFiles stopped allowing missing files was reverted;
      • loadConfig methods no longer throw an exception when passed a namespace where one of the keys is not a config object;
      • The xmap of ConfigConvert and the map method of ConfigReader now wrap exceptions that the functions used to map might throw in a ConfigReaderFailure;
      • FieldCoproductHint now removes the disambiguating key from the config object before passing it to the reader of a coproduct option.