Releases: samber/lo
Releases · samber/lo
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
v1.40.0
What's Changed
Improvements
- Use map indexing to speed up PickByKeys and OmitByKeys by @ericleb010 in #447
- ToSlicePtr: reduce allocations and improving speed by @yanmhlv in #465
- Feat: Adding zipby + unzipby by @samber in #449
- feat: add string conversion functions by @eiixy in #466
- Adding Mean and MeanBy by @usman1100 in #414
Doc & style
- Fix typos by @szepeviktor in #384
- fix: instantiate typo by @testwill in #374
- Fix typo in README.md by @eltociear in #369
- docs: update description for FindOrElse by @slomek in #370
- style: no extra any type parameter by @d-enk in #429
- Fix IsNil link for pkg.go.dev by @invzhi in #418
- Docs: should use type int64 for lo.FlatMap in example by @apriil15 in #435
CI
New Contributors
- @szepeviktor made their first contribution in #384
- @testwill made their first contribution in #374
- @eltociear made their first contribution in #369
- @slomek made their first contribution in #370
- @ericleb010 made their first contribution in #447
- @yanmhlv made their first contribution in #465
- @eiixy made their first contribution in #466
- @jiro4989 made their first contribution in #445
- @d-enk made their first contribution in #429
- @usman1100 made their first contribution in #414
- @invzhi made their first contribution in #418
- @apriil15 made their first contribution in #435
Full Changelog: v1.39.0...v1.40.0
v1.39.0
Adding lo.IsNil helper
v1.38.1
Improvement:
- Async and AsyncX: now returns
<-chan T
instead ofchan T