Skip to content

Commit

Permalink
v4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Jan 17, 2025
1 parent ea4baf5 commit b046f06
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 4.2.0

- Correctly handle key not found exception when applying patch document to dictionary https://github.com/Havunen/SystemTextJsonPatch/pull/40
- Respect STJ options PropertyNameCaseInsensitive setting https://github.com/Havunen/SystemTextJsonPatch/pull/42
- Internal dependencies updated

## 4.1.0

- Adds .NET 9 support
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ This test deserializes a JSON patch document of 8 operations and applies the cha

See [SystemTextJsonPatch.Benchmark](https://github.com/Havunen/SystemTextJsonPatch/tree/main/SystemTextJsonPatch.Benchmark) for more details.

BenchmarkDotNet v0.14.0, Windows 11 (10.0.22631.4460/23H2/2023Update/SunValley3)
BenchmarkDotNet v0.14.0, Windows 11 (10.0.26100.2605)
AMD Ryzen 9 5950X, 1 CPU, 32 logical and 16 physical cores
.NET SDK 9.0.100
.NET SDK 9.0.200-preview.0.24575.35
[Host] : .NET 9.0.0 (9.0.24.52809), X64 RyuJIT AVX2
Job-ZXROHW : .NET 9.0.0 (9.0.24.52809), X64 RyuJIT AVX2
Job-ZCWSQV : .NET 9.0.0 (9.0.24.52809), X64 RyuJIT AVX2

WarmupCount=2

| Method | Mean | Error | StdDev | Gen0 | Gen1 | Allocated |
|-------------------- |-----------:|-----------:|-----------:|-------:|-------:|----------:|
| SystemTextJsonPatch | 3.641 us | 0.0168 us | 0.0149 us | 0.2747 | - | 4.63 KB |
| MarvinJsonPatch | 701.319 us | 13.7540 us | 16.8912 us | 3.9063 | 1.9531 | 95.3 KB |
| AspNetCoreJsonPatch | 14.871 us | 0.2871 us | 0.2820 us | 2.6245 | 0.0916 | 43.07 KB |
| SystemTextJsonPatch | 3.909 us | 0.0616 us | 0.0576 us | 0.2747 | - | 4.63 KB |
| MarvinJsonPatch | 741.280 us | 14.2699 us | 11.9160 us | 3.9063 | 1.9531 | 95.09 KB |
| AspNetCoreJsonPatch | 15.268 us | 0.2227 us | 0.2084 us | 2.6245 | 0.0916 | 43.07 KB |
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
<PackageReference Include="Marvin.JsonPatch" Version="2.2.1" />
<PackageReference Include="Microsoft.AspNetCore.JsonPatch" Version="9.0.0" />
<PackageReference Include="Microsoft.AspNetCore.JsonPatch" Version="9.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

Expand Down
6 changes: 3 additions & 3 deletions SystemTextJsonPatch.Tests/SystemTextJsonPatch.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

<ItemGroup>
<PackageReference Include="JUnitTestLogger" Version="1.1.0" />
<PackageReference Include="Microsoft.Net.Test.Sdk" Version="17.11.1" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="Microsoft.Net.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.3" />
<!-- use latest NewtonSoft package, hides Microsoft.Net.Test.Sdk -> Microsoft.TestPlatform.TestHost refs NewtonSoft.Json >= 9.0 -->
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions SystemTextJsonPatch/SystemTextJsonPatch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageTags>aspnetcore;json;jsonpatch;system.text.json;rfc6902;</PackageTags>
<LangVersion>12</LangVersion>
<Version>4.1.0</Version>
<Version>4.2.0</Version>
<RepositoryUrl>https://github.com/Havunen/SystemTextJsonPatch.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<AnalysisLevel>9.0-all</AnalysisLevel>
Expand Down Expand Up @@ -36,7 +36,7 @@
</ItemGroup>

<ItemGroup Condition="'$(targetframework)' == 'netstandard2.0'">
<PackageReference Include="System.Text.Json" Version="9.0.0" />
<PackageReference Include="System.Text.Json" Version="9.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit b046f06

Please sign in to comment.