Releases: m4gshm/gollections
Releases · m4gshm/gollections
v0.0.19
v0.0.18
v0.0.17
No backward compatibility with previous version.
Minimal go version: 1.24.
Changes:
- removed obsolete loop iterator apis and several small ones
- seq.Seq, seq.SeqE, seq.Seq2 are no longer aliases
- seq.Seq, seq.SeqE, seq.Seq2 extended with a common api for chained calls
- improved collection interfaces
New API:
- op.IfElseGet
- convert.NilSafe
Renamed:
- op.IfGetElse -> op.IfGetElseGet
- convert.Ptr -> convert.ToPtr
- convert.PtrVal -> convert.ToVal
- convert.NoNilPtrVal -> ToValNotNil
v0.0.16
v0.0.15
No backward compatibility with previous version.
Minimal go version: 1.24.
Changes:
- extended seq, seq2 packages API: Head, Top, Skip, OfNext and so on.
- introduced seqe for iterating over sequernces that can procude an error at hte any step of iteration.
- loop API is deprecated.
- loop.Filt, seq.Filt behavior is changed (returns an error immediately, rather than at the next iteration step).
- new slice functions: Top, Head, Tail.
- All, KVAll interfaces are replaced by Range, OrderedRange, KVRange.
- ForEach, For, TrackEach, Track interfaces are deprecated
- AddableAll, AddableAllNew methods of collections are migrated from the ForEach interface to the seq.Seq.
v0.0.14
v0.0.13
Minimal go version: 1.22.
No backward compatibility with previous version.
Changes:
- api renaming: ConvCheck->ConvOK, ConvertCheck->ConvertOK.
- new loop, slice API:
- collectors: ToMap\Group methods with Append and Order prefix\suffix.
- reducers : Accum, ReduceOK functions.
- new map_ collector API: Keys, Values functions.
- new util APIs:
- error_.As
- convert.ToType
- is.Not
- use.IfOK
- rangefunc API:
Allmethods of loop, collections (needs enable GOEXPERIMENT=rangefunc).
v0.0.12
Minimal go version: 1.22.
No backward compatibility with previous version.
Changes:
- Iterator API is partially removed and replaced by loop API.
- renamed interfaces: ForLoop->For, ForEachLoop->ForEach, TrackLoop->Track, TrackEachLoop->TrackEach
- introduced rangefunc looping API.
v0.0.11
minimal go version: 1.21
readme: extended description of API
fix(slice): Delete function argument order
feat(map_): resolv package methods naming
refinement(sort):
- migrated to slices.SortFunc, slices.SortStableFunc
- api extended by functions StableSort, SortAsc, SortDesc, StableSortAsc, StableSortDesc
- Of replaced by Asc, Desc functions readme: included shortcuts description
- slice.Less interface replaced by slice.Comparer
- new package comparer
v0.0.10
No backward compatibility with previous version.
Changes:
- many methods of loop, slice, convert APIs renamed: ToValues -> PtrVal, GetValues -> NoNilPtrVal, ToKV -> KeyValue, ToKVs -> KeysValues, ExtractKeysValue -> KeysValue, ExtractKeys ->ExtraKeys, ExtractValues -> ExtraValues
- extended erroreable API
- loop API extended by a 'for' looping helper
- feat(map_): filter, Get, Getter, Contains APIs
- feat(op): Get