New
v1.50.0
What's Changed
Here is the 50th minor version !! ๐ฅ๐ฅ
New methods
- Implemented GroupByMap by @maryum375 in https://github.com/samber/lo/pull/443
- feat: Add NthOr and NthOrEmpty functions by @edvardsanta in https://github.com/samber/lo/pull/611
- feat: adding FilterMapToSlice by @samber in https://github.com/samber/lo/pull/623
- feat(mutable): adding Map, MapI, Filter, FilterI by @samber in https://github.com/samber/lo/pull/577
- Add ElementsMatch, ElementsMatchBy by @senago in https://github.com/samber/lo/pull/589
Improvements
- Perf(slice): Optimize iteration function parameters and add test cases by @shuqingzai in https://github.com/samber/lo/pull/587
- Preallocate result in FilterMap by @renbou in https://github.com/samber/lo/pull/622
Documentation
- docs: modify mutable.shuffle example code and Go Playground links by @ebina4yaka in https://github.com/samber/lo/pull/595
- fix: Issue 605 (README for Ternary() by @peterhoward42 in https://github.com/samber/lo/pull/606
- docs: add play link for ChunkEntries example in README by @oswaldom-code in https://github.com/samber/lo/pull/600
- doc: update CoalesceXXX demo and result by @jialeicui in https://github.com/samber/lo/pull/594
- docs: fix typo in readme by @ahmedabdou14 in https://github.com/samber/lo/pull/620
Dependencies
- chore(deps): bump golang.org/x/text from 0.21.0 to 0.22.0 by @dependabot in https://github.com/samber/lo/pull/590
- chore(deps): bump golang.org/x/text from 0.22.0 to 0.24.0 by @dependabot in https://github.com/samber/lo/pull/618
- chore(deps): bump golangci/golangci-lint-action from 6 to 7 by @dependabot in https://github.com/samber/lo/pull/616
New Contributors
- @maryum375 made their first contribution in https://github.com/samber/lo/pull/443
- @shuqingzai made their first contribution in https://github.com/samber/lo/pull/587
- @ebina4yaka made their first contribution in https://github.com/samber/lo/pull/595
- @jialeicui made their first contribution in https://github.com/samber/lo/pull/594
- @peterhoward42 made their first contribution in https://github.com/samber/lo/pull/606
- @edvardsanta made their first contribution in https://github.com/samber/lo/pull/611
- @ahmedabdou14 made their first contribution in https://github.com/samber/lo/pull/620
- @renbou made their first contribution in https://github.com/samber/lo/pull/622
Full Changelog: https://github.com/samber/lo/compare/v1.49.1...v1.50.0