@vlynk-studios/nodulus-core 1.1.0 → 1.2.0
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/CHANGELOG.md +7 -0
- package/README.md +27 -0
- package/dist/cli/index.js +6409 -2
- package/dist/cli/index.js.map +1 -1
- package/package.json +20 -16
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.2.0] - 2026-04-09
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **CLI Command `check`**: Added static code analysis to enforce boundaries via fast AST parsing (`acorn`). Uncovers architectural violations before loading.
|
|
12
|
+
- **Rule Detection Mechanisms**: Captures circular dependencies, deep private imports, and undeclared external imports between modules.
|
|
13
|
+
- **CI/CD Integration Tools**: `--strict` mode forcing process exits on rule breakage and `--format json` payload schema reports.
|
|
14
|
+
|
|
8
15
|
## [1.1.0] - 2026-04-08
|
|
9
16
|
|
|
10
17
|
### Changed
|
package/README.md
CHANGED
|
@@ -356,6 +356,33 @@ Added paths:
|
|
|
356
356
|
|
|
357
357
|
Run this command initially, and whenever you create, rename, or drop modules in the project. It behaves idempotently and automatically purges references to modules that were deleted.
|
|
358
358
|
|
|
359
|
+
### `nodulus check`
|
|
360
|
+
|
|
361
|
+
Performs static code architecture analysis by inspecting raw Abstract Syntax Trees (AST) across your module structures without mutating or evaluating your application code.
|
|
362
|
+
|
|
363
|
+
```bash
|
|
364
|
+
npx nodulus check
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
```text
|
|
368
|
+
Nodulus Architecture Analysis
|
|
369
|
+
|
|
370
|
+
✔ orders — OK
|
|
371
|
+
✗ payments — 2 problem(s)
|
|
372
|
+
WARN Private import detected: module "payments" directly imports internal path from "@modules/users/users.repository.js". (payments.service.ts:3)
|
|
373
|
+
Suggestion: Import only the public index: "@modules/users".
|
|
374
|
+
✔ users — OK
|
|
375
|
+
|
|
376
|
+
2 problem(s) found.
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
| Option | Description |
|
|
380
|
+
|------------------------|------------------------------------------------------------------------------------------|
|
|
381
|
+
| `--strict` | Gracefully halts pipelines (`exit 1`) if architectural violations are mapped. Ideal for CI/CD gates. |
|
|
382
|
+
| `--module <name>` | Narrow the analysis exclusively to a specific module scope within your system. |
|
|
383
|
+
| `--format <json,text>` | Exposes structural violations as digestible JSON payloads for external pipelines. |
|
|
384
|
+
| `--no-circular` | Disables heavy Depth-First Search cycle logic detections (`A → B → A`). |
|
|
385
|
+
|
|
359
386
|
---
|
|
360
387
|
|
|
361
388
|
## Logging
|