typed_config 0.2.5
typed_config: ^0.2.5 copied to clipboard
A type-safe key-value store for application configurations with synchronous in-memory reads and disk persistence.
0.2.5 #
- Add
builder.defineMap()for Map config support. - Add enum support for lists via
enumValuesparameter inbuilder.defineList(). - Change return type to unmodifiable for
defineList().
0.2.4 #
- Added
watchConfigFileoption toTypedConfig.initialize()to automatically detect external disk modifications and reload changes into memory.
0.2.3 #
- Added
saveDefaultValueoption toTypedConfig.initialize()andTypedConfig.inMemory()to optionally seed and persist all default values to disk on startup. - Replace
isModifiedwithisDefault. - Updated
entry.reset()andtypedConfig.resetAll()to restore default values whensaveDefaultValueis enabled. - Make
schemaVersionto always be on top in the JSON output.
0.2.2 #
- Renamed
ConfigtoTypedConfigand add@DeprecatedConfigtype alias for backward compatibility. - Update doc and add setup guides for Vanilla Flutter and
package:provider.
0.2.1 #
- Documentation updates and improved Riverpod integration guide.
0.2.0 #
- Class-based schemas: Subclass
ConfigusingConfigBuilder. - Dart 3.2+ support: Lowered minimum SDK constraint to
^3.2.0. - Domain groups: Organize settings into modular groups via
builder.group('namespace', SubConfig.new). - Direct entry access: Get and set values directly via
entry.valueinstead ofconfig.get/config.set. - Entry utilities: Added
entry.isModified,entry.reset(),entry.resetAll(), and reactiveentry.changesbroadcast stream. - Specialized builders: Added
builder.defineEnum()andbuilder.defineList()with automatic serialization. - In-memory testing: Added
Config.inMemory(create: ...)for instant unit testing without disk I/O. - Schema migrations: Added
ConfigMigratorandMigrationHandlerwith path helpers (rename,transform,read,write,remove,containsKey,raw) for sequential version upgrades inConfig.initializeandConfig.inMemory.
0.1.1 #
- Updated repository links, documentation, and license metadata.
0.1.0 #
- Initial release.
- Strongly-typed
ConfigEntrymodel with type-safe fallback parsing and serializer support. - In-memory synchronous frame-0 reads with zero loading latency.
- Debounced atomic file writes (300ms) with auto-creation of missing parent directories.
- Dot-separated key namespacing with automatic nesting into indented JSON on disk.
- Sequential schema migrations with version tracking.
- Automatic quarantine of corrupt JSON files with fallback to clean defaults.
- Desktop file watcher with reload notifications.
- Pure Dart engine with zero framework dependencies.