You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**dotenv.net** is a lightweight and intuitive library designed to simplify the process of managing environment variables in .NET applications. By seamlessly integrating with `.env` files, it allows developers to maintain a clean and secure configuration setup, ensuring that sensitive information is kept out of source code. 🔒
10
+
**dotenv.net** is a lightweight and intuitive library designed to simplify the process of managing environment variables
11
+
in .NET applications. By seamlessly integrating with `.env` files, it allows developers to maintain a clean and secure
12
+
configuration setup, ensuring that sensitive information is kept out of source code. 🔒
12
13
13
-
Whether you're building a small project or a large-scale application, **dotenv.net** provides the tools you need to efficiently load, read, and manage environment variables, with support for dependency injection (DI) in popular DI systems. 🛠️
14
+
Whether you're building a small project or a large-scale application, **dotenv.net** provides the tools you need to
15
+
efficiently load, read, and manage environment variables, with support for dependency injection (DI) in popular DI
16
+
systems. 🛠️
14
17
15
18
---
16
19
@@ -24,6 +27,45 @@ Whether you're building a small project or a large-scale application, **dotenv.n
24
27
25
28
---
26
29
30
+
## What's New in v4? 🚀
31
+
32
+
**dotenv.net v4** is a major release featuring significant improvements to simplify environment management in .NET
33
+
applications. This release includes important fixes, enhanced validation, and new capabilities while maintaining
34
+
backward compatibility. 🔥
35
+
36
+
### Major Improvements
37
+
38
+
-**Validation Enhancements**: Added strict validation in `DotEnvOptions` to prevent invalid configurations
|`HasValue(string key)`| Checks if a value is set for the given key. |`bool`|`N/A`|
195
+
|`GetStringValue(string key)`| Retrieves a string value by key. Throws an exception if not found. |`string`|`N/A`|
196
+
|`GetIntValue(string key)`| Retrieves an integer value by key. Throws an exception if not found. |`int`|`N/A`|
197
+
|`GetDoubleValue(string key)`| Retrieves a double value by key. Throws an exception if not found. |`double`|`N/A`|
198
+
|`GetDecimalValue(string key)`| Retrieves a decimal value by key. Throws an exception if not found. |`decimal`|`N/A`|
199
+
|`GetBooleanValue(string key)`| Retrieves a boolean value by key. Throws an exception if not found. |`bool`|`N/A`|
200
+
|`TryGetStringValue(string key, out string value)`| Safely retrieves a string value. Returns `true` if successful. |`bool`|`null`|
201
+
|`TryGetIntValue(string key, out int value)`| Safely retrieves an integer value. Returns `true` if successful. |`bool`|`0`|
202
+
|`TryGetDoubleValue(string key, out double value)`| Safely retrieves a double value. Returns `true` if successful. |`bool`|`0.0`|
203
+
|`TryGetDecimalValue(string key, out decimal value)`| Safely retrieves a decimal value. Returns `true` if successful. |`bool`|`0.0m`|
204
+
|`TryGetBooleanValue(string key, out bool value)`| Safely retrieves a boolean value. Returns `true` if successful. |`bool`|`false`|
165
205
166
206
---
167
207
168
208
## Contributing 🤝
169
209
170
-
We welcome contributions from the community! If you have ideas, bug reports, or feature requests, please [open an issue](https://github.com/bolorundurowb/dotenv.net/issues) or submit a pull request.
210
+
We welcome contributions from the community! If you have ideas, bug reports, or feature requests,
211
+
please [open an issue](https://github.com/bolorundurowb/dotenv.net/issues) or submit a pull request.
171
212
172
213
### Special Thanks to Our Contributors 🙏
173
214
@@ -177,7 +218,7 @@ A huge shoutout to everyone who has contributed to **dotenv.net**:
@@ -189,6 +230,7 @@ A huge shoutout to everyone who has contributed to **dotenv.net**:
189
230
190
231
## Get Started Today! 🎉
191
232
192
-
Simplify your environment variable management with **dotenv.net**. Install the package, follow the quick start guide, and enjoy a cleaner, more secure configuration setup for your .NET applications.
233
+
Simplify your environment variable management with **dotenv.net**. Install the package, follow the quick start guide,
234
+
and enjoy a cleaner, more secure configuration setup for your .NET applications.
0 commit comments