Fork managed by DISCO Open Source
- Changed library name to safe_config_2 (breaking change)
- Upgraded dependencies to latest non-null safe versions
Versions of safe_config
- Improves error messaging at runtime to better identify issues with a configuration file
- Adds 'package:runtime' support to enable AOT compilation using this package.
- Fixes issue when a database connection Uri has percent encoded values for username/password segments.
- Better error messaging for incorrect types
- Allow 'bool' data type, fix regression in 2.0.0
- Allow default values, fix regression in 2.0.0
- Dart 2.0 compatability.
- Rename
ConfigurationItem
->Configuration
. - Rename
DatabaseConnectionConfiguration
->DatabaseConfiguration
.
- Fixes issue where environment variables could not be decoded as ConfigurationItems
- Throws exception when parsing if environment variable does not exist and is required.
- Allow
ConfigurationItem
to validate their values by overridingvalidate
(Thanks to Denis Albuquerque, @zidenis)
- Ignore private variables declared in ConfigurationItem subclasses
- Ignore static variables declared in ConfigurationItem subclasses
- Throw exception if an unexpected key is found when reading configuration.
- Enable support for reading environment variables.
- Allow decoders for ConfigurationItem subclasses that may have multiple representations, e.g. a DatabaseConnectionConfiguration from a database connection string.
- Fix issue where nested ConfigurationItems marked as optional would fail to parse.
- Add ConfigurationItem.fromMap to pass a Map as the source for a ConfigurationItem.
- Add library level documentation.
- Add documentation generation.
- Update readme.
- Initial version.