All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.2.0 - 2024-12-05
- Upgraded
gleam_erlang
to v0.33.0.
1.1.0 - 2024-11-21
glenvy/env
- The parsing function passed to
get
now accepts any error type in theResult
.
- The parsing function passed to
1.0.1 - 2024-07-31
- Upgraded
simplifile
to v2.0.1.
1.0.0 - 2024-04-29
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
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
.
0.6.1 - 2024-04-13
- Tweaked the package description.
0.6.0 - 2024-04-13
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
0.5.1 - 2024-01-30
- Expanded Gleam
stdlib
range.
0.5.0 - 2024-01-25
- Upgraded Gleam
stdlib
to v0.34. - Replaced
Map
withDict
.
0.4.0 - 2023-05-30
- Added support for JavaScript targets.
error.Io
now contains an error message instead of afile.Reason
.
0.3.0 - 2023-05-30
glenvy/env
- Added
get_string
for reading environment variables asString
s. - Added
get_bool
for reading environment variables asBool
s.
- Added
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
.
0.2.0 - 2023-05-30
- Added
glenvy/env
for reading strongly-typed environment variables.
0.1.0 - 2023-05-29
- Initial release.