Releases: brenordv/nuget-raccoon-tools
Releases · brenordv/nuget-raccoon-tools
1.9.0
## [1.9.0] - Apr, 2025 - Changed the methods `Process` and `ProcessAsync` to `Match` and `MatchAsync` to adhere to the functional programming paradigm. The `Process` and `ProcessAsync` methods are still available, but they are marked as obsolete and will be removed in the future; - Added `IsSuccess`, `IsFailure`, `Error`, and `Value` properties to the `Result<T>` class to make it easier to use in OOP applications, while keeping the performance benefits of not throwing exceptions all around;
1.8.0
Release 1.8.0 ## [1.8.0] - Sep, 2024 - Added `WithMessage` to the `Error` class to allow the error message to be changed. It will allow for more flexibility when handling errors;
1.7.0
Release 1.7.0 ## [1.7.0] - Sep, 2024 - Added `ChainOnSuccess` and `ChainOnSuccessAsync` extension methods to help reduce boilerplate;
1.6.0
Release 1.6.0 ## [1.6.0] - Sep, 2024 - Added `TapOnSuccess` and `TapOnSuccessAsync` extension methods to help reduce boilerplate;
1.5.0
Release 1.5.0 ## [1.5.0] - Sep, 2024 - Renamed method `Map` to `Tap` to better reflect its purpose; - Added `TapAsync` method to `Result<T>` class to allow side effects without changing the result; - Added `ProcessAsync` method to `Result<T>` class to allow processing the result asynchronously; - Organized the project documentation;
1.4.0
[1.4.0] - Sep, 2024
- Added DateTime extension methods:
DaysSince: Returns the number of days since a given date (default: current date time);
1.3.0
[1.3.0] - Aug, 2024
- Added the following ListExtension methods:
Shuffle: This method shuffles the elements of a list in place;Random: This method returns a random element from a list;PopLast: This method removes and returns the last element of a list;PopFirst: This method removes and returns the first element of a list;IndexOfMax: This method returns the index of the maximum element in a list;IndexOfMin: This method returns the index of the minimum element in a list;RemoveDuplicates: This method removes all duplicates from a list;
1.2.0
[1.2.0] - Aug, 2024
- Changed
Resultfrom class toreadonly struct; - Create the convenience method
Result<T>.ForwardError<TOher>(), which will forward the error of the current
Result<T>to a newResult<TOther>, if the currentResult<T>is an error;
1.1.0
[1.1.0] - Aug, 2024
- Added new List extension method:
SafeAll: This method safely checks if all elements in a non-null, non-empty
sequence satisfies a given condition, returning false for null or empty sources.