v1.11.0
Released on July 18th, 2024.
Introducing es-toolkit/compat
We're introducing es-toolkit/compat
, a new module designed as a drop-in replacement for lodash. It replicates lodash's API, making it easier to switch between the two libraries.
es-toolkit/compat
is undergoing rigorous testing using real lodash
test cases. Initial benchmarks suggest it's typically 5% slower and increases bundle size by 10% compared to the original es-toolkit
.
This module is intended to facilitate a smooth transition and should be replaced with the original es-toolkit
for optimal performance once migration is complete.
For more information, see our compatibility documentation.
Features
- Added support for get and set in our compatibility layer
es-toolkit/compat
. (#232, #223) - Added support for zipObjectDeep in our compatibility layer
es-toolkit/compat
. (#150) - Added support for flatMap. (#209)
- Added support for startCase, startsWith, and endsWith. (#224).
- Added support for withTimeout. (#210)
Bug fixes
- Fixed
drop
anddropRight
incorrectly accepting negative integers. (#218) - Fixed
invert
not to invert inherited properties. (#221)
Performance Improvements
- Improved performance for
dropRightWhile
. (#220)