fix(deps): update rust crate ratatui to 0.27.0 #352
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.26.2
->0.27.0
Release Notes
ratatui-org/ratatui (ratatui)
v0.27.0
Compare Source
In this version, we have focused on enhancing usability and functionality with new features like
background styles for LineGauge, palette colors, and various other improvements including
improved performance. Also, we added brand new examples for tracing and creating hyperlinks!
✨ Release highlights: https://ratatui.rs/highlights/v027/
Features
eef1afe (linegauge) Allow LineGauge background styles by @nowNick in #565
line_gauge_demo.mov
Implements:#424
1365620 (borders) Add FULL and EMPTY border sets by @joshka in #1182
border::FULL
uses a full block symbol, whileborder::EMPTY
uses anempty space. This is useful for when you need to allocate space for the
border and apply the border style to a block without actually drawing a
border. This makes it possible to style the entire title area or a block
rather than just the title content.
7a48c5b (cell) Add EMPTY and (const) new method by @EdJoPaTo in #1143
3f2f2cd (docs) Add tracing example by @joshka in #1192
https://forum.ratatui.rs/t/how-do-you-println-debug-your-tui-programs/66
1520ed9 (layout) Impl Display for Position and Size by @joshka in #1162
46977d8 (list) Add list navigation methods (first, last, previous, next) by @joshka in #1159 [breaking]
Fixes:#1159
BREAKING CHANGE:The
List
widget now clamps the selected index to thebounds of the list when navigating with
first
,last
,previous
, andnext
, as well as when setting the index directly withselect
.10d7788 (style) Add conversions from the palette crate colors by @joshka in #1172
7ef2dae (text) support conversion from Display to Span, Line and Text by @orhun in #1167
74a32af (uncategorized) Re-export backends from the ratatui crate by @joshka in #1151
3594180 (uncategorized) Make Stylize's
.bg(color)
generic by @kdheepak in #1103 [breaking]0b5fd6b (uncategorized) Add writer() and writer_mut() to termion and crossterm backends by @enricozb in #991
Bug Fixes
efa965e (line) Remove newlines when converting strings to Lines by @joshka in #1191
Line::from("a\nb")
now returns a line with twoSpan
s instead of 1Fixes:https://github.com/ratatui-org/ratatui/issues/1111
d370aa7 (span) Ensure that zero-width characters are rendered correctly by @joshka in #1165
127d706 (table) Ensure render offset without selection properly by @joshka in #1187
Fixes:#1179
4bfdc15 (uncategorized) Render of &str and String doesn't respect area.width by @thscharler in #1177
e6871b9 (uncategorized) Avoid unicode-width breaking change in tests by @joshka in #1171
7f3efb0 (uncategorized) Pin unicode-width crate to 0.1.13 by @joshka in #1170
42cda6d (uncategorized) Prevent panic from string_slice by @EdJoPaTo in #1140
https://rust-lang.github.io/rust-clippy/master/index.html#string_slice
Refactor
73fd367 (block) Group builder pattern methods by @EdJoPaTo in #1134
257db62 (cell) Must_use and simplify style() by @EdJoPaTo in #1124
bf20369 (cell) Reset instead of applying default by @EdJoPaTo in #1127
7d175f8 (lint) Fix new lint warnings by @EdJoPaTo in #1178
cf67ed9 (lint) Use clippy::or_fun_call by @EdJoPaTo in #1138
https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
4770e71 (list) Remove deprecated
start_corner
andCorner
by @Valentin271 in #759 [breaking]List::start_corner
was deprecated in v0.25. UseList::direction
andListDirection
instead.layout::Corner
is removed entirely.4f77910 (padding) Add Padding::ZERO as a constant by @EdJoPaTo in #1133
8061813 (uncategorized) Expand glob imports by @joshka in #1152
d929971 (uncategorized) Dont manually impl Default for defaults by @EdJoPaTo in #1142
8a60a56 (uncategorized) Needless_pass_by_ref_mut by @EdJoPaTo in #1137
https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
1de9a82 (uncategorized) Simplify if let by @EdJoPaTo in #1135
Documentation
1908b06 (borders) Add missing closing code blocks by @orhun in #1195
38bb196 (breaking-changes) Mention
LineGauge::gauge_style
by @orhun in #1194see #565
07efde5 (examples) Add hyperlink example by @joshka in #1063
7fdccaf (examples) Add vhs tapes for constraint-explorer and minimal examples by @joshka in #1164
4f307e6 (examples) Simplify paragraph example by @joshka in #1169
Related:https://github.com/ratatui-org/ratatui/issues/1157
f429f68 (examples) Remove lifetimes from the List example by @matta in #1132
308c1df (readme) Add links to forum by @joshka in #1188
2f8a936 (uncategorized) Fix links on docs.rs by @EdJoPaTo in #1144
Performance
4ce67fc (buffer) Filled moves the cell to be filled by @EdJoPaTo in #1148 [breaking]
8b447ec (rect)
Rect::inner
takesMargin
directly instead of reference by @EdJoPaTo in #1008 [breaking]BREAKING CHANGE:Margin needs to be passed without reference now.
Styling
Testing
d6587bc (style) Use rstest by @EdJoPaTo in #1136
Miscellaneous Tasks
7b45f74 (prelude) Add / remove items by @joshka in #1149 [breaking]
BREAKING CHANGE:The following items have been removed from the prelude:
style::Styled
- this trait is useful for widgets that want tosupport the Stylize trait, but it adds complexity as widgets have two
style
methods and aset_style
method.symbols::Marker
- this item is used by code that needs to draw tothe
Canvas
widget, but it's not a common item that would be used bymost users of the library.
terminal::{CompletedFrame, TerminalOptions, Viewport}
- these itemsare rarely used by code that needs to interact with the terminal, and
they're generally only ever used once in any app.
The following items have been added to the prelude:
layout::{Position, Size}
- these items are used by code that needsto interact with the layout system. These are newer items that were
added in the last few releases, which should be used more liberally.
cd64367 (symbols) Add tests for line symbols by @joshka in #1186
8cfc316 (uncategorized) Alphabetize examples in Cargo.toml by @joshka in #1145
Build
70df102 (bench) Improve benchmark consistency by @EdJoPaTo in #1126
New Contributors
Full Changelog: ratatui/ratatui@v0.26.3...v0.27.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.