v3.2.0: AST Introduction & Core Detection Fixes
0
Publication Date: 10/07/2025
Author: Anas Chakroun
2-3 minutes

v3.2.0: AST Introduction & Core Detection Fixes
Turbo Console Log has always relied on regex to power its smart detection engine. It’s fast, lightweight, and does a great job analyzing local lines of code. But when it comes to deeply nested code, multiline ternaries, or complex formatting, regex starts to fall short.
That’s why v3.2.0 introduces AST (Abstract Syntax Tree) parsing. While AST adds some internal complexity, it unlocks compiler-level precision — allowing Turbo to understand the full scope of variables, not just the visible line. We’ve now migrated the logic for ternary expressions and function parameters to AST.
This is just the beginning. The goal is to slowly move all critical checkers and line deduction helpers over to AST, especially for areas that regex consistently struggles with. But regex isn’t going away — it will still be used where it makes sense.
Alongside this milestone, v3.2.0 also ships key bug fixes to handle advanced object literal assignments with type annotations and edge cases in default settings — all based on real feedback from the community.
What’s New in v3.2.0
🧠 AST Support: Introduced AST parsing for ternary expressions and function parameters.
📐 More reliable Log Placement (Ternary & Params): AST improves accuracy by analyzing full variable scope in these specific cases.
🐛 Bug Fix: Handle object literal assignments with complex type annotations correctly.
🛠️ Settings: Default setting values are now respected in the detection logic, reducing false positives in log message recognition.
🧪 Improved Coverage: New test scenarios for AST-based logic and edge cases.
Turbo PRO v2 is getting love ❤️
Since launching Turbo PRO v2, feedback has been strong — fast activations, stable performance across big projects, and only a handful of minor edge cases that were quickly handled.
If you're enjoying the free version and want to take it further — now's the perfect time to unlock PRO. Lifetime license, 5 activations per version, and premium stability built for devs who demand more.

What’s Next
The AST refactor will continue across other log detection cases: destructured objects, nested assignments, spreads, etc. The long-term goal? Zero guesswork and logs that feel native to the code they land in.
If you hit weird cases, want to share your codebase edge cases, or have feature ideas — hit us up. You’re shaping the future of Turbo Console Log.