Releases: toss/es-toolkit
v1.42.0
Released on November 17th, 2025.
- Added new async utilities:
filterAsync,flatMapAsync,forEachAsync,mapAsync,reduceAsync, andlimitAsyncfor handling asynchronous operations. - Exported
ThrottleOptionsandDebounceOptionsinterfaces for better type support. - Fixed
isFiniteto implement type predicate to narrow type to number. - Fixed
isSafeIntegerto implement type predicate to narrow type to number. - Fixed
omitto prevent adding index properties to array-like objects. - Fixed
mergeWithto remove unnecessary nullish coalescing for 100% branch coverage. - Fixed
compat/updateWithto remove unreachable code and add prototype pollution test. - Updated documentation headings for consistency.
- Improved test coverage for
compat/mergeWith,compat/unset,get,toMerged,mergeWith, andcompat/intersectionBywith additional edge cases and security tests.
We sincerely thank @Debbl, @wo-o29, @raon0211, @Yeom-JinHo, @sukvvon, and @D-Sketon for their contributions. We appreciate your great efforts!
v1.41.0
Released on October 24th, 2025.
- Enhanced
throttleto preservethiscontext when called as a method. - Added type guard support for
partitionfunction. - Fixed
omitto support runtime-determined key arrays with proper overloads. - Fixed
defaultsin compatibility layer to properly handle undefined and null sources. - Fixed
toSnakeCaseKeysandtoCamelCaseKeysto correctly return types for non-plain objects. - Fixed
toMergedandmergeWithto properly handle shared objects in merge logic. - Fixed
compat/unionto support array-like objects. - Fixed
compat/updateWithto usegetfor value retrieval in updater function. - Fixed circular import between
isMatchandisMatchWith. - Fixed
findandfindLastby simplifying logic and removing unnecessary checks. - Fixed
takeRightby improving test coverage and removing redundant checks. - Fixed
curryandcurryRightby removing unnecessary type assertions. - Fixed
isEqualWithandmapKeysby removing unnecessary type assertions. - Improved performance for
meanByby removing intermediate array creation. - Updated build system to use UMD format instead of IIFE for browser builds.
- Fixed numerous documentation examples across compat modules.
- Improved test coverage with additional test cases for edge cases and compatibility.
We sincerely thank @the5thbeatle, @wo-o29, @hwibaski, @manudeli, @raon0211, @dayongkr, @D-Sketon, @yoouungyoung, @Dohun-choi, @sukvvon, @zoulou00, and @sen2y for their contributions. We appreciate your great efforts!
v1.40.0
Released on October 8th, 2025.
- Enhanced
sumByto pass the element index to thegetValuecallback function. - Improved performance for
uniqfunction. - Fixed
cloneDeepWithto handle runtime errors in environments without Blob support and correctly clone Boolean, Number, and String objects. - Fixed
omitto avoid unnecessary deep cloning, improving performance. - Fixed
toCamelCaseKeysto properly handle PascalCase type conversion. - Fixed
toPathto correctly handle arrays and non-string inputs. - Fixed
repeatto validate and handle invalid repeat counts. - Fixed
sortedIndexByto properly handle default iteratee. - Fixed
somepredicate check to correctly handle null and undefined cases. - Fixed compatibility issue in
compat/unsetwith nonexistent paths. - Fixed several JSDoc issues across multiple functions including return types, parameter descriptions, and method names.
- Improved documentation clarity and consistency across multiple functions.
- Enhanced test coverage with additional test cases for compat functions and edge cases.
- Updated build configuration and CI workflows.
We sincerely thank @wo-o29, @D-Sketon, @HidenLee, @yoouung, @manudeli, @dayongkr, @Li13, @nicklemmon, @sen2y, @miinhho, @raon0211, @joshkel, @jgjgill, @mlnwns, @Dohun-choi, @PinkChampagne17, @sukvvon, @YOUNGHO8762, @caseBread, @Jeongeun-Choi, @artechventure and hoyyChoi for their contributions. We appreciate your great efforts!
v1.39.10
Released on August 17th, 2025.
- Fixed
defaultsDeepto properly handle deep merging of objects in arrays - Fixed several documentation issues and examples across multiple functions
We sincerely thank @wo-o29, @thwlckd, @kilimandzharov, and @dayongkr for their contributions. We appreciate your great efforts!
v1.39.9
Released on August 10th, 2025.
- Fixed
mergeWithto properly handle null values returned from customizer function. - Fixed
cloneDeepWithto properly handle customizer returning null values. - Fixed some of the documentation issues.
We sincerely thank @raon0211, @joshkel, and @Najeong-Kim for their contributions. We appreciate your great efforts!
v1.39.8
Released on July 25th, 2025.
- Aligned the types of
fill,pullAll,pullAllBy,pullAllWith,pullAt,remove, andreversein our compatibility library with the latest Lodash types (@types/lodashv4.17.20).
v1.39.7
Released on July 9th, 2025.
- Fixed a compatibility issue with Lodash's
debounceandthrottlefunctions. - Remove useless source map for reduce bundle size.
- Fix some of the documentation issues.
We sincerely thank @dayongkr, @cobocho, @raon0211, and @D-Sketon for their contributions. We appreciate your great efforts!
v1.39.6
Released on July 2th, 2025.
- Fixed handling of null/undefined values in
valuesfunction. - Fixed type safety in
compat/getby adding GetFieldType utility type.
We sincerely thank @raon0211, @dayongkr, @yhb-flydream, @ssi02014, @JeongHwan-dev, and @guesung for their contributions. We appreciate your great efforts!
v1.39.5
Released on June 24th, 2025.
- Fixed type compatibility issues between
es-toolkit/compatand@types/lodash. - Improved documentation.
We thank @raon0211, @dayongkr, @sukvvon, and @yhb-flydream for their contributions.