rich v10.0.0 Release Notes
Release Date: 2021-03-27 // about 3 years ago-
๐ Changed
- Made pydoc import lazy as at least one use found it slow to import https://github.com/willmcgugan/rich/issues/1104
- Modified string highlighting to not match in the middle of a word, so that apostrophes are not considered strings
- ๐ New way of encoding control codes in Segment
- ๐ New signature for Control class
- ๐ Changed Layout.split to use new Splitter class
- ๐ Improved layout.tree
- ๐ Changed default theme color for repr.number to cyan
__rich_measure__
signature changed to accept ConsoleOptions rather than max_widthtext
parameter to rich.spinner.Spinner changed to RenderableType
โ Added
- Added
__rich_repr__
protocol method to Pretty - โ Added rich.region.Region
- โ Added ConsoleOptions.update_dimensions
- โ Added rich.console.ScreenUpdate
- Added Console.is_alt_screen
- Added Control.segment, Control.bell, Control.home, Control.move_to, Control.clear, Control.show_cursor, Control.alt_screen
- โก๏ธ Added Console.update_screen and Console.update_screen_lines
- Added Layout.add_split, Layout.split_column, Layout.split_row, layout.refresh
- Added new Rich repr protocol
__rich_repr__
๐ Fixed
- ๐ Fixed table style taking precedence over row style https://github.com/willmcgugan/rich/issues/1129
- ๐ Fixed incorrect measurement of Text with new lines and whitespace https://github.com/willmcgugan/rich/issues/1133
- Made type annotations consistent for various
total
keyword arguments inrich.progress
and rich.progress_bar
- Disabled Progress no longer displays itself when starting https://github.com/willmcgugan/rich/pull/1125
- โก๏ธ Animations no longer reset when updating rich.status.Status