Skip to content

Conversation

evan-moon
Copy link

Description

Migrated from lodash-es to es-toolkit to remove lodash as a dependency, resolving performance and maintenance concerns.

Replaced all lodash methods with equivalent methods provided by es-toolkit, which is actively maintained and optimized for modern JS usage.

This change was motivated by:

  • Performance improvements (es-toolkit is faster in benchmarks compared to lodash).
  • Ongoing maintenance and active community support.
  • 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 (issue #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.
  • Lodash lacks proper tree-shaking, thus requiring the separate lodash-es package.

No additional breaking changes were introduced.

Documentation

Tests

Related Issues

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants