Release Notes
Last updated
Was this helpful?
Last updated
Was this helpful?
This release jumps from 0.4.2 to 1.5.0, reflecting that AndHow has been in production long enough to be considered production ready, and there are API changes. This release removes deprecated methods, clarifies / subtly changes some behavior, and has general improvements and bug fixes. It's likely that minor application updates will be needed to upgrade from 0.4.x to 1.5.0, however, those changes are small and highlighted here.
Property builder validation methods beginning with mustXxx
have all been renamed to be shorter and clearer in meaning. These new methods were available in 1.4.2, but 1.5.0 removes the older deprecated methods. For instance:
Some AndHow initialization methods were removed (they were deprecated previously). In particular:
These methods were replaced w/ new best practices. See Configuring AndHow and Testing for documentation and examples that would replace code potentially needing the removed methods.
Deprecated methods generally have been removed. New usage patterns are well documented in the (User Manual)[http://andhowconfig.org] (Issue #663).
BolProps and FlagProps now throw an exception for unrecognized values (Issue #658).
Prior to this release, BolProps and FlagProps had a list of true
values (e.g. 'true', 'yes', 'on', 't', etc.) and considered all other non-empty values false. This was changed to prevent configuration errors where a value looks true, like 'truee', but is interpreted as false.
FlagProps now act as flags only when loaded from command line (Issue #656)
Prior to this release, any reference to the name of a FlagProp in any configuration source would set its value True
, however, this behavior is only needed / desirable when used as a command line switch. To migrate, ensure that all non-command-line configuration for FlagProps fully specify the value as True
or False
(or an equivalent yes/no etc.)
StdSysPropLoader & StdEnvVarLoader now trim String values (Issue #654) If your application needs to preserve whitespace from these sources, wrap the complete value in double quotes. More details about whitespace handling is available.
The Loader.load()
method signature has changed and a few loader implementations which were not directly used were removed (Issue #679). This only affects users who have created custom loaders.
The ValueType.isParsable method was removed (Issue #696). This would only affect user who have created custom ValueTypes.
Calling setConfig() during initialization is now blocked (Issue #718)
0.4.2
Oct. 24, 2021
0.4.1.1
Sept. 13, 2021
0.4.1
June 2, 2021
0.4.0
Dec 28, 2017
Releases prior to 0.4.0 should be considered experimental.