Releases: toss/es-toolkit
v1.15.1
v1.15.0
v1.14.0
Released on August 9th, 2024.
- (
es-toolkit
) Added support for mapKeys, mapValues, cloneDeep, before, after, isSubset, ary, unary, flattenDeep, isEqual, isFunction, isBoolean, isPrimitive, and isTypedArray. - (
es-toolkit/compat
) Added support for matches, isMatch, isArray, isArrayLike, isObjectLike, isArguments, size, bind, flattenDepth, and padStart. - Added compatibility tests with lodash for many functions like initial, last, takeRight, without, uniq, invert, isNull, isUndefined, and isNil.
v1.13.1
Released on July 20th, 2024.
- Use the compatibility layer
es-toolkit/compat
in legacy CDN builds.
v1.13.0
Released on July 20th, 2024.
es-toolkit
can now be used in various CDNs, like unpkg and jsdelivr. See more in our installation docs
Features
- Added support for flattenObject, isPlainObject, isLength. (3e60443, 3764993, #245)
- Added support for concat in our compatibility layer
es-toolkit/compat
. (e09517f)
Lodash Compatibility
- Ensured compatibility with difference and take
v1.12.0
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)
v1.10.1
v1.10.0
Released on July 14th, 2024.
Features
- Add support for capitalize, snakeCase, kebabCase, camelCase and lowerCase. (#152, #161, #162, #166, 21d6530).
- Add support for negate. (#177)
- Add support for isEqual. (#174)
- Add support for clone. (#155)
- Add support for toFilled. (#154)
- Add support for initial and last. (#188, #149)
- Add support for flattenDeep. (#160)