Skip to content

Releases: jedib0t/go-pretty

v4.0.3

29 Apr 14:33
71f451d
Compare
Choose a tag to compare

This patch release does a better job at calculating character widths for Unicode characters as they appear on the console and render tables with such characters with a higher precision. It is not going to be 100% right all the time as the typeface plays a huge role in how the character gets rendered, but it will be better than before.

New Dependency: github.com/mattn/go-runewidth

v4.0.2

10 Dec 16:59
a37e1e0
Compare
Choose a tag to compare
  • progress tracker: SetValue() does not reset start time

v4.0.1

04 Dec 01:38
f6b258e
Compare
Choose a tag to compare
  • handle \r and \t in list, progress and table
  • progress tracker: SetValue() to set a custom value

v4.0.0

23 Oct 18:55
a1e9986
Compare
Choose a tag to compare

This major release refactors the text package to have much more user-friendly and usable functions. This renames quite a few existing functions and hence the major release.

  • refactor text/ functions to make it a lot more useful and usable
    • please look at GoDoc for the latest signatures
  • table: restore some performance lost due to PR#66
  • update README.md for the text changes and update benchmark results
  • adds GoDoc examples to most functions

v3.3.2

13 Sep 19:26
996191e
Compare
Choose a tag to compare

This patch release fixes a Divide-by-zero error that could happen when rendering multiple trackers. The issue was triggered during ETA calculation of a tracker whose progress was less than 1%.

v3.3.1

03 Sep 07:06
a06b0e8
Compare
Choose a tag to compare

This release includes a minor fix of coloring the borders and separators when they are turned ON while using the provided styles like StyleColoredBright or StyleColoredDark.

v3.3.0

23 Aug 23:27
06e05ef
Compare
Choose a tag to compare

This release includes support in progress for rendering an "Overall" Tracker to track the progress of the entire operation (not just a single task). It also includes a bunch of bug-fixes:

  • progress: support "Overall" tracker to track the entire progress with an approx. ETA
  • progress: fix tracker string generation for fractional progress
  • text: fix RepeatAndTrim() for strings with Unicode chars; fixes #58
  • text: fix WrapText() to work with escape sequences; fixes #59
  • text: color: fix race condition while generating escape sequences

v3.2.0

19 Aug 16:30
2d30ee9
Compare
Choose a tag to compare

This minor release has code to detect if the console/terminal supports ANSI escape codes/sequences. On Windows, it will try to enable support (Win 10 supports it with a toggle), and if that doesn't work, it falls back to no-color mode. On other systems, the code assumes that ANSI escape codes are supported.

This release also deprecates /util and moves all the functionality into appropriate places in /table and /text.

v3.1.1

16 Aug 06:05
830641e
Compare
Choose a tag to compare

This patch release includes a bug-fix to the way the progress tracker bar was being rendered. There were corner cases where the bar would include an additional "dot" going over the expected/set progress bar length. This release includes a fix for such a case.

v3.1.0

14 Aug 18:34
23efe15
Compare
Choose a tag to compare

Changes from v3.0.1:

  • progress: SetMessageWidth to set the max length for all Tracker messages
  • progress: fix race condition when multiple trackers end at the very same time
  • table: SetAllowedColumnLengths should now behave like SetMaxColumnLengths