@vistagenic/vista 0.3.0 → 0.3.2
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/dist/bin/dev-error-overlay-snippet.js +379 -153
- package/dist/dev-error.d.ts +14 -0
- package/dist/dev-error.js +1394 -336
- package/dist/server/engine.js +1 -7
- package/dist/server/rsc-engine.js +2 -12
- package/package.json +178 -178
package/dist/server/engine.js
CHANGED
|
@@ -633,13 +633,7 @@ function startServer(port = 3003, compiler) {
|
|
|
633
633
|
console.error(err);
|
|
634
634
|
}
|
|
635
635
|
// Render Server-Side Error Overlay
|
|
636
|
-
|
|
637
|
-
type: 'runtime',
|
|
638
|
-
message: err.message || 'Unknown Server Error',
|
|
639
|
-
stack: err.stack,
|
|
640
|
-
file: (err.message.match && err.message.match(/(app\/.*?):(\d+):(\d+)/)?.[1]) || undefined,
|
|
641
|
-
};
|
|
642
|
-
res.status(500).send((0, dev_error_1.renderErrorHTML)([errorInfo]));
|
|
636
|
+
res.status(500).send((0, dev_error_1.renderErrorHTML)([(0, dev_error_1.fromCaughtError)(err, { source: 'server' })]));
|
|
643
637
|
}
|
|
644
638
|
});
|
|
645
639
|
});
|
|
@@ -1582,12 +1582,7 @@ function startRSCServer(options = {}) {
|
|
|
1582
1582
|
// This is much better than falling through to legacy renderToString,
|
|
1583
1583
|
// which will likely hit the same error (e.g. useState in a server component).
|
|
1584
1584
|
if (isDev && !res.headersSent) {
|
|
1585
|
-
|
|
1586
|
-
type: 'runtime',
|
|
1587
|
-
message: flightError.message || 'Flight SSR Error',
|
|
1588
|
-
stack: flightError.stack,
|
|
1589
|
-
};
|
|
1590
|
-
res.status(500).send((0, dev_error_1.renderErrorHTML)([errorInfo]));
|
|
1585
|
+
res.status(500).send((0, dev_error_1.renderErrorHTML)([(0, dev_error_1.fromCaughtError)(flightError, { source: 'server' })]));
|
|
1591
1586
|
return;
|
|
1592
1587
|
}
|
|
1593
1588
|
// If headers were already sent (stream was partially flushed),
|
|
@@ -1706,12 +1701,7 @@ function startRSCServer(options = {}) {
|
|
|
1706
1701
|
}
|
|
1707
1702
|
console.error('[vista:rsc] Render error:', error);
|
|
1708
1703
|
if (isDev) {
|
|
1709
|
-
|
|
1710
|
-
type: 'runtime',
|
|
1711
|
-
message: error.message || 'Unknown Server Error',
|
|
1712
|
-
stack: error.stack,
|
|
1713
|
-
};
|
|
1714
|
-
res.status(500).send((0, dev_error_1.renderErrorHTML)([errorInfo]));
|
|
1704
|
+
res.status(500).send((0, dev_error_1.renderErrorHTML)([(0, dev_error_1.fromCaughtError)(error, { source: 'server' })]));
|
|
1715
1705
|
}
|
|
1716
1706
|
else {
|
|
1717
1707
|
res.status(500).send('<h1>Internal Server Error</h1>');
|
package/package.json
CHANGED
|
@@ -1,178 +1,178 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vistagenic/vista",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "The React Framework for Visionaries - Rust-powered SSR with Server Components",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/Mantitup-Org/vista.git",
|
|
10
|
-
"directory": "packages/vista"
|
|
11
|
-
},
|
|
12
|
-
"author": "Vista Team",
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"keywords": [
|
|
15
|
-
"react",
|
|
16
|
-
"framework",
|
|
17
|
-
"ssr",
|
|
18
|
-
"server-components",
|
|
19
|
-
"rsc",
|
|
20
|
-
"rust",
|
|
21
|
-
"swc",
|
|
22
|
-
"vista"
|
|
23
|
-
],
|
|
24
|
-
"files": [
|
|
25
|
-
"dist",
|
|
26
|
-
"bin"
|
|
27
|
-
],
|
|
28
|
-
"exports": {
|
|
29
|
-
".": {
|
|
30
|
-
"react-server": "./dist/react-server.js",
|
|
31
|
-
"types": "./dist/index.d.ts",
|
|
32
|
-
"default": "./dist/index.js"
|
|
33
|
-
},
|
|
34
|
-
"./link": {
|
|
35
|
-
"react-server": "./dist/client/link.react-server.js",
|
|
36
|
-
"types": "./dist/client/link.d.ts",
|
|
37
|
-
"default": "./dist/client/link.js"
|
|
38
|
-
},
|
|
39
|
-
"./image": {
|
|
40
|
-
"react-server": "./dist/image/react-server.js",
|
|
41
|
-
"types": "./dist/image/index.d.ts",
|
|
42
|
-
"default": "./dist/image/index.js"
|
|
43
|
-
},
|
|
44
|
-
"./router": {
|
|
45
|
-
"react-server": "./dist/client/router.react-server.js",
|
|
46
|
-
"types": "./dist/client/router.d.ts",
|
|
47
|
-
"default": "./dist/client/router.js"
|
|
48
|
-
},
|
|
49
|
-
"./navigation": {
|
|
50
|
-
"react-server": "./dist/client/navigation.react-server.js",
|
|
51
|
-
"types": "./dist/client/navigation.d.ts",
|
|
52
|
-
"default": "./dist/client/navigation.js"
|
|
53
|
-
},
|
|
54
|
-
"./dynamic": {
|
|
55
|
-
"react-server": "./dist/client/dynamic.react-server.js",
|
|
56
|
-
"types": "./dist/client/dynamic.d.ts",
|
|
57
|
-
"default": "./dist/client/dynamic.js"
|
|
58
|
-
},
|
|
59
|
-
"./script": {
|
|
60
|
-
"react-server": "./dist/client/script.react-server.js",
|
|
61
|
-
"types": "./dist/client/script.d.ts",
|
|
62
|
-
"default": "./dist/client/script.js"
|
|
63
|
-
},
|
|
64
|
-
"./font": {
|
|
65
|
-
"types": "./dist/font/index.d.ts",
|
|
66
|
-
"default": "./dist/font/index.js"
|
|
67
|
-
},
|
|
68
|
-
"./font/google": {
|
|
69
|
-
"types": "./dist/font/google.d.ts",
|
|
70
|
-
"default": "./dist/font/google.js"
|
|
71
|
-
},
|
|
72
|
-
"./font/local": {
|
|
73
|
-
"types": "./dist/font/local.d.ts",
|
|
74
|
-
"default": "./dist/font/local.js"
|
|
75
|
-
},
|
|
76
|
-
"./theme": {
|
|
77
|
-
"react-server": "./dist/theme/react-server.js",
|
|
78
|
-
"types": "./dist/theme/index.d.ts",
|
|
79
|
-
"default": "./dist/theme/index.js"
|
|
80
|
-
},
|
|
81
|
-
"./head": {
|
|
82
|
-
"react-server": "./dist/client/head.react-server.js",
|
|
83
|
-
"types": "./dist/client/head.d.ts",
|
|
84
|
-
"default": "./dist/client/head.js"
|
|
85
|
-
},
|
|
86
|
-
"./config": {
|
|
87
|
-
"types": "./dist/config.d.ts",
|
|
88
|
-
"default": "./dist/config.js"
|
|
89
|
-
},
|
|
90
|
-
"./auth": {
|
|
91
|
-
"types": "./dist/auth/index.d.ts",
|
|
92
|
-
"default": "./dist/auth/index.js"
|
|
93
|
-
},
|
|
94
|
-
"./auth/react": {
|
|
95
|
-
"react-server": "./dist/auth/react-server.js",
|
|
96
|
-
"types": "./dist/auth/react.d.ts",
|
|
97
|
-
"default": "./dist/auth/react.js"
|
|
98
|
-
},
|
|
99
|
-
"./ai": {
|
|
100
|
-
"types": "./dist/ai/index.d.ts",
|
|
101
|
-
"default": "./dist/ai/index.js"
|
|
102
|
-
},
|
|
103
|
-
"./ai/react": {
|
|
104
|
-
"react-server": "./dist/ai/react/react-server.js",
|
|
105
|
-
"types": "./dist/ai/react/index.d.ts",
|
|
106
|
-
"default": "./dist/ai/react/index.js"
|
|
107
|
-
},
|
|
108
|
-
"./stack": {
|
|
109
|
-
"types": "./dist/stack/index.d.ts",
|
|
110
|
-
"default": "./dist/stack/index.js"
|
|
111
|
-
},
|
|
112
|
-
"./stack/client": {
|
|
113
|
-
"types": "./dist/stack/client/index.d.ts",
|
|
114
|
-
"default": "./dist/stack/client/index.js"
|
|
115
|
-
},
|
|
116
|
-
"./client/rsc-router": {
|
|
117
|
-
"react-server": "./dist/client/rsc-router.react-server.js",
|
|
118
|
-
"types": "./dist/client/rsc-router.d.ts",
|
|
119
|
-
"default": "./dist/client/rsc-router.js"
|
|
120
|
-
},
|
|
121
|
-
"./client/server-actions": {
|
|
122
|
-
"types": "./dist/client/server-actions.d.ts",
|
|
123
|
-
"default": "./dist/client/server-actions.js"
|
|
124
|
-
},
|
|
125
|
-
"./server": {
|
|
126
|
-
"types": "./dist/server/index.d.ts",
|
|
127
|
-
"default": "./dist/server/index.js"
|
|
128
|
-
},
|
|
129
|
-
"./server/runtime-actions": {
|
|
130
|
-
"types": "./dist/server/runtime-actions.d.ts",
|
|
131
|
-
"default": "./dist/server/runtime-actions.js"
|
|
132
|
-
},
|
|
133
|
-
"./cache": {
|
|
134
|
-
"types": "./dist/server/cache.d.ts",
|
|
135
|
-
"default": "./dist/server/cache.js"
|
|
136
|
-
},
|
|
137
|
-
"./package.json": "./package.json"
|
|
138
|
-
},
|
|
139
|
-
"bin": {
|
|
140
|
-
"vista": "bin/vista.js"
|
|
141
|
-
},
|
|
142
|
-
"publishConfig": {
|
|
143
|
-
"access": "public"
|
|
144
|
-
},
|
|
145
|
-
"scripts": {
|
|
146
|
-
"build": "tsc"
|
|
147
|
-
},
|
|
148
|
-
"dependencies": {
|
|
149
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
|
150
|
-
"@swc-node/register": "^1.9.0",
|
|
151
|
-
"@swc/core": "^1.4.0",
|
|
152
|
-
"chokidar": "^3.6.0",
|
|
153
|
-
"css-loader": "^7.1.2",
|
|
154
|
-
"esbuild": "^0.24.2",
|
|
155
|
-
"express": "^4.21.2",
|
|
156
|
-
"mini-css-extract-plugin": "^2.9.4",
|
|
157
|
-
"null-loader": "^4.0.1",
|
|
158
|
-
"react": "^19.0.0",
|
|
159
|
-
"react-dom": "^19.0.0",
|
|
160
|
-
"react-refresh": "^0.14.0",
|
|
161
|
-
"react-server-dom-webpack": "^19.0.0",
|
|
162
|
-
"swc-loader": "^0.2.6",
|
|
163
|
-
"ts-node": "^10.9.2",
|
|
164
|
-
"webpack": "^5.90.0",
|
|
165
|
-
"webpack-dev-middleware": "^7.0.0",
|
|
166
|
-
"webpack-hot-middleware": "^2.26.0"
|
|
167
|
-
},
|
|
168
|
-
"devDependencies": {
|
|
169
|
-
"@types/express": "^5.0.0",
|
|
170
|
-
"@types/node": "^22.10.2",
|
|
171
|
-
"@types/react": "^19.0.1",
|
|
172
|
-
"@types/react-dom": "^19.0.2",
|
|
173
|
-
"@types/webpack": "^5.28.5",
|
|
174
|
-
"@types/webpack-hot-middleware": "^2.25.9",
|
|
175
|
-
"typescript": "^5.7.2"
|
|
176
|
-
},
|
|
177
|
-
"gitHead": "d1b9f715d6365d8e1f553e96b752fbce8d98df7c"
|
|
178
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@vistagenic/vista",
|
|
3
|
+
"version": "0.3.2",
|
|
4
|
+
"description": "The React Framework for Visionaries - Rust-powered SSR with Server Components",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Mantitup-Org/vista.git",
|
|
10
|
+
"directory": "packages/vista"
|
|
11
|
+
},
|
|
12
|
+
"author": "Vista Team",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"react",
|
|
16
|
+
"framework",
|
|
17
|
+
"ssr",
|
|
18
|
+
"server-components",
|
|
19
|
+
"rsc",
|
|
20
|
+
"rust",
|
|
21
|
+
"swc",
|
|
22
|
+
"vista"
|
|
23
|
+
],
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"bin"
|
|
27
|
+
],
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"react-server": "./dist/react-server.js",
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./link": {
|
|
35
|
+
"react-server": "./dist/client/link.react-server.js",
|
|
36
|
+
"types": "./dist/client/link.d.ts",
|
|
37
|
+
"default": "./dist/client/link.js"
|
|
38
|
+
},
|
|
39
|
+
"./image": {
|
|
40
|
+
"react-server": "./dist/image/react-server.js",
|
|
41
|
+
"types": "./dist/image/index.d.ts",
|
|
42
|
+
"default": "./dist/image/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./router": {
|
|
45
|
+
"react-server": "./dist/client/router.react-server.js",
|
|
46
|
+
"types": "./dist/client/router.d.ts",
|
|
47
|
+
"default": "./dist/client/router.js"
|
|
48
|
+
},
|
|
49
|
+
"./navigation": {
|
|
50
|
+
"react-server": "./dist/client/navigation.react-server.js",
|
|
51
|
+
"types": "./dist/client/navigation.d.ts",
|
|
52
|
+
"default": "./dist/client/navigation.js"
|
|
53
|
+
},
|
|
54
|
+
"./dynamic": {
|
|
55
|
+
"react-server": "./dist/client/dynamic.react-server.js",
|
|
56
|
+
"types": "./dist/client/dynamic.d.ts",
|
|
57
|
+
"default": "./dist/client/dynamic.js"
|
|
58
|
+
},
|
|
59
|
+
"./script": {
|
|
60
|
+
"react-server": "./dist/client/script.react-server.js",
|
|
61
|
+
"types": "./dist/client/script.d.ts",
|
|
62
|
+
"default": "./dist/client/script.js"
|
|
63
|
+
},
|
|
64
|
+
"./font": {
|
|
65
|
+
"types": "./dist/font/index.d.ts",
|
|
66
|
+
"default": "./dist/font/index.js"
|
|
67
|
+
},
|
|
68
|
+
"./font/google": {
|
|
69
|
+
"types": "./dist/font/google.d.ts",
|
|
70
|
+
"default": "./dist/font/google.js"
|
|
71
|
+
},
|
|
72
|
+
"./font/local": {
|
|
73
|
+
"types": "./dist/font/local.d.ts",
|
|
74
|
+
"default": "./dist/font/local.js"
|
|
75
|
+
},
|
|
76
|
+
"./theme": {
|
|
77
|
+
"react-server": "./dist/theme/react-server.js",
|
|
78
|
+
"types": "./dist/theme/index.d.ts",
|
|
79
|
+
"default": "./dist/theme/index.js"
|
|
80
|
+
},
|
|
81
|
+
"./head": {
|
|
82
|
+
"react-server": "./dist/client/head.react-server.js",
|
|
83
|
+
"types": "./dist/client/head.d.ts",
|
|
84
|
+
"default": "./dist/client/head.js"
|
|
85
|
+
},
|
|
86
|
+
"./config": {
|
|
87
|
+
"types": "./dist/config.d.ts",
|
|
88
|
+
"default": "./dist/config.js"
|
|
89
|
+
},
|
|
90
|
+
"./auth": {
|
|
91
|
+
"types": "./dist/auth/index.d.ts",
|
|
92
|
+
"default": "./dist/auth/index.js"
|
|
93
|
+
},
|
|
94
|
+
"./auth/react": {
|
|
95
|
+
"react-server": "./dist/auth/react-server.js",
|
|
96
|
+
"types": "./dist/auth/react.d.ts",
|
|
97
|
+
"default": "./dist/auth/react.js"
|
|
98
|
+
},
|
|
99
|
+
"./ai": {
|
|
100
|
+
"types": "./dist/ai/index.d.ts",
|
|
101
|
+
"default": "./dist/ai/index.js"
|
|
102
|
+
},
|
|
103
|
+
"./ai/react": {
|
|
104
|
+
"react-server": "./dist/ai/react/react-server.js",
|
|
105
|
+
"types": "./dist/ai/react/index.d.ts",
|
|
106
|
+
"default": "./dist/ai/react/index.js"
|
|
107
|
+
},
|
|
108
|
+
"./stack": {
|
|
109
|
+
"types": "./dist/stack/index.d.ts",
|
|
110
|
+
"default": "./dist/stack/index.js"
|
|
111
|
+
},
|
|
112
|
+
"./stack/client": {
|
|
113
|
+
"types": "./dist/stack/client/index.d.ts",
|
|
114
|
+
"default": "./dist/stack/client/index.js"
|
|
115
|
+
},
|
|
116
|
+
"./client/rsc-router": {
|
|
117
|
+
"react-server": "./dist/client/rsc-router.react-server.js",
|
|
118
|
+
"types": "./dist/client/rsc-router.d.ts",
|
|
119
|
+
"default": "./dist/client/rsc-router.js"
|
|
120
|
+
},
|
|
121
|
+
"./client/server-actions": {
|
|
122
|
+
"types": "./dist/client/server-actions.d.ts",
|
|
123
|
+
"default": "./dist/client/server-actions.js"
|
|
124
|
+
},
|
|
125
|
+
"./server": {
|
|
126
|
+
"types": "./dist/server/index.d.ts",
|
|
127
|
+
"default": "./dist/server/index.js"
|
|
128
|
+
},
|
|
129
|
+
"./server/runtime-actions": {
|
|
130
|
+
"types": "./dist/server/runtime-actions.d.ts",
|
|
131
|
+
"default": "./dist/server/runtime-actions.js"
|
|
132
|
+
},
|
|
133
|
+
"./cache": {
|
|
134
|
+
"types": "./dist/server/cache.d.ts",
|
|
135
|
+
"default": "./dist/server/cache.js"
|
|
136
|
+
},
|
|
137
|
+
"./package.json": "./package.json"
|
|
138
|
+
},
|
|
139
|
+
"bin": {
|
|
140
|
+
"vista": "bin/vista.js"
|
|
141
|
+
},
|
|
142
|
+
"publishConfig": {
|
|
143
|
+
"access": "public"
|
|
144
|
+
},
|
|
145
|
+
"scripts": {
|
|
146
|
+
"build": "tsc"
|
|
147
|
+
},
|
|
148
|
+
"dependencies": {
|
|
149
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
|
150
|
+
"@swc-node/register": "^1.9.0",
|
|
151
|
+
"@swc/core": "^1.4.0",
|
|
152
|
+
"chokidar": "^3.6.0",
|
|
153
|
+
"css-loader": "^7.1.2",
|
|
154
|
+
"esbuild": "^0.24.2",
|
|
155
|
+
"express": "^4.21.2",
|
|
156
|
+
"mini-css-extract-plugin": "^2.9.4",
|
|
157
|
+
"null-loader": "^4.0.1",
|
|
158
|
+
"react": "^19.0.0",
|
|
159
|
+
"react-dom": "^19.0.0",
|
|
160
|
+
"react-refresh": "^0.14.0",
|
|
161
|
+
"react-server-dom-webpack": "^19.0.0",
|
|
162
|
+
"swc-loader": "^0.2.6",
|
|
163
|
+
"ts-node": "^10.9.2",
|
|
164
|
+
"webpack": "^5.90.0",
|
|
165
|
+
"webpack-dev-middleware": "^7.0.0",
|
|
166
|
+
"webpack-hot-middleware": "^2.26.0"
|
|
167
|
+
},
|
|
168
|
+
"devDependencies": {
|
|
169
|
+
"@types/express": "^5.0.0",
|
|
170
|
+
"@types/node": "^22.10.2",
|
|
171
|
+
"@types/react": "^19.0.1",
|
|
172
|
+
"@types/react-dom": "^19.0.2",
|
|
173
|
+
"@types/webpack": "^5.28.5",
|
|
174
|
+
"@types/webpack-hot-middleware": "^2.25.9",
|
|
175
|
+
"typescript": "^5.7.2"
|
|
176
|
+
},
|
|
177
|
+
"gitHead": "d1b9f715d6365d8e1f553e96b752fbce8d98df7c"
|
|
178
|
+
}
|