Skip to content

Releases: maxdeviant/glenvy

v1.1.0

22 Nov 01:41
Compare
Choose a tag to compare

Changed

  • glenvy/env
    • The parsing function passed to get now accepts any error type in the Result.

v1.0.1

01 Aug 00:09
Compare
Choose a tag to compare

Changed

  • Upgraded simplifile to v2.0.1.

v1.0.0

30 Apr 01:53
Compare
Choose a tag to compare

Added

  • glenvy/env
    • Added an Error type.
    • Added get_all for retrieving all of the available environment variables (#5).
  • glenvy/dotenv
    • Added read_from for reading the contents of a .env file into memory (#4).

Changed

  • glenvy/env
    • get_string now returns Result(String, Error) instead of Result(String, Nil).
    • get now returns Result(a, Error) instead of Result(a, Nil).
    • get_int now returns Result(Int, Error) instead of Result(Int, Nil).
    • get_float now returns Result(Float, Error) instead of Result(Float, Nil).
    • get_bool now returns Result(Bool, Error) instead of Result(Bool, Nil).
  • Moved glenvy/error.{type Error} to glenvy/dotenv.{type Error}.
  • Changed glenvy/dotenv.{Io} to contain a simplifile.FileError instead of a String.

v0.6.1

13 Apr 15:56
Compare
Choose a tag to compare

Changed

  • Tweaked the package description.

v0.6.0

13 Apr 15:52
Compare
Choose a tag to compare

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.

v0.5.1

31 Jan 03:51
Compare
Choose a tag to compare

Changed

  • Expanded Gleam stdlib range.

v0.5.0

26 Jan 02:38
Compare
Choose a tag to compare

Changed

  • Upgraded Gleam stdlib to v0.34.
  • Replaced Map with Dict.

v0.4.0

30 May 23:04
Compare
Choose a tag to compare

Added

  • Added support for JavaScript targets.

Changed

  • error.Io now contains an error message instead of a file.Reason.

v0.3.0

30 May 21:33
Compare
Choose a tag to compare

Added

  • glenvy/env
    • Added get_string for reading environment variables as Strings.
    • Added get_bool for reading environment variables as Bools.

Changed

  • glenvy/env
    • get is now a generic function that accepts a parser. Use get_string if you want access to the environment variable value as a String.

v0.2.0

30 May 19:52
Compare
Choose a tag to compare

Added

  • Added glenvy/env for reading strongly-typed environment variables.