Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Releases: safakgur/guard

Version 1.3.0

20 Aug 00:33
214d0ce
Compare
Choose a tag to compare

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) and Require<TException>(bool) guards.
  • Added In and NotIn collection guards.
  • Deprecated ArgumentInfo<T>.IsNull.
  • Deprecated NotNull<T>(in this ArgumentInfo<T?>, out ArgumentInfo<T>).

Version 1.2.0

14 Aug 18:26
Compare
Choose a tag to compare

PM> Install-Package Dawn.Guard -Version 1.2.0 [NuGet]

  • ArgumentInfo<T> is no longer a ref struct.
  • Added nullable Default and NotDefault guards.
  • Added NotScheme guard for URIs.
  • Allow Contains and NotContains to be called for non-generic collections.
  • Added Contains and NotContains overloads that accept equality comparers.
  • Added overloads of NotZero and NotInfinity that accept proper error messages, deprecating the older ones.
  • Removed the type constraint from NotEqual - it was already removed form Equal.
  • Improved performance of collection guards.

Version 1.1.0

01 Aug 20:16
Compare
Choose a tag to compare

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 and DoesNotEndWith guards with overloads accepting comparison types for string.
  • Added NaN, NotNaN, Infinity, NotInfinity, PositiveInfinity, NotPositiveInfinity, NegativeInfinity and NotNegativeInfinity 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 and NotNegative guards for comparables.

Version 1.0.0

30 Jul 20:20
Compare
Choose a tag to compare

PM> Install-Package Dawn.Guard -Version 1.0.0 [NuGet]

  • First stable release.

Version 0.2.1

29 Jul 16:36
Compare
Choose a tag to compare
Version 0.2.1 Pre-release
Pre-release

PM> Install-Package Dawn.Guard -Version 0.2.1-beta [NuGet]

  • Removed .NET Framework 3.5 support.

Version 0.2.0

29 Jul 15:15
Compare
Choose a tag to compare
Version 0.2.0 Pre-release
Pre-release

PM> Install-Package Dawn.Guard -Version 0.2.0-beta [NuGet]

  • The beta release.

Version 0.1.0

29 Jul 14:59
Compare
Choose a tag to compare
Version 0.1.0 Pre-release
Pre-release

PM> Install-Package Dawn.Guard -Version 0.1.0-alpha [NuGet]

  • The alpha release, highly unstable.