[PR #30246] feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) #32744

Closed
opened 2026-02-21 20:51:59 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/30246

State: closed
Merged: Yes


Migrate some files from es-toolkit/compat to native es-toolkit.

Migrated:

  • noop → es-toolkit/function
  • cloneDeep, omit, clone, pick → es-toolkit/object
  • uniq, intersection → es-toolkit/array
  • capitalize, camelCase, kebabCase, escape → es-toolkit/string
  • isEqual → es-toolkit/predicate

Kept in compat (API differences):

  • uniqueId, isEmpty
  • get, merge, flow, curry, debounce - different APIs
  • uniqBy, groupBy, intersectionBy - property string support
  • flatten - undefined handling

Benefits: 2-3x faster, smaller bundle

Another:

  • Remove lodash dependency in web/

Part of #30243
Fixes #30244

**Original Pull Request:** https://github.com/langgenius/dify/pull/30246 **State:** closed **Merged:** Yes --- Migrate some files from es-toolkit/compat to native es-toolkit. Migrated: - noop → es-toolkit/function - cloneDeep, omit, clone, pick → es-toolkit/object - uniq, intersection → es-toolkit/array - capitalize, camelCase, kebabCase, escape → es-toolkit/string - isEqual → es-toolkit/predicate Kept in compat (API differences): - uniqueId, isEmpty - get, merge, flow, curry, debounce - different APIs - uniqBy, groupBy, intersectionBy - property string support - flatten - undefined handling Benefits: 2-3x faster, smaller bundle Another: - Remove `lodash` dependency in web/ Part of #30243 Fixes #30244
yindo added the pull-request label 2026-02-21 20:51:59 -05:00
yindo closed this issue 2026-02-21 20:51:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32744