Skip to content

Replace lodash with es-toolkit to remove deprecated dependency and CommonJS optimization bailouts #254

Open
denatys wants to merge 7 commits into
remoteoss:mainfrom
denatys:main
Open

Replace lodash with es-toolkit to remove deprecated dependency and CommonJS optimization bailouts #254
denatys wants to merge 7 commits into
remoteoss:mainfrom
denatys:main

Conversation

@denatys
Copy link
Copy Markdown
Contributor

@denatys denatys commented May 5, 2026

Closes #253


Note

Medium Risk
Swaps a foundational utility dependency (lodash) for es-toolkit/compat across schema modification and v0 form logic, which could introduce subtle behavioral differences in merge*, get/set, and array handling. Changes are broad but mostly mechanical and covered by updated tests/lockfiles.

Overview
Replaces lodash with es-toolkit/compat throughout the codebase (both v2 src/modify-schema.ts and the v0 implementation), updating all imports for common helpers like merge, mergeWith, get/set, difference, etc., and removing lodash/@types/lodash from manifests.

Dependency plumbing and tests were adjusted: lockfiles now include es-toolkit, v0 package.json/package-lock.json are updated, and a couple test fixtures were tweaked (e.g., merge({}, …) call sites and a minor expected-schema shape change in modify.test.js) to align with the new utility behavior.

Reviewed by Cursor Bugbot for commit b8b5b8f. Bugbot is set up for automated code reviews on this repo. Configure here.

@denatys
Copy link
Copy Markdown
Contributor Author

denatys commented May 6, 2026

@sandrina-p @danielcardoso5 please review

@sandrina-p
Copy link
Copy Markdown
Collaborator

Hi @denatys, thanks for your MR! We'll review this later in the week, max early next one. :)

@sandrina-p sandrina-p self-requested a review May 6, 2026 08:47
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.

Replace lodash with es-toolkit to remove deprecated dependency and CommonJS optimization bailouts

2 participants