Skip to content

v0.11.0 - Enhanced Error Detection

Latest

Choose a tag to compare

@srdjan srdjan released this 31 Jan 16:05
· 56 commits to main since this release

Enhanced Error Detection and Developer Experience

This release consolidates the fail-fast validation system to provide consistent, helpful error messages across all file types.

🎯 Highlights

  • Consolidated Feature Detection: Unified error detection eliminates duplicate checks between TypeScript stripper and parser
  • Comprehensive Documentation: New FEATURE_DETECTION.md documents all 46+ detected features
  • Enhanced Error Messages: All unsupported features now include helpful alternatives
  • Robust Testing: 15 new parser tests ensure reliable error detection

💡 Developer Experience Improvements

Consistent Error Messages

  • Both .ts and .js files now show identical, helpful error messages
  • Example: 'class' is not supported; use plain objects and functions instead

Fail-Fast Validation

  • All unsupported features caught at parse time
  • Prevents invalid code from reaching bytecode generation
  • Clear suggested alternatives for every error

Better Documentation

  • Complete matrix of all detected features with suggestions
  • Clear separation between TypeScript-specific and JavaScript features
  • Architecture documentation in CLAUDE.md

🐛 Bug Fixes

  • Fixed type feedback allocation corrupting register state

📊 Benchmarks

  • Added HTTP benchmark comparison vs Deno to README

📝 What's Changed

Error Detection

  • Moved class and abstract class detection from stripper to parser for consistency
  • Enhanced all TypeScript stripper error messages with helpful alternatives
  • Added comprehensive parser tests for unsupported features

Documentation

  • Created zts/FEATURE_DETECTION.md with complete feature matrix
  • Updated CLAUDE.md with unsupported feature detection architecture
  • Added example error messages to documentation

Testing

  • 15 new parser tests covering class, loops, operators, and error handling
  • Stripper tests updated to reflect new architecture
  • Integration tests verifying consistent errors across file types

See the full documentation for the complete list of detected features and their alternatives.