This project follows pub-flavored semantic versioning. (more)
- [feat] add optional parameter
quiet
toDotEnv
constructor - [feat] add
--quiet
arg todotenv
command
- [feat] add
DotEnv.getOrElse
- [fix] return
null
on missing key
- BREAKING: top-level functions have been removed. Use a
DotEnv()
instance instead. - BREAKING: the underlying
Map<String, String>
is no longer exposed. Use the forwarding methods onDotEnv
instead. - BREAKING: by default, the underlying map does not include
Platform.environment
.- Libraries should use
DotEnv(includePlatformEnvironment: true)
. - The
dotenv
command should use the--merge-platform-vars
flag.
- Libraries should use
- BREAKING: duplicate keys are now overwritten, instead of ignored.
- [feat] the
DotEnv.load()
method accepts multiple file paths.
- BREAKING: bumps min Dart version to 2.12 for nullsafety #27
- BREAKING: change parser to handle
=
in values, e.g. base64 #21
- Dart 2 compatible. #16
- [docs] tweak README
- [fix] don't throw if load fails #11
- [fix] allow braces with
${var}
substitution #10
- [fix] don't strip
#
inside quotes #5
- [fix] whitespace causes quotes not to be stripped
- [deprecated]
Parser
internals will become private. #3#unquote
,#strip
,#swallow
,#parseOne
,#surroundingQuote
,#interpolate
- [new] support variable substitution
- [deps] migrate to test
- [deps] bump logging
Initial release.