Skip to content

Releases: Nukesor/comfy-table

v7.1.1

05 Apr 20:51
1db4db9
Compare
Choose a tag to compare

[7.1.1] - 2024-04-05

Fix

  • Fix string width calculation with ANSI escape sequences by switching to the ansi-str crate.
    The previous implementation didn't respect OSC 8 hyperlink style ANSI sequences.
    Implemented by dsully in #137.
  • custom_styling feature now requires tty feature as it should.

v7.1.0

21 Oct 10:54
ef14a13
Compare
Choose a tag to compare

[7.1.0] - 2023-10-21

Added

  • Add helper methods (col,row)_count and is_empty. The first set of methods return the number of columns and rows
    respectively. The method is_empty returns if the table is empty (contains no data rows). Implemented by
    Techassi in #119.

Chore

  • Bump crossterm dependency

v7.0.1

16 Jun 11:38
69b2ccb
Compare
Choose a tag to compare

[7.0.1] - 2023-06-16

Fix

  • Fix a panic when working with extreme paddings, where (padding.left + padding.right) > u16::MAX.
  • Fix a panic when working with extremely long content, where (content_width + padding) > u16::MAX.
  • Properly enforce lower boundary constraints.
    Previously, "normal" columns were allocated before lower boundaries were respected.
    This could lead to scenarios, where the table would grow beyond the specified size, when there was a lower boundary.
  • Fix calculation of column widths for empty columns.
    The minimum content width for a column is 1 char, but the column_max_content_widths function on the table returned a 0 width for fully empty columns.
    This resulted in tables becoming larger than specified if there were any empty columns.

Misc

  • Extend property tests, which lead to the discovery of some bugs.

v7.0.0

06 Jun 15:41
15ad292
Compare
Choose a tag to compare

[7.0.0] - 2023-06-06

Breaking

  • The Color and Attribute enum are no longer re-exported from crossterm by default.
    Previously, when updating comfy-table, crossterm needed to be upgraded as well, since the compile would otherwise fail due to type incompatibilies.

    To fix this, these enums are now mirrored and internally mapped to their crossterm equivalents, which allows us to safely bump crossterm whenever a new version is released.
    This change will only affect you if your projects explicitly use crossterm and comfy-table at the same time and feed crossterm's native types into comfy-table.

    If one wants the old behavior for convenience reasons, this can be enabled via a feature flag.
    However, this is also a opt-in to potential breaking changes on minor/patch versions.

  • Bump minimum version to v1.64

Added

  • reexport_crossterm feature flag to enable old crossterm re-export.

v6.2.0

26 May 15:02
09339c5
Compare
Choose a tag to compare

[6.2.0] - 2023-05-26

Added

  • Add support for custom ansi styling inside of cells. This feature is hidden behind the feature flag custom_styling. Implemented by blueforesticarus in #93.
  • Add helper functions add_row[s]_if, which filtering of rows by a predicate. Implemented by Techassi in #106.

Maintenance

  • Bump dependencies

v6.1.4

31 Dec 00:22
7966fbd
Compare
Choose a tag to compare

[6.1.4] - 2022-12-31

Added

  • New preset ASCII_FULL_CONDENSED #97

v6.1.3

21 Nov 14:00
2c018c3
Compare
Choose a tag to compare

Fixed

  • Disable unneded crossterm bracketed-paste feature.

v6.1.2

21 Nov 13:59
84c2314
Compare
Choose a tag to compare

Fixed

  • Table::row_iter no longer requires a &mut self, but only &self.

v6.1.1

18 Oct 16:27
757381b
Compare
Choose a tag to compare

Fixed

  • Fixed an issue where dynamic arrangement failed when setting the table to the exact width of the content #90.
  • The header size is now properly respected in the final optimization step #90.
    Previously, this wasn't the case and lead to weird formatting behavior when both of the following were true
    • Dynamic content adjustment was active.
    • The table didn't fit into the the available space.
    • The header of a row was longer than its content.
  • Fix wrong LowerBoundary calculation. This was introduced in commit bee764d, when this logic was refactored. #90.
  • Table::column_iter no longer requires a &mut self, but only &self.

v6.1.0

26 Sep 12:21
a8f9ded
Compare
Choose a tag to compare

Added

  • Add Table::add_rows to add multiple rows at the same time.

Misc

  • Update crossterm to v0.24