voo_config_generator 1.0.3
voo_config_generator: ^1.0.3 copied to clipboard
Code generator for voo_config package. Generates typed configuration classes at build time from .env, .config, or YAML files.
1.0.3 #
Changed #
- Updated
analyzerdependency from^7.0.0to^8.0.0 - Updated
testdependency from^1.24.0to^1.28.0 - Fixes dependency resolution conflict with Flutter SDK's
matcher0.12.18
1.0.2 #
Added #
- YAML support: ConfigFileParser now accepts
KEY: value(YAML style) in addition toKEY=value(.env style)
Fixed #
- Escape sequence ordering:
\\is now processed before\n,\r,\tto prevent\\nfrom incorrectly becoming a backslash followed by a newline - Backslash escaping in CodeBuilder: Fixed a no-op in
_escapeStringwhere backslashes were not being doubled in generated Dart code
1.0.1 #
Fixed #
- PartBuilder: Changed from
SharedPartBuildertoPartBuilderso.voo_config.g.dartfiles are generated correctly on clean builds (fixes CI/CD environments where no build cache exists) - Getter support: Generator now processes static getters (
static String get foo => ...) in addition to static const fields, matching how@VooConfigclasses are typically written
1.0.0 #
Added #
- Initial Release: Code generator for voo_config package
- ConfigGenerator: Processes @VooConfig annotated classes
- ConfigFileParser: Parses .env and .config files
- Support for comments (lines starting with #)
- Quoted values (single and double quotes)
- Escape sequences (\n, \r, \t, \)
- CodeBuilder: Generates type-safe Dart code
- Proper string escaping
- Type conversion (int, double, bool)
- Optional field support with defaults
Security #
- Sensitive Pattern Detection: Warns if values look like secrets
- Field name patterns:
*_key,*_secret,*_token,api_key, etc. - Value patterns:
sk_live_*,ghp_*, JWT tokens, etc. - Recommends voo_secrets for sensitive values
- Field name patterns:
Migration from voo_env_generator #
- Generates
.voo_config.g.dartinstead of.voo_env.g.dart - Removed XOR obfuscation logic
- Added security warnings for secrets