-
Notifications
You must be signed in to change notification settings - Fork 381
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 with the lodash.clonedeep package #818
Conversation
I pushed another patch which switches to the extend package. I don't have a preference, both should do the job and are small. https://packagephobia.com/result?p=lodash%2Clodash.clonedeep%2Cextend |
index.js
Outdated
@@ -30,7 +30,7 @@ const gulpSass = (options, sync) => transfob((file, enc, cb) => { // eslint-disa | |||
return cb(null, file); | |||
} | |||
|
|||
const opts = clonedeep(options || {}); | |||
const opts = extend(true, options || {}); |
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.
I think we can also drop the fallback || {}
since extend handles this case.
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.
Makes sense
The CI failure is unrelated to these changes; GH Actions return the paths as |
@xzyfer can you let me know how I should proceed please? |
But with which solution 😛? |
I'm happy with either. It's fairly inconsequential as long as tests pass. |
The thing is that tests don't catch everything :) Anyway, I went with extend because it's also a dependency of other packages one will probably have:
|
Good enough reason as any :)
…On Wed, 6 Oct 2021, 5:42 pm XhmikosR, ***@***.***> wrote:
The thing is that tests don't catch everything :)
Anyway, I went with extend because it's also a dependency of other
packages one will probably have:
C:\Users\xmr\Desktop\gulp-sass>npm ls extend
***@***.*** C:\Users\xmr\Desktop\gulp-sass
+-- ***@***.***
+-- ***@***.***
| +-- ***@***.***
| | `-- ***@***.***
| | `-- ***@***.*** deduped
| `-- ***@***.***
| `-- ***@***.***
| `-- ***@***.*** deduped
`-- ***@***.***
`-- ***@***.***
`-- ***@***.*** deduped
lodash.clonedeep:
C:\Users\xmr\Desktop\gulp-sass>npm ls lodash.clonedeep
***@***.*** C:\Users\xmr\Desktop\gulp-sass
`-- ***@***.***
`-- ***@***.***
`-- ***@***.***
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#818 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAENSWGNWXOXH6WNLOPYYB3UFPVWJANCNFSM5FIS4PCQ>
.
|
NVM, I think we better play it safe and go with |
Notes:
https://packagephobia.com/result?p=lodash%2Clodash.clonedeep