Skip to content

v4.0.0

Choose a tag to compare

@github-actions github-actions released this 12 Sep 02:51
· 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.caseHeaders is deprecated in favor of options.headerCase.
  • options.wrapWidth is deprecated in favor of options.maxWidth.

BREAKING CHANGES

  • Node v20 is now the minimum required version since v18 is officially EOL.
  • tablemark is now a named export instead of the default.
  • If the input iterable is empty, an empty string is returned instead of
    an error.
  • options.align no longer allows uppercase values like LEFT.
  • options.toCellText now receives an object with key (object key)
    and value (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.