unstale

npm / lodash

lodash

What changed in lodash 4, from its official release notes, upgrade guides and advisories. Also covers lodash-es. Sources checked 2026-11-30.

3 breaking2 security5 new APIs and options2 performance1 behavior and defaults11 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

lodash 424 changes

Breaking changes 3

  • Rejects imports keys containing forbidden identifier characters, preventing code injection through the Function constructor sink.

    4.18.0release notessecurity advisory

  • Blocks constructor and prototype path traversal, returning false and leaving the target untouched instead of deleting built-in prototype properties.

    4.18.0release notes

  • Module paths are simplified; bindAll can be required directly from lodash/bindAll.

    4.0.0release notes

Security 2

  • lodash vulnerable to prototype pollution via array-path bypass in _.unset, _.omit, and `_.pullAt

    4.18.1security advisory

  • Blocks constructor and prototype path traversal, preventing deletion of properties from built-in prototypes.

    4.18.0release notes

New APIs and options 5

  • Lodash adds support for cloning and comparing array buffers, maps, sets, and symbols.

    4.0.0release notes

  • The Lodash wrapper supports iterables.

    4.0.0release notes

  • Iterators can be converted to arrays.

    4.0.0release notes

  • The FP build is pulled into core, providing immutable, auto-curried, iteratee-first, data-last methods.

    4.0.0release notes

  • The FP convert module can be required to convert methods.

    4.0.0release notes

Performance 2

  • Core functionality for detecting circular references is made faster.

    4.0.0release notes

  • Support for lazy evaluation is expanded.

    4.0.0release notes

Behavior and default changes 1

  • Lodash adds emoji support, including astral symbols, modifiers, variation selectors, zero-width joiners, and regional indicator symbols.

    4.0.0release notes

Fixes and other changes 11

  • Fixed a ReferenceError when using fromPairs from modular builds.

    4.18.1release notes

  • Fixed a ReferenceError when using template from modular builds.

    4.18.1release notes

  • The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.

    4.18.0release notes

  • The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.

    4.18.0release notes

  • The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.

    4.18.0release notes

  • The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.

    4.18.0release notes

  • The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.

    4.18.0release notes

  • The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.

    4.18.0release notes

  • The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.

    4.18.0release notes

  • The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.

    4.18.0release notes

  • The modular package was regenerated and published to parity with the latest lodash release because it previously had CVEs.

    4.18.0release notes