From 148e3e296eb0eae3879edc6f66b6d85584f79fa2 Mon Sep 17 00:00:00 2001 From: ZoOL Date: Thu, 14 May 2026 01:10:43 +0800 Subject: [PATCH 1/4] chore: upgrade to Bevy 0.19.0-rc.1 - Bump bevy dependencies from 0.18.0 to 0.19.0-rc.1 - Update crate version to 0.11.0 - Fix window example font_size API change (FontSize::Px) --- CHANGELOG.md | 14 ++++++++++++++ Cargo.toml | 14 +++++++------- examples/window.rs | 2 +- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b9f6a7..ca21456 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.11.0] - 2026-05-14 + +### Changed +- Upgrade to Bevy 0.19.0-rc.1 +- Updated all Bevy dependencies to 0.19.0-rc.1 compatible versions + - bevy_app: 0.19.0-rc.1 + - bevy_derive: 0.19.0-rc.1 + - bevy_ecs: 0.19.0-rc.1 + - bevy_tasks: 0.19.0-rc.1 + - bevy_log: 0.19.0-rc.1 + +### Fixed +- Fixed `window` example to use `FontSize::Px()` instead of raw float for `font_size` + ## [0.10.0] - 2025-01-15 ### Changed diff --git a/Cargo.toml b/Cargo.toml index 6591134..6f8b27d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bevy_http_client" description = "A simple HTTP client for Bevy" -version = "0.10.0" +version = "0.11.0" edition = "2021" readme = "README.md" homepage = "https://crates.io/crates/bevy_http_client" @@ -14,11 +14,11 @@ keywords = ["bevy", "http", "plugin", "wasm"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bevy_app = "0.18.0" -bevy_derive = "0.18" -bevy_ecs = { version = "0.18.0", features = ["multi_threaded"] } -bevy_tasks = "0.18.0" -bevy_log = "0.18.0" +bevy_app = "0.19.0-rc.1" +bevy_derive = "0.19.0-rc.1" +bevy_ecs = { version = "0.19.0-rc.1", features = ["multi_threaded"] } +bevy_tasks = "0.19.0-rc.1" +bevy_log = "0.19.0-rc.1" crossbeam-channel = "0.5.11" ehttp = { version = "0.5.0", features = ["native-async", "json"] } @@ -28,7 +28,7 @@ serde_json = "1.0" [dev-dependencies] -bevy = { version = "0.18.0", default-features = false, features = [ +bevy = { version = "0.19.0-rc.1", default-features = false, features = [ "bevy_asset", "bevy_gilrs", "bevy_scene", diff --git a/examples/window.rs b/examples/window.rs index 67f5511..69df7f5 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -53,7 +53,7 @@ fn setup(mut commands: Commands) { )) .with_children(|parent| { let text_font = TextFont { - font_size: 40., + font_size: FontSize::Px(40.), ..default() }; parent.spawn(Node::default()).with_children(|parent| { From 5f25da60c6d270f40474730739e23b948d1d4550 Mon Sep 17 00:00:00 2001 From: ZoOL Date: Fri, 15 May 2026 16:05:06 +0800 Subject: [PATCH 2/4] fix(examples): make window example UI visible on Bevy 0.19 - Add missing 'bevy_ui_render' feature to Cargo.toml dev-dependencies. Without it, UI nodes are laid out but never extracted to the render world, making them completely invisible. - Fix example UI setup: * Remove IsDefaultUiCamera (Camera2d alone is sufficient in 0.19) * Replace Display::Grid with Display::Flex + fixed dimensions * Remove Node::default() nesting (Text entities now direct children) * Use TextFont::from_font_size() for built-in default font --- Cargo.toml | 1 + examples/window.rs | 59 +++++++++++++++++++++++----------------------- 2 files changed, 31 insertions(+), 29 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6f8b27d..a4b0714 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,6 +41,7 @@ bevy = { version = "0.19.0-rc.1", default-features = false, features = [ "bevy_sprite_render", "bevy_text", "bevy_ui", + "bevy_ui_render", "bevy_window", "bevy_log", "multi_threaded", diff --git a/examples/window.rs b/examples/window.rs index 69df7f5..a2fdd22 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -39,45 +39,46 @@ struct ResponseIP; fn setup(mut commands: Commands) { // Camera - commands.spawn((Camera2d, IsDefaultUiCamera)); + commands.spawn(Camera2d); + + // Container for HTTP status commands .spawn(( Node { position_type: PositionType::Absolute, - padding: UiRect::all(Val::Px(5.0)), - display: Display::Grid, + top: Val::Px(10.0), + left: Val::Px(10.0), + width: Val::Px(400.0), + height: Val::Px(120.0), + padding: UiRect::all(Val::Px(10.0)), + display: Display::Flex, + flex_direction: FlexDirection::Column, + row_gap: Val::Px(8.0), ..default() }, ZIndex(i32::MAX), BackgroundColor(Color::BLACK.with_alpha(0.75)), )) .with_children(|parent| { - let text_font = TextFont { - font_size: FontSize::Px(40.), - ..default() - }; - parent.spawn(Node::default()).with_children(|parent| { - parent.spawn(( - Text::new("Status: "), - TextColor(LIME.into()), - text_font.clone(), - )); - parent.spawn(( - Text::new(""), - TextColor(AQUA.into()), - text_font.clone(), - ResponseText, - )); - }); - parent.spawn(Node::default()).with_children(|parent| { - parent.spawn((Text::new("Ip: "), TextColor(LIME.into()), text_font.clone())); - parent.spawn(( - Text::new(""), - TextColor(AQUA.into()), - text_font.clone(), - ResponseIP, - )); - }); + let text_font = TextFont::from_font_size(40.); + parent.spawn(( + Text::new("Status: "), + TextColor(LIME.into()), + text_font.clone(), + )); + parent.spawn(( + Text::new(""), + TextColor(AQUA.into()), + text_font.clone(), + ResponseText, + )); + parent.spawn((Text::new("Ip: "), TextColor(LIME.into()), text_font.clone())); + parent.spawn(( + Text::new(""), + TextColor(AQUA.into()), + text_font.clone(), + ResponseIP, + )); }); } From 48a87e7a2c762d7191009e92d89d7f61df82d12b Mon Sep 17 00:00:00 2001 From: ZoOL Date: Wed, 27 May 2026 15:11:14 +0800 Subject: [PATCH 3/4] chore: upgrade to Bevy 0.19.0-rc.2 --- Cargo.toml | 12 ++++++------ dist/index.html | 23 ----------------------- 2 files changed, 6 insertions(+), 29 deletions(-) delete mode 100644 dist/index.html diff --git a/Cargo.toml b/Cargo.toml index a4b0714..5dc5750 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,11 +14,11 @@ keywords = ["bevy", "http", "plugin", "wasm"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bevy_app = "0.19.0-rc.1" -bevy_derive = "0.19.0-rc.1" -bevy_ecs = { version = "0.19.0-rc.1", features = ["multi_threaded"] } -bevy_tasks = "0.19.0-rc.1" -bevy_log = "0.19.0-rc.1" +bevy_app = "0.19.0-rc.2" +bevy_derive = "0.19.0-rc.2" +bevy_ecs = { version = "0.19.0-rc.2", features = ["multi_threaded"] } +bevy_tasks = "0.19.0-rc.2" +bevy_log = "0.19.0-rc.2" crossbeam-channel = "0.5.11" ehttp = { version = "0.5.0", features = ["native-async", "json"] } @@ -28,7 +28,7 @@ serde_json = "1.0" [dev-dependencies] -bevy = { version = "0.19.0-rc.1", default-features = false, features = [ +bevy = { version = "0.19.0-rc.2", default-features = false, features = [ "bevy_asset", "bevy_gilrs", "bevy_scene", diff --git a/dist/index.html b/dist/index.html deleted file mode 100644 index a599f6e..0000000 --- a/dist/index.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Bevy http client exmaple - - - - - Javascript and support for canvas is required - - - - \ No newline at end of file From e84771b203aec150e912aa9baa2990338338e965 Mon Sep 17 00:00:00 2001 From: ZoOL Date: Wed, 27 May 2026 19:20:47 +0800 Subject: [PATCH 4/4] docs: update CHANGELOG for 0.19.0-rc.2 --- CHANGELOG.md | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca21456..f467f14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,19 +5,24 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.11.0] - 2026-05-14 +## [0.11.0] - 2026-05-27 ### Changed -- Upgrade to Bevy 0.19.0-rc.1 -- Updated all Bevy dependencies to 0.19.0-rc.1 compatible versions - - bevy_app: 0.19.0-rc.1 - - bevy_derive: 0.19.0-rc.1 - - bevy_ecs: 0.19.0-rc.1 - - bevy_tasks: 0.19.0-rc.1 - - bevy_log: 0.19.0-rc.1 +- Upgrade to Bevy 0.19.0-rc.2 +- Updated all Bevy dependencies to 0.19.0-rc.2 compatible versions + - bevy_app: 0.19.0-rc.2 + - bevy_derive: 0.19.0-rc.2 + - bevy_ecs: 0.19.0-rc.2 + - bevy_tasks: 0.19.0-rc.2 + - bevy_log: 0.19.0-rc.2 ### Fixed -- Fixed `window` example to use `FontSize::Px()` instead of raw float for `font_size` +- Fixed `window` example for Bevy 0.19 UI rendering changes + - Added `bevy_ui_render` feature to dev-dependencies (required for UI node extraction to render world) + - Removed `IsDefaultUiCamera` (no longer needed in 0.19) + - Replaced `Display::Grid` with `Display::Flex` + fixed dimensions + - Removed `Node::default()` nesting (text entities are now direct children) + - Updated font setup to use `TextFont::from_font_size()` for built-in default font ## [0.10.0] - 2025-01-15