Skip to content

Releases: samber/lo

v1.52.0

08 Oct 13:57

Choose a tag to compare

Thrilled to announce the latest release of samber/lo!

This version brings major improvements:

  • A new it/ sub-package for everything related to the iter package added in Go 1.23. Big up to @NathanBaulch for its help on this
  • A new documentation -> lo.samber.dev
  • Lots of micro fixes and performance improvements
  • Better code quality with many more linters

✨ A good introduction to streams in Go !

Pasted Graphic 63

What's Changed

Tests

  • fix(tests): fix flaky time-based tests by @samber in #699

Style

Documentation

Other

  • chore(deps): bump actions/setup-go from 5 to 6 by @dependabot[bot] in #695
  • chore(deps): bump github.com/stretchr/testify from 1.11.0 to 1.11.1 by @dependabot[bot] in #663
  • chore(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in #659
  • chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.0 by @dependabot[bot] in

New Contributors

Full Changelog: v1.51.0...v1.52.0

v1.51.0

11 Jun 07:56

Choose a tag to compare

What's Changed

  • Fixed the error in the usage example of lo.Latest in readme.md by @ghosx in #627
  • feat(assertions): add Assert and Assertf 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

Full Changelog: v1.50.0...v1.51.0

v1.50.0

26 Apr 17:26

Choose a tag to compare

What's Changed

Here is the 50th minor version !! 🔥🥂

New methods

Improvements

  • Perf(slice): Optimize iteration function parameters and add test cases by @shuqingzai in #587
  • Preallocate result in FilterMap by @renbou in #622

Documentation

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

Full Changelog: v1.49.1...v1.50.0

v1.49.1

28 Jan 11:35

Choose a tag to compare

What's Changed

  • fix(product + productby): fix empty slice behavior by @samber in #584

Full Changelog: v1.49.0...v1.49.1

v1.49.0

27 Jan 00:17

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.48.0...v1.49.0

v1.48.0

25 Jan 23:17

Choose a tag to compare

What's Changed

Feature

Fix

  • fix: change examples for MapKeys and MapValues by @luxcgo in #341
  • fix: order of GroupBy and PartitionBy by @liyishuai in #572

Refactor

New Contributors

Full Changelog: v1.47.0...v1.48.0

v1.47.0

13 Aug 13:23

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.46.0...v1.47.0

v1.46.0

15 Jul 17:40

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.45.0...v1.46.0

v1.45.0

13 Jul 14:42

Choose a tag to compare

What's Changed

  • perf: preallocate in Assign by @pmalek in #484
  • feat: adding EarliestBy and LatestBy functions by @timych in #489

New Contributors

Full Changelog: v1.44.0...v1.45.0

v1.44.0

30 Jun 01:57

Choose a tag to compare

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