v0.1.5 — Hot Path Cleanup
Not every release is a dramatic new feature or a critical hotfix. Sometimes the work is just tightening what's already there. v0.1.5 is that kind of release.
Three more systems had the classic ECS anti-patterns: queries executing inside entity loops,
and Math.sqrt in distance checks where squared distance would do. At 20 TPS with
hundreds of entities, those add up. They're fixed now. The engine runs a little leaner.
The other change is quieter but more principled: as unknown as World type assertion
escape hatches have been removed. These were the TypeScript equivalent of looking away — they
told the compiler "trust me" on casts that weren't actually safe. Each one is now replaced with
a proper type guard. The code is more honest about what it knows.
Performance
-
Perf
Query-in-loop and
Math.sqrthot paths fixed in 3 additional systems. Queries are now hoisted before entity loops; distance checks use squared distance comparisons.
Fixes
-
Type Safety
Removed
as unknown as Worldtype assertion escape hatches. Replaced with proper type guards throughout affected files.