Releases: JuliaFolds2/ChunkSplitters.jl
Releases · JuliaFolds2/ChunkSplitters.jl
v3.1.2
ChunkSplitters v3.1.2
https://github.com/JuliaFolds2/ChunkSplitters.jl/blob/main/CHANGELOG.md
Merged pull requests:
- out of bounds error on empty iterator indexing (#59) (@lmiq)
- Allow
minsize
to exceed the collection length (#60) (@MasonProtter)
Closed issues:
- What should happen if length of collection is less than
n
? (#58)
v3.1.1
v3.1.0
ChunkSplitters v3.1.0
- Recover compatibility with Julia 1.6 to 1.9. On Julia 1.6 an allocation test fails. At 1.9 all tests pass.
Merged pull requests:
v3.0.0
ChunkSplitters v3.0.0
This release is a major overhaul of the user interface.
Changes:
The new lower compat bound for Julia is 1.10. This implies that support for the old LTS 1.6 has been dropped.
The old main API function
chunks
is deprecated, and the newchunks
function behaves differently.The new
chunks
has been introduced that returns an iterator that provides chunks of elements rather than chunks of indices of a given input collection. To avoid copies, it is based onview
.A new function
index_chunks
is introduced that returns the indices of the chunks.For performance reasons, the
split
keyword option now requires aSplit
instead of aSymbol
. Concretely,:batch
should be replaced byConsecutive()
and:scatter
should be replaced byRoundRobin()
.The keyword argument
minchunksize
has been renamed tominsize
.getchunk
isn't public API anymore (and has, internally, been renamed togetchunkindices
). If you really need a replacement, consider usingindex_chunks(...)[i]
instead.The old legacy API that relied on positional rather than keyword arguments has been dropped.
Merged pull requests:
- Changes for 3.0 (#48) (@carstenbauer)
- Simplify iterate method to remove allocation on 1.10. (#50) (@fredrikekre)
- Simplify enumerate iterate (#51) (@lmiq)
Closed issues:
- 3.0 (#47)
v2.6.0
ChunkSplitters v2.6.0
New features:
- add
minchunksize
option. - add
BatchSplit
andScatterSplit
types as (type-stable) default alternatives to symbols:batch
and:scatter
. Types are preferred and should be used to guarantee that the generation of the chunks do not allocate any intermediate.
Merged pull requests:
minchunksize
+split::SplitStrategy
(new default) (#46) (@carstenbauer)
v2.5.0
ChunkSplitters v2.5.0
- Support
eachindex(enumerate(chunks(...)))
Merged pull requests:
- implement eachindex(enumerate(...)) (#42) (@lmiq)
- Drop Compat dependency + Update CI (#44) (@carstenbauer)
Closed issues:
v2.4.5
v2.4.4
v2.4.3
v2.4.2
ChunkSplitters v2.4.2
- return empty vector when the iterator is empty (solves issue #31).