PureConfig v0.10.0 Release Notes

Release Date: 2018-10-30 // about 3 years ago
  • ๐Ÿ‘Œ Support for Scala 2.10 was dropped.

    • ๐Ÿ’ฅ Breaking changes

      • Auto derivation of readers and writers for case classes and sealed traits is now disabled by default. Now users need to import pureconfig.generic.auto._ everywhere a config is loaded or written (e.g. in files with calls to loadConfig);
      • The AllowMissingKeys trait was renamed to ReadsMissingKeys.
    • ๐Ÿ†• New features

      • The auto-derivation features of PureConfig, powered by shapeless, were extracted to a separate pureconfig-generic module, while pureconfig-core was left with only the absolute minimum for PureConfig to be useful. pureconfig will continue to be published as a Maven artifact aggregating the two aforementioned artifacts;
      • Users have now more control over reader and writer derivation. See the docs for more information;
      • New factory methods forProduct1, forProduct2, ..., forProduct22 were added to the companion objects of ConfigReader and ConfigWriter;
      • A new WritesMissingKeys trait enables custom writers to handle missing keys, a feature previously restricted to the built-in Option writer;
      • Cursors now perform the automatic type conversions required by HOCON when as<type> methods are called. Cursors now provide asBoolean, asLong, asInt, asShort, asDouble and asFloat.