From 188f9ef159a7c082b7670ef1f4630a154ef02466 Mon Sep 17 00:00:00 2001
From: Louis <contact@louiscap.co>
Date: Sun, 27 Apr 2025 22:53:05 +0100
Subject: [PATCH] Update to Bevy 0.16

---
 CHANGELOG.md  | 6 ++++++
 Cargo.toml    | 6 +++---
 README.md     | 2 +-
 src/fqpath.rs | 2 +-
 src/lib.rs    | 6 +++---
 5 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index a574192..5563ee0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+[0.8.0]
+
+### Changed
+
+- Required Bevy version is now 0.16
+
 [0.7.0]
 
 ### Changed
diff --git a/Cargo.toml b/Cargo.toml
index 2e3c62b..967ed03 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "micro_games_macros"
-version = "0.7.0"
+version = "0.8.0"
 edition = "2021"
 authors = ["Louis Capitanchik <contact@louiscap.co>"]
 description = "Utility macros to make it easier to build complex systems with Bevy"
@@ -21,10 +21,10 @@ test-case = "3.3.1"
 serde = { version = "1.0", features = ["derive"] }
 serde_json = "1.0"
 anyhow = "1.0"
-micro_bevy_world_utils = "0.6"
+micro_bevy_world_utils = "0.7"
 
 [dev-dependencies.bevy]
-version = "0.15"
+version = "0.16"
 default-features = false
 features = [
     "bevy_asset",
diff --git a/README.md b/README.md
index 7384283..1dc08f1 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ version of bevy listed as a dev dependency in `Cargo.toml`, as that will be the
 This works because the library does not directly depend on bevy, but instead just generates fully qualified paths
 to derives, traits, and structs that will resolve to the version of Bevy used in your downstream project
 
-**Current Version Support: 0.6.x -> Bevy 0.14**
+**Current Version Support: 0.8.x -> Bevy 0.16**
 
 ## Macros
 
diff --git a/src/fqpath.rs b/src/fqpath.rs
index 4d02df4..2202561 100644
--- a/src/fqpath.rs
+++ b/src/fqpath.rs
@@ -50,7 +50,7 @@ fq!(BevyQuery => ::bevy::ecs::system::Query);
 fq!(BevyEntity => ::bevy::ecs::entity::Entity);
 fq!(BevyEventReader => ::bevy::ecs::event::EventReader);
 fq!(BevySystemParam => ::bevy::ecs::system::SystemParam);
-fq!(BevyResource => ::bevy::ecs::system::Resource);
+fq!(BevyResource => ::bevy::ecs::resource::Resource);
 fq!(BevyComponent => ::bevy::ecs::component::Component);
 fq!(BevyTypePath=> ::bevy::reflect::TypePath);
 fq!(BevyTypeUuid => ::bevy::reflect::TypeUuid);
diff --git a/src/lib.rs b/src/lib.rs
index c6e8e36..eaa066b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -379,9 +379,9 @@ pub fn derive_from_inner(input: TokenStream) -> TokenStream {
 /// }
 ///
 /// pub fn spawn_entities(mut commands: Commands) {
-///   commands.spawn((Ally, SpatialBundle::default()));
-///   commands.spawn((Enemy, SpatialBundle::default()));
-///   commands.spawn((Enemy, SpatialBundle::default()));
+///   commands.spawn((Ally, Transform::default()));
+///   commands.spawn((Enemy, Transform::default()));
+///   commands.spawn((Enemy, Transform::default()));
 /// }
 ///
 /// pub fn my_checking_system(query: Query<(Entity, &Transform)>, tags: TagFinder) {
-- 
GitLab