v0.5.3
This release focuses on stability, concurrency safety, Windows compatibility, and large-codebase performance. It resolves schema validation issues, eliminates race conditions and memory leaks, improves dependency resolution efficiency, and strengthens type safety.
🐞 Fixed
JSON Schema Validation
- Removed incorrect
requiredconstraints from:motion.featuresstyledJsx
- Prevents false validation errors in IDEs and schema-based tooling.
Sanitization Race Condition
- Eliminated global
sanitizeStatsmutation during concurrent processing. - Sanitization results are now aggregated locally and recorded in batch.
- Improves reliability in watch mode and concurrent scenarios.
Memory Leaks in Global Caches
- Security report cache now uses a 5-minute TTL.
- Added
clearSecurityReportCache()andclearTokenizerCache(). - Prevents memory growth in long-running or watch sessions.
Windows Dependency Resolution
- Fixed path separator handling in
resolveDependency(). - Added Windows-style path test coverage.
⚡ Performance
O(n²) → O(n) Dependency Collection
- Replaced
array.shift()with index-based iteration. - Eliminates quadratic degradation in large projects.
Reduced I/O in --compare-modes
- File contents now cached during mode comparison.
- Significantly reduces disk reads in large codebases.
🔧 Changed (Internal)
extractCodeHeader→ returnsCodeHeaderResultreadSourceCode→ returnsSourceCodeResult- Replaced unsafe
as anywith properts-morphguards - Standardized terminology from
"react/typescript"→"typescript"
✅ Non-Breaking
- No breaking changes for CLI users.
- Internal changes remain backward-compatible.
🔗 Related PRs