dify/web/utils
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
..
app-redirection.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
app-redirection.ts feat: introduce trigger functionality (#27644) 2025-11-12 17:59:37 +08:00
classnames.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
classnames.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
clipboard.spec.ts refactor(web): migrate to Vitest and esm (#29974) 2025-12-22 16:35:22 +08:00
clipboard.ts fix: resolve clipboard.writeText failure under HTTP protocol (#12936) 2025-01-22 15:18:23 +08:00
completion-params.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
completion-params.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
context.spec.ts chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
context.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
draft-07.json feat: Add customized json schema validation (#25408) 2025-09-09 15:15:32 +08:00
emoji.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
emoji.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
encryption.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
error-parser.ts feat: introduce trigger functionality (#27644) 2025-11-12 17:59:37 +08:00
format.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
format.ts chore: fix type check for i18n (#30058) 2025-12-24 16:31:16 +08:00
get-icon.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
get-icon.ts Introduce Plugins (#13836) 2025-02-17 17:05:13 +08:00
index.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
index.ts feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) 2025-12-27 20:31:22 +08:00
mcp.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
mcp.ts removing horus eye and adding mcp icon (#25323) 2025-10-10 17:00:03 +08:00
model-config.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
model-config.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
navigation.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
navigation.ts CI: add TS indentation check via esLint (#24810) 2025-09-01 15:31:59 +08:00
permission.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
permission.ts fix: add dataset edit permissions (#13223) 2025-02-06 14:26:16 +08:00
plugin-version-feature.spec.ts refactor(web): migrate to Vitest and esm (#29974) 2025-12-22 16:35:22 +08:00
plugin-version-feature.ts feat: the frontend part of mcp (#22131) 2025-07-10 14:14:02 +08:00
semver.spec.ts feat: the frontend part of mcp (#22131) 2025-07-10 14:14:02 +08:00
semver.ts feat: the frontend part of mcp (#22131) 2025-07-10 14:14:02 +08:00
time.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
time.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
timezone.json chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
timezone.ts Fix/app logs today filter (#689) 2023-07-31 13:30:04 +08:00
tool-call.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
tool-call.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
urlValidation.spec.ts test: adding some web tests (#27792) 2025-11-04 21:06:44 +08:00
urlValidation.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
validators.spec.ts test: adding some web tests (#27792) 2025-11-04 21:06:44 +08:00
validators.ts feat: Add customized json schema validation (#25408) 2025-09-09 15:15:32 +08:00
var.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
var.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
zod.spec.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00