This repository has been archived by the owner on Jul 18, 2023. It is now read-only.
Releases: safakgur/guard
Releases · safakgur/guard
Version 1.3.0
PM> Install-Package Dawn.Guard -Version 1.3.0
[NuGet]
- Added member guards.
- Added regex guards for string arguments.
- Added host and display name guards for
MailAddress
arguments. - Fixed
Require
overloads validating null arguments. - Added
Require(bool)
andRequire<TException>(bool)
guards. - Added
In
andNotIn
collection guards. - Deprecated
ArgumentInfo<T>.IsNull
. - Deprecated
NotNull<T>(in this ArgumentInfo<T?>, out ArgumentInfo<T>)
.
Version 1.2.0
PM> Install-Package Dawn.Guard -Version 1.2.0
[NuGet]
ArgumentInfo<T>
is no longer aref struct
.- Added nullable
Default
andNotDefault
guards. - Added
NotScheme
guard for URIs. - Allow
Contains
andNotContains
to be called for non-generic collections. - Added
Contains
andNotContains
overloads that accept equality comparers. - Added overloads of
NotZero
andNotInfinity
that accept proper error messages, deprecating the older ones. - Removed the type constraint from
NotEqual
- it was already removed formEqual
. - Improved performance of collection guards.
Version 1.1.0
PM> Install-Package Dawn.Guard -Version 1.1.0
[NuGet]
- Revised enum guards using the new enum type constraints in C# 7.3 (The consumer doesn't need to be using C# 7.3 for this, enum constraints were already allowed in IL).
- Marked the older enum model as obsolete.
- Added
StartsWith
,DoesNotStartWith
,EndsWith
andDoesNotEndWith
guards with overloads accepting comparison types for string. - Added
NaN
,NotNaN
,Infinity
,NotInfinity
,PositiveInfinity
,NotPositiveInfinity
,NegativeInfinity
andNotNegativeInfinity
guards for float and double. - Removed the type constraints from equality guards, they now use the default equality comparer.
- Added overloads to equality guards that accept equality comparers.
- Added
NotPositive
andNotNegative
guards for comparables.
Version 1.0.0
PM> Install-Package Dawn.Guard -Version 1.0.0
[NuGet]
- First stable release.
Version 0.2.1
PM> Install-Package Dawn.Guard -Version 0.2.1-beta
[NuGet]
- Removed .NET Framework 3.5 support.
Version 0.2.0
PM> Install-Package Dawn.Guard -Version 0.2.0-beta
[NuGet]
- The beta release.
Version 0.1.0
PM> Install-Package Dawn.Guard -Version 0.1.0-alpha
[NuGet]
- The alpha release, highly unstable.