PureConfig v0.9.0 Release Notes
Release Date: 2018-01-08 // over 6 years ago-
๐ New features
- A new
ConfigCursor
now provides idiomatic, safe methods to navigate through a config. It also holds context for building failures with a more accurate location and path in the config; ConfigReaderFailure
was revamped to facilitate the propagation of context on failures. There is now a separation between higher-levelConfigReaderFailures
and concrete, location-agnosticFailureReason
s.
- A new
๐ฅ Breaking changes
ConfigReader
, as well as many related methods and classes, now reads configs fromConfigCursor
instances instead of from directConfigValue
s. Code can be migrated simply by accessing thevalue
field ofConfigCursor
whenever aConfigValue
is needed. However, rewriting the code to use the newConfigCursor
methods is heavily recommended as it provides safer config handling and much better error handling;- Code for handling and raising failures may not work due to the revamp of the failure model. Inside
ConfigReader
instances users should now use thefailed
method of the newConfigCursor
instead of manually creating instances ofConfigReaderFailures
; - The
CannotConvertNull
failure was removed, being superseeded byKeyNotFound
; - Methods deprecated in previous versions were removed.
๐ Bug fixes
- Fixed a bug where some or all
Derivation
cases outside thepureconfig
package were not showing the full error description.
- Fixed a bug where some or all