depgraph-core 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/depgraph-output.json +7138 -2482
- package/depgraph.js +1880 -5
- package/docs/README.md +1 -0
- package/docs/language-registry.md +15 -14
- package/docs/parser-conventions.md +194 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/depgraph-core)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
|
|
6
|
-
**DepGraph Core** is a powerful static analysis CLI that maps code dependencies and simulates the ripple-effect impact of changes across multi-language codebases — supporting JavaScript, TypeScript, Python, Go, C#, Java, Kotlin, PHP, Ruby, and
|
|
6
|
+
**DepGraph Core** is a powerful static analysis CLI that maps code dependencies and simulates the ripple-effect impact of changes across multi-language codebases — supporting JavaScript, TypeScript, Python, Go, C#, Java, Kotlin, PHP, Ruby, Swift, and Rust. By parsing imports, exports, functions, classes, interfaces, and methods, DepGraph constructs a comprehensive dependency graph, computes centrality metrics, and generates impact simulations — helping you prevent regression bugs in large systems.
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
## Key Features
|
|
11
11
|
|
|
12
|
-
- **Multi-Language AST & Regex Code Parsing**: Comprehensive native extractors for **
|
|
12
|
+
- **Multi-Language AST & Regex Code Parsing**: Comprehensive native extractors for **11 languages**:
|
|
13
13
|
- **JavaScript / TypeScript / React** (`.js`, `.jsx`, `.ts`, `.tsx`, `.mjs`, `.cjs`)
|
|
14
14
|
- **Python** (`.py`)
|
|
15
15
|
- **Go** (`.go`)
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
- **PHP** (`.php`)
|
|
20
20
|
- **Ruby** (`.rb`)
|
|
21
21
|
- **Swift** (`.swift`)
|
|
22
|
+
- **Rust** (`.rs`)
|
|
22
23
|
- **Dependency Graph Reconstruction**: Resolves local imports, aliases, namespace packages, and cross-file relationships to build a full topology map of your codebase.
|
|
23
24
|
- **Metrics & Centrality Analysis**: Calculates in-degree, out-degree, and centrality scores for every entity to automatically identify **Critical Nodes**.
|
|
24
25
|
- **Impact Simulation Engine**: Runs a reverse BFS to model the cascading impact of changing a specific function or class. Generates a risk score, lists affected nodes, and provides an actionable testing plan.
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
|
|
31
32
|
## Supported Languages
|
|
32
33
|
|
|
33
|
-
DepGraph Core provides native parsing and symbol extraction across
|
|
34
|
+
DepGraph Core provides native parsing and symbol extraction across 11 major programming languages:
|
|
34
35
|
|
|
35
36
|
| Language | Extensions | Extracted Entities | Import & Resolution Features |
|
|
36
37
|
| :--- | :--- | :--- | :--- |
|
|
@@ -43,6 +44,7 @@ DepGraph Core provides native parsing and symbol extraction across 10 major prog
|
|
|
43
44
|
| **PHP** | `.php` | Classes (abstract, final), Interfaces, Traits, Enums, Functions, Methods | Namespaces, single & grouped `use` statements, `use ... as` aliases, `require`/`include` file paths |
|
|
44
45
|
| **Ruby** | `.rb` | Classes, Modules, Instance methods, Class methods (`def self.`), `attr_accessor`/`reader`/`writer` | `require`, `require_relative`, `load`, `include`, `extend`, `prepend` |
|
|
45
46
|
| **Swift** | `.swift` | Classes, Structs, Enums, Protocols, Actors, Extensions (including `where` constraints), Functions, Initializers | Module imports, sub-module imports, kind-specifier imports (`import class/func/...`) |
|
|
47
|
+
| **Rust** | `.rs` | Functions, Structs (named & tuple fields), Enums (tuple & struct variants), Traits, Impl blocks, Methods | Single & grouped `use` statements, `crate::`/`super::`/`self::` modules, aliases (`as`) |
|
|
46
48
|
|
|
47
49
|
---
|
|
48
50
|
|
|
@@ -222,7 +224,7 @@ Recommendations
|
|
|
222
224
|
Output written to ./depgraph-output.json
|
|
223
225
|
```
|
|
224
226
|
|
|
225
|
-
**Supported languages for diff parsing:** All
|
|
227
|
+
**Supported languages for diff parsing:** All 11 languages (JavaScript/TypeScript, Python, Go, C#, Java, Kotlin, PHP, Ruby, Swift, and Rust) are fully supported via shared entity pattern registries and fallbacks.
|
|
226
228
|
|
|
227
229
|
---
|
|
228
230
|
|