Skip to content

Commit

Permalink
Fix V1.0.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryCordewener committed Jan 9, 2024
1 parent 76cab8e commit ad3a297
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
8 changes: 6 additions & 2 deletions TelnetNegotiationCore/Models/Trigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,14 @@ public static class TriggerHelper
private static readonly ImmutableHashSet<Trigger> AllTriggers = ImmutableHashSet<Trigger>.Empty.Union(((IEnumerable<Trigger>)Enum.GetValues(typeof(Trigger))).Distinct());

public static void ForAllTriggers(Action<Trigger> f)
=> MoreLinq.MoreEnumerable.ForEach(AllTriggers, f);
{
foreach(var trigger in AllTriggers) f(trigger);
}

public static void ForAllTriggersExcept(IEnumerable<Trigger> except, Action<Trigger> f)
=> MoreLinq.MoreEnumerable.ForEach(AllTriggers.Except(except), f);
{
foreach (var trigger in AllTriggers.Except(except)) f(trigger);
}

public static void ForAllTriggersButIAC(Action<Trigger> f)
=> ForAllTriggersExcept([Trigger.IAC], f);
Expand Down
3 changes: 1 addition & 2 deletions TelnetNegotiationCore/TelnetNegotiationCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Version>1.0.5</Version>
<Version>1.0.6</Version>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>Telnet Negotiation Core</Title>
<PackageId>$(AssemblyName)</PackageId>
Expand Down Expand Up @@ -49,7 +49,6 @@
<PackagePath>lib\$(TargetFramework)</PackagePath>
</Content>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<PackageReference Include="morelinq" Version="3.4.2" />
<PackageReference Include="OneOf" Version="3.0.255" />
<PackageReference Include="stateless" Version="5.13.0" />
<PackageReference Include="System.Collections.Immutable" Version="8.0.0" />
Expand Down

0 comments on commit ad3a297

Please sign in to comment.