@uniweb/runtime 1.3.5 → 1.3.6
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/ssr.js +2 -1
- package/dist/ssr.js.map +1 -1
- package/package.json +3 -3
- package/src/ssr-renderer.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/runtime",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"description": "Minimal runtime for loading Uniweb foundations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"node": ">=22.12"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@uniweb/core": "~1.5.
|
|
39
|
+
"@uniweb/core": "~1.5.2",
|
|
40
40
|
"@uniweb/theming": "~1.2.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"esbuild": "^0.21.0 || ^0.23.0 || ^0.24.0 || ^0.25.0 || ^0.27.0 || ^0.28.0",
|
|
45
45
|
"vite": "^7.3.1",
|
|
46
46
|
"vitest": "^4.1.7",
|
|
47
|
-
"@uniweb/build": "1.13.
|
|
47
|
+
"@uniweb/build": "1.13.8"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react": "^19.0.0",
|
package/src/ssr-renderer.js
CHANGED
|
@@ -438,10 +438,11 @@ export function initPrerender(content, foundation, extensionsOrOptions, maybeOpt
|
|
|
438
438
|
* @param {Object} siteContent - Site content JSON (mutated: _iconCache added)
|
|
439
439
|
* @param {Object} uniweb - Configured uniweb instance
|
|
440
440
|
* @param {function} [onProgress] - Progress callback
|
|
441
|
+
* @returns {Promise<string[]>} the references that could not be fetched
|
|
441
442
|
*/
|
|
442
443
|
export async function prefetchIcons(siteContent, uniweb, onProgress = () => {}) {
|
|
443
444
|
const icons = siteContent.icons?.used || []
|
|
444
|
-
if (icons.length === 0) return
|
|
445
|
+
if (icons.length === 0) return []
|
|
445
446
|
|
|
446
447
|
const cdnBase = siteContent.config?.icons?.base || DEFAULT_ICON_BASE
|
|
447
448
|
|
|
@@ -479,6 +480,7 @@ export async function prefetchIcons(siteContent, uniweb, onProgress = () => {})
|
|
|
479
480
|
if (uniweb.iconCache.size > 0) {
|
|
480
481
|
siteContent._iconCache = Object.fromEntries(uniweb.iconCache)
|
|
481
482
|
}
|
|
483
|
+
return failedRefs
|
|
482
484
|
}
|
|
483
485
|
|
|
484
486
|
// ============================================================================
|