Repository navigation
feat: adding EarliestBy and LatestBy functions - #489
Merged
Merged
Conversation
samber
approved these changes
Jul 13, 2024
Owner
|
LGTM, thanks for this contrib ;) |
github-actions Bot
referenced
this pull request
in kairos-io/provider-kairos
Jul 13, 2024
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/samber/lo](https://togithub.com/samber/lo) | `v1.44.0` -> `v1.45.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes--- ### Configuration 📅 **Schedule**: Branch creation - "after 11pm every weekday,before 7am every weekday,every weekend" in timezone Europe/Brussels, 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. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/kairos-io/provider-kairos). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>samber/lo (github.com/samber/lo)
### [`v1.45.0`](https://togithub.com/samber/lo/releases/tag/v1.45.0) [Compare Source](https://togithub.com/samber/lo/compare/v1.44.0...v1.45.0) #### What's Changed - perf: preallocate in Assign by [@pmalek](https://togithub.com/pmalek) in [https://github.com/samber/lo/pull/484](https://togithub.com/samber/lo/pull/484) - feat: adding EarliestBy and LatestBy functions by [@timych](https://togithub.com/timych) in [https://github.com/samber/lo/pull/489](https://togithub.com/samber/lo/pull/489) #### New Contributors - [@pmalek](https://togithub.com/pmalek) made their first contribution in [https://github.com/samber/lo/pull/484](https://togithub.com/samber/lo/pull/484) - [@timych](https://togithub.com/timych) made their first contribution in [https://github.com/samber/lo/pull/489](https://togithub.com/samber/lo/pull/489) **Full Changelog**: samber/lo@v1.44.0...v1.45.0
codeboten
referenced
this pull request
in open-telemetry/opentelemetry-collector-contrib
Jul 17, 2024
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/samber/lo](https://togithub.com/samber/lo) | `v1.44.0` -> `v1.46.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes--- ### Configuration 📅 **Schedule**: Branch creation - "on tuesday" (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. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com> Co-authored-by: Yang Songsamber/lo (github.com/samber/lo)
### [`v1.46.0`](https://togithub.com/samber/lo/releases/tag/v1.46.0) [Compare Source](https://togithub.com/samber/lo/compare/v1.45.0...v1.46.0) #### What's Changed - fix: chunk memory leak, bug fix by [@​mihir20](https://togithub.com/mihir20) in [https://github.com/samber/lo/pull/491](https://togithub.com/samber/lo/pull/491) - feat: add WaitForWithContext by [@​ccoVeille](https://togithub.com/ccoVeille) in [https://github.com/samber/lo/pull/480](https://togithub.com/samber/lo/pull/480) - add ForEachCondition implement by [@​Sianao](https://togithub.com/Sianao) in [https://github.com/samber/lo/pull/485](https://togithub.com/samber/lo/pull/485) #### New Contributors - [@​mihir20](https://togithub.com/mihir20) made their first contribution in [https://github.com/samber/lo/pull/491](https://togithub.com/samber/lo/pull/491) - [@​ccoVeille](https://togithub.com/ccoVeille) made their first contribution in [https://github.com/samber/lo/pull/480](https://togithub.com/samber/lo/pull/480) - [@​Sianao](https://togithub.com/Sianao) made their first contribution in [https://github.com/samber/lo/pull/485](https://togithub.com/samber/lo/pull/485) **Full Changelog**: samber/lo@v1.45.0...v1.46.0 ### [`v1.45.0`](https://togithub.com/samber/lo/releases/tag/v1.45.0) [Compare Source](https://togithub.com/samber/lo/compare/v1.44.0...v1.45.0) #### What's Changed - perf: preallocate in Assign by [@​pmalek](https://togithub.com/pmalek) in [https://github.com/samber/lo/pull/484](https://togithub.com/samber/lo/pull/484) - feat: adding EarliestBy and LatestBy functions by [@​timych](https://togithub.com/timych) in [https://github.com/samber/lo/pull/489](https://togithub.com/samber/lo/pull/489) #### New Contributors - [@​pmalek](https://togithub.com/pmalek) made their first contribution in [https://github.com/samber/lo/pull/484](https://togithub.com/samber/lo/pull/484) - [@​timych](https://togithub.com/timych) made their first contribution in [https://github.com/samber/lo/pull/489](https://togithub.com/samber/lo/pull/489) **Full Changelog**: samber/lo@v1.44.0...v1.45.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This request adds two functions EarliestBy and LatestBy, which are helpful when dealing with slice of structures or more complex time calculation cases.