@seed-ship/mcp-ui-solid 1.0.9 → 1.0.10
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/CHANGELOG.md +50 -0
- package/package.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,56 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.10] - 2025-11-17
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **CONDITIONAL EXPORTS FIX**: Added `"solid"` condition to all package.json exports
|
|
12
|
+
- This completes the SSR fix started in v1.0.9
|
|
13
|
+
- Allows Vite's SSR resolver to correctly identify which module to load in server vs browser contexts
|
|
14
|
+
- Without this, module resolution conflicts occurred even with SSR-compatible compilation
|
|
15
|
+
- Follows SolidJS library best practices for proper module resolution
|
|
16
|
+
|
|
17
|
+
### Technical Details
|
|
18
|
+
**The Missing Piece in v1.0.9:**
|
|
19
|
+
- v1.0.9 correctly changed `generate: 'ssr'` in vite.config.ts ✅
|
|
20
|
+
- BUT package.json exports didn't include the `"solid"` condition ❌
|
|
21
|
+
- This caused Vite to load the same build for both SSR and browser
|
|
22
|
+
- Result: Module resolution conflicts with `solid-js/web` during SSR
|
|
23
|
+
|
|
24
|
+
**How Conditional Exports Fix This:**
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"./components": {
|
|
28
|
+
"solid": "./dist/components/index.js", // ← NEW: SolidJS-aware loaders use this
|
|
29
|
+
"import": "./dist/components/index.js", // Fallback for standard ESM
|
|
30
|
+
"require": "./dist/components/index.cjs" // CommonJS
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
With the `"solid"` condition:
|
|
36
|
+
- Vite recognizes this as a SolidJS-specific module
|
|
37
|
+
- Applies correct resolution strategy for SSR context
|
|
38
|
+
- No more "Client-only API called on the server side" errors
|
|
39
|
+
|
|
40
|
+
### Why This Matters
|
|
41
|
+
- **v1.0.8**: Added `isServer` guards (fixed symptoms)
|
|
42
|
+
- **v1.0.9**: Changed to SSR compilation mode (fixed compilation)
|
|
43
|
+
- **v1.0.10**: Added conditional exports (fixed module resolution) ← **Complete fix!**
|
|
44
|
+
|
|
45
|
+
### Affected Exports
|
|
46
|
+
All package entry points now have the `"solid"` condition:
|
|
47
|
+
- `"."` - Main export
|
|
48
|
+
- `"./components"` - Component exports
|
|
49
|
+
- `"./hooks"` - Hook exports
|
|
50
|
+
- `"./types"` - Type exports
|
|
51
|
+
|
|
52
|
+
### Migration Notes
|
|
53
|
+
- No breaking changes for consumers
|
|
54
|
+
- Drop-in replacement for v1.0.9
|
|
55
|
+
- Fixes persistent SSR errors on Railway, Vercel, Netlify, etc.
|
|
56
|
+
- **This is the final piece** for complete SSR compatibility
|
|
57
|
+
|
|
8
58
|
## [1.0.9] - 2025-11-17
|
|
9
59
|
|
|
10
60
|
### Fixed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seed-ship/mcp-ui-solid",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "SolidJS components for rendering MCP-generated UI resources",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -8,21 +8,25 @@
|
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
+
"solid": "./dist/index.js",
|
|
11
12
|
"import": "./dist/index.js",
|
|
12
13
|
"require": "./dist/index.cjs",
|
|
13
14
|
"types": "./dist/index.d.ts"
|
|
14
15
|
},
|
|
15
16
|
"./components": {
|
|
17
|
+
"solid": "./dist/components/index.js",
|
|
16
18
|
"import": "./dist/components/index.js",
|
|
17
19
|
"require": "./dist/components/index.cjs",
|
|
18
20
|
"types": "./dist/components/index.d.ts"
|
|
19
21
|
},
|
|
20
22
|
"./hooks": {
|
|
23
|
+
"solid": "./dist/hooks/index.js",
|
|
21
24
|
"import": "./dist/hooks/index.js",
|
|
22
25
|
"require": "./dist/hooks/index.cjs",
|
|
23
26
|
"types": "./dist/hooks/index.d.ts"
|
|
24
27
|
},
|
|
25
28
|
"./types": {
|
|
29
|
+
"solid": "./dist/types/index.js",
|
|
26
30
|
"import": "./dist/types/index.js",
|
|
27
31
|
"require": "./dist/types/index.cjs",
|
|
28
32
|
"types": "./dist/types/index.d.ts"
|