gajus / table

Formats data into a string table.
Other
899 stars 77 forks source link

Use lodash method imports & replace some with native functions #126

Closed realityking closed 3 years ago

realityking commented 3 years ago

I know there's been some recent bad experience with lodash refactors but I hope this more conservative approach here is safer.

The PR does 2 things:

Some other things might be possible but I think they're better kept for follow-up PRs.

Note I did not use the per-method packages as they're deprecated and actually hurt deduplication. They also load more code than this approach.

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 216


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/truncateTableData.js 0 1 0.0%
src/createStream.js 1 3 33.33%
<!-- Total: 16 19 84.21% -->
Totals Coverage Status
Change from base Build 215: 0.0%
Covered Lines: 172
Relevant Lines: 236

💛 - Coveralls
gajus commented 3 years ago

https://github.com/gajus/table/blob/623350bfe14131449f2cb93a3e9a1e5c4809608c/.babelrc#L10

realityking commented 3 years ago

My bad, I didn't see that. I've opened #127 for the other two commits in this branch as they still make sense.