Skip to content

Commit ff7eac7

Browse files
committed
Revert "bump version to 2.1.0"
This reverts commit 3b081da.
1 parent b65740f commit ff7eac7

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

CHANGELOG.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -55,26 +55,3 @@ errorOr.FailIf(x => x > 0, Error.Failure());
5555
-public static async Task<ErrorOr<TValue>> ThenAsync<TValue>(this Task<ErrorOr<TValue>> errorOr, Func<TValue, Task> action)
5656
+public static async Task<ErrorOr<TValue>> ThenDoAsync<TValue>(this Task<ErrorOr<TValue>> errorOr, Func<TValue, Task> action)
5757
```
58-
59-
## [2.1.0] - 2024-08-08
60-
61-
### Added
62-
63-
- Added `FailIf` `Func<TValue, Error>` overloads (thanks [@ahmtsen](https://github.com/ahmtsen)!)
64-
65-
```cs
66-
public async Task<ErrorOr<TValue>> FailIfAsync(Func<TValue, Task<bool>> onValue, Func<TValue, Task<Error>> errorBuilder)
67-
```
68-
69-
```cs
70-
public static async Task<ErrorOr<TValue>> FailIfAsync<TValue>(
71-
this Task<ErrorOr<TValue>> errorOr,
72-
Func<TValue, Task<bool>> onValue,
73-
Func<TValue, Task<Error>> errorBuilder)
74-
```
75-
76-
```cs
77-
// the value can now be used to build the error
78-
ErrorOr<int> result = errorOrInt
79-
.FailIf(num => num > 3, (num) => Error.Failure(description: $"{num} is greater than 3"));
80-
```

src/ErrorOr.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88
<PropertyGroup>
99
<PackageId>ErrorOr</PackageId>
10-
<Version>2.1.0</Version>
10+
<Version>2.0.1</Version>
1111
<Authors>Amichai Mantinband</Authors>
1212
<PackageIcon>icon-square.png</PackageIcon>
1313
<PackageTags>Result,Results,ErrorOr,Error,Handling</PackageTags>

0 commit comments

Comments
 (0)