Skip to content

Releases: ZacharyPatten/Towel

v1.0.30

27 Jun 13:25
Compare
Choose a tag to compare

Nuget Package

This release includes a lot of XML documentation updates. Also, due to dotnet/roslyn#49568, I am forced to make the XML documentation members public instead of internal for the time being.

This release includes a lot of nullable reference syntax updates.

New Features:

  • TryToRomanNumeral
  • Bag data structure (work in progress... likely to change in near future)

Bug Fixes:

  • added more exception checks to JSON and XML delegate serialization/deserialization

Changes:

  • ToCompareResult converted to an extension method on int
  • ArrayJagged<T> removed This was a legacy type that I wanted to remove for a while and just got around to it. If I add it back in Towel in the future, it will have a different design with more modularity.
  • TryParse methods on measurement types changed from bool TryParse(string, out MEASUREMENT) to (bool, MEASUREMENT?) TryParse(string)
  • added more exception checks to Towel.Mathematics.Symbolics
  • added more exception checks to Towel.Measurements.Measurement

v1.0.29

14 Jun 03:20
Compare
Choose a tag to compare

Nuget Package

Bug Fixes:

  • Towel.Mathematics.Symbolics.Parse<T>(...) bug fix while parsing operations such as "squareroot(5)"
  • RedBlackTreeLinked<T, TCompare>.GetEnumerator() fixed bug when tree is empty

Changes:

  • renamed Compare<TSift>(...) to CompareSift<TSift>(...) on both ISortedBinaryTree<T> to avoid naming collisions
  • renamed Contains<TSift>(...) to ContainsSift<TSift>(...) on both ISortedBinaryTree<T> to avoid naming collisions
  • renamed TryRemove<TSift>(...) to TryRemoveSift<TSift>(...) on both ISortedBinaryTree<T> to avoid naming collisions
  • changed IAddable<T> method bool TryAdd(T, out Exception) to (bool, Exception?) TryAdd(T)
    • extension methods also adjusted
  • changed IRemovable<T> method bool TryRemove(T, out Exception) to (bool, Exception?) TryRemove(T)
    • extension methods also adjusted
  • removed StepperRef and StepperRefBreak methods
  • added T[] ToArray() to IDataStructure<T> (mainly for inheritdoc)
  • added ICloneable<T> (mainly for inheritdoc)
  • exposed Bound<T> Exists and Value getters

v1.0.28

11 Jun 13:47
Compare
Choose a tag to compare

Nuget Package

Bug Fixes:

  • Measurement Conversion Calculation afd51a9

Changes:

  • ReplaceCached [method] removed (was a stupid idea...)

v1.0.27

10 Jun 21:54
Compare
Choose a tag to compare

Nuget Package

Note This is the first non-preview release of the Towel package on nuget.org.

New Features:

  • GetEnumerator extension methods for Tuple<...>, ValueTyple<...>, and ITuple

Changes:

  • TryParseRomanNumeral parameter string->ReadOnlySpan<char>
  • Extensions.IsDefined generic contraints where T : Enum => where TEnum : struct, Enum
  • renamed ActionRuntime<...> to SAction<...>
    • renamed .Do(...) to .Invoke(...)
  • renamed FuncRuntime<...> to SFunc<...>
    • renamed .Do(...) to .Invoke(...)
  • removed unnecessary mathematics delegates

v1.0.26-alpha

07 Jun 04:32
Compare
Choose a tag to compare
v1.0.26-alpha Pre-release
Pre-release

Nuget Package

New Features:

  • HeapArray<T, TCompare>->MinimumCapacity [property] added setter

Bug Fixes:

  • Console.IntMenu fixed bug where a hard coded value was used instead of the invalidMessage parameter
  • HeapArray<T, TCompare> added exception checks for invalid minimum capacity values

Changes:

  • many Towel.DataStructures namespace interfaces, types, and methods were redesigned
    • IDataStructure<T>->void Stepper(Action<T> step) [method] removed handled via extension methods
    • IDataStructure<T>->StepStatus Stepper(Func<T, StepStatus> step) [method] removed handled via extension methods
    • IDataStructure<T>->StepStatus StepperBreak&lt;TStep&gt;(TStep step = default) [method] added
    • ISortedBinaryTree<T> [interface] added
    • IAvlTree<T> [interface] added
    • AvlTreeLinked<T> [class] removed converted to static factory methods
    • IRedBlackTree<T> [interface] added
    • RedBlackTreeLinked<T> [class] removed converted to static factory methods
    • TreeMap<T>->TreeMap<T, TEquate, THash> [class] generic arguments changed
    • HeapArray<T> [class] removed converted to static factory methods
    • SetHashLinked<T> [class] removed converted to static factory methods
    • GraphMap<T>->GraphMap<T, TEquate, THash> [class] generic arguments changed
    • MapHashLinked<T, K> [class] removed converted to static factory methods
    • DataStructure.IEquating<K> removed from interface IMap<T, K> [interface]
    • IEquating<T>->IEquating<T, TEquate> [interface] generic arguments changed
    • IHashing<T>->IHashing<T, THash> [interface] generic arguments changed
    • GraphSetOmnitree<T>->GraphSetOmnitree<T, TEquate, THash> [class] generic arguments changed
      • Note: a TCompare generic argument will be added in a future version when the Omnitree rewrite is complete
    • GraphWeightedMap<V, W>->GraphWeightedMap<V, W, TEquate, THash> [class] generic arguments changed

