optional-chaining-codemod
optional-chaining-codemod copied to clipboard
Codemod to migrate from Lodash get and logical and expressions to optional chaining
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...
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...
Fixes #35
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 [](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...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. Commits See full diff in compare view [](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...
`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...