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

fix: lodash 'dot' packages, where necessary #54

Merged
merged 5 commits into from
Jun 15, 2020
Merged

Conversation

FauxFaux
Copy link
Contributor

What does this PR do?

This is a heavy-handed attempt to migrate away from lodash, and use language features where possible. It's mostly find/replace.

Moving to node 8, is a BREAKING CHANGE.

@FauxFaux FauxFaux marked this pull request as ready for review June 15, 2020 07:24
@FauxFaux FauxFaux requested a review from a team as a code owner June 15, 2020 07:24
@ghost ghost requested review from dkontorovskyy and orsagie June 15, 2020 07:24
@@ -201,7 +203,7 @@ function processItemGroupForPackageReference(
includeDev: boolean,
dependenciesResult,
propsMap: PropsLookup) {
const targetFrameworks: string[] = _.get(packageList, '$.Condition', false) ?
const targetFrameworks: string[] = packageList?.$?.Condition ?? false ?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the density of question marks per line is shocking

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'm not really a fan. Especially not of the array syntax; packageList?.$?.[0]?.Condition ?? .... But we'll get used to it, I guess.

@FauxFaux FauxFaux merged commit 9471447 into master Jun 15, 2020
@FauxFaux FauxFaux deleted the fix/lodash-dot branch June 15, 2020 08:28
@snyksec
Copy link

snyksec commented Jun 15, 2020

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants