Update module github.com/samber/lo to v1.52.0
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| github.com/samber/lo | require | minor |
v1.51.0 -> v1.52.0
|
⚠️ WarningSome dependencies could not be looked up. Check the warning logs for more information.
Release Notes
samber/lo (github.com/samber/lo)
v1.52.0
Thrilled to announce the latest release of samber/lo!
This version brings major improvements:
- A new
it/sub-package for everything related to theiterpackage 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
What's Changed
- fix(chunk): Copy chunk in a new slice by @samber in https://github.com/samber/lo/pull/648
- fix(zipx): fix the max length calculation by @samber in https://github.com/samber/lo/pull/649
- fix(retry): fix potential race condition in debounce callback by @samber in https://github.com/samber/lo/pull/650
- feature: add Mode function with tests and documentation by @ghosx in https://github.com/samber/lo/pull/644
- add FilterKeys for map by @rasha108bik in https://github.com/samber/lo/pull/631
- feat: adding FilterValues and fix FilterKeys signature by @samber in https://github.com/samber/lo/pull/661 https://github.com/samber/lo/pull/662
- fix: more consistent panic strings by @NathanBaulch in https://github.com/samber/lo/pull/678
- fix: minor example issues by @NathanBaulch in https://github.com/samber/lo/pull/676
- feat: preserve type alias in DropByIndex and WithoutBy by @NathanBaulch in https://github.com/samber/lo/pull/675
- feat: adding hassuffix + hasprefix by @samber in https://github.com/samber/lo/pull/680
- Added Cut, CutPrefix, CutSuffix by @xelavopelk in https://github.com/samber/lo/pull/666
- Add TrimXXX helpers by @samber in https://github.com/samber/lo/pull/683
- fix(string): fix division by zero by @samber in https://github.com/samber/lo/pull/684
- fix: avoid recover() if possible by @NathanBaulch in https://github.com/samber/lo/pull/685
- fix: panic when passing -1 to Drop by @NathanBaulch in https://github.com/samber/lo/pull/688
- perf: avoid Keyify twice in Trim by @NathanBaulch in https://github.com/samber/lo/pull/689
- feat: new iter package by @NathanBaulch in https://github.com/samber/lo/pull/672
- feat: from slice to map with index passed by @mabrarov in https://github.com/samber/lo/pull/697
- feat: from slice/iterator to map with index passed by @mabrarov in https://github.com/samber/lo/pull/698
- feat(generator): deprecate lo.Generator in favor of go "iter" package by @samber in https://github.com/samber/lo/pull/700
- perf: optimization of map access by @mabrarov in https://github.com/samber/lo/pull/692
- perf: optimize map access everywhere by @NathanBaulch in https://github.com/samber/lo/pull/693
Tests
- fix(tests): fix flaky time-based tests by @samber in https://github.com/samber/lo/pull/699
Style
- lint: unit test improvements by @NathanBaulch in https://github.com/samber/lo/pull/674
- lint: fix CI warnings and avoid named return parameters by @NathanBaulch in https://github.com/samber/lo/pull/682
- lint: enable 7 more linters by @NathanBaulch in https://github.com/samber/lo/pull/686
- lint: enable gofumpt extra rules by @NathanBaulch in https://github.com/samber/lo/pull/690
- Style/rename internal rand by @samber in https://github.com/samber/lo/pull/701
- lint: Apply testifylint linter recommendations by @NathanBaulch in https://github.com/samber/lo/pull/669
- Style add golangci config by @samber in https://github.com/samber/lo/pull/670
- chore: minor whitespace fixes by @NathanBaulch in https://github.com/samber/lo/pull/677
Documentation
- New documentation for "lo"
🎨 by @samber in https://github.com/samber/lo/pull/703 - doc: add it/mutable/parallel sub-package to llms.txt by @samber in https://github.com/samber/lo/pull/707
- docs: lots of various doc improvements by @samber in https://github.com/samber/lo/pull/706
- docs: adding go playground examples to it/ package by @samber in https://github.com/samber/lo/pull/708
- docs: Fix the Markdown syntax that is not displaying correctly by @mengxunQAQ in https://github.com/samber/lo/pull/658
- doc: add examples for find.go by @samber in https://github.com/samber/lo/pull/681
- docs: Fix Product and ProductBy documentation by @markhildreth-gravity in https://github.com/samber/lo/pull/647
- chore(deps-dev): bump typescript from 5.6.3 to 5.9.3 in /docs by @dependabot[bot] in https://github.com/samber/lo/pull/704
- docs: grammar improvements by @NathanBaulch in https://github.com/samber/lo/pull/673
Other
- chore(deps): bump actions/setup-go from 5 to 6 by @dependabot[bot] in https://github.com/samber/lo/pull/695
- chore(deps): bump github.com/stretchr/testify from 1.11.0 to 1.11.1 by @dependabot[bot] in https://github.com/samber/lo/pull/663
- chore(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/samber/lo/pull/659
- chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.0 by @dependabot[bot] in
New Contributors
- @markhildreth-gravity made their first contribution in https://github.com/samber/lo/pull/647
- @rasha108bik made their first contribution in https://github.com/samber/lo/pull/631
- @xelavopelk made their first contribution in https://github.com/samber/lo/pull/666
- @mabrarov made their first contribution in https://github.com/samber/lo/pull/692
Full Changelog: https://github.com/samber/lo/compare/v1.51.0...v1.52.0
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.