voo_config_generator 1.0.3 copy "voo_config_generator: ^1.0.3" to clipboard
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 analyzer dependency from ^7.0.0 to ^8.0.0
  • Updated test dependency from ^1.24.0 to ^1.28.0
  • Fixes dependency resolution conflict with Flutter SDK's matcher 0.12.18

1.0.2 #

Added #

  • YAML support: ConfigFileParser now accepts KEY: value (YAML style) in addition to KEY=value (.env style)

Fixed #

  • Escape sequence ordering: \\ is now processed before \n, \r, \t to prevent \\n from incorrectly becoming a backslash followed by a newline
  • Backslash escaping in CodeBuilder: Fixed a no-op in _escapeString where backslashes were not being doubled in generated Dart code

1.0.1 #

Fixed #

  • PartBuilder: Changed from SharedPartBuilder to PartBuilder so .voo_config.g.dart files 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 @VooConfig classes 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

Migration from voo_env_generator #

  • Generates .voo_config.g.dart instead of .voo_env.g.dart
  • Removed XOR obfuscation logic
  • Added security warnings for secrets
1
likes
120
points
20
downloads

Documentation

API reference

Publisher

verified publishervoostack.com

Weekly Downloads

Code generator for voo_config package. Generates typed configuration classes at build time from .env, .config, or YAML files.

Homepage
Repository (GitHub)
View/report issues

Topics

#code-generation #build-runner #config #configuration

License

MIT (license)

Dependencies

analyzer, build, source_gen, voo_config

More

Packages that depend on voo_config_generator