pumuki-ast-hooks 6.0.10 → 6.0.12

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.
@@ -1,3 +1,31 @@
1
+ # Release Notes - v6.0.12
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 composition markers (e.g. `LoginUseCase & Sendable`).
12
+
13
+ ---
14
+
15
+ # Release Notes - v6.0.11
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 generics (e.g. `RegisterUseCase<Auth>`).
26
+
27
+ ---
28
+
1
29
  # Release Notes - v6.0.10
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.10",
3
+ "version": "6.0.12",
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,8 +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' },
96
- { 'key.name': 'currentUserUseCase', 'key.typename': 'Domain.UserRetrievalUseCase?' }
95
+ { 'key.name': 'logoutUseCase', 'key.typename': 'LogoutUseCase & Sendable' },
96
+ { 'key.name': 'currentUserUseCase', 'key.typename': 'Domain.UserRetrievalUseCase?' },
97
+ { 'key.name': 'registerUseCase', 'key.typename': 'RegisterUseCase<Auth>' }
97
98
  ];
98
99
 
99
100
  await diValidationService.validateDependencyInjection(
@@ -103,8 +103,11 @@ class ConcreteDependencyStrategy extends DIStrategy {
103
103
  const normalized = typename
104
104
  .replace(/^(any|some)\s+/, '')
105
105
  .replace(/[!?]/g, '')
106
+ .replace(/<.*>/g, '')
107
+ .split('&')[0]
106
108
  .split('.')
107
- .pop() || typename;
109
+ .pop()
110
+ ?.trim() || typename;
108
111
 
109
112
  if (/Impl$/.test(normalized)) {
110
113
  return false;