Skip to content

Commit

Permalink
🔖 Chasm.Utilities v2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Chasmical committed Sep 6, 2024
1 parent 4685f95 commit 5c7d4ec
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Chasm.Utilities/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Chasm.Utilities Changelog

### v2.5.0
- ✨ Added `static class HashCodeExtensions`;
- ✨ Added `HashCodeExtensions.AddRange<T>(this HashCode, ReadOnlySpan<T>)`;
- ✨ Added `HashCodeExtensions.AddRange<T>(this HashCode, ReadOnlySpan<T>, IEqualityComparer<T>?)`;
- ✨ Added `HashCodeExtensions.AddRange<T>(this HashCode, IEnumerable<T>)`;
- ✨ Added `HashCodeExtensions.AddRange<T>(this HashCode, IEnumerable<T>, IEqualityComparer<T>?)`;
- 🧩 Added `netcoreapp2.1` and `netstandard2.0` targets. Now targets: `net8.0`, `netcoreapp3.0`, `netcoreapp2.1`, `netcoreapp1.0`, `netstandard2.1`, `netstandard2.0`, `netstandard1.0`, `net45`, `net35`;
- ⚡️ Microoptimized IL code size of `DelegateDisposable`'s constructor;

### v2.4.0
- ✨ Added `static class WeakReferenceExtensions`;
- ✨ Added `WeakReferenceExtensions.TryGetTarget(this WeakReference, out object?)`;
Expand Down
5 changes: 4 additions & 1 deletion Chasm.Utilities/Chasm.Utilities.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
<TargetFrameworks>
net8.0;
netcoreapp3.0;
netcoreapp2.1;
netcoreapp1.0;
netstandard2.1;
netstandard2.0;
netstandard1.0;
net45;
net35;
Expand All @@ -17,14 +19,15 @@
|================|=================|=========|==============================
| net8.0 | | | - latest API, for use in IDE
| netcoreapp3.0 | netstandard2.1 | | - NotNullWhenAttribute
| netcoreapp2.1 | netstandard2.0 | | - HashCode
| netcoreapp1.0 | netstandard1.0 | net45 | - MethodImplOptions.AggressiveInlining
| netcoreapp1.0 | netstandard1.0 | net35 | - lowest supported API, Extension attribute
-->

<!-- Header -->
<AssemblyName>Chasm.Utilities</AssemblyName>
<PackageId>$(AssemblyName)</PackageId>
<Version>2.4.0</Version>
<Version>2.5.0</Version>

<!-- Title, Description, Tags -->
<Title>$(AssemblyName)</Title>
Expand Down
1 change: 1 addition & 0 deletions Chasm.Utilities/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ public static TResult With<T, TResult>([HandlesResourceDisposal] T disposable, [
public static void Swap<T>(ref T a, ref T b)
{
#pragma warning disable IDE0180 // Suppress 'Use tuple to swap values' message
// ReSharper disable once SwapViaDeconstruction
T temp = a;
a = b;
b = temp;
Expand Down

0 comments on commit 5c7d4ec

Please sign in to comment.