Commit 6e4c424
authored
fix(deps): Update module github.com/samber/lo to v1.52.0 (#2318)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/samber/lo](https://redirect.github.com/samber/lo) | require | minor | `v1.51.0` -> `v1.52.0` |
---
### Release Notes
<details>
<summary>samber/lo (github.com/samber/lo)</summary>
### [`v1.52.0`](https://redirect.github.com/samber/lo/releases/tag/v1.52.0)
[Compare Source](https://redirect.github.com/samber/lo/compare/v1.51.0...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 the `iter` package added in Go 1.23. Big up to [@​NathanBaulch](https://redirect.github.com/NathanBaulch) for its help on this
- A new documentation -> [lo.samber.dev](https://lo.samber.dev)
- Lots of micro fixes and performance improvements
- Better code quality with many more linters
✨ A good introduction to streams in Go !
<img width="3456" height="1376" alt="Pasted Graphic 63" src="https://github.com/user-attachments/assets/a995807b-2c8e-44e0-9c51-484bd9482d17" />
#### What's Changed
* fix(chunk): Copy chunk in a new slice by @​samb[https://github.com/samber/lo/pull/648](https://redirect.github.com/samber/lo/pull/648)ll/648
* fix(zipx): fix the max length calculation by @​samb[https://github.com/samber/lo/pull/649](https://redirect.github.com/samber/lo/pull/649)ll/649
* fix(retry): fix potential race condition in debounce callback by @​samb[https://github.com/samber/lo/pull/650](https://redirect.github.com/samber/lo/pull/650)ll/650
* feature: add Mode function with tests and documentation by @​gho[https://github.com/samber/lo/pull/644](https://redirect.github.com/samber/lo/pull/644)ll/644
* add FilterKeys for map by @​rasha108b[https://github.com/samber/lo/pull/631](https://redirect.github.com/samber/lo/pull/631)ll/631
* feat: adding FilterValues and fix FilterKeys signature by @​samb[https://github.com/samber/lo/pull/661](https://redirect.github.com/samber/lo/pull/661)l[https://github.com/samber/lo/pull/662](https://redirect.github.com/samber/lo/pull/662)ll/662
* fix: more consistent panic strings by @​NathanBaul[https://github.com/samber/lo/pull/678](https://redirect.github.com/samber/lo/pull/678)ll/678
* fix: minor example issues by @​NathanBaul[https://github.com/samber/lo/pull/676](https://redirect.github.com/samber/lo/pull/676)ll/676
* feat: preserve type alias in DropByIndex and WithoutBy by @​NathanBaul[https://github.com/samber/lo/pull/675](https://redirect.github.com/samber/lo/pull/675)ll/675
* feat: adding hassuffix + hasprefix by @​samb[https://github.com/samber/lo/pull/680](https://redirect.github.com/samber/lo/pull/680)ll/680
* Added Cut, CutPrefix, CutSuffix by @​xelavope[https://github.com/samber/lo/pull/666](https://redirect.github.com/samber/lo/pull/666)ll/666
* Add TrimXXX helpers by @​samb[https://github.com/samber/lo/pull/683](https://redirect.github.com/samber/lo/pull/683)ll/683
* fix(string): fix division by zero by @​samb[https://github.com/samber/lo/pull/684](https://redirect.github.com/samber/lo/pull/684)ll/684
* fix: avoid recover() if possible by @​NathanBaul[https://github.com/samber/lo/pull/685](https://redirect.github.com/samber/lo/pull/685)ll/685
* fix: panic when passing -1 to Drop by @​NathanBaul[https://github.com/samber/lo/pull/688](https://redirect.github.com/samber/lo/pull/688)ll/688
* perf: avoid Keyify twice in Trim by @​NathanBaul[https://github.com/samber/lo/pull/689](https://redirect.github.com/samber/lo/pull/689)ll/689
* feat: new iter package by @​NathanBaul[https://github.com/samber/lo/pull/672](https://redirect.github.com/samber/lo/pull/672)ll/672
* feat: from slice to map with index passed by @​mabrar[https://github.com/samber/lo/pull/697](https://redirect.github.com/samber/lo/pull/697)ll/697
* feat: from slice/iterator to map with index passed by @​mabrar[https://github.com/samber/lo/pull/698](https://redirect.github.com/samber/lo/pull/698)ll/698
* feat(generator): deprecate lo.Generator in favor of go "iter" package by @​samb[https://github.com/samber/lo/pull/700](https://redirect.github.com/samber/lo/pull/700)ll/700
* perf: optimization of map access by @​mabrar[https://github.com/samber/lo/pull/692](https://redirect.github.com/samber/lo/pull/692)ll/692
* perf: optimize map access everywhere by @​NathanBaul[https://github.com/samber/lo/pull/693](https://redirect.github.com/samber/lo/pull/693)ll/693
#### Tests
* fix(tests): fix flaky time-based tests by @​samb[https://github.com/samber/lo/pull/699](https://redirect.github.com/samber/lo/pull/699)ll/699
#### Style
* lint: unit test improvements by @​NathanBaul[https://github.com/samber/lo/pull/674](https://redirect.github.com/samber/lo/pull/674)ll/674
* lint: fix CI warnings and avoid named return parameters by @​NathanBaul[https://github.com/samber/lo/pull/682](https://redirect.github.com/samber/lo/pull/682)ll/682
* lint: enable 7 more linters by @​NathanBaul[https://github.com/samber/lo/pull/686](https://redirect.github.com/samber/lo/pull/686)ll/686
* lint: enable gofumpt extra rules by @​NathanBaul[https://github.com/samber/lo/pull/690](https://redirect.github.com/samber/lo/pull/690)ll/690
* Style/rename internal rand by @​samb[https://github.com/samber/lo/pull/701](https://redirect.github.com/samber/lo/pull/701)ll/701
* lint: Apply testifylint linter recommendations by @​NathanBaul[https://github.com/samber/lo/pull/669](https://redirect.github.com/samber/lo/pull/669)ll/669
* Style add golangci config by @​samb[https://github.com/samber/lo/pull/670](https://redirect.github.com/samber/lo/pull/670)ll/670
* chore: minor whitespace fixes by @​NathanBaul[https://github.com/samber/lo/pull/677](https://redirect.github.com/samber/lo/pull/677)ll/677
#### Documentation
* New documentation for "lo" 🎨 by @​samb[https://github.com/samber/lo/pull/703](https://redirect.github.com/samber/lo/pull/703)ll/703
* doc: add it/mutable/parallel sub-package to llms.txt by @​samb[https://github.com/samber/lo/pull/707](https://redirect.github.com/samber/lo/pull/707)ll/707
* docs: lots of various doc improvements by @​samb[https://github.com/samber/lo/pull/706](https://redirect.github.com/samber/lo/pull/706)ll/706
* docs: adding go playground examples to it/ package by @​samb[https://github.com/samber/lo/pull/708](https://redirect.github.com/samber/lo/pull/708)ll/708
* docs: Fix the Markdown syntax that is not displaying correctly by @​mengxunQ[https://github.com/samber/lo/pull/658](https://redirect.github.com/samber/lo/pull/658)ll/658
* doc: add examples for find.go by @​samb[https://github.com/samber/lo/pull/681](https://redirect.github.com/samber/lo/pull/681)ll/681
* docs: Fix Product and ProductBy documentation by @​markhildreth-gravi[https://github.com/samber/lo/pull/647](https://redirect.github.com/samber/lo/pull/647)ll/647
* chore(deps-dev): bump typescript from 5.6.3 to 5.9.3 in /docs by @​dependabot[bo[https://github.com/samber/lo/pull/704](https://redirect.github.com/samber/lo/pull/704)ll/704
* docs: grammar improvements by @​NathanBaul[https://github.com/samber/lo/pull/673](https://redirect.github.com/samber/lo/pull/673)ll/673
#### Other
* chore(deps): bump actions/setup-go from 5 to 6 by @​dependabot[bo[https://github.com/samber/lo/pull/695](https://redirect.github.com/samber/lo/pull/695)ll/695
* chore(deps): bump github.com/stretchr/testify from 1.11.0 to 1.11.1 by @​dependabot[bo[https://github.com/samber/lo/pull/663](https://redirect.github.com/samber/lo/pull/663)ll/663
* chore(deps): bump actions/checkout from 4 to 5 by @​dependabot[bo[https://github.com/samber/lo/pull/659](https://redirect.github.com/samber/lo/pull/659)ll/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 contributi[https://github.com/samber/lo/pull/647](https://redirect.github.com/samber/lo/pull/647)ll/647
* @​rasha108bik made their first contributi[https://github.com/samber/lo/pull/631](https://redirect.github.com/samber/lo/pull/631)ll/631
* @​xelavopelk made their first contributi[https://github.com/samber/lo/pull/666](https://redirect.github.com/samber/lo/pull/666)ll/666
* @​mabrarov made their first contributi[https://github.com/samber/lo/pull/692](https://redirect.github.com/samber/lo/pull/692)ll/692
**Full Changelog**: samber/lo@v1.51.0...v1.52.0
</details>
---
### Configuration
📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (UTC), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4yMi4xIiwidXBkYXRlZEluVmVyIjoiNDAuMjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYXV0b21lcmdlIl19-->1 parent 828c4c2 commit 6e4c424
4 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
| 144 | + | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
| 147 | + | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
0 commit comments