diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b9f6a7..f467f14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,25 @@ 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-27 + +### Changed +- 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 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 ### Changed diff --git a/Cargo.toml b/Cargo.toml index 6591134..5dc5750 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.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.18.0", default-features = false, features = [ +bevy = { version = "0.19.0-rc.2", default-features = false, features = [ "bevy_asset", "bevy_gilrs", "bevy_scene", @@ -41,6 +41,7 @@ bevy = { version = "0.18.0", default-features = false, features = [ "bevy_sprite_render", "bevy_text", "bevy_ui", + "bevy_ui_render", "bevy_window", "bevy_log", "multi_threaded", 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 diff --git a/examples/window.rs b/examples/window.rs index 67f5511..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: 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, + )); }); }