13.0.0 Approximately file extension
Light.GuardClauses 13.0.0
- new assertions:
IsApproximately<T>,IsLessThanOrApproximately<T>,IsGreaterThanOrApproximately<T>,MustBeApproximately,MustNotBeApproximately,MustBeLessThanOrApproximately,MustBeGreaterThanOrApproximately,IsEmptyOrWhiteSpaceforSpan<T>andMemory<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:
Throwclass is now located in new namespaceLight.GuardClauses.ExceptionFactory - breaking:
Throwmembers regarding spans now only supportReadOnlySpan<T>,inkeyword was removed for these members - breaking:
IsApproximatelynow 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