Skip to content

Migrate from lodash to radash #6

@jgs-jeeves

Description

@jgs-jeeves

Summary

Replace lodash with radash as the utility library in \JsonMap.ts\ and update examples/tests accordingly.

Scope

Core implementation (\src/JsonMap.ts) — 25+ lodash call sites using:

  • Deep path access/set: _.get, _.set, _.invoke\
  • Type guards: _.isObject, _.isString, _.isArray, _.isUndefined, _.isArrayLikeObject\
  • Collections: _.mapValues, _.pickBy, _.sortBy, _.castArray, _.size\
  • Deep clone: _.cloneDeepWith\

Tests (\src/JsonMap.test.ts, \src/types.test.ts) — lodash used in \lib\ objects as example mapping functions (_.get, _.toUpper).

README — example code references lodash.

Notes

  • Radash doesn't have direct equivalents for all lodash functions used (notably _.invoke, _.cloneDeepWith, deep-path _.set). Some will need native implementations or alternative approaches.
  • This is a runtime dependency change — needs careful testing of all transformation paths.
  • Part of ecosystem standardization on radash over lodash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions