rari 0.5.27 → 0.5.28
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/package.json +6 -6
- package/src/runtime/entry-client.js +11 -22
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rari",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.28",
|
|
5
5
|
"description": "Runtime Accelerated Rendering Infrastructure (Rari)",
|
|
6
6
|
"author": "Ryan Skinner",
|
|
7
7
|
"license": "MIT",
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
"picocolors": "^1.1.1"
|
|
90
90
|
},
|
|
91
91
|
"optionalDependencies": {
|
|
92
|
-
"rari-darwin-arm64": "0.5.
|
|
93
|
-
"rari-darwin-x64": "0.5.
|
|
94
|
-
"rari-linux-arm64": "0.5.
|
|
95
|
-
"rari-linux-x64": "0.5.
|
|
96
|
-
"rari-win32-x64": "0.5.
|
|
92
|
+
"rari-darwin-arm64": "0.5.22",
|
|
93
|
+
"rari-darwin-x64": "0.5.22",
|
|
94
|
+
"rari-linux-arm64": "0.5.22",
|
|
95
|
+
"rari-linux-x64": "0.5.22",
|
|
96
|
+
"rari-win32-x64": "0.5.22"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@types/node": "^25.0.3",
|
|
@@ -80,11 +80,9 @@ export async function renderApp() {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
let contentToRender
|
|
83
|
-
let hasProviders = false
|
|
84
83
|
|
|
85
84
|
if (payloadScript && element) {
|
|
86
85
|
contentToRender = element
|
|
87
|
-
hasProviders = true
|
|
88
86
|
}
|
|
89
87
|
else if (isFullDocument) {
|
|
90
88
|
const bodyContent = extractBodyContent(element, false)
|
|
@@ -102,26 +100,17 @@ export async function renderApp() {
|
|
|
102
100
|
|
|
103
101
|
let wrappedContent
|
|
104
102
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
contentToRender,
|
|
117
|
-
)
|
|
118
|
-
|
|
119
|
-
wrappedContent = React.createElement(
|
|
120
|
-
ClientRouter,
|
|
121
|
-
{ initialRoute: window.location.pathname },
|
|
122
|
-
wrappedContent,
|
|
123
|
-
)
|
|
124
|
-
}
|
|
103
|
+
wrappedContent = React.createElement(
|
|
104
|
+
AppRouterProvider,
|
|
105
|
+
{ initialPayload: { element } },
|
|
106
|
+
contentToRender,
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
wrappedContent = React.createElement(
|
|
110
|
+
ClientRouter,
|
|
111
|
+
{ initialRoute: window.location.pathname },
|
|
112
|
+
wrappedContent,
|
|
113
|
+
)
|
|
125
114
|
|
|
126
115
|
const root = createRoot(rootElement)
|
|
127
116
|
root.render(wrappedContent)
|