Releases: samber/lo
Releases · samber/lo
v1.51.0
What's Changed
- Fixed the error in the usage example of lo.Latest in readme.md by @ghosx in #627
- feat(assertions): add
Assert
andAssertf
by @your-diary in #638
Doc
- docs: Add a more precise description to the Ellipsis function by @mengxunQAQ in #635
- docs: Fix description for LastOrEmpty and LastOr by @vaihtovirta in #636
- docs: fix wrong variable name for mutable map example by @sunjayaali in #637
Dependencies
- fix(ci): correct cleanup deps - remove all *_test.go files using find by @d-enk in #630
- Revert "chore(deps): bump golang.org/x/text from 0.22.0 to 0.24.0" by @samber in #626
- chore(deps): bump golang.org/x/text from 0.22.0 to 0.24.0 by @dependabot in #625
- chore(deps): bump golangci/golangci-lint-action from 7 to 8 by @dependabot in #628
New Contributors
- @ghosx made their first contribution in #627
- @mengxunQAQ made their first contribution in #635
- @vaihtovirta made their first contribution in #636
- @your-diary made their first contribution in #638
Full Changelog: v1.50.0...v1.51.0
v1.50.0
What's Changed
Here is the 50th minor version !! 🔥🥂
New methods
- Implemented GroupByMap by @maryum375 in #443
- feat: Add NthOr and NthOrEmpty functions by @edvardsanta in #611
- feat: adding FilterMapToSlice by @samber in #623
- feat(mutable): adding Map, MapI, Filter, FilterI by @samber in #577
- Add ElementsMatch, ElementsMatchBy by @senago in #589
Improvements
- Perf(slice): Optimize iteration function parameters and add test cases by @shuqingzai in #587
- Preallocate result in FilterMap by @renbou in #622
Documentation
- docs: modify mutable.shuffle example code and Go Playground links by @ebina4yaka in #595
- fix: Issue 605 (README for Ternary() by @peterhoward42 in #606
- docs: add play link for ChunkEntries example in README by @oswaldom-code in #600
- doc: update CoalesceXXX demo and result by @jialeicui in #594
- docs: fix typo in readme by @ahmedabdou14 in #620
Dependencies
- chore(deps): bump golang.org/x/text from 0.21.0 to 0.22.0 by @dependabot in #590
- chore(deps): bump golang.org/x/text from 0.22.0 to 0.24.0 by @dependabot in #618
- chore(deps): bump golangci/golangci-lint-action from 6 to 7 by @dependabot in #616
New Contributors
- @maryum375 made their first contribution in #443
- @shuqingzai made their first contribution in #587
- @ebina4yaka made their first contribution in #595
- @jialeicui made their first contribution in #594
- @peterhoward42 made their first contribution in #606
- @edvardsanta made their first contribution in #611
- @ahmedabdou14 made their first contribution in #620
- @renbou made their first contribution in #622
Full Changelog: v1.49.1...v1.50.0
v1.49.1
What's Changed
Full Changelog: v1.49.0...v1.49.1
v1.49.0
What's Changed
- feat: add SampleBy and SamplesBy by @bramvandewalle in #516
- feat: Add IsNotNil by @haoxins in #523
- feat: Implement ChunkMap Function (#533) by @oswaldom-code in #538
- feat: Add NewThrottle by @Lee-Minjea in #427
- feat: adding FilterSliceToMap by @samber in #581
- feat: add
Product
andProductBy
functions by @JohnDevitt in #566
New Contributors
- @bramvandewalle made their first contribution in #516
- @oswaldom-code made their first contribution in #538
- @Lee-Minjea made their first contribution in #427
Full Changelog: v1.48.0...v1.49.0
v1.48.0
What's Changed
Feature
- feat: add (Min|Max)Index(By) by @aria3ppp in #569
- feat: add UniqMap by @nicklaus-dev in #527
- feat: add CrossJoin function by @JohnDevitt in #567
- feat: Implement CoalesceOrEmptySlice Function by @chg1f in #542
- feat: adding WithoutNth by @samber in #575
- feat: deprecate lo.Reverse and move it to lom.Reverse by @samber in #576
- feat: deprecate lo.Shuffle and move it to lom.Shuffle by @samber in 699707a#comments
- feat: adding lo.BufferWithContext by @samber in #580
- feat: add SliceToSet by @nicklaus-dev in #514
- feat: add WithoutBy by @nicklaus-dev in #515
- feat: add lom.Fill by @samber
Fix
- fix: change examples for MapKeys and MapValues by @luxcgo in #341
- fix: order of GroupBy and PartitionBy by @liyishuai in #572
Refactor
- refactor RandomString function by @pigwantacat in #524
New Contributors
- @luxcgo made their first contribution in #341
- @haoxins made their first contribution in #522
- @muya made their first contribution in #521
- @NathanBaulch made their first contribution in #519
- @jiz4oh made their first contribution in #535
- @guyareco2 made their first contribution in #537
- @pigwantacat made their first contribution in #524
- @snamiki1212 made their first contribution in #541
- @dependabot made their first contribution in #554
- @JasonnnW3000 made their first contribution in #571
- @liyishuai made their first contribution in #572
- @aria3ppp made their first contribution in #569
- @sunjayaali made their first contribution in #544
- @SnowOnion made their first contribution in #543
- @nicklaus-dev made their first contribution in #527
- @JohnDevitt made their first contribution in #567
- @chg1f made their first contribution in #542
Full Changelog: v1.47.0...v1.48.0
v1.47.0
What's Changed
- feat: Improve Substring by @liujundezhanghao in #496
- doc: Wrong method reference and output in readme by @ColeZia in #497
- doc: Fix documentation for Duration3 by @gecko655 in #502
- feat: add FromSlicePtr by @mash in #217
- feat: adding FromSlicePtrOr by @samber in #506
- feat: Keys+Values: accept multiple maps (vaargs) - Adding UniqKeys+UniqValues by @shivamrazorpay in #503
- doc: Update foreachwhile readme.md by @Sianao in #508
New Contributors
- @liujundezhanghao made their first contribution in #496
- @ColeZia made their first contribution in #497
- @gecko655 made their first contribution in #502
- @mash made their first contribution in #217
- @shivamrazorpay made their first contribution in #503
Full Changelog: v1.46.0...v1.47.0
v1.46.0
What's Changed
- fix: chunk memory leak, bug fix by @mihir20 in #491
- feat: add WaitForWithContext by @ccoVeille in #480
- add ForEachCondition implement by @Sianao in #485
New Contributors
- @mihir20 made their first contribution in #491
- @ccoVeille made their first contribution in #480
- @Sianao made their first contribution in #485
Full Changelog: v1.45.0...v1.46.0
v1.45.0
v1.44.0
What's Changed
- feat: Add slice Splice an element or multiple elements at index i. by @wenlingang in #371
- feat: Make Filter() preserve type. by @FGasper in #365
- feat: Added DropByIndex helper for slice by @phith0n in #398
- feat: upgrade to math/rand/v2 by @samber in #483
- chore: remove
golang.org/x/exp
since it doesn't follow go 1 compatibility promise by @trim21 in #478
New Contributors
- @wenlingang made their first contribution in #371
- @jason-zhj made their first contribution in #376
- @FGasper made their first contribution in #365
- @phith0n made their first contribution in #398
Full Changelog: v1.43.0...v1.44.0
v1.43.0
What's Changed
- feat: adding HasKey by @samber in #477
- feat: adding lo.WaitFor by @samber in #269
- improvement: Optimize the performance of union method, avoid repeated expansion by @cwb2819259 in #397
New Contributors
- @cwb2819259 made their first contribution in #397
Full Changelog: v1.42.0...v1.43.0