All Versions
10
Latest Version
Avg Release Cycle
48 days
Latest Release
103 days ago

Changelog History

  • v1.10.0

    October 18, 2019

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

  • v1.9.0

    September 04, 2019

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

    #29: Added NotWhiteSpace overload accepting a string error message.

  • v1.8.0

    January 26, 2019

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

    • 67a39c1: Added Length/NotLength guards for string.
    • 0fe0b21: Added Count/NotCount guards for collections.
    • 🛠 72301e7: Fixed compiled expression caching for member guards.
  • v1.7.0

    January 06, 2019

    📦 PM> Install-Package Dawn.Guard -Version v1.7.0 [NuGet]

    • 📄 #23: Added scopes.
    • 🛠 25a8eb1: Fixed empty string guard's message not being optional.
  • v1.6.0

    October 27, 2018

    📦 PM> Install-Package Dawn.Guard -Version v1.6.0 [NuGet]

    • 2fa67f5: Added approx. equality guards for float and double.
    • 210ffb1: Modify can now return an argument of a different type.
  • v1.5.0

    October 12, 2018

    📦 PM> Install-Package Dawn.Guard -Version v1.5.0 [NuGet]

    • ➕ Added state guards.
    • ➕ Added NotAllNull guards.
    • ➕ Added Same/NotSame guards (reference equality validations).
  • v1.4.1

    September 19, 2018

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

    NotIn overload that accepts a params array is made public.

  • v1.4.0

    August 30, 2018

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

    • ➕ Added secure arguments.
    • ➕ Added In/NotIn support for non-generic collections.
    • ➕ Added In/NotIn overloads accepting params arrays.
    • 🛠 Fixed string StartsWith/EndsWith guards and their opposites not ignoring null values.
    • Non-converting type guards return by-ref where possible.
    • Messages of failed collection guards contain only the first five items.
    • LayoutKind of ArgumentInfo<T> is now Auto.
  • v1.3.0

    August 20, 2018

    📦 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>).
  • v1.2.0

    August 14, 2018

    📦 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.