In place of types with reduced generic parameters, "New" static factory methods were added for data structures with functional generic parameters. For example, instead of var tree = new AvlTreeLinked<T>(); you now do var tree = AvlTreeLinked.New<T>();. Static factory methods are more modular that creating custom types for purposes of defaulting generic parameters.

Multiple methods not listed above were converted to "TryXxx" patterns for better versatility and exception handling.

v1.0.25-alpha

03 Jun 01:55
db7ad6d
Compare
Choose a tag to compare
v1.0.25-alpha Pre-release
Pre-release

Nuget Package

New Features:

  • CombineRanges simplifies sequences of ranges by combining ranges without gaps
  • GraphWeightedMap data structure that includes weights on the edges
  • Added several members to Map
    • IEnumerable<K> GetKeys()
    • IEnumerable<(T Value, K Key)> GetPairs()
    • more overloads to Stepper, Keys and Pairs to support struct generic parameters

Bug Fixes:

  • OmnitreeBoundsLinked<T, Axis1...>->Stepper(step + subspace) bug fix

Changes:

  • The T Minimum method was split into three methods like the maximum method was changed previously.
    • (int Index, T Value) Minimum
    • T MinimumValue
    • int MinimumIndex
  • Map->void Stepper(Action<(T Value, K Key)> step) renamed to Pairs
  • Map->StepStatus Stepper(Func<(T Value, K Key), StepStatus> step) renamed to PairsBreak
  • Map->void Stepper(Action<K> step) renamed to Keys
  • Map->StepStatus Stepper(Func<K, StepStatus> step) renamed to KeysBreak
  • Graph->void Stepper(Action<(T?, T?)> step) renamed to Edges
  • Graph->StepStatus Stepper(Func<(T, T), StepStatus> step) renamed to EdgesBreak
  • several stepper methods were altered to use value tuples rather that multiple parameters

v1.0.24-alpha

18 May 23:30
Compare
Choose a tag to compare
v1.0.24-alpha Pre-release
Pre-release

Nuget Package

New Features:

  • GetXmlName (was coupled with GetDocumentation, but now it is exposed on it's own)
    • FieldInfo
    • PropertyInfo
    • EventInfo
    • ConstructorInfo
    • MethodInfo
    • Type
  • GetLeast
  • GetGreatest

Bug Fixes:

  • CommandLine.HandleArguments: fixed minor bug where it was allowing parameters with single - characters rather than two
  • QueueArray<T>.Newest: needed a - 1 on the index
  • QueueArray<T>[int index]: logic operators were wrong on min/max indices

v1.0.23-alpha

31 Jan 03:28
Compare
Choose a tag to compare
v1.0.23-alpha Pre-release
Pre-release

Nuget Package

New Features:

  • Choose (span overload)

Bug Fixes:

  • Next (random generation methods): fixed algorithm selection calculation.

v1.0.22-alpha

29 Jan 04:28
b1e1e9a
Compare
Choose a tag to compare
v1.0.22-alpha Pre-release
Pre-release

Nuget Package

New Features:

  • Next Random (exclusion overload)
  • NextUnique Random Roll + Pool Tracking (exclusion overload)
  • SetEquals (span)
  • ContainsDuplicates (span)
  • Contains (span)
  • Any (span)

Bug Fixes:

  • NextUnique (additional exception throwing checks)

Changes:

  • NextUnique (added missing overloads)

v1.0.21-alpha

17 Jan 23:41
Compare
Choose a tag to compare
v1.0.21-alpha Pre-release
Pre-release

Nuget Package

New Features:

  • Combinations
  • IsReorderOf
  • MapHashLinked<...>.AddOrUpdate
  • MapHashLinked<...>.TryUpdate

Bug Fixes:

  • QueueArray.MinimumCapacity bug fix

Changes:

  • The data structure interfaces have been modified to include the _Compare generic parameter on some appropriate data structures (ex Heap, AVL Tree, and Red Black Tree)
  • Added implicit casting operators from UniversalQuantification to Span/Memory types
  • Stack/Queue minimum capacity properties made nullable and slight tweaks to the logic

Note: there will be similar changes to other data structure interfaces in future releasese