Skip to content

Releases: feO2x/Light.GuardClauses

11.0.0 Native AOT

16 Nov 13:23
9d994da
Compare
Choose a tag to compare

Light.GuardClauses 11.0.0

  • Light.GuardClauses now targets .NET 8 and is AOT-compatible
  • breaking: EnumInfo<T> no longer has the UnderlyingType property
  • In AOT scenarios, avoid the Type-related assertions, they are marked with the DynamicallyAccessedMembersAttribute

10.3.0 - Range.For

09 Oct 06:03
a067d91
Compare
Choose a tag to compare

Light.GuardClauses 10.3.0

  • Added Range.For to create range instances for valid collection indexes
  • Added GetCount extension method for IEnumerable<T> - this is a more optimized version of LINQ's Count extension method that also optimizes paths for IReadOnlyCollection<T> and string
  • thanks to @reima for the proposal and support

11.0.0-preview1 Native AOT

24 Sep 16:23
Compare
Choose a tag to compare
Pre-release

Light.GuardClauses 11.0.0-preview1

  • Light.GuardClauses now targets .NET 8 and is AOT-compatible
  • breaking: EnumInfo<T> no longer has the UnderlyingType property
  • In AOT scenarios, avoid the Type-related assertions, they are marked with the DynamicallyAccessedMembersAttribute

10.2.0 - Trimmed Strings and Approximate Floats

22 Sep 06:03
78f583f
Compare
Choose a tag to compare

Light.GuardClauses 10.2.0

  • Added IsLessThanOrApproximately and IsGreaterThanOrApproximately assertions for doubles and floats
  • Added IsTrimmedXXX and MustBeTrimmedXXX assertions for strings

10.1.0 - Support for JetBrains' NoEnumerationAttribute

06 Aug 19:45
5e3b2c2
Compare
Choose a tag to compare

Light.GuardClauses 10.1.0

  • added support for JetBrains' NoEnumerationAttribute - many thanks to Chris Donnelly (#82)

10.0.0 Support for CallerArgumentExpression

06 Dec 07:34
Compare
Choose a tag to compare

Light.GuardClauses 10.0.0

  • added support for CallerArgumentExpressionAttribute
  • Breaking change: the library is now built against .NET Standard 2.0 and .NET Standard 2.1

.NET Analyzer Support

06 Dec 10:18
Compare
Choose a tag to compare

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?

27 May 15:12
5278d1d
Compare
Choose a tag to compare

Light.GuardClauses 8.1.0

  • added IsNewLine and MustBeNewLine
  • fixed warnings about incorrect NRT use in IEqualityComparer<T> implementations

Missing NRTs

26 Mar 09:34
1f82bd4
Compare
Choose a tag to compare

Light.GuardClauses 8.0.1

  • fixed missing NullableReferenceType indicators in URI assertions and IsSameAs / MustNotBeSameAs, as well as Throw.SameObjectReference

NRTed

25 Mar 21:09
f472baf
Compare
Choose a tag to compare

Light.GuardClauses 8.0.0

  • added support for Nullable Reference Types

Breaking Changes:

  • Removed support for older frameworks (.NET Standard 2.0 and .NET Core App 3.0 are supported)