Skip to content

Commit

Permalink
Release 5.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Jan 20, 2025
1 parent 55156d2 commit 19ea862
Show file tree
Hide file tree
Showing 63 changed files with 1,026 additions and 516 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
Release Notes
====

# 01-20-2025
<a href="https://www.nuget.org/packages/dotnext/5.18.0">DotNext 5.18.0</a>
* Introduced `FileUri` class that allows to convert Windows/Unix file names to URI according to `file://` scheme

<a href="https://www.nuget.org/packages/dotnext.metaprogramming/5.18.0">DotNext.Metaprogramming 5.18.0</a>
* Introduced expression tree for unsigned right shift operator `>>>`

<a href="https://www.nuget.org/packages/dotnext.unsafe/5.18.0">DotNext.Unsafe 5.18.0</a>
* Updated dependencies

<a href="https://www.nuget.org/packages/dotnext.threading/5.18.0">DotNext.Threading 5.18.0</a>
* Synchronous `TryAcquire` implemented by `AsyncExclusiveLock` and `AsyncReaderWriterLock` are now implemented in portable way. Previously, WASM target was not supported. Additionally, the method supports lock stealing
* * Improved synchronous support for `RandomAccessCache` class

<a href="https://www.nuget.org/packages/dotnext.io/5.18.0">DotNext.IO 5.18.0</a>
* Fixed issue of `PoolingBufferedStream` class when the stream has buffered bytes in the write buffer and `Position` is set to backward

<a href="https://www.nuget.org/packages/dotnext.net.cluster/5.18.0">DotNext.Net.Cluster 5.18.0</a>
* Updated dependencies

<a href="https://www.nuget.org/packages/dotnext.aspnetcore.cluster/5.18.0">DotNext.AspNetCore.Cluster 5.18.0</a>
* Updated dependencies

