Repository navigation
v2.0.0
New major release with two breaking changes and some new features.
- Breaking: Environment sources now expose an
all()method to retrieve all known variables - Breaking: Improved enum resolution
- Enum validator no longer accepts values for enum objects by default
- Enum validator now matches key names in a case-insensitive manner
- Added new
StringEnvironmentSourceto read environment variables from a string in dotenv format - Added new
ObjectEnvironmentSourceto read environment variables from a plain object or map - Added a
custom()helper function to the schema object - Added an
apply()method to managers which applies all variables toprocess.envor to a supplied object