Skip to content

Releases

v1.7.1

Choose a tag to compare

@YoussefSell YoussefSell released this 03 Sep 06:06

For more details, click here to get to our CHANGELOG.

  • Fixed the WithMatadata typo and introduced the correctly named WithMetadata method. Thanks to @fs-paul for the contribution!

v1.7.0

Choose a tag to compare

@YoussefSell YoussefSell released this 30 Jul 23:03

For more details, click here to get to our CHANGELOG.

  • Added ToResult<TResult>(this Exception exception) extension method for converting exceptions to Result instances.
  • Introduced a new configuration style with Result.Configure(options => {}) for centralized settings.
  • Removed ResultExceptionMapper and ResultMessageLocalizer and integrated their functionality into ResultObjectConfiguration.
  • Enhanced documentation for clarity and consistency.
  • Updated ResultExtensions and Result classes to utilize the new configuration structure.
  • Adjusted unit tests to align with the new configuration approach.
  • Improved error handling and messaging throughout the codebase.
  • Refactored methods for better readability and maintainability.

v1.6.0

Choose a tag to compare

@YoussefSell YoussefSell released this 30 Dec 19:22

For more details click here to get to our CHANGELOG.

Changes:

  • removed exception as a property from the ResultError definition and added a collection of meta-data that contains the exception if any and will be used to pass more data if needed.

v1.5.0

Choose a tag to compare

@YoussefSell YoussefSell released this 09 May 21:01

For more details click here to get to our CHANGELOG.

Changes:

  • added a Cast<>() extension method that allows you to cast a Result instance into a Result{TData} instance.
  • Removed ListResult<> no need for this type, to simplify the usage the Result<data[]> can be used instead.
  • Removed Clone() methods, the new Cast<>() method should be used instead.
  • All properties on the Result instance will not be set and they will have their default value (null, or empty string).
  • Fixed JSON Deserialization issue by removing all constructors from the Result class and only setting one default constructor.

v1.4.0

Choose a tag to compare

@YoussefSell YoussefSell released this 10 Nov 21:23

For more details click here to get to our CHANGELOG.

Changes:

  • added a new extension method WithLocalizedMessage() on the Result type to allow setting localized messages on the Result object instance.

v1.3.0

Choose a tag to compare

@YoussefSell YoussefSell released this 03 Jun 20:57

For more details click here to get to our CHANGELOG.

Changes:

  • added a Match() extension method on the Result type to run logic based on the result status.
  • added Exception property to ResultError.
  • added new extension methods on the Result type to attach errors.
  • removed Type property from ResultError.
  • updated some comments.

v1.2.1

Choose a tag to compare

@YoussefSell YoussefSell released this 06 Dec 21:35

For more details click here to get to our CHANGELOG.

Changes:

  • fixed null key issue if the exception key type is different than string, when converting an exception to Result object using ToResult() method.

v1.2.0

Choose a tag to compare

@YoussefSell YoussefSell released this 02 Aug 20:47

For more details click here to get to our CHANGELOG.

Changes:

  • Changed package namespace from Result.Net to ResultNet.
  • Changed ResultError type from class to struct.

v1.1.0

Choose a tag to compare

@YoussefSell YoussefSell released this 28 Jul 20:57

For more details click here to get to our CHANGELOG.

Changes:

  • Added a function FailedBecause to check if the result has failed because of a specified error code.
  • Added a function As to cast exceptions to a given type.
  • Updated some comments.

First release

Choose a tag to compare

@YoussefSell YoussefSell released this 23 Jul 22:08

For more details click here to get to our CHANGELOG.

Changes:

  • First release.