Skip to content

Commit 63ae06b

Browse files
committed
Update dependencies and migrate to LzmaStream.Create API
- Bump test dependencies (NUnit, Test SDK, adapters, coverlet) - Update Microsoft.SourceLink.GitHub and SharpCompress versions - Refactor LzmaHandler to use LzmaStream.Create factory methods
1 parent 0346ab5 commit 63ae06b

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

Tpk.Tests/Tpk.Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
14-
<PackageReference Include="NUnit" Version="4.2.2" />
15-
<PackageReference Include="NUnit.Analyzers" Version="4.11.2">
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
14+
<PackageReference Include="NUnit" Version="4.5.1" />
15+
<PackageReference Include="NUnit.Analyzers" Version="4.12.0">
1616
<PrivateAssets>all</PrivateAssets>
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>
19-
<PackageReference Include="NUnit3TestAdapter" Version="6.0.0" />
20-
<PackageReference Include="coverlet.collector" Version="8.0.0">
19+
<PackageReference Include="NUnit3TestAdapter" Version="6.2.0" />
20+
<PackageReference Include="coverlet.collector" Version="8.0.1">
2121
<PrivateAssets>all</PrivateAssets>
2222
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2323
</PackageReference>

Tpk.TypeTrees.Json.Tests/Tpk.TypeTrees.Json.Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
14-
<PackageReference Include="NUnit" Version="4.2.2" />
15-
<PackageReference Include="NUnit.Analyzers" Version="4.11.2">
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
14+
<PackageReference Include="NUnit" Version="4.5.1" />
15+
<PackageReference Include="NUnit.Analyzers" Version="4.12.0">
1616
<PrivateAssets>all</PrivateAssets>
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>
19-
<PackageReference Include="NUnit3TestAdapter" Version="6.0.0" />
20-
<PackageReference Include="coverlet.collector" Version="8.0.0">
19+
<PackageReference Include="NUnit3TestAdapter" Version="6.2.0" />
20+
<PackageReference Include="coverlet.collector" Version="8.0.1">
2121
<PrivateAssets>all</PrivateAssets>
2222
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2323
</PackageReference>

Tpk.TypeTrees.Json/Tpk.TypeTrees.Json.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<ItemGroup>
3232
<PackageReference Include="AssetRipper.HashAlgorithms" Version="1.0.0" />
33-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
33+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.201">
3434
<PrivateAssets>all</PrivateAssets>
3535
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3636
</PackageReference>

Tpk/Compression/LzmaHandler.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static byte[] Compress(byte[] uncompressedBytes)
99
LzmaEncoderProperties properties = new LzmaEncoderProperties(false, 1 << 25, 256);
1010
using MemoryStream inputStream = new MemoryStream(uncompressedBytes);
1111
using MemoryStream outputStream = new MemoryStream();
12-
using LzmaStream lzmaStream = new LzmaStream(properties, false, outputStream);
12+
using LzmaStream lzmaStream = LzmaStream.Create(properties, false, outputStream);
1313
outputStream.Write(lzmaStream.Properties);
1414
inputStream.CopyTo(lzmaStream);
1515
lzmaStream.Close();
@@ -25,7 +25,7 @@ public static byte[] Decompress(byte[] compressedBytes, int decompressedSize)
2525
using MemoryStream inputStream = new MemoryStream(compressedBytes);
2626
inputStream.Position = 5;
2727
using MemoryStream outputStream = new MemoryStream();
28-
using LzmaStream lzmaStream = new LzmaStream(properties, inputStream, compressedBytes.Length - 5, decompressedSize);
28+
using LzmaStream lzmaStream = LzmaStream.Create(properties, inputStream, compressedBytes.Length - 5, decompressedSize);
2929
lzmaStream.CopyTo(outputStream);
3030
return outputStream.ToArray();
3131
}
@@ -38,7 +38,7 @@ public static LzmaStream DecompressStream(byte[] compressedBytes, int decompress
3838
byte[] properties = new Span<byte>(compressedBytes, 0, 5).ToArray();
3939
MemoryStream inputStream = new MemoryStream(compressedBytes);
4040
inputStream.Position = 5;
41-
return new LzmaStream(properties, inputStream, compressedBytes.Length - 5, decompressedSize);
41+
return LzmaStream.Create(properties, inputStream, compressedBytes.Length - 5, decompressedSize);
4242
}
4343
}
4444
}

Tpk/Tpk.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
<ItemGroup>
3232
<PackageReference Include="AssetRipper.Primitives" Version="3.2.0" />
3333
<PackageReference Include="K4os.Compression.LZ4" Version="1.3.8" />
34-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
34+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.201">
3535
<PrivateAssets>all</PrivateAssets>
3636
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3737
</PackageReference>
38-
<PackageReference Include="SharpCompress" Version="0.44.1" />
38+
<PackageReference Include="SharpCompress" Version="0.47.3" />
3939
</ItemGroup>
4040

4141
</Project>

0 commit comments

Comments
 (0)