Skip to content

Releases: jedib0t/go-pretty

v4.3.0

29 Jul 20:20
1ec860a
Compare
Choose a tag to compare
  • table now supports setting a "Title" with styling of its own

v4.2.1

10 Jun 05:55
b5d36c1
Compare
Choose a tag to compare

This patch release fixes yet another race-condition while accessing Progress Tracker values.

v4.2.0

30 May 09:46
f5c9bfa
Compare
Choose a tag to compare

This minor release contains a bunch of content:

ProgressWriter

@Haraguroicha found a plethora of go-routine-unsafe variable accesses in Progress Writer. This release contains the fixes for the same and prevents all identified unsafe accesses and sets up tests to check for race-conditions in the build process.

Thanks @Haraguroicha!

TableWriter

@Issif requested functionality to control the colorization of individual rows based on the content of the row and also for the capability to output the color coding in RenderHTML() output. This release contains these features and some more:

  • introduce a new interface SetColumnConfigs() to control every option for a column:
    • Alignment (horizontal, vertical)
    • Colors
    • Transformation
    • Width (minimum, maximum)
  • mark older interfaces for deprecation:
    • SetAlign(), SetAlignFooter(), SetAlignHeader()
    • SetAllowedColumnLengths()
    • SetColors(), SetColorsFooter(), SetColorsHeader()
    • SetVAlign(), SetVAlignFooter(), SetVAlignHeader()
  • support RowPainter to determine the colors to be used on an entire row overriding ColumnConfig settings
  • support text.Colors in HTML using similarly named CSS classes that can be customized by end-user

Thanks @Issif for the feedback!

v4.1.0

08 May 18:38
50be2aa
Compare
Choose a tag to compare

The text package has a couple of new functions:

  • Escape to wrap a string with a given ANSI escape sequence
  • StripEscape to strip away all ANSI escape sequences in a string

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.