pumuki-ast-hooks 6.0.13 → 6.0.14
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,17 @@
|
|
|
1
|
+
# Release Notes - v6.0.14
|
|
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**: `UseCase`/`Repository` protocol-like types are never treated as concrete.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
1
15
|
# Release Notes - v6.0.13
|
|
2
16
|
|
|
3
17
|
**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.14",
|
|
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": {
|
|
@@ -88,19 +88,31 @@ class ConcreteDependencyStrategy extends DIStrategy {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
_isConcreteService(typename) {
|
|
91
|
+
const normalized = this._normalizeTypeName(typename);
|
|
91
92
|
const hasConcretePattern = this.config.concretePatterns.some(pattern =>
|
|
92
|
-
new RegExp(pattern).test(
|
|
93
|
+
new RegExp(pattern).test(normalized)
|
|
93
94
|
);
|
|
94
95
|
|
|
95
96
|
const hasProtocolIndicator = this.config.protocolIndicators.some(indicator =>
|
|
96
|
-
|
|
97
|
+
normalized.includes(indicator)
|
|
97
98
|
);
|
|
98
99
|
|
|
99
|
-
|
|
100
|
+
const isLikelyProtocol = /UseCase$|Repository$/.test(normalized) && !/Impl$/.test(normalized);
|
|
101
|
+
|
|
102
|
+
return hasConcretePattern && !hasProtocolIndicator && !isLikelyProtocol;
|
|
100
103
|
}
|
|
101
104
|
|
|
102
105
|
_isLikelyProtocolType(typename) {
|
|
103
|
-
const normalized = typename
|
|
106
|
+
const normalized = this._normalizeTypeName(typename);
|
|
107
|
+
|
|
108
|
+
if (/Impl$/.test(normalized)) {
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
return /UseCase$|Repository$/.test(normalized);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
_normalizeTypeName(typename) {
|
|
115
|
+
return typename
|
|
104
116
|
.replace(/^(any|some)\s+/, '')
|
|
105
117
|
.replace(/[!?]/g, '')
|
|
106
118
|
.replace(/<.*>/g, '')
|
|
@@ -109,11 +121,6 @@ class ConcreteDependencyStrategy extends DIStrategy {
|
|
|
109
121
|
.pop()
|
|
110
122
|
?.trim()
|
|
111
123
|
.replace(/[^A-Za-z0-9_].*$/, '') || typename;
|
|
112
|
-
|
|
113
|
-
if (/Impl$/.test(normalized)) {
|
|
114
|
-
return false;
|
|
115
|
-
}
|
|
116
|
-
return /UseCase$|Repository$/.test(normalized);
|
|
117
124
|
}
|
|
118
125
|
}
|
|
119
126
|
|