v1.11.0
版本发布时间: 2024-07-18 22:25:05
toss/es-toolkit最新发布版本:v1.30.1(2024-12-14 13:11:10)
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
. (https://github.com/toss/es-toolkit/pull/232, https://github.com/toss/es-toolkit/pull/223) - Added support for zipObjectDeep in our compatibility layer
es-toolkit/compat
. (https://github.com/toss/es-toolkit/pull/150) - Added support for flatMap. (https://github.com/toss/es-toolkit/pull/209)
- Added support for startCase, startsWith, and endsWith. (https://github.com/toss/es-toolkit/pull/224).
- Added support for withTimeout. (https://github.com/toss/es-toolkit/pull/210)
Bug fixes
- Fixed
drop
anddropRight
incorrectly accepting negative integers. (https://github.com/toss/es-toolkit/pull/218) - Fixed
invert
not to invert inherited properties. (https://github.com/toss/es-toolkit/pull/221)
Performance Improvements
- Improved performance for
dropRightWhile
. (https://github.com/toss/es-toolkit/pull/220)
1、 es-toolkit-1.11.0.tgz 213.79KB