Skip to content

Commit 841447c

Browse files
committed
Target STJ 10
1 parent 34ef655 commit 841447c

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ The `Unreleased` section name is replaced by the expected version of next releas
1010

1111
### Added
1212
### Changed
13+
14+
- `SystemTextJson`: Upped minimum `System.Text.Json` version to `10.0.` [#129](https://github.com/jet/FsCodec/pull/129)
15+
1316
### Removed
1417
### Fixed
1518

src/FsCodec.SystemTextJson/FsCodec.SystemTextJson.fsproj

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

2828
<PackageReference Include="FSharp.Core" Version="4.5.4" />
2929

30-
<PackageReference Include="System.Text.Json" Version="6.0.10" />
30+
<PackageReference Include="System.Text.Json" Version="10.0.0-rc.2.25502.107" />
3131
</ItemGroup>
3232

3333
<ItemGroup>

src/FsCodec.SystemTextJson/Interop.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ open System
44
open System.Runtime.CompilerServices
55
open System.Text.Json
66

7-
[<Extension; AbstractClass; Sealed>]
7+
[<AbstractClass; Sealed>]
88
type InteropHelpers private () =
99

1010
static member Utf8ToJsonElement(x: ReadOnlyMemory<byte>): JsonElement =
1111
if x.IsEmpty then JsonElement()
12-
else JsonSerializer.Deserialize<JsonElement>(x.Span)
12+
else JsonElement.Parse x.Span
1313

1414
static member JsonElementToUtf8(x: JsonElement): ReadOnlyMemory<byte> =
1515
if x.ValueKind = JsonValueKind.Undefined then ReadOnlyMemory.Empty

0 commit comments

Comments
 (0)