Releases: DZakh/rescript-envsafe
Releases · DZakh/rescript-envsafe
v5.0.0
v4.2.0
Add support for rescript-schema
V8
Full Changelog: v4.1.0...v4.2.0
v4.1.0
Add support for rescript-schema
V7
Full Changelog: v4.0.0...v4.1.0
v4.0.0
- Fixed
fallback
anddevFallback
for env variables with union schemas - Empty string now treated as
None
. It used to work for string-like schemas, now it works for every kind of schema. Can be overwritten withallowEmpty
option. S.json
andS.unknown
now coerced using JSON.parse.S.literal("")
now requiresallowEmpty=true
. Otherwise, the input will be treated asundefined
.- Improved parsing performance for non-union schemas.
Full Changelog: v3.1.0...v4.0.0
v3.1.0
Add the fallback
option for EnvSafe.get
. It's like devFallback
but without the NODE_ENV
check.
Full Changelog: v3.0.0...v3.1.0
v3.0.0
- Migrate to
rescript-schema
(previouslyrescript-struct
) - Turn labeled
name
andstruct
arguments into normal ones - Start coercing non-string/bool/int/float schemas with
JSON.parse
. So now you can use more schemas withrescript-envsafe
. They'll be treated as JSON string schemas.
Full Changelog: v2.0.0...v3.0.0
v2.0.0
- Start using
[email protected]
and[email protected]
- Removed trailing unit argument
Full Changelog: v1.4.0...v2.0.0
v1.4.0
Support [email protected]
Full Changelog: v1.3.0...v1.4.0
v1.3.0
Support [email protected]
Full Changelog: v1.2.0...v1.3.0
v1.2.0
- Update peerDependencies. Work with
[email protected]
and[email protected]
Full Changelog: v1.0.2...v1.2.0