dify/web/context
yyh f05d43d26f
feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244)
Migrate 172 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

Part of #30243
Fixes #30244
2025-12-27 20:31:22 +08:00
..
hooks chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
access-control-store.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
app-context.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) 2025-12-27 20:31:22 +08:00
dataset-detail.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
datasets-context.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) 2025-12-27 20:31:22 +08:00
debug-configuration.ts feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) 2025-12-27 20:31:22 +08:00
event-emitter.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
explore-context.ts feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) 2025-12-27 20:31:22 +08:00
external-api-panel-context.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
external-knowledge-api-context.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
global-public-context.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
i18n.ts feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) 2025-12-27 20:31:22 +08:00
mitt-context.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) 2025-12-27 20:31:22 +08:00
modal-context.test.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
modal-context.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) 2025-12-27 20:31:22 +08:00
provider-context-mock.spec.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
provider-context-mock.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
provider-context.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) 2025-12-27 20:31:22 +08:00
query-client.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
web-app-context.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
workspace-context.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00