Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: tonerdo/dotnet-env

v3.2.0

Choose a tag to compare

@rogusdev rogusdev released this 26 Apr 21:58
09e2175
  • Switch parsing to Superpower (from Sprache)
  • Fix utf8 parsing
  • Interpolated variables parsing

v3.1.1

Choose a tag to compare

@rogusdev rogusdev released this 20 Aug 16:06
94e822a
  • Use ConcurrentDictionary for FakeEnvVars for thread safety

v3.1.0

Choose a tag to compare

@rogusdev rogusdev released this 30 Jul 18:56
7a37f0d
  • Retain interpolation when NoEnvVars() is set (setEnvVars == false)
  • NoClobber works correctly with ConfigurationProvider

v3.0.0

Choose a tag to compare

@rogusdev rogusdev released this 06 Jan 01:27
3c7901d
  • Parse unquoted values slightly differently to properly parse comments, rejecting quote chars, allow leading and trailing whitespace in interpolated values, do not allow values to start with # anymore, give better errors on invalid quoted values, etc
  • Rename ToDictionary to ToDotEnvDictionary for clarity, and add options for behavior
  • Get rid of the warnings about vulnerabilities in System.Net.Http 4.3.0 (which was unused)

v2.5.0

Choose a tag to compare

@rogusdev rogusdev released this 03 Feb 01:45
0f89bd4

Revert the change from Directory.GetCurrentDirectory() to AppContext,BaseDirectory as it broke existing applications

v2.4.0

Choose a tag to compare

@rogusdev rogusdev released this 30 Jan 07:02
4643f02

DO NOT USE -- the change in directory did in fact break behavior for at least one existing application. Move to 2.5.0

  • Replace the default path from Directory.GetCurrentDirectory() with just AppContext.BaseDirectory -- which should do the same thing, except make things better for some cases, per #69
  • Add the newly contributed ConfigurationBuilder integration

v2.3.0

Choose a tag to compare

@rogusdev rogusdev released this 15 Jan 16:11
a47e667

Adds a new EnvReader helper class #65

v2.2.0

Choose a tag to compare

@rogusdev rogusdev released this 18 Sep 13:36
958f85d

Allow dash and period in env var identifiers

v2.1.1

Choose a tag to compare

@rogusdev rogusdev released this 02 Mar 04:32
e4a6a1b

Properly handle dollar signs in values

v2.1.0

Choose a tag to compare

@rogusdev rogusdev released this 22 Feb 07:15
6cc4161

https://www.nuget.org/packages/DotNetEnv/2.1.0

Technically this includes 2 breaking changes, but it is highly unlikely anyone is using them, and the changes are clear improvements.

  • Adds Env.LoadMulti for loading multiple .env files on top of each other
  • Removes Env.Load for list of lines -- was only used for tests here and highly discouraged for deployed use as it effectively defines hardcoded env vars in code. If you need to reproduce this functionality, use LoadContents with "\n"s between lines in a single string.
  • Unquoted values can now include inline whitespace -- but still allow for comments at the end, even while allowing inline hashes in a word (to support k8s configmap from env)

Again, note that this changes the behavior of unquoted values in a noticeable way -- but before this would have been a parse error, so this simply makes it more flexible than it used to be.