You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/spec/PR_SUMMARY.md
+63-46Lines changed: 63 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
## Solution Overview
10
10
11
-
Implemented a **dual export strategy** that prevents naming conflicts while maintaining 100% backward compatibility.
11
+
Implemented a **namespace-only export strategy** that completely eliminates naming conflicts. This is a **breaking change** that enforces organized imports by protocol domain.
12
12
13
13
## Key Changes
14
14
@@ -25,7 +25,19 @@ packages/spec/src/
25
25
└── api/index.ts # API Protocol (Contracts, Requests, etc.)
26
26
```
27
27
28
-
### 2. Updated package.json
28
+
### 2. Updated Root Index
29
+
30
+
**Removed all flat exports** from `src/index.ts` and replaced with namespace exports:
31
+
32
+
```typescript
33
+
export*asDatafrom'./data';
34
+
export*asUIfrom'./ui';
35
+
export*asSystemfrom'./system';
36
+
export*asAIfrom'./ai';
37
+
export*asAPIfrom'./api';
38
+
```
39
+
40
+
### 3. Updated package.json
29
41
30
42
Added export mappings for each namespace:
31
43
@@ -42,45 +54,73 @@ Added export mappings for each namespace:
42
54
}
43
55
```
44
56
45
-
### 3. Enhanced Documentation
57
+
### 4. Enhanced Documentation
46
58
47
-
-**README.md**: Added comprehensive section on import styles
48
-
-**EXPORT_ORGANIZATION.md**: Detailed guide on the new organization
49
-
-**examples/**: Code examples demonstrating both import styles
59
+
-**README.md**: Updated with three supported import styles
0 commit comments