fluent_result 8.4.0 fluent_result: ^8.4.0 copied to clipboard
FluentResults is a Dart library developed to solve a common problem. It returns an object indicating success or failure of an operation instead of throwing/using exceptions.
[8.4.0] #
- [Fix] can pass
null
insuccessWith(null)
[8.3.0] #
- add
onFinally
method toResultOf
andResult
- update
logger
dependency to^2.2.0
[8.2.0] #
- update
logger
dependency
[8.1.0] #
- downgrade
collection: ^1.17.1
[8.0.0] #
- [Fix] logging stack trace.
- [Update] dependencies.
[7.2.0] #
- [Add] exception handler matchers.
[7.1.1] #
- [Add] onError in
trySync
/tryAsync
for error handler customization.
[7.1.0] #
- [Add] logSuccessResult into
ResultConfig
- [Change] errorMessage now is non-nullable, by default is empty string.
[7.0.0] #
- [Add]
ResultConfig
to customizeexceptionHandler
- [Fix]
tries
[6.0.0] #
- [Add]
success
,successWith
,fail
methods - [Add]
trySync
,tryAsync
methods - [Change]
toResult
intomap
[5.0.0] #
Breaking changes
ResultError
has not const constructor anymore.
Updates
- Use
withError
andwithErrors
instead offail
andfails
respectively. - [Add] folding onFail and onSuccess with
fold(onFail, onSuccess)
. - [Add] mapping any object to
ResultOf<T>
withtoResult()
. - [Add]
failIf(condition, reason)
andokIf(condition, failReason)
.
[4.3.0] #
- [Fix]
contains<T>()
- [Add] getting specific error from collection by
get<T>
[4.2.0] #
- [Fix]
contains<T>()
[4.1.0] #
- [Add] errors collection
[4.0.1] #
- [Migrate] to null-safety
[4.0.0] #
- [Update] dependencies for migration to null-safety
[3.0.2] #
- Add
withErrorMessage(String)
method toResultOf
- Add
withException(Exception)
method toResultOf
[3.0.1] #
- [Add]
withErrorMessage(String)
method toResult
- [Add]
withException(Exception)
method toResult
[3.0.0+1] #
Correct README.md
[3.0.0] #
- [Add]
ResultError
object that describes a error and allows the errors to be typed.
[2.0.0+1] #
Correct README.md
[2.0.0] #
- [Add]
ResultOf<T>
for generic Result to hold value of T. - [Remove]
flutter
dependency
[1.0.0+1] #
- [Add] correct description
[1.0.0] #
Initial Version of the library.
- Includes the ability to create Success and Fail Results
- Includes the ability to create Generic Result with value