es-toolkit
1.53.2 · 6 Nov 2026MIT91.3M / weekRepositoryHomepagenpmAtom feed
Upgrading es-toolkit From 1.48.1 to 1.53.2
7 releases in betweenevery note read
Security
- 1.53.1
This release includes security fixes for
es-toolkit/compat, and we recommend upgrading. - 1.53.1
Fixed
compat/templateto rejectvariablevalues andimportskeys that are not plain parameter names, and to replace all whitespace insourceURL, preventing code injection. - 1.53.1
Fixed
compat/defaultsDeepto ignore__proto__keys, preventing prototype pollution. - 1.51.0
Fixed
compat/setto blockconstructor.prototypepaths, preventing prototype pollution. ([#1904])
Release by release
- New
Added support for per-function imports like
es-toolkit/array/chunk. (#2173) - Fixed
Fixed
reduceAsyncto preserve explicitly providednullandundefinedinitial values. (#2176) - Fixed
Fixed circular dependency warnings in bundlers when importing
orderByorsortBy. (#2187) - Fixed
Fixed
truncateines-toolkit/compatto preserve separator boundaries, matching Lodash's behavior. (#2180) - Fixed
Fixed
isErrorines-toolkit/compatto returntrueforDOMExceptionand error-like objects, matching Lodash's behavior. (#2188) - Fixed
Fixed incorrect example outputs in the documentation for
random,keysIn,setWith, andcurryRight. (#2183)
- New
- Security
This release includes security fixes for
es-toolkit/compat, and we recommend upgrading. - Security
Fixed
compat/templateto rejectvariablevalues andimportskeys that are not plain parameter names, and to replace all whitespace insourceURL, preventing code injection. - Security
Fixed
compat/defaultsDeepto ignore__proto__keys, preventing prototype pollution. - Fixed
Fixed
compat/unset,compat/omit, andcompat/pullAtto stop when__proto__,constructor, orprototypeappears before the last path key, preventing the deletion of built-in prototype properties.
- Security
- New
Added
serializetoes-toolkit/util, andhashin the newes-toolkit/util/hashentrypoint. ([#2067], [#2154]) - New
Added
Queuetoes-toolkit/util. ([#2150], [#2153]) - New
Added
stringifytoes-toolkit/query-string. ([#2121]) - New
Added
sentenceCase. ([#2079])
- New
- New
Added the
es-toolkit/iteratorentrypoint, a lazy iterator module withchunk,count,dropWhile,head,iterate,partition,range,scan,takeWhile,uniqBy, andzip([#1815]), pluscartesianProduct([#2031]). The same functions are also available fromes-toolkit/fp/iterator. - New
Added
deferanddeferAsynctoes-toolkit/util. ([#2032]) - New
Added
flowAsynctoes-toolkit/fp, a promise-aware left-to-right composition. ([#2033]) - New
Added the
EmptyObject,IsEqual,JSONValue,Primitive,SetOptional,SetRequired, andUnknownRecordtypes. ([#2044])
- New
- Security
Fixed
compat/setto blockconstructor.prototypepaths, preventing prototype pollution. ([#1904]) - New
Added the
es-toolkit/bigintentrypoint:bigintcounterparts of the math functions (sum,sumBy,max,min,maxBy,minBy,clamp,inRange,median,medianBy,percentile,range,rangeRight), kept separate so thenumberimplementations stay unchanged. ([#1966]) - New
Added
dedent, which removes common leading whitespace from template strings. ([#1679]) - New
Added
deepFreezefor recursively freezing objects. ([#1680])
- Security
- New
Added the
es-toolkit/typesentrypoint: a declaration-only module of compile-time type utilities TypeScript lacks natively —ValueOf,Simplify,Writable,NonEmptyArray,DeepPartial, andDeepReadonly. ([#1818]) - New
Added
flowtoes-toolkit/fp, a reusable data-last composition built onpipe. ([#1812]) - Fixed
Fixed
compat/intersectionByto dedupe a single array (including by the iteratee) and to keep results consistent with Lodash. ([#1935]) - Fixed
Fixed
compat/findIndexandcompat/findLastIndexto coerce aNaNfromIndexto0and to convertfromIndexto an integer. ([#1828], [#1834], [#1938])
- New
- New
Added the
es-toolkit/fpentrypoint with data-last, pipeable utilities, documentation, benchmarks, and bundle-size checks. ([#1781]) - New
Added a broad set of array utilities to
es-toolkit/fp, covering slicing, grouping, set operations, ordering, zipping, and collection helpers. ([#1801]) - Fixed
Fixed
trimStartto validate multi-character trim strings correctly before it stops trimming. ([#1615]) - Fixed
Fixed
compat/pickto prefer a literal key over a dot-notation path when the picked value isundefined. ([#1775]) - Fixed
Fixed
compat/randomto better match Lodash behavior for coerced bounds and floating-point options. ([#1767]) - Fixed
Fixed
compat/chunkto handleNaNandInfinitysize values consistently with Lodash. ([#1797])
- New
23 other lines we could not sort, mostly version bumps
- 1.53.2
- 1.53.2
- 1.53.0
es-toolkit/compatnow runs on Node.js 6 and ES2015 environments without transpilation or polyfills. ([#2097], [#2161]) - 1.53.0
dedentnow leaves interpolated values out of the indentation calculation ([#2099]), and throws aTypeErrorfor a malformed template literal, likeString.dedent([#2100]). - 1.53.0
deburrnow keeps letters of non-Latin scripts as they are. ([#2124]) - 1.53.0
orderByandsortBynow sortNaNin a consistent position. ([#2133]) - 1.53.0
oncenow calls the function with the caller'sthis. ([#2069]) - 1.53.0
findKeyandmapKeysnow type keys likeObject.keys, so numeric keys are strings. ([#2077], [#2156]) - 1.53.0
The
fphead,last,maxBy, andminBynow always returnT | undefined. ([#2113]) - 1.53.0
Exported the
PropertyPathtype fromes-toolkit/compat. ([#2145])
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.