# Objective As discussed in #19285, we do a poor job at keeping the namespace tidy and free of duplicates / user-conflicting names in places. `cosmic_text` re-exports were the worst offender. ## Solution Remove the re-exports completely. While the type aliases were quite thoughtful, they weren't used in any of our code / API.
813 B
813 B
| title | pull_requests | |
|---|---|---|
| Removed `cosmic_text` re-exports |
|
Previously, bevy_text re-exported the entirety of cosmic_text while renaming a few of the most confusing re-exports,
using the following code.
pub use cosmic_text::{
self, FamilyOwned as FontFamily, Stretch as FontStretch, Style as FontStyle, Weight as FontWeight,
};
These re-exports commonly conflicted with other types (like Query!), leading to messy autocomplete errors.
Ultimately, these are largely an implementation detail, and were not widely used.
We've completely removed these re-exports (including the renamed types): if you need to use these types, please rely on them directly from cosmic_text, being sure that the version number you are using matches the version used by your version of bevy_text.