Releases: samber/lo
Releases · samber/lo
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
v1.42.0
What's Changed
- feat: add Nil by @gubtos in #383
- feat: Add First and FirstOrZeroValue functions by @Alireza-Kiani in #451
- feat: adding LastOrEmpty and LastOr by @samber in #474
- feat: Feature/contains iterate by index by @lennon-guan in #428
- feat: speed up loops by reducing allocations by @samber in #475
- doc: inconsistent expression in README.md by @rolancia in #406
Breaking change
lo.Last()
now returns(T, bool)
instead of(T, error)
New Contributors
- @gubtos made their first contribution in #383
- @Alireza-Kiani made their first contribution in #451
- @rolancia made their first contribution in #406
- @lennon-guan made their first contribution in #428
Full Changelog: v1.41.0...v1.42.0
v1.41.0
What's Changed
- feat: adding Elipse by @samber in #470
- feat: adding CoalesceOrEmpty by @samber in #469
- feat: adding Earliest and Latest by @samber in #468
- feat: adding duration by @samber in #471
- feat: adding FilterReject by @samber in #472
- feat: adding RejectMap by @samber in #473
Full Changelog: v1.34.0...v1.41.0