Skip to content

Conversation

@ffmulks
Copy link

@ffmulks ffmulks commented Aug 19, 2025

Migration to 16.1 with Claude help went smoothly. A suggested update to Readme.md and versioning is included. Other dependencies were updated as well while we are at it.

  • Update Bevy dependency to version 16.1 in Cargo.toml
  • Add hashbrown 0.15 dependency for Entry type compatibility

Breaking API changes fixed:

  • Replace trigger.entity() with trigger.target() across all observers
  • Update Parent to ChildOf with parent.get() → parent.parent()
  • Implement new TriggerTargets trait methods returning iterators instead of slices
  • Add required Mutability associated type to all Component implementations
  • Update component hook signatures (remove third parameter from closures)
  • Fix QueryEntityError enum usage with proper archetype parameter
  • Update Once command structure to use FnOnce with proper Send bounds
  • Remove Component reflection from Event types in event.rs
  • Fix ReferenceType trait bounds for mutable references

Examples and tests:

  • Update thirst example to remove LogPlugin dependency
  • Add println! statements for console output visibility
  • Fix test imports (remove hierarchy module references)
  • All tests passing (12 unit tests + 11 doc tests)

  - Update Bevy dependency to version 16.1 in Cargo.toml
  - Add hashbrown 0.15 dependency for Entry type compatibility

  Breaking API changes fixed:
  - Replace trigger.entity() with trigger.target() across all observers
  - Update Parent to ChildOf with parent.get() → parent.parent()
  - Implement new TriggerTargets trait methods returning iterators instead of slices
  - Add required Mutability associated type to all Component implementations
  - Update component hook signatures (remove third parameter from closures)
  - Fix QueryEntityError enum usage with proper archetype parameter
  - Update Once command structure to use FnOnce with proper Send bounds
  - Remove Component reflection from Event types in event.rs
  - Fix ReferenceType trait bounds for mutable references

  Examples and tests:
  - Update thirst example to remove LogPlugin dependency
  - Add println! statements for console output visibility
  - Fix test imports (remove hierarchy module references)
  - All tests passing (12 unit tests + 11 doc tests)

Supported by Claude
  2. README.md:
    - Updated the installation example to use bevy_observed_utility = "0.3.0"
    - Added Bevy 16 compatibility entry in the version table: | 0.16 | 0.3.0 |
    - Updated the hierarchy component reference from Parent/Children to ChildOf/Children to reflect Bevy 16.1 API changes

  The version has been updated to 0.3.0 to reflect the significant API changes required for Bevy 16.1 compatibility, and the README now accurately documents
  the supported Bevy versions and installation instructions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant