Repository navigation
Releases
Releases · skgrush/Org.Grush.Lib.RecordCollections
0.3.0
[WIP] Omnibus: heavy testing, enhancements, documentation, etc etc (#4) Documentation: * added links to NuGet and GitHub source in both READMEs * document the equals rules Non-functional changes: * `RecordCollectionNewtonsoftJsonConverter<T>#WriteJson()` is effectively inaccessible, so it throws `NotSupportedException` * move static class to its own file * marked all pure methods as `[Pure]` Functional changes: * `RecordCollection` now extends `IList`, the non-generic one * enhancements to `IStructuralEquality` - supports type-optimized checks, RecordCollection checks, cross-type checks and fallback to deoptimized `IStructuralEquatable#GetHashCode()` checks. * trying to index-set is a compiler error * New methods: - `As<TOther>()` - `UntypedSequenceEqual(IEnumerable, IEqualityComparer)` compares sequences regardless of type. - `static RecordCollection<T>.CastUp(RecordCollection<TDerived>)` * New extension methods: - `SequenceEqual` against related type in a collection or enumerable using an `IEqualityComparer` or a function. - Optimized versions of `Select`, `Where`, `ToDictionary`, and `ToArray` Testing: * 100% code coverage * all tests/classes converted to static * introduce Moq (yeah yeah) * code coverage reporter
0.2.1
Fix for event_name check (#3) CI/CD fix causing wrong NuGet version to deply
0.0.0-PR
Add support for netstandard2.0 (#1) Functional changes: * `RecordCollectionNewtonsoftJsonConverterFactory`: - can opt-out of caching converters - json-writing throws `NotSupportedException` rather than `NotImplementedException` - **internal**: caches based on type, not just type name * `RecordCollection` - index setter's Obsolete attribute now throws a compiler error. - `IStructuralEquatable.Equals()` when comparer is `<T>` BUT `other` is not `IEnumerable<T>`, fall back to the `GetHashCode` comparison. This is for cases where the comparer might implement T-comparer but is used here for a different comparison. Target version changes: * Core package and Newtonsoft package gain support for .NET Standard 2.0, adding support for .NET Framework. * Changed Newtonsoft package to target 2.0 and 8.0 for better optimizations of the Newtonsoft dependency. * Unfortunately `HashCode` is not native in .NET Standard 2.0 so the core package gains a dependency on [Microsoft.Bcl.HashCode](https://www.nuget.org/packages/Microsoft.Bcl.HashCode). Package metadata: * Includes Description, Copyright, git metadata (latter via SourceLink) CI/CD changes: * environment target switches between `pr` and `prod` depending on if we're in a PR pipeline. Only `prod` has NuGet creds. * setting `VERSION` environment var in PR pipeline to `0.0.0-PR`