v4.0.0
·
7 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
4.0.0 (2025-09-12)
Features
- support counting ANSI escapes (ee38d57)
- reduce minimum column width to 3 (75f8337)
- rewrite with extended text handling support (468e44d)
- require node v20+ (9f9e74f)
DEPRECATIONS
These deprecated options will be removed in the next major version.
options.caseHeadersis deprecated in favor ofoptions.headerCase.options.wrapWidthis deprecated in favor ofoptions.maxWidth.
BREAKING CHANGES
- Node v20 is now the minimum required version since v18 is officially EOL.
tablemarkis now a named export instead of the default.- If the input iterable is empty, an empty string is returned instead of
an error. options.alignno longer allows uppercase values likeLEFT.options.toCellTextnow receives an object withkey(object key)
andvalue(cell content) properties, rather than just the string
value.- The minimum column width has been reduced to 3
characters, which is the narrowest width that still allows for both left and
right alignment characters and a single hyphen in the divider cell. This is a
fairly innocuous change, but does change output table layouts.