Skip to content

Releases: samber/lo

v1.43.0

28 Jun 20:01

Choose a tag to compare

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

27 Jun 23:38

Choose a tag to compare

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

27 Jun 14:19

Choose a tag to compare

What's Changed

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

v1.40.0

27 Jun 12:14

Choose a tag to compare

What's Changed

Improvements

Doc & style

CI

New Contributors

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

v1.39.0

02 Dec 13:54

Choose a tag to compare

Adding lo.IsNil helper

v1.38.1

21 Mar 03:41

Choose a tag to compare

Improvement:

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

v1.38.0

21 Mar 03:42
c1cc5a0

Choose a tag to compare

Adding:

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

Improvement:

  • Substring: add support for non-english chars

Fix:

  • Async: Fix goroutine leak

v1.37.0

15 Dec 17:39

Choose a tag to compare

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

28 Nov 10:32
4c57f6b

Choose a tag to compare

Adding:

  • lo.AttemptWhile
  • lo.AttemptWhileWithDelay

v1.35.0

15 Nov 22:17
56a3ac6

Choose a tag to compare

Adding:

  • lo.RandomString
  • lo.BufferWithTimeout (alias to lo.BatchWithTimeout)
  • lo.Buffer (alias to lo.Batch)

Change:

  • lo.Slice: avoid panic caused by out-of-bounds

Deprecation:

  • lo.BatchWithTimeout
  • lo.Batch