Releases: maxdeviant/glenvy
Releases · maxdeviant/glenvy
v1.1.0
v1.0.1
Changed
- Upgraded
simplifile
to v2.0.1.
v1.0.0
Added
glenvy/env
- Added an
Error
type. - Added
get_all
for retrieving all of the available environment variables (#5).
- Added an
glenvy/dotenv
- Added
read_from
for reading the contents of a.env
file into memory (#4).
- Added
Changed
glenvy/env
get_string
now returnsResult(String, Error)
instead ofResult(String, Nil)
.get
now returnsResult(a, Error)
instead ofResult(a, Nil)
.get_int
now returnsResult(Int, Error)
instead ofResult(Int, Nil)
.get_float
now returnsResult(Float, Error)
instead ofResult(Float, Nil)
.get_bool
now returnsResult(Bool, Error)
instead ofResult(Bool, Nil)
.
- Moved
glenvy/error.{type Error}
toglenvy/dotenv.{type Error}
. - Changed
glenvy/dotenv.{Io}
to contain asimplifile.FileError
instead of aString
.
v0.6.1
Changed
- Tweaked the package description.
v0.6.0
Added
glenvy/dotenv
- Added support for values containing
=
without needing to quote them (e.g.,KEY=aGVsbG8=
).- Any
=
s on a line after the first one are now treated as part of the value.
- Any
- Added support for values containing
v0.5.1
Changed
- Expanded Gleam
stdlib
range.
v0.5.0
Changed
- Upgraded Gleam
stdlib
to v0.34. - Replaced
Map
withDict
.
v0.4.0
Added
- Added support for JavaScript targets.
Changed
error.Io
now contains an error message instead of afile.Reason
.
v0.3.0
Added
glenvy/env
- Added
get_string
for reading environment variables asString
s. - Added
get_bool
for reading environment variables asBool
s.
- Added
Changed
glenvy/env
get
is now a generic function that accepts a parser. Useget_string
if you want access to the environment variable value as aString
.
v0.2.0
Added
- Added
glenvy/env
for reading strongly-typed environment variables.