Releases: Frasan00/envitron
Releases · Frasan00/envitron
Release list
v2.3.0
Environment Manager v2.3.0
🚀 Changelog
Type System Improvements
- Added
EnvironmentCustomtype for custom validator support - Enhanced
InferTypeutility to handle custom validators - Improved type inference for environment variables
- Fixed enum type definition for readonly arrays
Environment Variable Handling
- Added
custom()validator for user-defined environment-variable validation - Improved handling of optional environment variables
- Enhanced validation logic for required fields
- Better error handling for undefined values
Schema Validation
- Added support for custom validation functions
- Improved type checking for enum values
- Enhanced validation logic for missing environment variables
- Fixed type casting issues in Environment Manager
🐛 Bug Fixes
- Fixed validation logic to properly handle missing environment variables
- Fixed type casting issues in the Environment Manager
- Fixed enum type definition to properly handle readonly arrays
- Improved error handling for undefined values
🧪 Testing
- Added new test cases for custom validators
- Enhanced test coverage for optional fields
- Added tests for edge cases in environment-variable handling
v2.2.0
Environment Manager v2.2.0
Changelog
Type System Improvements
- Added
AugmentedEnvironmentManagertype for better type inference - Improved type imports using
typekeyword for better tree-shaking - Enhanced type safety in environment variable access
Environment Variable Handling
- Fixed
loadFromProcessEnvbehavior to properly override environment file variables - Improved environment file not found handling with better logging
- Added support for embedded environment variables with direct property access
🐛 Bug Fixes
- Fixed issue where
loadFromProcessEnvwasn't properly overriding environment file variables - Fixed environment file not found error handling to be more graceful
- Fixed type inference issues in the environment manager instance