Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Mar 28, 2020

Related to netlify/build#1050

This removes the omit.js dependency. Besides not being well maintained, it includes an old version of core-js which prints warning messages on npm install.

We do not want to use lodash.omit because it is huge (1500 lines of code compared to 12 lines of code for omit.js). This is because lodash.omit comes with all the extraneous features and utility helpers of the whole Lodash ecosystem. Tiny modules are much simpler to debug and less bug-prone.

I could not find any well maintained alternatives on npm except for filter-obj, which we already use. However it needs to be wrapped with a tiny utility function to make it more convenient.

@ehmicky ehmicky added the type: bug code to address defects in shipped code label Mar 28, 2020
@ehmicky ehmicky requested a review from erezrokah March 28, 2020 15:12
@ehmicky ehmicky self-assigned this Mar 28, 2020
@ehmicky ehmicky requested a review from kaganjd March 28, 2020 15:14
@ehmicky ehmicky merged commit aa5ad81 into master Mar 30, 2020
@ehmicky ehmicky deleted the deps/remove-omit branch March 30, 2020 10:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

type: bug code to address defects in shipped code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants