Releases: MrDave1999/dotenv.core
Releases · MrDave1999/dotenv.core
v3.1.0
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
andEnvBinder
. (#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
v3.0.0
What's Changed
Bug Fixes
New Features
Breaking Changes
- Some classes have been marked as internals. (#123)
ExceptionMessages
andFormattingMessage
classes are useless for the client. These are implementation details of the library. - Added Invariant Culture that is culture-independent. (#132)
This was done to ensure the use of floating point (.
) regardless of the regional configuration of the system.
Other Changes
v2.3.2
v2.3.1
v2.3.0
v2.2.1
v2.2.0
v2.1.0
- Added support for inline comments. (#74, #87)
- Fixed the problem that the parser does not remove single or double quotes from a value. (#78, #88)
- Added support for binding a configuration class with the keys of the .env file. (#73, #92)
- Added a configuration method that tells the binder to ignore the exception. (#91, #93)
- Fixed issue with binder trying to bind read-only or write-only properties. (#90, #94)
- Added a configuration method that allows binding non-public properties. (#89, #95)