Skip to content

Commit

Permalink
Update deps before 0.4 release (#937)
Browse files Browse the repository at this point in the history
* Update the deps in the project before the 0.4 release

* Upgrade the .NX library as well
  • Loading branch information
halgari committed Feb 13, 2024
1 parent 9de1bdd commit e24eb97
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
10 changes: 5 additions & 5 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<ItemGroup>
<!-- Custom Packages -->
<PackageVersion Include="LinqGen" Version="0.3.1" />
<PackageVersion Include="NexusMods.Hashing.xxHash64" Version="1.0.1" />
<PackageVersion Include="NexusMods.Hashing.xxHash64" Version="2.0.0" />
<PackageVersion Include="NexusMods.Paths" Version="0.6.0" />
<PackageVersion Include="NexusMods.Archives.Nx" Version="0.3.7" />
<PackageVersion Include="NexusMods.Archives.Nx" Version="0.3.8" />
<PackageVersion Include="NexusMods.Paths.TestingHelpers" Version="0.6.0" />
<PackageVersion Include="NexusMods.ProxyConsole.Abstractions" Version="0.6.0" />
<PackageVersion Include="NexusMods.SingleProcess" Version="0.6.0" />
Expand All @@ -13,7 +13,7 @@
<PackageVersion Include="FomodInstaller.Scripting.XmlScript" Version="1.0.0" />
<!-- Bannerlord -->
<PackageVersion Include="Bannerlord.LauncherManager" Version="1.0.76" />
<PackageVersion Include="FetchBannerlordVersion" Version="1.0.6.39" />
<PackageVersion Include="FetchBannerlordVersion" Version="1.0.6.45" />
<PackageVersion Include="System.Linq" Version="4.3.0" />
<PackageVersion Include="System.Text.Json" Version="8.0.1" />
</ItemGroup>
Expand Down Expand Up @@ -77,13 +77,13 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0-release-23619-01" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageVersion Include="NSubstitute" Version="5.1.0" />
<PackageVersion Include="NSubstitute.Analyzers.CSharp" Version="1.0.17">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<PackageVersion Include="Verify.Xunit" Version="22.8.0" />
<PackageVersion Include="Verify.Xunit" Version="23.1.0" />
<PackageVersion Include="Verify.ImageMagick" Version="3.2.2" />
<PackageVersion Include="xunit" Version="2.6.6" />
<PackageVersion Include="Xunit.DependencyInjection" Version="8.9.1" />
Expand Down
3 changes: 1 addition & 2 deletions benchmarks/NexusMods.Benchmarks/Benchmarks/XxHash64.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public XxHash64()
[Benchmark]
public void NonAsyncHash()
{
var algo = new XxHash64Algorithm(0);
algo.HashBytes(_oneGB.AsSpan()[..Size]);
XxHash64Algorithm.HashBytes(_oneGB.AsSpan()[..Size]);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ public Hash Digest()
_binaryWriter.Flush();
var ms = ((MemoryStream) _binaryWriter.BaseStream);
ms.Position = 0;
XxHash64Algorithm algo = new();

var hash = Hash.FromULong(algo.HashBytes(ms.ToArray()));
var hash = Hash.FromULong(XxHash64Algorithm.HashBytes(ms.ToArray()));

_binaryWriter.Close();
return hash;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static class EntityDictionaryExtensions

if (!id.Equals(oldId))
{
changes.Add(new Change<IId, TK>(ChangeReason.Update, key, id, Optional.Some(oldId)));
changes.Add(new Change<IId, TK>(ChangeReason.Update, key, id, Optional.Some(oldId)));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/NexusMods.DataModel/SqliteDataStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public IEnumerable<IId> AllIds(EntityCategory category)
var ms = new MemoryStream();
JsonSerializer.Serialize(ms, entity, _jsonOptions.Value);
var msBytes = ms.ToArray();
var hash = new XxHash64Algorithm(0).HashBytes(msBytes);
var hash = XxHash64Algorithm.HashBytes(msBytes);
var id = new Id64(entity.Category, hash);
data = msBytes;
return id;
Expand Down
1 change: 0 additions & 1 deletion tests/NexusMods.UI.Tests/WorkspaceSystem/IconUtilsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace NexusMods.UI.Tests.WorkspaceSystem;

[UsesVerify]
public class IconUtilsTests(IServiceProvider provider) : AUiTest(provider)
{
[Fact]
Expand Down

0 comments on commit e24eb97

Please sign in to comment.