Skip to content

Commit 6e4c424

Browse files
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 [@&#8203;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 @&#8203;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 @&#8203;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 @&#8203;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 @&#8203;gho[https://github.com/samber/lo/pull/644](https://redirect.github.com/samber/lo/pull/644)ll/644 * add FilterKeys for map by @&#8203;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 @&#8203;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 @&#8203;NathanBaul[https://github.com/samber/lo/pull/678](https://redirect.github.com/samber/lo/pull/678)ll/678 * fix: minor example issues by @&#8203;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 @&#8203;NathanBaul[https://github.com/samber/lo/pull/675](https://redirect.github.com/samber/lo/pull/675)ll/675 * feat: adding hassuffix + hasprefix by @&#8203;samb[https://github.com/samber/lo/pull/680](https://redirect.github.com/samber/lo/pull/680)ll/680 * Added Cut, CutPrefix, CutSuffix by @&#8203;xelavope[https://github.com/samber/lo/pull/666](https://redirect.github.com/samber/lo/pull/666)ll/666 * Add TrimXXX helpers by @&#8203;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 @&#8203;samb[https://github.com/samber/lo/pull/684](https://redirect.github.com/samber/lo/pull/684)ll/684 * fix: avoid recover() if possible by @&#8203;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 @&#8203;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 @&#8203;NathanBaul[https://github.com/samber/lo/pull/689](https://redirect.github.com/samber/lo/pull/689)ll/689 * feat: new iter package by @&#8203;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 @&#8203;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 @&#8203;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 @&#8203;samb[https://github.com/samber/lo/pull/700](https://redirect.github.com/samber/lo/pull/700)ll/700 * perf: optimization of map access by @&#8203;mabrar[https://github.com/samber/lo/pull/692](https://redirect.github.com/samber/lo/pull/692)ll/692 * perf: optimize map access everywhere by @&#8203;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 @&#8203;samb[https://github.com/samber/lo/pull/699](https://redirect.github.com/samber/lo/pull/699)ll/699 #### Style * lint: unit test improvements by @&#8203;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 @&#8203;NathanBaul[https://github.com/samber/lo/pull/682](https://redirect.github.com/samber/lo/pull/682)ll/682 * lint: enable 7 more linters by @&#8203;NathanBaul[https://github.com/samber/lo/pull/686](https://redirect.github.com/samber/lo/pull/686)ll/686 * lint: enable gofumpt extra rules by @&#8203;NathanBaul[https://github.com/samber/lo/pull/690](https://redirect.github.com/samber/lo/pull/690)ll/690 * Style/rename internal rand by @&#8203;samb[https://github.com/samber/lo/pull/701](https://redirect.github.com/samber/lo/pull/701)ll/701 * lint: Apply testifylint linter recommendations by @&#8203;NathanBaul[https://github.com/samber/lo/pull/669](https://redirect.github.com/samber/lo/pull/669)ll/669 * Style add golangci config by @&#8203;samb[https://github.com/samber/lo/pull/670](https://redirect.github.com/samber/lo/pull/670)ll/670 * chore: minor whitespace fixes by @&#8203;NathanBaul[https://github.com/samber/lo/pull/677](https://redirect.github.com/samber/lo/pull/677)ll/677 #### Documentation * New documentation for "lo" 🎨 by @&#8203;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 @&#8203;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 @&#8203;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 @&#8203;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 @&#8203;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 @&#8203;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 @&#8203;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 @&#8203;dependabot[bo[https://github.com/samber/lo/pull/704](https://redirect.github.com/samber/lo/pull/704)ll/704 * docs: grammar improvements by @&#8203;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 @&#8203;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 @&#8203;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 @&#8203;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 @&#8203;dependabot[bot] in #### New Contributors * @&#8203;markhildreth-gravity made their first contributi[https://github.com/samber/lo/pull/647](https://redirect.github.com/samber/lo/pull/647)ll/647 * @&#8203;rasha108bik made their first contributi[https://github.com/samber/lo/pull/631](https://redirect.github.com/samber/lo/pull/631)ll/631 * @&#8203;xelavopelk made their first contributi[https://github.com/samber/lo/pull/666](https://redirect.github.com/samber/lo/pull/666)ll/666 * @&#8203;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

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/simple_plugin/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ require (
5555
github.com/oapi-codegen/runtime v1.1.2 // indirect
5656
github.com/pierrec/lz4/v4 v4.1.22 // indirect
5757
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
58-
github.com/samber/lo v1.51.0 // indirect
58+
github.com/samber/lo v1.52.0 // indirect
5959
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect
6060
github.com/spf13/cobra v1.10.1 // indirect
6161
github.com/spf13/pflag v1.0.9 // indirect

examples/simple_plugin/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0=
141141
github.com/rs/zerolog v1.34.0 h1:k43nTLIwcTVQAncfCw4KZ2VY6ukYoZaBPNOE8txlOeY=
142142
github.com/rs/zerolog v1.34.0/go.mod h1:bJsvje4Z08ROH4Nhs5iH600c3IkWhwp44iRc54W6wYQ=
143143
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
144-
github.com/samber/lo v1.51.0 h1:kysRYLbHy/MB7kQZf5DSN50JHmMsNEdeY24VzJFu7wI=
145-
github.com/samber/lo v1.51.0/go.mod h1:4+MXEGsJzbKGaUEQFKBq2xtfuznW9oz/WrgyzMzRoM0=
144+
github.com/samber/lo v1.52.0 h1:Rvi+3BFHES3A8meP33VPAxiBZX/Aws5RxrschYGjomw=
145+
github.com/samber/lo v1.52.0/go.mod h1:4+MXEGsJzbKGaUEQFKBq2xtfuznW9oz/WrgyzMzRoM0=
146146
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 h1:KRzFb2m7YtdldCEkzs6KqmJw4nqEVZGK7IN2kJkjTuQ=
147147
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU=
148148
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ require (
2222
github.com/invopop/jsonschema v0.13.0
2323
github.com/mitchellh/hashstructure/v2 v2.0.2
2424
github.com/rs/zerolog v1.34.0
25-
github.com/samber/lo v1.51.0
25+
github.com/samber/lo v1.52.0
2626
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2
2727
github.com/spf13/cobra v1.10.1
2828
github.com/stretchr/testify v1.11.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0=
144144
github.com/rs/zerolog v1.34.0 h1:k43nTLIwcTVQAncfCw4KZ2VY6ukYoZaBPNOE8txlOeY=
145145
github.com/rs/zerolog v1.34.0/go.mod h1:bJsvje4Z08ROH4Nhs5iH600c3IkWhwp44iRc54W6wYQ=
146146
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
147-
github.com/samber/lo v1.51.0 h1:kysRYLbHy/MB7kQZf5DSN50JHmMsNEdeY24VzJFu7wI=
148-
github.com/samber/lo v1.51.0/go.mod h1:4+MXEGsJzbKGaUEQFKBq2xtfuznW9oz/WrgyzMzRoM0=
147+
github.com/samber/lo v1.52.0 h1:Rvi+3BFHES3A8meP33VPAxiBZX/Aws5RxrschYGjomw=
148+
github.com/samber/lo v1.52.0/go.mod h1:4+MXEGsJzbKGaUEQFKBq2xtfuznW9oz/WrgyzMzRoM0=
149149
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 h1:KRzFb2m7YtdldCEkzs6KqmJw4nqEVZGK7IN2kJkjTuQ=
150150
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU=
151151
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=

0 commit comments

Comments
 (0)