# 01-03-2025
<a href="https://www.nuget.org/packages/dotnext/5.17.2">DotNext 5.17.2</a>
* Improved AOT compatibility
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,29 @@ All these things are implemented in 100% managed code on top of existing .NET AP
* [NuGet Packages](https://www.nuget.org/profiles/rvsakno)

# What's new
Release Date: 01-03-2025
Release Date: 01-20-2025

<a href="https://www.nuget.org/packages/dotnext/5.17.2">DotNext 5.17.2</a>
* Improved AOT compatibility
* Fixed nullability attributes
<a href="https://www.nuget.org/packages/dotnext/5.18.0">DotNext 5.18.0</a>
* Introduced `FileUri` class that allows to convert Windows/Unix file names to URI according to `file://` scheme

<a href="https://www.nuget.org/packages/dotnext.metaprogramming/5.17.2">DotNext.Metaprogramming 5.17.2</a>
* Fixed nullability attributes
<a href="https://www.nuget.org/packages/dotnext.metaprogramming/5.18.0">DotNext.Metaprogramming 5.18.0</a>
* Introduced expression tree for unsigned right shift operator `>>>`

<a href="https://www.nuget.org/packages/dotnext.unsafe/5.17.2">DotNext.Unsafe 5.17.2</a>
* Fixed nullability attributes
<a href="https://www.nuget.org/packages/dotnext.unsafe/5.18.0">DotNext.Unsafe 5.18.0</a>
* Updated dependencies

<a href="https://www.nuget.org/packages/dotnext.threading/5.17.2">DotNext.Threading 5.17.2</a>
* Fixed nullability attributes
<a href="https://www.nuget.org/packages/dotnext.threading/5.18.0">DotNext.Threading 5.18.0</a>
* Synchronous `TryAcquire` implemented by `AsyncExclusiveLock` and `AsyncReaderWriterLock` are now implemented in portable way. Previously, WASM target was not supported. Additionally, the method supports lock stealing
* Improved synchronous support for `RandomAccessCache` class

<a href="https://www.nuget.org/packages/dotnext.io/5.17.2">DotNext.IO 5.17.2</a>
* Fixed nullability attributes
<a href="https://www.nuget.org/packages/dotnext.io/5.18.0">DotNext.IO 5.18.0</a>
* Fixed issue of `PoolingBufferedStream` class when the stream has buffered bytes in the write buffer and `Position` is set to backward

<a href="https://www.nuget.org/packages/dotnext.net.cluster/5.17.2">DotNext.Net.Cluster 5.17.2</a>
* Fixed nullability attributes
<a href="https://www.nuget.org/packages/dotnext.net.cluster/5.18.0">DotNext.Net.Cluster 5.18.0</a>
* Updated dependencies

<a href="https://www.nuget.org/packages/dotnext.aspnetcore.cluster/5.17.2">DotNext.AspNetCore.Cluster 5.17.2</a>
* Fixed nullability attributes
<a href="https://www.nuget.org/packages/dotnext.aspnetcore.cluster/5.18.0">DotNext.AspNetCore.Cluster 5.18.0</a>
* Updated dependencies

Changelog for previous versions located [here](./CHANGELOG.md).

Expand Down
14 changes: 7 additions & 7 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</ItemGroup>
<ItemGroup>
<!--Microsoft packages-->
<PackageVersion Include="Microsoft.AspNetCore.Connections.Abstractions" Version="8.0.11" />
<PackageVersion Include="Microsoft.AspNetCore.Connections.Abstractions" Version="8.0.12" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2" />
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.1" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
Expand All @@ -31,16 +31,16 @@
<PackageVersion Include="MSTest.Engine" Version="1.0.0-alpha.24562.1" />
<PackageVersion Include="MSTest.SourceGeneration" Version="1.0.0-alpha.24562.1" />
<PackageVersion Include="Microsoft.Testing.Extensions.TrxReport" Version="1.0.2" />
<PackageVersion Include="Microsoft.Testing.Platform.MSBuild" Version="1.5.0" />
<PackageVersion Include="MSTest.TestFramework" Version="3.7.0" />
<PackageVersion Include="MSTest.Analyzers" Version="3.7.0" />
<PackageVersion Include="Microsoft.Testing.Platform.MSBuild" Version="1.5.1" />
<PackageVersion Include="MSTest.TestFramework" Version="3.7.1" />
<PackageVersion Include="MSTest.Analyzers" Version="3.7.1" />
</ItemGroup>
<ItemGroup>
<!--Misc packages-->
<PackageVersion Include="BenchmarkDotNet" Version="0.14.0" />
<PackageVersion Include="FastMember.Signed" Version="1.5.0" />
<PackageVersion Include="xunit" Version="2.9.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2"/>
<PackageVersion Include="coverlet.collector" Version="6.0.2"/>
<PackageVersion Include="xunit" Version="2.9.3" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.1"/>
<PackageVersion Include="coverlet.collector" Version="6.0.4"/>
</ItemGroup>
</Project>
33 changes: 33 additions & 0 deletions src/DotNext.AotTests/DelegateHelpersTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
namespace DotNext;

public class DelegateHelpersTests
{
[TestMethod]
public void ConstantProvider()
{
Assert.AreSame(Func.Constant<string?>(null), Func.Constant<string?>(null));
Assert.IsNull(Func.Constant<string?>(null).Invoke());

Assert.AreSame(Func.Constant(true), Func.Constant(true));
Assert.AreSame(Func.Constant(false), Func.Constant(false));

Assert.AreEqual(42, Func.Constant(42).Invoke());
Assert.AreEqual("Hello, world", Func.Constant("Hello, world").Invoke());
}

[TestMethod]
public void ValueTypeConst()
{
const long value = 42L;
var provider = Func.Constant(value);
Assert.AreEqual(value, provider.Target);
}

[TestMethod]
public void StringConst()
{
const string value = "Hello, world";
var provider = Func.Constant(value);
Assert.AreSame(value, provider.Target);
}
}
3 changes: 1 addition & 2 deletions src/DotNext.IO/Buffers/Binary/SevenBitEncodedIntReader.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

namespace DotNext.Buffers.Binary;
Expand Down
2 changes: 1 addition & 1 deletion src/DotNext.IO/DotNext.IO.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<Authors>.NET Foundation and Contributors</Authors>
<Company />
<Product>.NEXT Family of Libraries</Product>
<VersionPrefix>5.17.2</VersionPrefix>
<VersionPrefix>5.18.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<AssemblyName>DotNext.IO</AssemblyName>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down
Loading

0 comments on commit 19ea862

Please sign in to comment.