fix: allow internal bounded context imports in aggregate detection (v0.7.3)

This commit is contained in:
imfozilbek
2025-11-25 00:54:03 +05:00
parent 3cd97c6197
commit 33d763c41b
3 changed files with 46 additions and 1 deletions

View File

@@ -5,6 +5,16 @@ All notable changes to @samiyev/guardian will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.7.3] - 2025-11-25
### Fixed
- 🐛 **False positive: repository importing its own aggregate:**
- Added `isInternalBoundedContextImport()` method to detect internal imports
- Imports like `../aggregates/Entity` from `repositories/Repo` are now allowed
- This correctly allows `ICodeProjectRepository` to import `CodeProject` from the same bounded context
- Cross-aggregate imports (with multiple `../..`) are still detected as violations
## [0.7.2] - 2025-11-25
### Fixed