feat(global): move from lodash to remeda#30
Open
DenisValcke wants to merge 1 commit into
Open
Conversation
DenisValcke
commented
Jul 9, 2026
| * @param path - A dot-separated path to the property, e.g. 'ads.items' | ||
| * @returns The value at the path, or undefined if it does not exist | ||
| */ | ||
| export const getByPath = (data: unknown, path: string): unknown => |
Contributor
Author
There was a problem hiding this comment.
I wasn't sure about seperating these utilities seeing as they are only used within this operator.
So the question is, do I export them here, but not in the barrel, so they are locally available should this ever come up anywhere elese? Or do I remove the export and simplify the barrel again to export *?
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.
Hi @IbenTesara
I've tried switching out Lodash for either a native JS option or a Remeda alternative.
All checks pass (format, lint, test & build), but I would suggest having a critical look and maybe testing yourself as well seeing as this is a change that is pretty wide and affects pretty much all packages.
For transparancy. I was a bit doubtfull about the
libs/javascript/rxjs/src/lib/operators/populate/populate.operator.tschanges required for thegetandsetfor lodash. So I asked Claude Code to weigh in on my options. the suggested alternative was, in my opinion, pretty solid but required some additional tweaks. So thesetByPathandgetByPathare mostly contributed to that specific AI tool, with validation and fixes from my end.Moving away from Lodash solves two things:
I've considered using es-toolkit instead of remeda because they have a 1:1 compatibilty drop-in package. However, they themselves state that this should be considered a transition method and not a definitive solution. If refactoring is required for both and a lot of Lodash utils can be converted to native JS, the choice between remeda and es-toolkit becomes subjective. My reasoning for remeda is that it leans more towards the functional, ramda way of working.
Let me know what you think.