env_guard 1.3.3
env_guard: ^1.3.3 copied to clipboard
A simple, robust, and typed environment validation library for Dart/Flutter, designed to simplify and secure environment in applications
1.3.3 #
- Fix parser crash on values containing
=or:(JWT secrets, URLs, base64) - Fix schema reuse: rules are no longer consumed on first
validate()call, so the same schema can be used across multiple validations and hot-reloads - Fix
define()to let OS environment variables override.envfile values instead of throwing on collision - Restrict
Loaderto real.envfiles using a strict regex; ignore template files (.env.example,.env.sample,.env.template,.env.dist) - Replace leaked
MissingValueinstances withnullin the validated result - Add
${VAR}interpolation syntax (legacy{VAR}still supported) with circular-reference detection - Trim values, strip surrounding quotes, and strip inline comments in the env parser
- Export
EnvGuardExceptionfrom the public API
1.3.2 #
- Fix null and missing value check for default value
1.3.1 #
- Take given schema to apply existing constraint
1.3.0 #
- Remove existing environment key exception for
DART_ENV
1.2.0 #
- Add
toJson()method to convert environment variables to a Map
1.1.0 #
- Implement enum line environment declaration
1.0.1 #
- Add missing translation
1.0.0 #
- Initial version.