pumuki-ast-hooks 6.0.9 → 6.0.11
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/docs/RELEASE_NOTES.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
# Release Notes - v6.0.11
|
|
2
|
+
|
|
3
|
+
**Release Date**: January 13, 2026
|
|
4
|
+
**Type**: Patch Release
|
|
5
|
+
**Compatibility**: Fully backward compatible with 6.0.x
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## ✅ Fixes
|
|
10
|
+
|
|
11
|
+
- **iOS DIP detector**: protocol-like types are detected even with generics (e.g. `RegisterUseCase<Auth>`).
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Release Notes - v6.0.10
|
|
16
|
+
|
|
17
|
+
**Release Date**: January 13, 2026
|
|
18
|
+
**Type**: Patch Release
|
|
19
|
+
**Compatibility**: Fully backward compatible with 6.0.x
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## ✅ Fixes
|
|
24
|
+
|
|
25
|
+
- **iOS DIP detector**: protocol-like types are detected even with module prefixes or optional markers (e.g. `Domain.LoginUseCase?`).
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
1
29
|
# Release Notes - v6.0.9
|
|
2
30
|
|
|
3
31
|
**Release Date**: January 13, 2026
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pumuki-ast-hooks",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.11",
|
|
4
4
|
"description": "Enterprise-grade AST Intelligence System with multi-platform support (iOS, Android, Backend, Frontend) and Feature-First + DDD + Clean Architecture enforcement. Includes dynamic violations API for intelligent querying.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -92,7 +92,9 @@ describe('DIValidationService', () => {
|
|
|
92
92
|
it('should skip protocol-named concrete-like types', async () => {
|
|
93
93
|
const properties = [
|
|
94
94
|
{ 'key.name': 'loginUseCase', 'key.typename': 'LoginUseCase' },
|
|
95
|
-
{ 'key.name': 'logoutUseCase', 'key.typename': 'LogoutUseCase' }
|
|
95
|
+
{ 'key.name': 'logoutUseCase', 'key.typename': 'LogoutUseCase' },
|
|
96
|
+
{ 'key.name': 'currentUserUseCase', 'key.typename': 'Domain.UserRetrievalUseCase?' },
|
|
97
|
+
{ 'key.name': 'registerUseCase', 'key.typename': 'RegisterUseCase<Auth>' }
|
|
96
98
|
];
|
|
97
99
|
|
|
98
100
|
await diValidationService.validateDependencyInjection(
|
|
@@ -100,10 +100,17 @@ class ConcreteDependencyStrategy extends DIStrategy {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
_isLikelyProtocolType(typename) {
|
|
103
|
-
|
|
103
|
+
const normalized = typename
|
|
104
|
+
.replace(/^(any|some)\s+/, '')
|
|
105
|
+
.replace(/[!?]/g, '')
|
|
106
|
+
.replace(/<.*>/g, '')
|
|
107
|
+
.split('.')
|
|
108
|
+
.pop() || typename;
|
|
109
|
+
|
|
110
|
+
if (/Impl$/.test(normalized)) {
|
|
104
111
|
return false;
|
|
105
112
|
}
|
|
106
|
-
return /UseCase$|Repository$/.test(
|
|
113
|
+
return /UseCase$|Repository$/.test(normalized);
|
|
107
114
|
}
|
|
108
115
|
}
|
|
109
116
|
|