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
refactor: remove lodash, add fast-deep-equal #6496
Conversation
6ab8ef9
to
c9ce79e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs lint fixes too
Yeah, I realised just after I sent it out that I'd been testing with just |
yarn.lock
Outdated
@@ -6376,7 +6381,7 @@ lodash.without@~4.4.0: | |||
resolved "https://registry.yarnpkg.com/lodash.without/-/lodash.without-4.4.0.tgz#3cd4574a00b67bae373a94b748772640507b7aac" | |||
integrity sha1-PNRXSgC2e643OpS3SHcmQFB7eqw= | |||
|
|||
lodash@4.17.15, lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.4: | |||
lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.4: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we still using lodash
in production indirectly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e0a388b
to
1382f59
Compare
@rarkins Did something change in logger? I didn't change anything there, but all the lint errors are around |
@JamieMagee not that I can recall. Not according to GitHub either: https://github.com/renovatebot/renovate/commits/master/lib/logger |
64af4ca
to
4a8105b
Compare
It's because I created a dependency from |
Needs coverage fixes. |
?? There should be no dep from tools to lib. Tools folder has its own tsconfig which should be used to compile only files in tools. |
True, but I accidentally added one when refactoring this code and moving the |
With the help of [You don't need lodash](https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore). Exceptions are: - Replaced _.isEqual with [fast-deep-equal](https://github.com/epoberezkin/fast-deep-equal) - Reimplemented sampleSize - Reimplemented camelCase Done as part of my investigation into jest memory leakage. Unfortunately it's brought in via a lot of our dependencies, but it helps a bit
90873c5
to
740796e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one question, otherwise LGTM
🎉 This PR is included in version 21.18.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
With the help of You don't need lodash. Exceptions are:
Done as part of my investigation into jest memory leakage. Unfortunately it's brought in via a lot of our dependencies, but it helps a bit.