Skip to content

Commit

Permalink
Update package dependencies (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSandersonMS authored Sep 17, 2024
1 parent 4dbb671 commit 42abb39
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 21 deletions.
24 changes: 12 additions & 12 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="BenchmarkDotNet" Version="0.13.12" />
<PackageVersion Include="BenchmarkDotNet" Version="0.14.0" />
<PackageVersion Include="Microsoft.Bcl.Numerics" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="6.0.0" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="6.0.33" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.8" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.8" />
<PackageVersion Include="Azure.AI.OpenAI" Version="1.0.0-beta.11" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Onnx" Version="1.18.0-alpha" />
<PackageVersion Include="Microsoft.SemanticKernel.Plugins.Memory" Version="1.18.0-alpha" />
Expand All @@ -18,12 +18,12 @@
<PackageVersion Include="System.Text.Json" Version="8.0.4" />
<!-- Tests -->
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.ObjectPool" Version="8.0.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
<PackageVersion Include="Microsoft.Playwright" Version="1.41.1" />
<PackageVersion Include="xunit" Version="2.4.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.5" />
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
<PackageVersion Include="Microsoft.Extensions.ObjectPool" Version="8.0.8" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="Microsoft.Playwright" Version="1.47.0" />
<PackageVersion Include="xunit" Version="2.9.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ItemGroup>
<SupportedPlatform Include="browser" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web">
<VersionOverride Condition="'$(TargetFramework)' != 'net6.0'">8.0.0</VersionOverride>
<VersionOverride Condition="'$(TargetFramework)' != 'net6.0'">8.0.8</VersionOverride>
</PackageReference>
<ProjectReference Include="..\SmartComponents.StaticAssets\SmartComponents.StaticAssets.csproj" PrivateAssets="All" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing">
<VersionOverride Condition="'$(TargetFramework)' != 'net6.0'">8.0.1</VersionOverride>
<VersionOverride Condition="'$(TargetFramework)' != 'net6.0'">8.0.8</VersionOverride>
</PackageReference>
<PackageReference Include="Microsoft.Playwright" />
<PackageReference Include="xunit" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public async Task CanComputeEmbeddings()
"Wolf",
"Elephants are here",
"Grimsby Town FC",
], sentencesRankedBySimilarity);
], sentencesRankedBySimilarity.AsSpan());
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void Similarity_ProducesExpectedResults()
"Wolf",
"Elephants are here",
"Grimsby Town FC",
], sentencesRankedBySimilarity);
], sentencesRankedBySimilarity.AsSpan());
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void Similarity_ProducesExpectedResults()
"Elephants are here",
"Wolf",
"Grimsby Town FC",
], sentencesRankedBySimilarity);
], sentencesRankedBySimilarity.AsSpan());
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void Similarity_ProducesExpectedResults()
"Wolf",
"Elephants are here",
"Grimsby Town FC",
], sentencesRankedBySimilarity);
], sentencesRankedBySimilarity.AsSpan());
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace SmartComponents.LocalEmbeddings.Test;
Expand Down Expand Up @@ -47,7 +47,7 @@ public void CanSpecifySimilarityThreshold_Static()
var closest = LocalEmbedder.FindClosest(embedder.Embed("coffee"), embeddedCandidates, 2, minSimilarity: 0.95f);
var closestWithScore = LocalEmbedder.FindClosestWithScore(embedder.Embed("coffee"), embeddedCandidates, 2, minSimilarity: 0.95f);

Assert.Equal(["Coffee"], closest);
Assert.Equal(["Coffee"], closest.AsSpan());
Assert.Collection(closestWithScore,
result => { Assert.Equal("Coffee", result.Item); Assert.InRange(result.Similarity, 0.95f, 1.01f); });
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
Expand All @@ -10,6 +10,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" />
<PackageReference Include="System.Text.Json" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 42abb39

Please sign in to comment.