Skip to content

Commit

Permalink
chore: updating nuget packages in json serialization (#411)
Browse files Browse the repository at this point in the history
* chore: updating nuget packages in json serialization
  • Loading branch information
MadsDue authored Nov 25, 2024
1 parent a838ca2 commit 11890c7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
5 changes: 5 additions & 0 deletions source/JsonSerialization/documents/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# JsonSerialization Release Notes

## Version 2.2.13

- Bumped various NuGet packages to the latest versions.
- No functional changes.

## Version 2.2.12

- Bump System.Text.Json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ limitations under the License.
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Energinet.DataHub.Core.TestCommon" Version="1.4.0" />
<PackageReference Include="FluentAssertions" Version="6.5.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.categories" Version="2.0.5" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="Energinet.DataHub.Core.TestCommon" Version="1.4.1" />
<PackageReference Include="FluentAssertions" Version="6.12.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.categories" Version="2.0.8" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.0">
<PackageReference Include="coverlet.collector" Version="3.2.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ limitations under the License.

<PropertyGroup>
<PackageId>Energinet.DataHub.Core.JsonSerialization</PackageId>
<PackageVersion>2.2.12$(VersionSuffix)</PackageVersion>
<PackageVersion>2.2.13$(VersionSuffix)</PackageVersion>
<Title>JsonSerialization library</Title>
<Company>Energinet-DataHub</Company>
<Authors>Energinet-DataHub</Authors>
Expand Down Expand Up @@ -70,8 +70,8 @@ limitations under the License.
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NodaTime.Serialization.SystemTextJson" Version="1.0.0" />
<PackageReference Include="System.Text.Json" Version="6.0.10" />
<PackageReference Include="NodaTime.Serialization.SystemTextJson" Version="1.2.0" />
<PackageReference Include="System.Text.Json" Version="9.0.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ public JsonSerializer(JsonSerializerOptions? options = null)
_options.ConfigureForNodaTime(DateTimeZoneProviders.Tzdb);
}

public JsonSerializer()
{
_options = new JsonSerializerOptions();
_options.Converters.Add(NodaConverters.InstantConverter);
_options.ConfigureForNodaTime(DateTimeZoneProviders.Tzdb);
}

public async ValueTask<object> DeserializeAsync(Stream utf8Json, Type returnType)
{
ArgumentNullException.ThrowIfNull(utf8Json);
Expand Down

0 comments on commit 11890c7

Please sign in to comment.