config_manager 0.2.2
config_manager: ^0.2.2 copied to clipboard
A JSON-based configuration manager with dot-notation access to nested values, singleton pattern, and mixin support.
0.2.2 #
- Extract shared load/read/write logic into
ConfigManagerBase, an abstractIConfigManagerimplementation;ConfigManagerSingletonnow extends it instead of duplicating the sector store. This lets consumers create their own non-singleton config managers with an independent default sector. setbecomes generic (set<DataType>(key, data, {sector})) acrossIConfigBase,ConfigManagerBase, andConfigExtension.- The singleton's constructor now also tolerates a malformed default
config.json, starting empty instead of leaving the singleton unconstructable.
0.2.0 #
- Add sector-based configuration: each sector holds its own configuration and
operations accept an optional
sectorargument, falling back to the default sector when omitted. - Introduce
IConfigManagerandIConfigBaseinterfaces, splitting the manager contract from the shared load/read operations. - Simplify
IConfigExtensionto a marker interface overIConfigBase; value access is provided by the inheritedget(key, {sector}).
0.1.0 #
- Initial release.
- JSON configuration file loading.
- Dot-notation access to nested values.
- List support with index access.
- Singleton-based configuration access.
- Mixin-based configuration extension.