All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.1 - 2024-02-19
- Fixed a bug in
Luhn.ComputeLuhnNumber
andLuhn.ComputeLuhnCheckDigit
methods that sometimes returned an incorrect result.
1.0.0 - 2024-02-19
- Added .NET 8 support
- Added support for SourceLink (GitHub)
- Enable deterministic builds
- Changed parameter type of
Luhn.IsValid
,Luhn.ComputeLuhnNumber
andLuhn.ComputeCheckDigit
methods fromstring
toReadOnlySpan<char>
.
Luhn.Compute()
method is EOL and will be deleted in the next version. UseLuhn.ComputeCheckDigit()
orLuhn.ComputeLuhanNumber()
instead.
0.2.0 - 2022-12-18
- Added .NET 7 support
- Added feature to remove all leading and trailing white-space characters from the String object representing a number w/ and w/o Luhn check digit.
- Added an overload of the
Luhn.IsValid
method to accept a String object representing a number w/o Luhn check digit. The check digit is separated from the number as single byte parameter. - Added
Luhn.ComputeCheckDigit
method to compute the Luhn check digit. - Added
Luhn.ComputeLuhnNumber
method to compute the Luhn number.
- Updated Microsoft.NETFramework.ReferenceAssemblies to v1.0.3
Luhn.Compute()
method is deprecated. UseLuhn.ComputeCheckDigit()
orLuhn.ComputeLuhanNumber() instead
.
- Removed LINQ dependency
- Removed .NET Core 3.1 support
0.1.0 - 2022-06-05
- Added initial version of LuhnDotNet