optional-chaining-codemod icon indicating copy to clipboard operation
optional-chaining-codemod copied to clipboard

Codemod to migrate from Lodash get and logical and expressions to optional chaining

Results 15 optional-chaining-codemod issues
Sort by recently updated
recently updated
newest added

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies

Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR aeb3e27 1.2.5...

dependencies

It would be great if it could also handle https://www.npmjs.com/package/just-safe-get

I used this tool on a large codebase, and came across some cases that were missed. Here's everything I found: https://github.com/GoogleChrome/lighthouse/pull/13503#issuecomment-998215385 (link to code at particular commit) https://github.com/GoogleChrome/lighthouse/tree/11a6a030f3e29910be6dc1166f17e085c17da6da I believe...

Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tmpl&package-manager=npm_and_yarn&previous-version=1.0.4&new-version=1.0.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=path-parse&package-manager=npm_and_yarn&previous-version=1.0.6&new-version=1.0.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

`get` with an argument for the default from `lodash` is handled, but not `getOr` from `lodash/fp`

Hi, thank you for your package. It's great and helps us a lot to migrate our codebase to modern JS style. In our code we use custom babel plugins, such...

This example ```js import { get } from 'lodash'; const obj = { a: { b: { c: { d: 1 }}}}; const path = ['a','b','c','d']; get(obj, path); ``` Turns...