Skip to content

Commit 802ff86

Browse files
xperiandriclaude
andcommitted
Updated FsToolkit.ErrorHandling to 5.*
5.0 merged `FsToolkit.ErrorHandling.TaskResult` into the main package, which is not published past `4.18.0` any more, so the projects reference only `FsToolkit.ErrorHandling`. The release notes list it as a breaking change: the packages now bring FsToolkit.ErrorHandling 5 to their consumers, whose own `FsToolkit.ErrorHandling.TaskResult` reference would duplicate `taskResult`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f822838 commit 802ff86

8 files changed

Lines changed: 4 additions & 8 deletions

File tree

‎Packages.props‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<MicrosoftExtensionsVersion>10.0.*</MicrosoftExtensionsVersion>
66
<AspNetCoreVersion>10.0.*</AspNetCoreVersion>
77
<FSharpCoreVersion>10.1.401</FSharpCoreVersion>
8-
<FsToolkitVersion>4.17.*</FsToolkitVersion>
8+
<FsToolkitVersion>5.*</FsToolkitVersion>
99
<XUnitVersion>2.9.3</XUnitVersion>
1010
<FAKEVersion>6.*</FAKEVersion>
1111
</PropertyGroup>
@@ -19,7 +19,6 @@
1919
<PackageReference Update="FSharp.Control.Reactive" Version="6.*" />
2020
<PackageReference Update="FSharp.SystemTextJson" Version="1.*" />
2121
<PackageReference Update="FsToolkit.ErrorHandling" Version="$(FsToolkitVersion)" />
22-
<PackageReference Update="FsToolkit.ErrorHandling.TaskResult" Version="$(FsToolkitVersion)" />
2322
<PackageReference Update="Giraffe" Version="7.*" />
2423
<PackageReference Update="IcedTasks" Version="0.11.*" />
2524
<PackageReference Update="Microsoft.Bcl.AsyncInterfaces" Version="$(SystemVersion)" />

‎RELEASE_NOTES.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@
296296
* **Breaking Change** `BufferedStreamOptions.Interval` and `BufferedStreamOptions.PreferredBatchSize` are now `int voption`
297297
* **Breaking Change** `ServerMessage.Error` and `ServerRawPayload.ErrorMessages` now carry `GQLProblemDetails list` instead of `NameValueLookup list`, so an `error` message's `payload` is a standard GraphQL error array as the `graphql-transport-ws` protocol requires
298298
* **Breaking Change** A query or mutation whose non-null root field fails during execution now produces a `Direct` (execution) result with `null` data instead of a `RequestError`, which is now only ever produced for a request rejected before execution (validation, planning, variable or inline argument coercion, a middleware, or the executor itself failing); HTTP and `graphql-transport-ws` responses for such a failure now carry `data: null` as the spec requires, instead of omitting `data` entirely. This also changes the public `GQLResponse.Data`, `GQLResponseContent.Direct.Data`, `DeferredErrors.Data`, and `SubscriptionErrors.Data` signatures to use `voption`
299+
* **Breaking Change** Updated `FsToolkit.ErrorHandling` to 5.x, which merged `FsToolkit.ErrorHandling.TaskResult` into the main package: a project referencing `FsToolkit.ErrorHandling.TaskResult` must remove that reference. See the [FsToolkit.ErrorHandling 5.0.0 release notes](https://github.com/demystifyfp/FsToolkit.ErrorHandling/blob/master/RELEASE_NOTES.md#500---june-02-2025) for its other breaking changes, such as `retn` renamed to `singleton`, `returnError` renamed to `error` and `and!` removed from `result { }`
299300
* Added case-insensitive string comparison support to `ObjectListFilter`, including comparer-aware filter cases and GraphQL filter suffix handling
300301
* Improved Relay XML documentation comments
301302
* Changed query planning to throw `MalformedGQLQueryException` for invalid queries, `NotSupportedException` for unsupported type definition implementations and `InvalidOperationException` for internal planning errors instead of `System.Exception`, with messages naming the affected field, type and execution kind

‎samples/chat-app/server/chat-app.fsproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="FsToolkit.ErrorHandling.TaskResult" />
10+
<PackageReference Include="FsToolkit.ErrorHandling" />
1111
<PackageReference Include="GraphQL.Server.Ui.Altair" />
1212
<PackageReference Include="GraphQL.Server.Ui.GraphiQL" />
1313
<PackageReference Include="GraphQL.Server.Ui.Voyager" />

‎samples/star-wars-api/star-wars-api.fsproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<ItemGroup Label="PackageReferences">
1010
<PackageReference Include="FSharp.Control.TaskSeq" />
11-
<PackageReference Include="FsToolkit.ErrorHandling.TaskResult" />
11+
<PackageReference Include="FsToolkit.ErrorHandling" />
1212
<PackageReference Include="GraphQL.Server.Ui.Altair" />
1313
<PackageReference Include="GraphQL.Server.Ui.GraphiQL" />
1414
<PackageReference Include="GraphQL.Server.Ui.Voyager" />

‎src/FSharp.Data.GraphQL.Server.AspNetCore/FSharp.Data.GraphQL.Server.AspNetCore.fsproj‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
<ItemGroup>
4444
<PackageReference Include="Collections.Pooled" />
4545
<PackageReference Include="FsToolkit.ErrorHandling" />
46-
<PackageReference Include="FsToolkit.ErrorHandling.TaskResult" />
4746
</ItemGroup>
4847

4948
</Project>

‎src/FSharp.Data.GraphQL.Server.Giraffe/FSharp.Data.GraphQL.Server.Giraffe.fsproj‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
<ItemGroup>
2828
<PackageReference Include="Collections.Pooled" />
2929
<PackageReference Include="FsToolkit.ErrorHandling" />
30-
<PackageReference Include="FsToolkit.ErrorHandling.TaskResult" />
3130
<PackageReference Include="Giraffe" />
3231
</ItemGroup>
3332

‎src/FSharp.Data.GraphQL.Server.Oxpecker/FSharp.Data.GraphQL.Server.Oxpecker.fsproj‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
<ItemGroup>
2828
<PackageReference Include="Collections.Pooled" />
2929
<PackageReference Include="FsToolkit.ErrorHandling" />
30-
<PackageReference Include="FsToolkit.ErrorHandling.TaskResult" />
3130
<PackageReference Include="Oxpecker" />
3231
</ItemGroup>
3332

‎tests/FSharp.Data.GraphQL.IntegrationTests.Server/FSharp.Data.GraphQL.IntegrationTests.Server.fsproj‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="FsToolkit.ErrorHandling.TaskResult" />
109
<PackageReference Include="Giraffe" />
1110
<PackageReference Include="GraphQL.Server.Ui.Voyager" />
1211
<PackageReference Include="HotChocolate.AspNetCore" />

0 commit comments

Comments
 (0)