Skip to content

Releases: DZakh/rescript-envsafe

v4.2.0

15 Jul 08:49
Compare
Choose a tag to compare

Add support for rescript-schema V8

Full Changelog: v4.1.0...v4.2.0

v4.1.0

17 Jun 11:19
Compare
Choose a tag to compare

Add support for rescript-schema V7

Full Changelog: v4.0.0...v4.1.0

v4.0.0

11 May 09:16
Compare
Choose a tag to compare
  • Fixed fallback and devFallback 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 with allowEmpty option.
  • S.json and S.unknown now coerced using JSON.parse.
  • S.literal("") now requires allowEmpty=true. Otherwise, the input will be treated as undefined.
  • Improved parsing performance for non-union schemas.

Full Changelog: v3.1.0...v4.0.0

v3.1.0

29 Apr 19:54
Compare
Choose a tag to compare

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

09 Dec 09:01
Compare
Choose a tag to compare
  • Migrate to rescript-schema (previously rescript-struct)
  • Turn labeled name and struct arguments into normal ones
  • Start coercing non-string/bool/int/float schemas with JSON.parse. So now you can use more schemas with rescript-envsafe. They'll be treated as JSON string schemas.

Full Changelog: v2.0.0...v3.0.0

v2.0.0

10 Sep 21:02
Compare
Choose a tag to compare
  • Start using rescript@11.0.x and rescript-struct@5.0.x
  • Removed trailing unit argument

Full Changelog: v1.4.0...v2.0.0

v1.4.0

28 Apr 09:42
Compare
Choose a tag to compare

Support rescript-struct@4.1.x

Full Changelog: v1.3.0...v1.4.0

v1.3.0

05 Apr 10:59
Compare
Choose a tag to compare

Support rescript-struct@4.0.x

Full Changelog: v1.2.0...v1.3.0

v1.2.0

05 Dec 20:06
Compare
Choose a tag to compare
  • Update peerDependencies. Work with rescript@10.1.x and rescript-struct@3.0.x

Full Changelog: v1.0.2...v1.2.0

v1.0.2

09 Oct 14:00
Compare
Choose a tag to compare
  • Fix installation instruction