Skip to content

v0.15.0 [2023-06-01 UTC]

Compare
Choose a tag to compare
@HarinezumiSama HarinezumiSama released this 01 Jun 04:40

NuGet Package

Changes in 0.15.0 (since 0.14.1)

Breaking Changes

  • ObjectValidator.Validate() method: Added instanceExpression parameter
    • For .NET 5+ and higher, the instanceExpression parameter is marked with the CallerArgumentExpression attribute
    • For the older .NET versions, the instanceExpression parameter is supplied only for binary compatibility between the different target frameworks

New features

  • ElapsedTimeProviderExtensions: Added the GetStoppedElapsed() extension method
  • OmnifactotumCollectionExtensions: Added the Flatten() extension method
  • OmnifactotumEnumExtensions: Added the ToUIString() extension method
  • OmnifactotumExceptionExtensions: Added the IsOriginatedFrom(this Exception?, Type) extension method
  • Added OmnifactotumStopwatchExtensions with the GetStoppedElapsed() extension method
  • OmnifactotumStringExtensions: Added new extension methods for System.String:
    • WithSingleLeadingSlash(string)
    • WithoutLeadingSlash(string)
  • Object validation
    • Added RegexStringConstraintBase
    • Added ValueRangeConstraintBase<T>

Minor updates and fixes

  • Applied MeansImplicitUse annotations to TKeyConstraint and TValueConstraint in KeyValuePairConstraint<TKey, TValue, TKeyConstraint, TValueConstraint>