Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,38 @@

All notable changes to this project will be documented in this file.

## 0.3.0 - 2026-01-23

Ratzilla is a part of the [@ratatui](https://github.com/ratatui) organization now! 🐭

### 🚀 Features

- Allow setting mouse `SelectionMode` on webgl2 backend by @0xferrous in [#143](https://github.com/ratatui/ratzilla/pull/143)

### 🚜 Refactor

- _(dom)_ Removes double buffering from `DomBackend` by @benoitlx in [#138](https://github.com/ratatui/ratzilla/pull/138)

### 📚 Documentation

- _(readme)_ Add sdr db website to readme by @nuts-rice in [#147](https://github.com/ratatui/ratzilla/pull/147)
- _(readme)_ Add website for AlertAngel by @Vaishnav-Sabari-Girish in [#136](https://github.com/ratatui/ratzilla/pull/136)
- _(readme)_ Remove Jet Pham's Conway's Game of Life link by @jetpham in [#131](https://github.com/ratatui/ratzilla/pull/131)
- _(readme)_ Add glues website by @panarch in [#129](https://github.com/ratatui/ratzilla/pull/129)

### ⚙️ Miscellaneous Tasks

- _(website)_ Update the GitHub pages deploy URL by @orhun in [#151](https://github.com/ratatui/ratzilla/pull/151)
- _(project)_ Update the repository link by @orhun in [#148](https://github.com/ratatui/ratzilla/pull/148)
- Update to ratatui 0.30.0 by @0xferrous in [#141](https://github.com/ratatui/ratzilla/pull/141)
- _(deps)_ Bump beamterm to 0.10.0 by @junkdog in [#140](https://github.com/ratatui/ratzilla/pull/140)
- _(deps)_ Bump beamterm to 0.9.0 by @junkdog in [#139](https://github.com/ratatui/ratzilla/pull/139)
- _(deps)_ Bump beamterm to 0.8.0 from 0.7.0 by @junkdog in [#130](https://github.com/ratatui/ratzilla/pull/130)

**Full Changelog**: https://github.com/ratatui/ratzilla/compare/0.2.0...0.2.1

<!-- generated by git-cliff -->

## 0.2.0 - 2025-09-28

We are excited to announce the 0.2.0 release of Ratzilla! 🎉
Expand Down
97 changes: 74 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ratzilla"
version = "0.2.0"
version = "0.3.0"
description = "Build terminal-themed web applications with Ratatui and WebAssembly"
authors = ["Orhun Parmaksız <orhunparmaksiz@gmail.com>"]
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -40,10 +40,10 @@ web-sys = { version = "0.3.81", features = [
compact_str = "0.9.0"
ratatui = { version = "0.30", default-features = false, features = ["all-widgets", "layout-cache"] }
console_error_panic_hook = "0.1.7"
thiserror = "2.0.12"
thiserror = "2.0.18"
bitvec = { version = "1.0.1", default-features = false, features = ["alloc", "std"] }
beamterm-renderer = "0.10.0"
unicode-width = "0.2.2"

[dev-dependencies]
wasm-bindgen-test = "0.3.56"
wasm-bindgen-test = "0.3.58"
1 change: 1 addition & 0 deletions src/backend/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
}

/// Creates a new `<a>` element with the given cells.
#[allow(dead_code)]
pub(crate) fn create_anchor(document: &Document, cells: &[Cell]) -> Result<Element, Error> {
let anchor = document.create_element("a")?;
anchor.set_attribute(
Expand Down Expand Up @@ -184,7 +185,7 @@

/// Converts a Color to a CSS style.
pub(crate) fn get_canvas_color(color: Color, fallback_color: Color) -> CompactString {
let color = ansi_to_rgb(color).unwrap_or_else(|| ansi_to_rgb(fallback_color).unwrap());

Check warning on line 188 in src/backend/utils.rs

View workflow job for this annotation

GitHub Actions / clippy

used `unwrap()` on an `Option` value

warning: used `unwrap()` on an `Option` value --> src/backend/utils.rs:188:54 | 188 | let color = ansi_to_rgb(color).unwrap_or_else(|| ansi_to_rgb(fallback_color).unwrap()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#unwrap_used

format_compact!("rgb({}, {}, {})", color.0, color.1, color.2)
}
Expand All @@ -207,7 +208,7 @@

/// Returns the number of pixels that can fit in the window.
pub(crate) fn get_raw_screen_size() -> (i32, i32) {
let s = web_sys::window().unwrap().screen().unwrap();

Check warning on line 211 in src/backend/utils.rs

View workflow job for this annotation

GitHub Actions / clippy

used `unwrap()` on an `Option` value

warning: used `unwrap()` on an `Option` value --> src/backend/utils.rs:211:13 | 211 | let s = web_sys::window().unwrap().screen().unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is `None`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#unwrap_used

Check warning on line 211 in src/backend/utils.rs

View workflow job for this annotation

GitHub Actions / clippy

used `unwrap()` on a `Result` value

warning: used `unwrap()` on a `Result` value --> src/backend/utils.rs:211:13 | 211 | let s = web_sys::window().unwrap().screen().unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if this value is an `Err`, it will panic = help: consider using `expect()` to provide a better panic message = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#unwrap_used
(s.width().unwrap(), s.height().unwrap())
}

Expand Down
2 changes: 1 addition & 1 deletion templates/simple/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ edition = "2021"
[dependencies]
ratatui = { version = "0.29.0", default-features = false }
color-eyre = "0.6.5"
ratzilla = "0.1.0"
ratzilla = "0.2.0"
Loading