Skip to content

v0.5.3

Choose a tag to compare

@AmiteK23 AmiteK23 released this 14 Feb 00:08
· 123 commits to main since this release
7390f6d

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 required constraints from:
    • motion.features
    • styledJsx
  • Prevents false validation errors in IDEs and schema-based tooling.

Sanitization Race Condition

  • Eliminated global sanitizeStats mutation 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() and clearTokenizerCache().
  • 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 → returns CodeHeaderResult
  • readSourceCode → returns SourceCodeResult
  • Replaced unsafe as any with proper ts-morph guards
  • Standardized terminology from "react/typescript""typescript"

✅ Non-Breaking

  • No breaking changes for CLI users.
  • Internal changes remain backward-compatible.

🔗 Related PRs

  • #78 – docs improvements
  • #79 – watch mode & sanitization stability
  • #80 – type safety & schema alignment
  • #81 – Windows fix & performance optimization
  • #82 – release prep

👉 Full changelog