Skip to content

Use es-toolkit as drop-in replacement of lodash #7789

@sneridagh

Description

@sneridagh

Important

If you are not a member of the Volto Team or Developers Team in the Plone GitHub organization, then do not work on or comment on this issue.

PLIP (Plone Improvement Proposal)

Responsible Persons

Proposer: Víctor Fernández de Alba (@sneridagh)

Seconder: Piero Nicoli (@pnicolli)

Abstract

Move to use es-toolkit instead of lodash.

Motivation

lodash is deprecated in Volto 18 (see #6350), and it's unmaintained and it bloats builds. Some of their utilities are already part of the ESNext specifications and needed anymore.

See https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore for more information.

Proposal & Implementation

Modify all imports and usage from the remaining lodash utilities and move to use the es-toolkit ones.

Risks

Add-ons and projects will have to update to use es-toolkit or add the lodash dependency locally.
It will be recommended that everybody adapts their code to not use lodash.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions