PureConfig v0.7.0 Release Notes
Release Date: 2017-04-02 // about 7 years ago-
๐ New features
ConfigConvert
is now a union of two new traits -ConfigReader
for reading configs andConfigWriter
for writing them:- Having an implicit
ConfigReader
in scope is enough to read a config to a instance of a given type; - Having a
ConfigWriter
is enough for writing instances to configs; ConfigConvert
can still be used everywhere it was before and is advisable when both operations are needed.- Many constructors for
ConfigConvert
instances were deprecated, while new ones were added in the companion objects ofConfigReader
,ConfigWriter
andConfigConvert
. The deprecation message of each one indicates the new method to use; - Add
ConfigFactoryWrapper
to control exceptions from typesafeConfigFactory
; - Modify the message of
ConfigReaderException
to group errors by keys in the configuration, instead of by type of error; - Add a path (
Option[String]
) toConfigReaderFailure
, in order to expose more information (if available) about the key in the configuration whose value raised the failure.
๐ฅ Breaking changes
loadConfigFromFiles
works onPath
instead ofFile
for consistency;ConfigValueLocation
now usesURL
instead ofPath
to encode locations ofConfigValue
s.
๐ Bug fixes
pureconfig.load*
methods don't throw exceptions on malformed configuration anymore and wrap errors inConfigReaderFailures
[#148].