You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
release: TypeScript2Cxx v0.7.0 - Modern JavaScript Operators and Advanced Features
Major release introducing 5 new JavaScript operators and language features:
### New Features
- Computed property names in object literals ({[key]: value})
- IIFE (Immediately Invoked Function Expressions) support
- instanceof operator for runtime type checking
- in operator for property existence checking
- delete operator for property deletion
- Enhanced array higher-order methods (forEach, find, findIndex, some, every, includes)
### Runtime Enhancements
- Added comprehensive operator overloads to js::any (*, /, -, %, ==, \!=, >, <, >=, <=)
- Implemented runtime helper functions for new operators
- Enhanced object entries() method for iteration support
- Fixed C++ reserved keyword escaping with underscore suffix
### Code Generation Improvements
- Better lambda capture handling for global scope operations
- Enhanced transformer with new expression handlers
- Improved array method detection in code generator
- Fixed === operator mapping to == in C++ generation
### Test Coverage
- 11 comprehensive test cases for computed properties
- Dedicated IIFE test coverage in functions.spec.ts
- in/delete operator tests in operators.spec.ts
- End-to-end compilation and execution testing
### Development Environment
- Updated Deno configuration with proper exclude patterns
- Streamlined build tools to process only relevant files
- Enhanced .gitignore for build artifacts and generated files
All features are fully implemented with proper runtime support and comprehensive test coverage.
@@ -96,4 +124,4 @@ No migration required. Existing code continues to work with enhanced functionali
96
124
97
125
### Contributors
98
126
99
-
This release represents significant progress in JavaScript feature parity, bringing modern array operations and arrow functionsto the C++ transpilation.
127
+
This release represents significant progress in JavaScript feature parity, bringing modern array operations, arrow functions, IIFE support, and essential JavaScript operators (instanceof, in, delete) to the C++ transpilation. With computed property names and comprehensive operator support, v0.7.0 enables more dynamic and idiomatic JavaScript patterns in C++ output.
0 commit comments