Skip to content

Commit 6a7be53

Browse files
authored
Merge pull request #17 from aevitas/fix/netstandard20-support
finalize netstandard2.0 support
2 parents 14259d4 + 5ce0d1a commit 6a7be53

4 files changed

Lines changed: 10 additions & 11 deletions

File tree

src/FlakeId.Benchmarks/FlakeId.Benchmarks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
66
</PropertyGroup>
77

88
<ItemGroup>

src/FlakeId.Tests/FlakeId.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp2.0;netcoreapp2.1;netcoreapp2.2;netcoreapp3.0;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0;net461;net462;net47;net471;net472;net48;net481;</TargetFrameworks>
4+
<TargetFrameworks>net8.0</TargetFrameworks>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

src/FlakeId/FlakeId.csproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
6-
<Description>Discord inspired Twitter like implementation of Snowflake IDs, focused on performance. Snowflakes are 64 bit, highly optimized, decentralized, K-ordered, unique identifiers.</Description>
6+
<Description>Discord inspired, Twitter like implementation of Snowflake IDs, focused on performance. Snowflakes are 64 bit, highly optimized, decentralized, K-ordered, unique identifiers.</Description>
77
<RepositoryUrl>https://github.com/aevitas/flakeid</RepositoryUrl>
88
<PackageTags>snowflake, discord, discord id, unique id, uuid, flake, flake id</PackageTags>
99
<Authors>aevitas</Authors>
1010
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
11-
<Version>1.1.3</Version>
11+
<Version>1.2.0</Version>
1212
<PackageId>FlakeId</PackageId>
1313
<Product>FlakeId</Product>
1414
<PackageIcon>snowflake-96.png</PackageIcon>
1515
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
16-
<TargetFramework>netstandard2.1</TargetFramework>
1716
</PropertyGroup>
1817

1918
<ItemGroup>

src/FlakeId/Id.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,20 +160,20 @@ private void CreateInternal(long timeStampMs = 0)
160160
}
161161
}
162162

163-
public override readonly string ToString() => _value.ToString();
163+
public override string ToString() => _value.ToString();
164164

165165
public static implicit operator long(Id id) => id._value;
166166

167167
public static bool operator ==(Id left, Id right) => left._value == right._value;
168168

169169
public static bool operator !=(Id left, Id right) => !(left == right);
170170

171-
public readonly int CompareTo(Id other) => _value.CompareTo(other._value);
171+
public int CompareTo(Id other) => _value.CompareTo(other._value);
172172

173-
public readonly bool Equals(Id other) => _value == other._value;
173+
public bool Equals(Id other) => _value == other._value;
174174

175-
public override readonly bool Equals(object obj) => obj is Id other && Equals(other);
175+
public override bool Equals(object obj) => obj is Id other && Equals(other);
176176

177-
public override readonly int GetHashCode() => _value.GetHashCode();
177+
public override int GetHashCode() => _value.GetHashCode();
178178
}
179179
}

0 commit comments

Comments
 (0)