- Bump
ansi-regex
to5.0.1
(Resolves CVE-2021-3807) - Include TypeScript types
- Better handling of ANSI escape codes
- Fix font width calculation for CJK language
- Fix
package.main
for TypeScript (Closes #14) - Example of a currency printer function in readme.md was misleading
- Add note about columns order
This version introduces new simpler and cleaner implementation, albeit with some incompatible changes.
- Added: support for colors
- Change: Rename
Table.RightPadder()
,Table.LeftPadder()
,Table.Number()
toTable.rightPadder()
,Table.leftPadder()
andTable.number()
respectively - Change:
.total()
signature - Change:
.printTransposed()
signature - Change:
Table.print()
meaning - Removed:
Table.printArray()
,Table.printObj()
in favor of singleTable.print()
function - Removed:
width
parameter for.cell()
- Removed:
.newLine()
- Columns now are always ordered according to their positions in rows. Previously that wasn't always the case, for example when some cells were missing in some rows.
- Change:
printObj()
should print only self properties
- Add Table.printArray(), Table.printObj()
- Add support for printing transposed version (Closes #2)
- Added:
.total()
function - Change: printers are stored on per cell basis
- Change:
.newLine()
renamed to.newRow()
- Mark
.rows
and.columns
as a public api
- Added:
.sort()
function
- Initial release