env_guard 1.3.3 copy "env_guard: ^1.3.3" to clipboard
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 .env file values instead of throwing on collision
  • Restrict Loader to real .env files using a strict regex; ignore template files (.env.example, .env.sample, .env.template, .env.dist)
  • Replace leaked MissingValue instances with null in 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 EnvGuardException from 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.
2
likes
130
points
280
downloads

Documentation

API reference

Publisher

verified publisherbaptistep.dev

Weekly Downloads

A simple, robust, and typed environment validation library for Dart/Flutter, designed to simplify and secure environment in applications

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on env_guard