es-toolkit
1.53.2 · 6 Nov 2026MIT91.3M / weekRepositoryHomepagenpmAtom feed
Upgrading es-toolkit From 1.51.0 to 1.53.2
4 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.
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
15 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.