Skip to content

Releases: tonerdo/dotnet-env

v1.4.0

09 Dec 05:10
8ab0f7d
Compare
Choose a tag to compare
  • Remove requireEnvFile arg from LoadOptions and make env file permanently not required
  • Remove obsolete Load overloads with parameterized arguments (instead of LoadOptions object)

v1.3.1

05 Dec 18:58
1faea84
Compare
Choose a tag to compare

Updated the way that the license is referenced in the csproj so as to appease new nuget rules for such things...

v1.3.0

01 Dec 01:48
94dfa21
Compare
Choose a tag to compare

Load options are now an object that is passed in, rather than a list of named arguments.

Also added 2 additional load options:

  • parseVariables -- parse env vars in other env vars inside .env file
  • requireEnvFile -- true if app should fail if no .env file present, false if it should continue running without one

NOTE: requireEnvFile should basically always be false because in production you should not be using a .env file!! It defaults to true for backwards compatibility for now, but someday perhaps we will change this.

Also, Env. DEFAULT_ENVFILENAME is now publicly accessible for applications to reference it if desired.

1.2.0

05 Apr 13:33
Compare
Choose a tag to compare
  • Now supports back to .NET Standard 1.3 / .NET Framework 4.6 ( https://github.com/dotnet/standard/blob/master/docs/versions.md )

  • Flag arguments to enable:

    • whitespace trimming
    • allowing hashes in values
    • unescaping of quoted values
    • overwrite (clobber) existing env vars
  • Uses OS specific rules for env var clobbering (Windows is case insensitive, Linux is case sensitive)

  • Some new helper methods for getting env var values as bool, int or double.

  • Loading env vars from a Stream

v1.1.0

02 Nov 10:39
Compare
Choose a tag to compare

Features and Enhancements

  • Handles presence of = in value in env file

E.g.

CONNECTION=user=test;password=secret

Thanks

@lazytesting

v1.0.0

07 Jul 13:18
Compare
Choose a tag to compare
update README.md