Skip to content

Commit

Permalink
Update packages (#9)
Browse files Browse the repository at this point in the history
* Update `Semver` package.
* Use newest version of `Microsoft.Extensions.Primitives` package,
because the version used by Semver is too old.
    This will fix "Compiler flags not present" error 114.
  * Fix null reference warning
* Update `Verify.Xunit` package.
  • Loading branch information
jerone authored Oct 25, 2024
1 parent d97cb5f commit e317f73
Show file tree
Hide file tree
Showing 7 changed files with 1,135 additions and 577 deletions.
7 changes: 4 additions & 3 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
<PackageVersion Include="DevToys.Api" Version="2.0.5-preview" />
<PackageVersion Include="DotNet.ReproducibleBuilds" Version="1.2.25" />
<PackageVersion Include="GitHubActionsTestLogger" Version="2.4.1" />
<PackageVersion Include="Microsoft.Extensions.Primitives" Version="8.0.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="Moq" Version="4.20.72" />
<PackageVersion Include="Moq.Contrib.HttpClient" Version="1.4.0" />
<PackageVersion Include="PosInformatique.Moq.Analyzers" Version="1.10.0" />
<PackageVersion Include="Semver" Version="2.3.0" />
<PackageVersion Include="Verify.Xunit" Version="27.0.1" />
<PackageVersion Include="Semver" Version="3.0.0" />
<PackageVersion Include="Verify.Xunit" Version="27.1.0" />
<PackageVersion Include="xunit" Version="2.9.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Primitives" /> <!-- Package `Moq.Contrib.HttpClient` is using a too old version. -->
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Moq" />
<PackageReference Include="Moq.Contrib.HttpClient" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Primitives" /> <!-- Package `Semver` is using a too old version. -->
<PackageReference Include="Semver" />
</ItemGroup>

Expand Down
1,035 changes: 1,035 additions & 0 deletions Jvw.DevToys.SemverCalculator/Pack/Microsoft.Extensions.Primitives.xml

Large diffs are not rendered by default.

Binary file modified Jvw.DevToys.SemverCalculator/Pack/Semver.pdb
Binary file not shown.
666 changes: 93 additions & 573 deletions Jvw.DevToys.SemverCalculator/Pack/Semver.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Jvw.DevToys.SemverCalculator/Services/NpmService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public bool IsValidRange(string value)
/// <param name="value">Range value.</param>
/// <param name="versionRange">Parsed version range.</param>
/// <returns>Whether value is valid range.</returns>
private static bool TryParseRange(string value, out SemVersionRange versionRange)
private static bool TryParseRange(string value, out SemVersionRange? versionRange)
{
return SemVersionRange.TryParseNpm(value, true, out versionRange);
}
Expand Down

0 comments on commit e317f73

Please sign in to comment.