The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Shifts storage of system environment variables to the application process dictionary and alters the reading of this data to help improve the security posture and avoid leaking env values.
:side_effect
option forsource/2
andsource!/2
function changed.
- Makes error messages more informative when unable to convert strings to integers or floats
- Adds support for custom transformer types by allowing an arity 1 function as the second argument to
Dotenvy.Transformer.to/2
. See Issue 2
- Renames
Dotenvy.Transformer.to/2
toDotenvy.Transformer.to!/2
to better communicate that it may raise an error. - Returns key name in errors for easier troubleshooting.
- Tracks an error if the
:require_files
option lists a file not included in thefiles
input (for sanity). - Introduces
Dotenvy.env!/3
(which is the same asDotenvy.env/3
but with no defaults provided). This better communicates that it may raise an error (because internally it relies onDotenvy.Transformer.to!/2
) - Deprecates
Dotenvy.env/3
in favor ofDotenvy.env!/3
Adds support for default type
of :string
to the Dotenvy.env!/2
and Dotenvy.env/3
functions.
Initial release.