PureConfig v0.10.0 Release Notes
Release Date: 2018-10-30 // over 5 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 toloadConfig
); - The
AllowMissingKeys
trait was renamed toReadsMissingKeys
.
- Auto derivation of readers and writers for case classes and sealed traits is now disabled by default. Now users need
to import
๐ New features
- The auto-derivation features of PureConfig, powered by shapeless, were extracted to a separate
pureconfig-generic
module, whilepureconfig-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 ofConfigReader
andConfigWriter
; - A new
WritesMissingKeys
trait enables custom writers to handle missing keys, a feature previously restricted to the built-inOption
writer; - Cursors now perform the
automatic type conversions
required by HOCON when
as<type>
methods are called. Cursors now provideasBoolean
,asLong
,asInt
,asShort
,asDouble
andasFloat
.
- The auto-derivation features of PureConfig, powered by shapeless, were extracted to a separate