github ratatui/ratatui v0.28.2-alpha.5

latest releases: v0.29.1-alpha.0, v0.29.0, v0.29.0-alpha.0...
pre-releaseone month ago

v0.28.2-alpha.5 - 2024-10-05

Bug Fixes

  • 0f48239 (terminal) Resize() now resizes fixed viewports by @Patryk27 in #1353

    Terminal::resize() on a fixed viewport used to do nothing due to
    an accidentally shadowed variable. This now works as intended.

  • b9653ba (uncategorized) Prevent calender render panic when terminal height is small by @adrodgers in #1380

    Fixes:#1379

  • da821b4 (uncategorized) Clippy lints from rust 1.81.0 by @fujiapple852 in #1356

  • 68886d1 (uncategorized) Add unstable-backend-writer feature by @Patryk27 in #1352

    #991 created a new unstable
    feature, but forgot to add it to Cargo.toml, making it impossible to use
    on newer versions of rustc - this commit fixes it.

Refactor

  • edcdc8a (layout) Rename element to segment in layout by @kdheepak in #1397

    This PR renames element to segment in a couple of functions in the
    layout calculations for clarity. element can refer to segments or
    spacers and functions that take only segments should use segment
    as the variable names.

  • 20c88aa (uncategorized) Avoid unneeded allocations by @mo8it in #1345

Documentation

Styling

Miscellaneous Tasks

  • 67c0ea2 (block) Deprecate block::Title by @joshka in #1372

    ratatui::widgets::block::Title is deprecated in favor of using Line
    to represent titles.
    This removes an unnecessary layer of wrapping (string -> Span -> Line ->
    Title).

    This struct will be removed in a future release of Ratatui (likely
    0.31).
    For more information see:

    #738

    To update your code:

    Block::new().title(Title::from("foo"));
    // becomes any of
    
    Block::new().title("foo");
    
    Block::new().title(Line::from("foo"));
    
    Block::new().title(Title::from("foo").position(Position::TOP));
    // becomes any of
    
    Block::new().title_top("foo");
    
    Block::new().title_top(Line::from("foo"));
    
    Block::new().title(Title::from("foo").position(Position::BOTTOM));
    // becomes any of
    
    Block::new().title_bottom("foo");
    
    Block::new().title_bottom(Line::from("foo"));
  • c777beb (ci) Bump git-cliff-action to v4 by @orhun in #1350

    See:https://github.com/orhun/git-cliff-action/releases/tag/v4.0.0

  • bc10af5 (style) Make Debug output for Text/Line/Span/Style more concise by @joshka in #1383

    Given:```rust

    Text::from_iter([
    Line::from("without line fields"),
    Line::from("with line fields").bold().centered(),
    Line::from_iter([
    Span::from("without span fields"),
    Span::from("with span fields")
    .green()
    .on_black()
    .italic()
    .not_dim(),
    ]),
    ])

    
    Debug:```
    Text [Line [Span("without line fields")], Line { style: Style::new().add_modifier(Modifier::BOLD), alignment: Some(Center), spans: [Span("with line fields")] }, Line [Span("without span fields"), Span { style: Style::new().green().on_black().add_modifier(Modifier::ITALIC).remove_modifier(Modifier::DIM), content: "with span fields" }]]
    

    Fixes:#1382

  • 5ad623c (uncategorized) Remove usage of prelude by @joshka in #1390

    This helps make the doc examples more explicit about what is being used.
    It will also makes it a bit easier to do future refactoring of Ratatui,
    into several crates, as the ambiguity of where types are coming from
    will be reduced.

    Additionally, several doc examples have been simplified to use Stylize,
    and necessary imports are no longer hidden.

    This doesn't remove the prelude. Only the internal usages.

  • f4880b4 (uncategorized) Lock unicode-width version to 0.1.13 by @joshka in #1384

    0.1.14 contains breaking changes which we'll need to investigate.
    This commit puts a lock on the current version for now.

    Changes
    unicode-rs/unicode-width@v0.1.13...v0.1.14

Continuous Integration

New Contributors

Full Changelog: v0.28.1...v0.28.2-alpha.5

Don't miss a new ratatui release

NewReleases is sending notifications on new releases.