chore(deps): update dependency morelinq to v4 #882
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.4.2
->4.0.0
Release Notes
morelinq/MoreLINQ (morelinq)
v4.0.0
: 4.0.0What's New 📣
This release introduces an experimental version of
Batch
that allows use of an array pool for batches, which can especially help reduce (potentially LOH) allocations for very large batch sizes.New aliases are introduced for the following existing methods because they conflicted with identically named methods introduced in .NET 6.0, but which differ in definition and behaviour:
Minima
][Minima] (supersedes [MinBy
][MinBy])Maxima
][Maxima] (supersedes [MaxBy
][MaxBy])The superseded methods have been marked obsolete and will most probably be removed in a future version. For more details, see #1018.
In a similar vein, this release also retires the following extension methods that are now part of .NET proper and which have identical names and behaviour:
Append
Batch
Concat
DistinctBy
Prepend
SkipLast
TakeLast
ToHashSet
This helps to prevent ambiguity errors during compilation when
System.Linq
andMoreLinq
namespaces are imported together in a file or a namespace. The retirement is done such that the above methods appear as regular static methods rather than extension methods depending on the compilation target. This helps to maintain source as well as binary compatibility. Special thanks to @viceroypenguin for helping with this (see #945 for more details). The upshot is that projects that prefer to just import theMoreLinq
namespace rather than individual extensions can do so without running ambiguity compilation errors. However, this does not prevent future conflicts from appearing should more of MoreLINQ's methods find their way into .NET.Thanks to @viceroypenguin
Breaking Changes⚠️
Since this a major release, some source and binary breaking changes that are listed below were introduced. Please read the details to see if you're affected.
Interleave
shouldn't validateotherSequences
members https://github.com/morelinq/MoreLINQ/issues/1029Minima
&Maxima
to supersedeMinBy
&MaxBy
https://github.com/morelinq/MoreLINQ/issues/1018Windowed
that's been obsolete since 3.0 https://github.com/morelinq/MoreLINQ/issues/1016Concat
that's been obsolete since 3.0 https://github.com/morelinq/MoreLINQ/issues/993ToDataTable
cannot be null https://github.com/morelinq/MoreLINQ/issues/802Subsets(0)
should return an empty set https://github.com/morelinq/MoreLINQ/issues/645Batch
should returnIEnumerable<T[]>
https://github.com/morelinq/MoreLINQ/issues/98New Contributors 👋🏽
What's Changed 🗒️
Concat
method by @pflajszer in https://github.com/morelinq/MoreLINQ/pull/1002FillForward
when filler isnull
by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1006ToDataTable
paths by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1007ToDataTable
implementation by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1008SortedMerge
: Test do not callMoveNext
eagerly by @Orace in https://github.com/morelinq/MoreLINQ/pull/735EnableGenerateDocumentationFile
warning as workaround for IDE0005 by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1013Batch
to return arrays by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1014Subsets
so it returns an empty set when k = 0 by @Orace in https://github.com/morelinq/MoreLINQ/pull/646Windowed
that's superseded byWindow
by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1017expressions
argument ofToDataTable
by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1021Minima
&Maxima
as successors toMinBy
&MaxBy
by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1019otherSequences
argument ofInterleave
by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1031Pad
/PadStart
width is invalid by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1030See Also ℹ️
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.