Skip to content

chore: replace lodash with es-toolkit #2088

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hwibaski
Copy link

@hwibaski hwibaski commented Jun 18, 2025

Replace lodash utility functions with es-toolkit equivalents to improve performance. Update imports in config service and merge-configs utility.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

The config service and merge-configs utility are currently using lodash utility functions, which increases the bundle size and introduces unnecessary dependencies.

Issue Number: N/A

What is the new behavior?

Replaced lodash utility functions with equivalent es-toolkit functions to reduce bundle size and improve performance. Also updated import statements in config service and merge-configs utility accordingly.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

  • The es-toolkit/compat module fully covers the existing lodash test coverage, ensuring no side effects or regressions.
  • Lodash has not had a major release since v4 on January 13, 2016 (lodash releases).
  • Lodash is no longer actively maintained, evidenced by unanswered user questions regarding a new version (Any new version release? lodash/lodash#5989).
  • The latest commit to the planned v5 of Lodash was 8 months ago (v5-wip branch).
  • @types/lodash contains numerous any types, negatively impacting overall application type safety.

@hwibaski hwibaski marked this pull request as ready for review June 19, 2025 04:30
@hwibaski hwibaski force-pushed the master branch 2 times, most recently from 524d30e to 96ef09a Compare June 19, 2025 04:56
@hwibaski hwibaski changed the title refactor: replace lodash with es-toolkit chore: replace lodash with es-toolkit Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant