Skip to content

Commit c7872e1

Browse files
committed
feat(typescript): complete alias resolution with React component support
- add module_path resolution for cross-module TypeScript imports - track default exports and mark them as Public visibility - support React components as callable Constants in relationships - enhance imports at storage time with resolved paths - fix visibility checks for exported symbols across modules - add test coverage for alias resolution pipeline Breaking: Requires full reindex - external stubs removed, resolution improved Resolves cross-module import issues for TypeScript projects with path aliases
1 parent b99c540 commit c7872e1

40 files changed

Lines changed: 1457 additions & 158 deletions

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,39 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.5.16] - 2025-09-28
9+
10+
### Added
11+
- TypeScript path alias resolution with full cross-module support
12+
- Aliases like `@/*` resolved to actual paths (`./src/*`)
13+
- Symbols added by module_path for cross-module resolution
14+
- Import paths enhanced at storage time for correct resolution
15+
- Default export visibility tracking for TypeScript
16+
- `export default` symbols now marked as Public
17+
- Enables proper cross-module access to default exports
18+
- React component relationship support
19+
- Constants and Variables now callable (React functional components)
20+
- Proper relationship tracking for component hierarchies
21+
22+
### Changed
23+
- **BREAKING**: External stub symbols no longer created for unresolved imports
24+
- Cleaner index without placeholder symbols
25+
- Requires full project reindex: `codanna index --force`
26+
- TypeScript behavior enhanced with module_path resolution
27+
- Relationship validation extended for JavaScript/TypeScript patterns
28+
29+
### Fixed
30+
- TypeScript imports using path aliases not resolving across modules
31+
- Default exported symbols incorrectly marked as Private
32+
- React components (Constants) not creating proper call relationships
33+
- Cross-module visibility checks for exported symbols
34+
35+
### Migration Required
36+
To benefit from improved TypeScript resolution:
37+
```bash
38+
codanna index --force
39+
```
40+
841
## [0.5.15] - 2025-09-27
942

1043
### Added

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "codanna"
3-
version = "0.5.15"
3+
version = "0.5.16"
44
authors = ["Angel Bartolli <bartolli@gmail.com>"]
55
edition = "2024"
66
description = "Code Intelligence for Large Language Models"

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,9 +493,7 @@ sudo dnf install pkgconfig openssl-devel
493493
- Semantic search requires English documentation/comments
494494
- Windows support is experimental
495495

496-
## Roadmap
497-
498-
### Current Release: v0.5.14
496+
## Releases
499497

500498
See [CHANGELOG.md](CHANGELOG.md) for detailed release notes and feature history.
501499

contributing/parsers/c/AUDIT_REPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# C Parser Coverage Report
22

3-
*Generated: 2025-09-28 02:20:07 UTC*
3+
*Generated: 2025-09-28 21:21:50 UTC*
44

55
## Summary
66
- Nodes in file: 145

contributing/parsers/c/GRAMMAR_ANALYSIS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# C Grammar Analysis
22

3-
*Generated: 2025-09-28 02:20:07 UTC*
3+
*Generated: 2025-09-28 21:21:50 UTC*
44

55
## Statistics
66
- Total nodes in grammar JSON: 132

contributing/parsers/c/node_discovery.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
=== C Language ABI-15 COMPREHENSIVE NODE MAPPING ===
2-
Generated: 2025-09-28 02:20:07 UTC
2+
Generated: 2025-09-28 21:21:50 UTC
33
ABI Version: 15
44
Node kind count: 145
55

contributing/parsers/cpp/AUDIT_REPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# C++ Parser Coverage Report
22

3-
*Generated: 2025-09-28 02:20:07 UTC*
3+
*Generated: 2025-09-28 21:21:50 UTC*
44

55
## Summary
66
- Nodes in file: 131

contributing/parsers/cpp/GRAMMAR_ANALYSIS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# C++ Grammar Analysis
22

3-
*Generated: 2025-09-28 02:20:07 UTC*
3+
*Generated: 2025-09-28 21:21:50 UTC*
44

55
## Statistics
66
- Total nodes in grammar JSON: 223

contributing/parsers/cpp/node_discovery.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
=== C++ Language ABI-15 COMPREHENSIVE NODE MAPPING ===
2-
Generated: 2025-09-28 02:20:07 UTC
2+
Generated: 2025-09-28 21:21:50 UTC
33
ABI Version: 14
44
Node kind count: 131
55

0 commit comments

Comments
 (0)