Skip to content

13.0.0 Approximately file extension

Choose a tag to compare

@feO2x feO2x released this 09 Mar 19:26
· 47 commits to main since this release
62a273b

Light.GuardClauses 13.0.0

  • new assertions: IsApproximately<T>, IsLessThanOrApproximately<T>, IsGreaterThanOrApproximately<T>, MustBeApproximately, MustNotBeApproximately, MustBeLessThanOrApproximately, MustBeGreaterThanOrApproximately, IsEmptyOrWhiteSpace for Span<T> and Memory<T>, IsFileExtension
  • email regex is now precompiled on .NET 8 and newer, the regex is compiled at runtime on .NET Standard 2.0 and 2.1
  • breaking: Throw class is now located in new namespace Light.GuardClauses.ExceptionFactory
  • breaking: Throw members regarding spans now only support ReadOnlySpan<T>, in keyword was removed for these members
  • breaking: IsApproximately now uses less-than-or-equal-to operator (<=) instead of less-than operator (<)
  • breaking: Email regex is less strict and support additional patterns like domains with more than 3 letters (e.g. .info or .travel)

What's Changed

  • Smaller files refactoring by @feO2x in #103
  • IsEmptyOrWhiteSpace for Span and Memory by @feO2x in #106
  • Optimize Email Regex by @feO2x in #107
  • IsFileExtension and MustBeFileExtension by @feO2x in #108
  • Updates to IsEmailAddress and MustBeEmailAddress by @feO2x in #109
  • Refactor: Throw class is now in own namespace called ExceptionFactory by @feO2x in #110
  • Generic IsApproximately and MustBeApproximately/MustNotBeApproximately by @feO2x in #111
  • Generic IsLessThanOrApproximately/IsGreaterThanOrApproximately by @feO2x in #112
  • v13.0.0 by @feO2x in #113

Full Changelog: v12.0.0...v13.0.0