Releases: oskarhane/ascii-data-table
Releases · oskarhane/ascii-data-table
Remove dependency on Ramda
New API and rewrite
Breaking changes
- New API
- Removed
run
- Added
table(rows, maxColWidth)
- Added
tableFromSerializedData(serializedRows, maxColWidth)
- Added
serializeData(rows)
- Renamed
getMaxColumnWidth
->maxColumnWidth
- Removed
- Use JSON.stringify to serialize values - no more lines breaks in the tables.
- Add two dependencies
Better performance
The timing test page test/timing.html
shows the following improvements compared to last release (on my MBP):
╒════════════╤═══════════════╤═══════════════╤════════════╕
│"Browser" │"v1.3.3 (secs)"│"v2.0.0 (secs)"│"Change (%)"│
╞════════════╪═══════════════╪═══════════════╪════════════╡
│"Chrome 54" │0.3 │0.2 │50 │
├────────────┼───────────────┼───────────────┼────────────┤
│"Safari 10" │0.15 │0.05 │300 │
├────────────┼───────────────┼───────────────┼────────────┤
│"Firefox 50"│0.15 │0.07 │200 │
└────────────┴───────────────┴───────────────┴────────────┘
When using the new tableFromSerializedData
regeneration for the same data with a new width skips the serialization step, making it more efficient for every subsequent width change.
Production release
This is the first production ready release.