Skip to content

Commit 19ea862

Browse files
committed
Release 5.18.0
1 parent 55156d2 commit 19ea862

File tree

63 files changed

+1026
-516
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1026
-516
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
Release Notes
22
====
33

4+
# 01-20-2025
5+
<a href="https://www.nuget.org/packages/dotnext/5.18.0">DotNext 5.18.0</a>
6+
* Introduced `FileUri` class that allows to convert Windows/Unix file names to URI according to `file://` scheme
7+
8+
<a href="https://www.nuget.org/packages/dotnext.metaprogramming/5.18.0">DotNext.Metaprogramming 5.18.0</a>
9+
* Introduced expression tree for unsigned right shift operator `>>>`
10+
11+
<a href="https://www.nuget.org/packages/dotnext.unsafe/5.18.0">DotNext.Unsafe 5.18.0</a>
12+
* Updated dependencies
13+
14+
<a href="https://www.nuget.org/packages/dotnext.threading/5.18.0">DotNext.Threading 5.18.0</a>
15+
* 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
16+
* * Improved synchronous support for `RandomAccessCache` class
17+
18+
<a href="https://www.nuget.org/packages/dotnext.io/5.18.0">DotNext.IO 5.18.0</a>
19+
* Fixed issue of `PoolingBufferedStream` class when the stream has buffered bytes in the write buffer and `Position` is set to backward
20+
21+
<a href="https://www.nuget.org/packages/dotnext.net.cluster/5.18.0">DotNext.Net.Cluster 5.18.0</a>
22+
* Updated dependencies
23+
24+
<a href="https://www.nuget.org/packages/dotnext.aspnetcore.cluster/5.18.0">DotNext.AspNetCore.Cluster 5.18.0</a>
25+
* Updated dependencies
26+
427
# 01-03-2025
528
<a href="https://www.nuget.org/packages/dotnext/5.17.2">DotNext 5.17.2</a>
629
* Improved AOT compatibility

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,29 +44,29 @@ All these things are implemented in 100% managed code on top of existing .NET AP
4444
* [NuGet Packages](https://www.nuget.org/profiles/rvsakno)
4545

4646
# What's new
47-
Release Date: 01-03-2025
47+
Release Date: 01-20-2025
4848

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

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

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

59-
<a href="https://www.nuget.org/packages/dotnext.threading/5.17.2">DotNext.Threading 5.17.2</a>
60-
* Fixed nullability attributes
58+
<a href="https://www.nuget.org/packages/dotnext.threading/5.18.0">DotNext.Threading 5.18.0</a>
59+
* 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
60+
* Improved synchronous support for `RandomAccessCache` class
6161

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

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

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

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

src/Directory.Packages.props

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</ItemGroup>
2020
<ItemGroup>
2121
<!--Microsoft packages-->
22-
<PackageVersion Include="Microsoft.AspNetCore.Connections.Abstractions" Version="8.0.11" />
22+
<PackageVersion Include="Microsoft.AspNetCore.Connections.Abstractions" Version="8.0.12" />
2323
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2" />
2424
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.1" />
2525
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
@@ -31,16 +31,16 @@
3131
<PackageVersion Include="MSTest.Engine" Version="1.0.0-alpha.24562.1" />
3232
<PackageVersion Include="MSTest.SourceGeneration" Version="1.0.0-alpha.24562.1" />
3333
<PackageVersion Include="Microsoft.Testing.Extensions.TrxReport" Version="1.0.2" />
34-
<PackageVersion Include="Microsoft.Testing.Platform.MSBuild" Version="1.5.0" />
35-
<PackageVersion Include="MSTest.TestFramework" Version="3.7.0" />
36-
<PackageVersion Include="MSTest.Analyzers" Version="3.7.0" />
34+
<PackageVersion Include="Microsoft.Testing.Platform.MSBuild" Version="1.5.1" />
35+
<PackageVersion Include="MSTest.TestFramework" Version="3.7.1" />
36+
<PackageVersion Include="MSTest.Analyzers" Version="3.7.1" />
3737
</ItemGroup>
3838
<ItemGroup>
3939
<!--Misc packages-->
4040
<PackageVersion Include="BenchmarkDotNet" Version="0.14.0" />
4141
<PackageVersion Include="FastMember.Signed" Version="1.5.0" />
42-
<PackageVersion Include="xunit" Version="2.9.2" />
43-
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2"/>
44-
<PackageVersion Include="coverlet.collector" Version="6.0.2"/>
42+
<PackageVersion Include="xunit" Version="2.9.3" />
43+
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.1"/>
44+
<PackageVersion Include="coverlet.collector" Version="6.0.4"/>
4545
</ItemGroup>
4646
</Project>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
namespace DotNext;
2+
3+
public class DelegateHelpersTests
4+
{
5+
[TestMethod]
6+
public void ConstantProvider()
7+
{
8+
Assert.AreSame(Func.Constant<string?>(null), Func.Constant<string?>(null));
9+
Assert.IsNull(Func.Constant<string?>(null).Invoke());
10+
11+
Assert.AreSame(Func.Constant(true), Func.Constant(true));
12+
Assert.AreSame(Func.Constant(false), Func.Constant(false));
13+
14+
Assert.AreEqual(42, Func.Constant(42).Invoke());
15+
Assert.AreEqual("Hello, world", Func.Constant("Hello, world").Invoke());
16+
}
17+
18+
[TestMethod]
19+
public void ValueTypeConst()
20+
{
21+
const long value = 42L;
22+
var provider = Func.Constant(value);
23+
Assert.AreEqual(value, provider.Target);
24+
}
25+
26+
[TestMethod]
27+
public void StringConst()
28+
{
29+
const string value = "Hello, world";
30+
var provider = Func.Constant(value);
31+
Assert.AreSame(value, provider.Target);
32+
}
33+
}

src/DotNext.IO/Buffers/Binary/SevenBitEncodedIntReader.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Numerics;
2-
using System.Runtime.CompilerServices;
1+
using System.Runtime.CompilerServices;
32
using System.Runtime.InteropServices;
43

54
namespace DotNext.Buffers.Binary;

src/DotNext.IO/DotNext.IO.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<Authors>.NET Foundation and Contributors</Authors>
1212
<Company />
1313
<Product>.NEXT Family of Libraries</Product>
14-
<VersionPrefix>5.17.2</VersionPrefix>
14+
<VersionPrefix>5.18.0</VersionPrefix>
1515
<VersionSuffix></VersionSuffix>
1616
<AssemblyName>DotNext.IO</AssemblyName>
1717
<PackageLicenseExpression>MIT</PackageLicenseExpression>

0 commit comments

Comments
 (0)