Packages

es-toolkit

1.53.2 · 6 Nov 2026MIT91.3M / weekRepositoryHomepagenpmAtom feed

Upgrading es-toolkit From 1.23.0 to 1.53.2

53 releases in betweenevery note read

  1. 1.23.0yours
  2. 26 releases
  3. 1.39.4security
  4. 8 releases
  5. 1.42.0security
  6. 12 releases
  7. 1.51.0security
  8. 2 releases
  9. 1.53.1security
  10. 1.53.2target
  11. 94 pre
0
changes to make
0
advisories fixed
76
new
204
fixes

Security

  • This release includes security fixes for es-toolkit/compat, and we recommend upgrading.

    1.53.1
  • Fixed compat/template to reject variable values and imports keys that are not plain parameter names, and to replace all whitespace in sourceURL, preventing code injection.

    1.53.1
  • Fixed compat/defaultsDeep to ignore __proto__ keys, preventing prototype pollution.

    1.53.1
  • Fixed compat/set to block constructor.prototype paths, preventing prototype pollution. ([#1904])

    1.51.0
  • Fixed compat/updateWith to remove unreachable code and add prototype pollution test.

    1.42.0
  • Fixed prototype pollution issue in es-toolkit to enhance security.

    1.39.4

Release by release

  1. 1.53.2

    6 Nov 20261 new · 5 fixes
    • New

      Added support for per-function imports like es-toolkit/array/chunk. (#2173)

    • Fixed

      Fixed reduceAsync to preserve explicitly provided null and undefined initial values. (#2176)

    • Fixed

      Fixed circular dependency warnings in bundlers when importing orderBy or sortBy. (#2187)

    • Fixed

      Fixed truncate in es-toolkit/compat to preserve separator boundaries, matching Lodash's behavior. (#2180)

    • Fixed

      Fixed isError in es-toolkit/compat to return true for DOMException and error-like objects, matching Lodash's behavior. (#2188)

    • Fixed

      Fixed incorrect example outputs in the documentation for random, keysIn, setWith, and curryRight. (#2183)

  2. 1.53.1

    Security fix30 Oct 20266 fixes
    • Security

      This release includes security fixes for es-toolkit/compat, and we recommend upgrading.

    • Security

      Fixed compat/template to reject variable values and imports keys that are not plain parameter names, and to replace all whitespace in sourceURL, preventing code injection.

    • Security

      Fixed compat/defaultsDeep to ignore __proto__ keys, preventing prototype pollution.

    • Fixed

      Fixed compat/unset, compat/omit, and compat/pullAt to stop when __proto__, constructor, or prototype appears before the last path key, preventing the deletion of built-in prototype properties.

  3. 1.53.0

    24 Oct 20266 new · 21 fixes
    • New

      Added serialize to es-toolkit/util, and hash in the new es-toolkit/util/hash entrypoint. ([#2067], [#2154])

    • New

      Added Queue to es-toolkit/util. ([#2150], [#2153])

    • New

      Added stringify to es-toolkit/query-string. ([#2121])

    • New

      Added sentenceCase. ([#2079])

  4. 1.52.0

    28 Aug 20264 new · 10 fixes
    • New

      Added the es-toolkit/iterator entrypoint, a lazy iterator module with chunk, count, dropWhile, head, iterate, partition, range, scan, takeWhile, uniqBy, and zip ([#1815]), plus cartesianProduct ([#2031]). The same functions are also available from es-toolkit/fp/iterator.

    • New

      Added defer and deferAsync to es-toolkit/util. ([#2032])

    • New

      Added flowAsync to es-toolkit/fp, a promise-aware left-to-right composition. ([#2033])

    • New

      Added the EmptyObject, IsEqual, JSONValue, Primitive, SetOptional, SetRequired, and UnknownRecord types. ([#2044])

  5. 1.51.0

    Security fix17 Aug 20268 new · 26 fixes
    • Security

      Fixed compat/set to block constructor.prototype paths, preventing prototype pollution. ([#1904])

    • New

      Added the es-toolkit/bigint entrypoint: bigint counterparts of the math functions (sum, sumBy, max, min, maxBy, minBy, clamp, inRange, median, medianBy, percentile, range, rangeRight), kept separate so the number implementations stay unchanged. ([#1966])

    • New

      Added dedent, which removes common leading whitespace from template strings. ([#1679])

    • New

      Added deepFreeze for recursively freezing objects. ([#1680])

  6. 1.50.0

    24 Jul 20262 new · 18 fixes
    • New

      Added the es-toolkit/types entrypoint: a declaration-only module of compile-time type utilities TypeScript lacks natively — ValueOf, Simplify, Writable, NonEmptyArray, DeepPartial, and DeepReadonly. ([#1818])

    • New

      Added flow to es-toolkit/fp, a reusable data-last composition built on pipe. ([#1812])

    • Fixed

      Fixed compat/intersectionBy to dedupe a single array (including by the iteratee) and to keep results consistent with Lodash. ([#1935])

    • Fixed

      Fixed compat/findIndex and compat/findLastIndex to coerce a NaN fromIndex to 0 and to convert fromIndex to an integer. ([#1828], [#1834], [#1938])

  7. 1.49.0

    26 Jun 20262 new · 4 fixes
    • New

      Added the es-toolkit/fp entrypoint 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 trimStart to validate multi-character trim strings correctly before it stops trimming. ([#1615])

    • Fixed

      Fixed compat/pick to prefer a literal key over a dot-notation path when the picked value is undefined. ([#1775])

    • Fixed

      Fixed compat/random to better match Lodash behavior for coerced bounds and floating-point options. ([#1767])

    • Fixed

      Fixed compat/chunk to handle NaN and Infinity size values consistently with Lodash. ([#1797])

  8. 1.48.1

    21 Jun 20261 fix
    • Fixed

      Fixed the jsdelivr and unpkg CDN <script> entry that regressed in v1.48.0. The fields are now declared at the package root so yarn pack preserves them, since publishConfig only carries standard fields and dropped them. Both CDNs now serve the UMD bundle again.

73 other lines we could not sort, mostly version bumps
  • Replaced Prettier and ESLint with oxfmt and oxlint, and forbade circular imports. (#2185, #2189, #2190)

    1.53.2
  • Enhanced the dist and browser compatibility checks to verify the packed tarball and only exported functions. (#2182, #2192)

    1.53.2
  • es-toolkit/compat now runs on Node.js 6 and ES2015 environments without transpilation or polyfills. ([#2097], [#2161])

    1.53.0
  • dedent now leaves interpolated values out of the indentation calculation ([#2099]), and throws a TypeError for a malformed template literal, like String.dedent ([#2100]).

    1.53.0
  • deburr now keeps letters of non-Latin scripts as they are. ([#2124])

    1.53.0
  • orderBy and sortBy now sort NaN in a consistent position. ([#2133])

    1.53.0
  • once now calls the function with the caller's this. ([#2069])

    1.53.0
  • findKey and mapKeys now type keys like Object.keys, so numeric keys are strings. ([#2077], [#2156])

    1.53.0
  • The fp head, last, maxBy, and minBy now always return T | undefined. ([#2113])

    1.53.0
  • Exported the PropertyPath type from es-toolkit/compat. ([#2145])

    1.53.0

3 internal lines (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.