Skip to content

fix(deps): update module github.com/samber/lo to v1.53.0#249

Merged
anovelkitdependencybot[bot] merged 1 commit intomasterfrom
renovate/github.com-samber-lo-1.x
Mar 2, 2026
Merged

fix(deps): update module github.com/samber/lo to v1.53.0#249
anovelkitdependencybot[bot] merged 1 commit intomasterfrom
renovate/github.com-samber-lo-1.x

Conversation

@anovelkitdependencybot
Copy link
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/samber/lo v1.52.0v1.53.0 age confidence

Release Notes

samber/lo (github.com/samber/lo)

v1.53.0

Compare Source

Announcing the latest release of lo with lots of good gifts! 🎁

🌊 First, a big thanks to @​d-enk for making lots of performance improvements in the recent weeks.

🧪 Second, this release introduces a new simd experimental package. If you run on an amd64 architecture and a recent CPU, you can perform very fast operations thanks to SIMD CPU instructions.

💥 Third, this version adds *Err variants of many lo helpers (like MapErr, FlatMapErr, ReduceErr, etc.) whose callbacks can return an error and short-circuit execution when one occurs.

[!NOTE]
The simd sub-package is considered not stable. We might break the initial API based on developers' feedback in the coming months.

moto-gopher2

Features & improvements

Performance improvements

  • feat: Optimize UniqMap to reduce unnecessary slice preallocation by @​ivolkoff in #​710
  • refactor(it): simplify DropLast, TrimSuffix, TrimPrefix and use range loops by @​d-enk in #​782
  • bench: fix iterators to actually iterate in benchmarks by @​d-enk in #​781
  • refactor: simplify slice cut/trim prefix/suffix functions by @​d-enk in #​787
  • perf: optimize Sliding by pre-allocating result capacity by @​d-enk in #​783
  • refactor: improve SamplesBy performance and revert non-panic behavior for negative count by @​d-enk in #​786
  • feat(perf): speed up some functions with linear complexity O=n2 -> O=2n by @​samber in #​726
  • perf: only allocate a single map in Intersect by @​NathanBaulch in #​736
  • perf: preallocate Words string buffer by @​NathanBaulch in #​728
  • refactor: improve lo[it].Intersect[By] readability and performance by @​d-enk in #​756
  • perf: preallocate result slice in SamplesBy by @​d-enk in #​766
  • perf: optimize PartitionBy by eliminating redundant append by @​d-enk in #​765
  • perf: correct prealloc of the result in FindUniques/Duplicates[By] by @​d-enk in #​764
  • perf: use Ternary() instead If().Else() in Range/RangeFrom by @​d-enk in #​770
  • perf: optimize it.Trim to use DropLastWhile(DropWhile(...)) by @​d-enk in #​780
  • perf: replace Min/Max(Range) with Min/MaxIndexBy in DispatchingStrategy by @​d-enk in #​779
  • perf: preallocate result slice in RangeWithSteps by @​d-enk in #​820
  • perf: avoid unnecessary error allocation in NthOr, NthOrEmpty by @​d-enk in #​817
  • perf: optimize Zip and ZipBy functions by @​d-enk in #​818
  • perf: lazy it.Reverse iteration instead of in-place mutation by @​d-enk in #​814
  • perf: optimize Substring to work directly with strings instead of converting to runes by @​d-enk in #​822
  • perf: optimize it.CountBy by removing Filter iterator chain by @​d-enk in #​813
  • perf: optimize it.Find to avoid unnecessary allocations by @​d-enk in #​811
  • perf: optimize it.ContainsBy/EveryBy/SomeBy/NoneBy to avoid unnecessary allocations by @​d-enk in #​812
  • refactor: simplify for loop by @​d-enk in #​772
  • refactor: remove some redundant checks by @​d-enk in #​771
  • refactor: simplify it.HasSuffix implementation by @​d-enk in #​767
  • refactor: improve Slice logic and fix docstring by @​d-enk in #​785

Thanks @​d-enk !!

Other (doc, tests, style...)

Dependencies

New Contributors

Full Changelog: samber/lo@v1.52.0...v1.53.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@anovelkitdependencybot anovelkitdependencybot bot added dependencies Pull requests that update a dependency file renovate labels Mar 2, 2026
@anovelkitdependencybot anovelkitdependencybot bot added this pull request to the merge queue Mar 2, 2026
Merged via the queue into master with commit be17e44 Mar 2, 2026
13 checks passed
@anovelkitdependencybot anovelkitdependencybot bot deleted the renovate/github.com-samber-lo-1.x branch March 2, 2026 16:03
@codecov
Copy link

codecov bot commented Mar 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file renovate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants