Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace lodash clonedeep with merge-anything #40

Closed

Conversation

simonpkerr
Copy link
Contributor

This replaces lodash with merge-anything, which is a fast, secure alternative to lodash. We constantly get security findings for anything related to lodash, whereas merge-anything seems to be ok.

@mifi
Copy link
Owner

mifi commented Jul 19, 2021

Thanks for your pr.

The snyk security warning is for the lodash package, no? react-lottie-player doesn't depend on lodash, but on lodash.clonedeep. It doesn't look like this package has any vulnerabilities:
https://snyk.io/vuln/search?q=lodash.clonedeep&type=npm

I don't generally like to use less popular packages unless there is a good reason for it. Looking at the npms score, lodash.clonedeep has a higher score than merge-anything

It also has more subdependencies.

I'm not against replacing lodash.merge, but I don't really see a good reason in this case unless you can document why it's problematic

@simonpkerr
Copy link
Contributor Author

ok no worries, I guess if there are future issues with it, there are some options available

@simonpkerr simonpkerr closed this Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants