Skip to content

Releases

v6.9.3

Choose a tag to compare

@jedib0t jedib0t released this 23 Nov 17:41
058c45c

What's Changed

  • table: update HTML spans when active color codes change by @yxshee in #463
  • text: fix parsing of color changes, 24-bit colors and hyperlinks by @jedib0t in #466
  • text: end two-byte escape sequences at their final byte by @simpleqt in #465
  • text: escape sequence parsing fixes by @jedib0t in #467
  • docs: fix the examples and READMEs that do not match the code by @jedib0t in #468

New Contributors

Full Changelog: v6.9.2...v6.9.3

v6.9.2

Choose a tag to compare

@jedib0t jedib0t released this 14 Nov 17:03
61c0409

What's Changed

  • table: optionally skip empty clipped continuation lines by @ViktorBystrov72 in #460
  • table: fix paging of vertically merged cells with SkipEmptyRowsWhenCl… by @jedib0t in #461

New Contributors

Full Changelog: v6.9.1...v6.9.2

v6.9.1

Choose a tag to compare

@jedib0t jedib0t released this 12 Nov 23:50
c01da4e

What's Changed

  • text: panic and other fixes by @jedib0t in #458
    • text: format times before the epoch in the time transformers
    • text: print a single sign for negative numbers in NewNumberTransformer
    • text: wrap text that has cursor and erase sequences in it
    • text: avoid a panic in AlignJustify with a negative length
    • text: keep grapheme clusters whole in the wrap functions
  • table: fix borders, alignment and column widths in edge cases by @jedib0t in #459
    • table: draw the top border of a table that has only footers
    • table: align headers and footers properly in a table without data rows
    • table: size columns for the column IDs rendered with the auto-index
    • table: size columns for multi-line content after it has been wrapped

Full Changelog: v6.9.0...v6.9.1

