config_manager 0.2.2 copy "config_manager: ^0.2.2" to clipboard
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 abstract IConfigManager implementation; ConfigManagerSingleton now extends it instead of duplicating the sector store. This lets consumers create their own non-singleton config managers with an independent default sector.
  • set becomes generic (set<DataType>(key, data, {sector})) across IConfigBase, ConfigManagerBase, and ConfigExtension.
  • 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 sector argument, falling back to the default sector when omitted.
  • Introduce IConfigManager and IConfigBase interfaces, splitting the manager contract from the shared load/read operations.
  • Simplify IConfigExtension to a marker interface over IConfigBase; value access is provided by the inherited get(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.
0
likes
0
points
354
downloads

Publisher

unverified uploader

Weekly Downloads

A JSON-based configuration manager with dot-notation access to nested values, singleton pattern, and mixin support.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on config_manager