Skip to content

Releases: samber/lo

v1.44.0

Choose a tag to compare

@github-actions github-actions released this 30 Jun 01:57

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

Full Changelog: v1.43.0...v1.44.0

v1.43.0

Choose a tag to compare

@github-actions github-actions released this 28 Jun 20:01

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

Full Changelog: v1.42.0...v1.43.0

v1.42.0

Choose a tag to compare

@github-actions github-actions released this 27 Jun 23:38

What's Changed

Breaking change

  • lo.Last() now returns (T, bool) instead of (T, error)

New Contributors

Full Changelog: v1.41.0...v1.42.0

v1.41.0

Choose a tag to compare

@github-actions github-actions released this 27 Jun 14:19

What's Changed

Full Changelog: v1.34.0...v1.41.0

v1.40.0

Choose a tag to compare

@github-actions github-actions released this 27 Jun 12:14

What's Changed

Improvements

Doc & style

CI

New Contributors

Full Changelog: v1.39.0...v1.40.0

v1.39.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 13:54

Adding lo.IsNil helper

v1.38.1

Choose a tag to compare

@github-actions github-actions released this 21 Mar 03:41

Improvement:

  • Async and AsyncX: now returns <-chan T instead of chan T

v1.38.0

Choose a tag to compare

@samber samber released this 21 Mar 03:42
c1cc5a0

Adding:

  • lo.ValueOr
  • lo.DebounceBy
  • lo.EmptyableToPtr

Improvement:

  • Substring: add support for non-english chars

Fix:

  • Async: Fix goroutine leak

v1.37.0

Choose a tag to compare

@github-actions github-actions released this 15 Dec 17:39

Adding:

  • lo.PartialX
  • lo.Transaction

Improvement:

  • lo.Associate / lo.SliceToMap: faster memory allocation

Chore:

  • Remove *_test.go files from releases, in order to cleanup dev dependencies

v1.36.0

Choose a tag to compare

@samber samber released this 28 Nov 10:32
4c57f6b

Adding:

  • lo.AttemptWhile
  • lo.AttemptWhileWithDelay