Skip to content

Releases: Textualize/rich

v11.1.0

28 Jan 14:51
Compare
Choose a tag to compare

[11.1.0] - 2022-01-28

Added

  • Add Syntax.guess_lexer, add support for more lexers (e.g. Django templates etc.) #1869
  • Add lexer parameter to Syntax.from_path to allow for overrides #1873

Fixed

  • Workaround for edge case of object from Faiss with no __class__ #1838
  • Ensure Syntax always justifies left #1872
  • Handle classes in inspect when methods=True #1874

Vertical alignment in tables

09 Jan 10:38
Compare
Choose a tag to compare

The headline feature of this reach is vertical alignment in tables.

Screen Shot 2022-01-07 at 20 28 22

Note: as a major version bump, this version has some breaking changes. These changes won't affect many people, but we like to be strict about semver. See the release notes below.

[11.0.0] - 2022-01-09

Added

  • Added max_depth arg to pretty printing #1585
  • Added vertical_align to Table.add_row #1590

Fixed

  • Fixed issue with pretty repr in jupyter notebook #1717
  • Fix Traceback theme defaults override user supplied styles #1786

Changed

  • breaking Deprecated rich.console.RenderGroup, now named rich.console.Group
  • breaking Syntax.__init__ parameter lexer_name renamed to lexer
  • Syntax constructor accepts both str and now a pygments lexer #1748

v10.16.2: Merge pull request #1793 from willmcgugan/escape_at

02 Jan 17:07
2ba277a
Compare
Choose a tag to compare

[10.16.2] - 2021-01-02

Fixed

  • Fixed @ not being escaped in markup

v10.16.1: Merge pull request #1756 from willmcgugan/overlap-markup

15 Dec 09:34
1442dd7
Compare
Choose a tag to compare

[10.16.1] - 2021-12-15

Fixed

  • Fixed issues with overlapping tags #1755

v10.16.0

12 Dec 11:12
Compare
Choose a tag to compare

A bugfix for progress bars in Jupyter in this release. And a new property on Text class which exports the equivalent console markup.

[10.16.0] - 2021-12-12

Fixed

  • Double print of progress bar in Jupyter #1737

Added

  • Added Text.markup property #1751

Hotfix to fix deadlock issue with Live (including status and progress)

02 Dec 13:56
3827b4a
Compare
Choose a tag to compare

AFAIK this issue only occurred in test suites, but it is a recommended that if you have 10.15.X installed you should upgrade.

[10.15.2] - 2021-12-02

Fixed

Merge pull request #1729 from willmcgugan/v10.15.1

29 Nov 18:00
3db6396
Compare
Choose a tag to compare

Reverted a fix for #1530

On reflection, I think the fix might introduce the possibility for a deadlock -- although none was reported.

[10.15.1] - 2021-11-29

Changed

  • Reverted thread-safety fix for Live that introduced deadlock potential

Merge pull request #1723 from willmcgugan/v10.15.0

28 Nov 16:37
ad6e3de
Compare
Choose a tag to compare

[10.15.0] - 2021-11-28

Added

  • Added dynamic_progress.py to examples
  • Added ConsoleOptions.update_height
  • Fixed Padding not respecting height
  • Added Text.from_ansi method

Changed

  • Some optimizations for simple strings (with only single cell widths)

Fixed

  • Fixed issue with progress bar not rendering markup #1721
  • Fixed race condition when exiting Live #1530

v10.14.0

16 Nov 15:15
Compare
Choose a tag to compare

Mostly fixes for edge cases. Added a rich_cast function to rich.protocol, which is unlikely to be used outside of Rich itself.

[10.14.0] - 2021-11-16

Fixed

  • Fixed progress speed not updating when total doesn't change
  • Fixed superfluous new line in Status #1662
  • Fixed Windows legacy width again
  • Fixed infinite loop in set_cell_size #1682

Added

  • Added file protocol to URL highlighter #1681
  • Added rich.protocol.rich_cast

Changed

  • Allowed __rich__ to work recursively
  • Allowed Text classes to work with sep in print #1689

v10.13.0

07 Nov 16:10
Compare
Choose a tag to compare

This release is mostly bugfixes (details below). The minor version bump is because print_json grew a number of parameters to match json.dumps

[10.13.0] - 2021-11-07

Added

  • Added json.dumps parameters to print_json #1638

Fixed

  • Fixed an edge case bug when console module try to detect if they are in a tty at the end of a pytest run
  • Fixed a bug where logging handler raises an exception when running with pythonw (related to https://bugs.python.org/issue13807)
  • Fixed issue with TERM env vars that have more than one hyphen #1640
  • Fixed missing new line after progress bar when terminal is not interactive #1606
  • Fixed exception in IPython when disabling pprint with %pprint #1646
  • Fixed issue where values longer than the console width produced invalid JSON #1653
  • Fixes trailing comma when pretty printing dataclass with last field repr=False #1599

Changed

  • Markdown codeblocks now word-wrap #1515