2026-11-20 [EDIT] Behavior change: alignment in tables without data rows

  • table: headers and footers in a table without data rows are no longer
    right-aligned by default. Every column used to be taken as numeric; now a
    column is numeric only if its footers hold nothing but numbers. This changes
    the default output of such tables:
    • Markdown: the separator goes from ---: to ---
    • HTML: align="right" is dropped from the <th>/<td> tags
    • Text: headers and footers are left-aligned where the column is wider than
      the content
    • To get the old alignment back, set HeaderAlign, FooterAlign and
      RowAlign to text.AlignRight in Style().Format
    • Last release with the old behavior: v6.9.0. Changed in: v6.9.1 (#459).

v6.9.0

Choose a tag to compare

@jedib0t jedib0t released this 12 Nov 22:43
b8fd342

What's Changed

  • text: preserve hyperlink labels in StripEscape by @x0Lazarus in #422
  • text: preserve separators in InsertEveryN by @jakezwang in #423
  • text: InsertEveryN can now deal with graphmemes and newlines by @jedib0t in #424
  • table: avoid panic when balancing merged column widths by @x0Lazarus in #427
  • text: keep wrapped lines within wrapLen when a wide rune would overflow by @TheNetherWatcher in #435
  • table: skip stacking vertically-merged rows that would misplace values by @nk-batman21 in #436
  • progress: rewind the cursor over active trackers with RemoveOnCompletion by @akashchamp in #440
  • progress: hold the lock while checking timeStart in Tracker.Start by @troclaux in #437
  • progress: promote unit on rounding and handle negative values in FormatNumber by @TheNetherWatcher in #443
  • table: preserve integer precision in numeric filters by @dailyun in #446
  • Measure auto-index padding in display columns, not runes by @youdie006 in #425
  • text: avoid a double minus when formatting MinInt64 by @vitalivo in #419
  • text: trim snip indicators to the target width by @Don-Yin in #438
  • text: apply the box drawing width override in StringWidth by @yu2971512385-ui in #429
  • progress: trim to the terminal width when writing to stderr by @stepancheg in #449
  • text: wrap hyperlink labels without changing their targets by @x0Lazarus in #428
  • text: preserve fractional seconds in Unix time transformers by @vitalivo in #420
  • text: end CSI sequences at their final byte, not only at "m" by @simpleqt in #447
  • text: Trim and Snip no longer cut grapheme clusters in the middle by @troclaux in #431
  • text: speed up Trim by segmenting into grapheme clusters only where needed by @jedib0t in #452
  • text: skip escape code parsing when only measuring or trimming by @jedib0t in #453
  • text: make RepeatAndTrim handle escape sequences and display width by @jedib0t in #454
  • text: keep wrapped hyperlink labels within wrapLen when a wide rune w… by @jedib0t in #455
  • text: cover unterminated escape sequences in the hyperlink wrapper by @jedib0t in #456
  • progress: measure the terminal without changing the mode of the outpu… by @jedib0t in #457

New Contributors

Full Changelog: v6.8.3...v6.9.0

v6.8.3

Choose a tag to compare

@jedib0t jedib0t released this 19 Jul 21:48
db0aac2

What's Changed

  • table: stack vertically-merged rows into wrapped cell height; fixes #261 by @jedib0t in #411
  • README.md: drop Go Report Card badge by @jedib0t in #412

Full Changelog: v6.8.2...v6.8.3

v6.8.2

Choose a tag to compare

@jedib0t jedib0t released this 30 Jun 05:46
a4201b7

What's Changed

  • text: trim to display width so CJK content respects maxLen by @greymoth-jp in #410

New Contributors

  • @greymoth-jp made their first contribution in #410

Full Changelog: v6.8.1...v6.8.2

v6.8.1

Choose a tag to compare

@jedib0t jedib0t released this 11 Jun 02:37
22c68f6

What's Changed

A hardening pass across the table, list, progress, and text packages,
fixing security issues, crash/race bugs, and performance problems in the
render hot paths, with benchmarks added to back the optimizations.

Security

  • table/list (HTML): escape the title, caption, and CSS class names in
    RenderHTML() to prevent HTML/attribute injection.
  • table (CSV): make RenderCSV() output RFC 4180 compliant, and add an
    opt-in Style().CSV.FieldProtection option that neutralizes spreadsheet
    formula-injection fields (=, +, -, @, tab, CR).
  • text: sanitize hyperlink URLs and bound the escape-sequence parser
    buffer so adversarial input can't grow it without limit.

Correctness

  • progress: fix a render panic on tiny tracker lengths, data races on
    tracker/indicator state, and a leaked time.Ticker in the terminal-size
    watcher.
  • table: guard auto-index rendering against empty maxColumnLengths.
  • text: prevent a panic in VAlign.Apply on negative maxLines.

Performance

  • table: compile regex filters once per render; pre-size render builders.
  • list: hoist repeated width math out of the render loops.
  • text: speed up Align.Apply and StringWidthWithoutEscSequences.
  • progress: build PacManChomp frames with a strings.Builder.

Tooling

  • Moved root-level benchmarks into their packages and wired up make bench;
    added benchmarks for the table/text/list/progress render hot paths and tests
    covering the retained-done-tracker render paths.

Full Changelog: v6.8.0...v6.8.1

v6.8.0

Choose a tag to compare

@jedib0t jedib0t released this 03 Jun 16:34
45fb00d

What's Changed

  • progress: fix speed decay on done trackers and log overwrite; fixes #405 by @jedib0t in #406
  • fix: wrap wide runes when wrapLen is odd in WrapHard by @koriyoshi2041 in #408

New Contributors

Full Changelog: v6.7.10...v6.8.0

v6.7.10

Choose a tag to compare

@jedib0t jedib0t released this 22 Apr 03:47
66563fd

What's Changed

New Contributors

Full Changelog: v6.7.9...v6.7.10

v6.7.9

Choose a tag to compare

@jedib0t jedib0t released this 02 Apr 20:27
017a359

What's Changed

  • table: markdown padding for human-friendly output; fixes #402 by @jedib0t in #403

Full Changelog: v6.7.8...v6.7.9