Releases: feO2x/Light.GuardClauses
Releases · feO2x/Light.GuardClauses
.NET Analyzer Support
Light.GuardClauses 9.0.0
- added support for .NET Analyzers / FxCopAnalyzers via ValidatedNotNullAttribute.
- Breaking change: simplified parameter list of
Throw.EmptyCollection
\n or \r\n?
Light.GuardClauses 8.1.0
- added
IsNewLineandMustBeNewLine - fixed warnings about incorrect NRT use in
IEqualityComparer<T>implementations
Missing NRTs
Light.GuardClauses 8.0.1
- fixed missing NullableReferenceType indicators in URI assertions and IsSameAs / MustNotBeSameAs, as well as Throw.SameObjectReference
NRTed
Spanified!
Light.GuardClauses 7.0.0
- added length assertions for
Span<T>#63 - added
Check.InvalidArgument(thanks to Igor Rončević for his contribution - #64) - added new length assertions for strings #62
- added
IsApproximatelyfor double and float #59 IsValidEnumValueandMustBeValidEnumValuenow do not allocate memory when checking a flags enum value for validity (in .NET Standard 1.0 and 2.0 as well as .NET 4.5)
Breaking Changes:
EnumInfo<T>.EnumConstantsnow returnsReadOnlyMemory<T>in .NET Standard 2.0 and .NET 4.5- new dependencies:
System.Runtime.CompilerServices.Unsafe(.NET Standard 1.0 and 2.0 as well as .NET 4.5) andSystem.Memory(.NET Standard 2.0 and .NET 4.5)
Late Birthday Present
- added
MustBeEmailAddressandIsEmailAddress(thanks to Johan Vergeer for his contribution)
Step right into it
Light.GuardClauses 6.1.0
- Added support for .snupkg NuGet Symbol package
- Added static
Rangeclass to simplify the creation ofRange<T>instances
Send DLL Hell to Heaven
Light.GuardClauses 6.0.0
- Light.GuardClauses is now available as source code distribution with internal types (see Light.GuardClauses.SingleFile.cs in the top-level folder of the repository). You can also create you custom single source file by using the Light.GuardClauses.SourceCodeTransformation project.
- Added
string.Equalsextension method which allows comparing strings ignoring the white space. Added correspondingMustBeandMustNotBeoverloads for strings. - added
char.IsLetter,char.IsDigit,char.IsLetterOrDigit, andchar.IsWhiteSpaceextension methods - fixed some typos in XML comments
Breaking changes:
- Fixed typo in type: EqualivalentTypeComparer is now called EquivalentTypeComparer
IsValidEnumValueandMustBeValidEnumValuenow use the newwhere T : Enumconstraint of C# 7.3
MustNotBeDefault performance fix
MustNotBeDefault now does not allocate when T is resolved to a value type
Now it's clear
Breaking Changes
New logic for custom exception and messages:
- When an exceptionFactory is provided, the resulting exception is always thrown, no matter what check fails inside an assertion
- Messages are passed to all exceptions that are thrown by Light.GuardClauses
See #53 for details.