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

remove lodash.isplainobject #665

Merged
merged 3 commits into from
Aug 2, 2019
Merged

remove lodash.isplainobject #665

merged 3 commits into from
Aug 2, 2019

Conversation

tinovyatkin
Copy link
Contributor

@tinovyatkin tinovyatkin commented Jul 27, 2019

lodash.isplainobject is not a huge dependency (install size), but it's one of 3 productions dependencies and real overkill at utils - what do you really want check there is that an object can be safely serialised to JSON, not to check prototypes, etc. I think 8 lines function will do a better and faster job there while saving installation and startup time.

lib/utils.js Outdated Show resolved Hide resolved
lib/utils.js Outdated Show resolved Hide resolved
lib/utils.js Outdated Show resolved Hide resolved
@rattrayalex-stripe rattrayalex-stripe self-assigned this Jul 30, 2019
lib/utils.js Outdated Show resolved Hide resolved
lib/utils.js Outdated Show resolved Hide resolved
Copy link
Contributor

@rattrayalex-stripe rattrayalex-stripe left a comment

Choose a reason for hiding this comment

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

Great initiative! I think we can actually make this even simpler 🎉

Copy link
Contributor

@rattrayalex-stripe rattrayalex-stripe left a comment

Choose a reason for hiding this comment

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

Lovely! Sorry I missed this. Great work @tinovyatkin !

@rattrayalex-stripe rattrayalex-stripe merged commit 244b7f9 into stripe:master Aug 2, 2019
@tinovyatkin tinovyatkin deleted the remove-is-plain-object branch August 2, 2019 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants