-
Notifications
You must be signed in to change notification settings - Fork 214
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.isequal in favor of built-in array method #1038
Conversation
934f87a
to
35e6197
Compare
@amccarthy1 thanks for contributing! Mind rebasing and resolving conflicts please? |
Thanks for the PR @amccarthy1. @juanri0s It seems that |
Thank you! Will merge on Monday |
35e6197
to
1621f79
Compare
Apologies for the delay -- I no longer really work in JS so I had to setup a new dev environment 😅 Rebased and resolved conflicts, this should hopefully be ready to merge now |
Pull Request Test Coverage Report for Build 13242705212Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 13217113594Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Thanks for looking into this so quickly, @juanri0s and @dustinsmith1024 ❤️ |
All Submissions:
Summary
I recently installed
fast-xml
as a replacement forcsv-stringify
, and while I was happy to see a bundle size reduction, I noticed that around half of the bundle size from its usage was coming fromlodash.isequal
.I noticed that this package is only used for one call that can be easily replaced with a native call to
Array.every
. The result should shave around 10KB (roughly half the total size) off bundle sizes in the browser.Test coverage
This case seems to be covering the case where
headers=true
is passed, but the headers are inferred from the first row, which is an array of strings, to prevent double-writing the headers. I verified that, when I changed this toreturn true
, 33 tests failed, implying significant coverage of this case.I also verified that there is a specific test covering exactly this behavior, at
RowFormatter.ts:119-124
(pasted here for clarity)