From ad3a2970e2c609109179b61924cc5e6ea9396c2d Mon Sep 17 00:00:00 2001 From: Harry Cordewener Date: Tue, 9 Jan 2024 02:16:14 -0600 Subject: [PATCH] Fix V1.0.5. --- CHANGELOG.md | 8 +++++++- TelnetNegotiationCore/Models/Trigger.cs | 8 ++++++-- TelnetNegotiationCore/TelnetNegotiationCore.csproj | 3 +-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 865831c..4c20d5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,16 @@ # Change Log All notable changes to this project will be documented in this file. +## [1.0.6] - 2024-01-09 + +### Changed +- Replaces 1.0.5, which was an invalid package update. +- Removed MoreLINQ dependency by making a copy of the function I needed and keep dependencies lower. License retained in the source file - to abide by Apache2 License. + ## [1.0.5] - 2024-01-09 ### Changed -- Removed MoreLinq dependency by making a copy of the function I needed and keep dependencies lower. License retained in the source file - to abide by Apache2 License. +- Removed MoreLINQ dependency by making a copy of the function I needed and keep dependencies lower. License retained in the source file - to abide by Apache2 License. ## [1.0.4] - 2024-01-09 diff --git a/TelnetNegotiationCore/Models/Trigger.cs b/TelnetNegotiationCore/Models/Trigger.cs index 17ee7ca..5aef643 100644 --- a/TelnetNegotiationCore/Models/Trigger.cs +++ b/TelnetNegotiationCore/Models/Trigger.cs @@ -40,10 +40,14 @@ public static class TriggerHelper private static readonly ImmutableHashSet AllTriggers = ImmutableHashSet.Empty.Union(((IEnumerable)Enum.GetValues(typeof(Trigger))).Distinct()); public static void ForAllTriggers(Action f) - => MoreLinq.MoreEnumerable.ForEach(AllTriggers, f); + { + foreach(var trigger in AllTriggers) f(trigger); + } public static void ForAllTriggersExcept(IEnumerable except, Action f) - => MoreLinq.MoreEnumerable.ForEach(AllTriggers.Except(except), f); + { + foreach (var trigger in AllTriggers.Except(except)) f(trigger); + } public static void ForAllTriggersButIAC(Action f) => ForAllTriggersExcept([Trigger.IAC], f); diff --git a/TelnetNegotiationCore/TelnetNegotiationCore.csproj b/TelnetNegotiationCore/TelnetNegotiationCore.csproj index 08a8b54..f6f6ddd 100644 --- a/TelnetNegotiationCore/TelnetNegotiationCore.csproj +++ b/TelnetNegotiationCore/TelnetNegotiationCore.csproj @@ -3,7 +3,7 @@ net8.0 latest - 1.0.5 + 1.0.6 True Telnet Negotiation Core $(AssemblyName) @@ -49,7 +49,6 @@ lib\$(TargetFramework) -