philiprehberger_env 0.4.0
philiprehberger_env: ^0.4.0 copied to clipboard
Dotenv file parser with typed getters and multi-environment support
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased] #
0.4.0 - 2026-04-17 #
Added #
Env.fromPlatform()factory to load variables from the process environmentEnv.fromMap()named constructor as a readable alias for the default constructor
0.3.0 - 2026-04-05 #
Added #
getEnum<T>()for parsing environment values as enum variants with case-insensitive matching
0.2.0 - 2026-04-04 #
Added #
getDouble()for parsing floating-point environment valuesgetUri()for parsing URI environment valuesmerge()for combining multiple Env instances with override semanticskeysgetter to retrieve all available environment variable names- Default variable fallback syntax
${VAR:-default}in dotenv parsing
0.1.0 - 2026-04-03 #
Added #
- Initial release
- Dotenv file parser with key=value pairs, quoted values, comments, and empty lines
- Variable expansion with
${VAR}syntax - Typed getters:
getString,getInt,getBool,getList - Default value support for all getters
EnvMissingKeyExceptionandEnvParseExceptionfor error handling