Skip to content

Releases: brenordv/nuget-raccoon-tools

1.9.0

06 Apr 02:09
3d33b68

Choose a tag to compare

## [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

08 Sep 05:03
15ea0e1

Choose a tag to compare

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

07 Sep 19:26
57e456a

Choose a tag to compare

Release 1.7.0

## [1.7.0] - Sep, 2024
- Added `ChainOnSuccess` and `ChainOnSuccessAsync` extension  methods to help reduce boilerplate;

1.6.0

07 Sep 06:03
25a42ce

Choose a tag to compare

Release 1.6.0

## [1.6.0] - Sep, 2024
- Added `TapOnSuccess` and `TapOnSuccessAsync` extension  methods to help reduce boilerplate;

1.5.0

07 Sep 05:02
6a920e5

Choose a tag to compare

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

02 Sep 19:56
c880d0d

Choose a tag to compare

[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

01 Sep 03:43
1e752fd

Choose a tag to compare

[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

01 Sep 00:13
18cb9fd

Choose a tag to compare

[1.2.0] - Aug, 2024

  • Changed Result from class to readonly struct;
  • Create the convenience method Result<T>.ForwardError<TOher>(), which will forward the error of the current
    Result<T> to a new Result<TOther>, if the current Result<T> is an error;

1.1.0

31 Aug 22:08

Choose a tag to compare

[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.