Skip to content

Releases: MarcoDaniels/environment-decoder

Introduce union decoders

13 Jul 11:04
Compare
Choose a tag to compare

@bageren contribution to introduce union decoders for String and Number, example: asStringUnion("dev","qa", "prod")

Use optional decoder with default value

05 Sep 10:06
Compare
Choose a tag to compare

Functionality to add default value for non-required environment flag. Expand the functions as{Type} to
include .withDefault({type}), fx: asBoolean.withDefault(false)

Accumulate decoder errors

18 May 18:09
Compare
Choose a tag to compare

Accumulates all decoder errors before throwing (#4).
Update documentation with examples.

Decode environment variables

14 May 17:28
Compare
Choose a tag to compare

Decode environment variables to typed object