Skip to content

chore(dep): replace lodash with a local debounce utility#158

Merged
kptdobe merged 1 commit into
mainfrom
chore/remove-lodash-debounce
May 21, 2026
Merged

chore(dep): replace lodash with a local debounce utility#158
kptdobe merged 1 commit into
mainfrom
chore/remove-lodash-debounce

Conversation

@kptdobe
Copy link
Copy Markdown
Contributor

@kptdobe kptdobe commented May 20, 2026

Summary

  • lodash is a 24 KB library that was pulled in solely for its debounce function
  • Replaced with a minimal (~40 line) local implementation in src/debounce.js that supports the same wait / maxWait / cancel() API
  • 9 new unit tests in test/debounce.test.js cover timing, call coalescing, argument forwarding, cancel(), and maxWait enforcement

Test plan

  • npm run lint — no errors
  • npm test — all 137 tests pass (including 9 new debounce-specific tests)

🤖 Generated with Claude Code

lodash is a 24KB library pulled in solely for its debounce function.
Replaced with a minimal local implementation that supports the same
`wait` + `maxWait` + `cancel()` API used in shareddoc.js.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kptdobe kptdobe requested a review from bosschaert May 20, 2026 14:15
@kptdobe kptdobe merged commit 6131311 into main May 21, 2026
5 checks passed
@kptdobe kptdobe deleted the chore/remove-lodash-debounce branch May 21, 2026 11:53
adobe-bot pushed a commit that referenced this pull request May 21, 2026
# [1.6.0](v1.5.3...v1.6.0) (2026-05-21)

### Features

* **dep:** replace lodash with a local debounce utility ([#158](#158)) ([6131311](6131311))
@adobe-bot
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants