Skip to content

v3.1.0

Latest
Compare
Choose a tag to compare
@MrDave1999 MrDave1999 released this 29 Jun 15:56
· 1 commit to master since this release

What's Changed

New Features

  • Add support for Microsoft.Extensions.Configuration. (#176)
  • Create resource file to save exception messages. (#160)
  • Create resource file with exception messages in Spanish. (#161)
  • Create .props file to copy .env files to the publish directory. (#138)

Bug Fixes

  • Add null checks in the constructor of classes such as EnvReader, EnvValidator and EnvBinder. (#171)
  • Add null check to SetEnvironmentVariablesProvider method. (#172)

Documentation

  • Add more examples on how to use dotenv. (#141)
  • Add sample project about shared settings. (#148)
  • Add sample project about using required keys. (#149)
  • Add sample project about the using parser. (#150)
  • Add sample project on how to bind an object to configuration values. (#151)
  • Add samples on how to create sections with the .NET configuration system. (#177)

Refactorings

  • Remove the “Try/Catch” block found in the EnvLoader type. (#163)
  • Use collection expression to create empty collections. (#166)
  • Add formatting to an error message from EnvFileNames class. (#167)
  • Avoid hardcoding the error message as string. (#168)
  • Apply Result pattern to avoid returning null in private methods. (#169)
  • Create guard clauses. (#170)
  • Use IReadOnlyList interface in EnvironmentNames. (#156)
  • Use collection expression for array. (#157)
  • Add generic messages for custom exceptions. (#162)
  • Create private method called "StartFileLoading". (#180)
  • Create properties such as NotExists and IsNotOptional. (#181)

Testing

  • Add tests to EnvValidationResult. (#173)
  • Use the "using" statement to free resources. (#158)
  • Add test case when it is not an inline comment. (#159)
  • Apply a naming convention to test names. (#178)
  • Add tests when the path collection is empty. (#179)

Other changes

  • Add a solution file (.sln) for project samples. (#152)
  • Add Directory.Build.props file. (#154)
  • Add Microsoft.Extensions.DI projects in DotEnv.Core.sln. (#174)
  • Add support for central package management. (#142)
  • Remove project diagrams. (#175)
  • Move Dotenv.Extensions.Microsoft.DependencyInjection project to main repository. (#144)
  • Add directory representing cross-cutting concerns. (#165)

Full Changelog: 3.0.0...3.1.0