@uniweb/build 0.52.0 → 0.52.1
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 +7 -7
- package/src/prerender.js +6 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/build",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.1",
|
|
4
4
|
"description": "Build tooling for the Uniweb Component Web Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"sharp": "^0.35.3",
|
|
59
59
|
"yaml": "^2.5.0",
|
|
60
60
|
"@uniweb/content-reader": "^1.2.5",
|
|
61
|
-
"@uniweb/
|
|
62
|
-
"@uniweb/
|
|
63
|
-
"@uniweb/projections": "^0.7.2",
|
|
61
|
+
"@uniweb/content-writer": "^0.3.4",
|
|
62
|
+
"@uniweb/projections": "^0.7.3",
|
|
64
63
|
"@uniweb/semantic-parser": "^1.4.0",
|
|
65
|
-
"@uniweb/
|
|
64
|
+
"@uniweb/schemas": "^0.2.13",
|
|
65
|
+
"@uniweb/theming": "^0.1.15"
|
|
66
66
|
},
|
|
67
67
|
"optionalDependencies": {
|
|
68
|
-
"@uniweb/runtime": "^0.26.
|
|
68
|
+
"@uniweb/runtime": "^0.26.2"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@tailwindcss/vite": "^4.0.0",
|
|
75
75
|
"@vitejs/plugin-react": "^4.0.0 || ^5.0.0",
|
|
76
76
|
"vite-plugin-svgr": "^4.0.0",
|
|
77
|
-
"@uniweb/core": "^0.29.
|
|
77
|
+
"@uniweb/core": "^0.29.3"
|
|
78
78
|
},
|
|
79
79
|
"peerDependenciesMeta": {
|
|
80
80
|
"vite": {
|
package/src/prerender.js
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
deriveCacheKey,
|
|
25
25
|
evaluateQuery,
|
|
26
26
|
} from '@uniweb/core'
|
|
27
|
-
import { routePatternToRegex } from '@uniweb/core/route-match'
|
|
27
|
+
import { recordTitle, routePatternToRegex } from '@uniweb/core/route-match'
|
|
28
28
|
import { executeFetch, mergeDataIntoContent, toFetchList } from './site/data-fetcher.js'
|
|
29
29
|
import { shouldSplitContent } from './site/split-content.js'
|
|
30
30
|
import { FONT_LINKS_MARKER } from './site/head-markers.js'
|
|
@@ -458,8 +458,11 @@ export function expandDynamicPages(pages, fetched, onProgress = () => {}, stats
|
|
|
458
458
|
paramValue: binding.paramValue,
|
|
459
459
|
}
|
|
460
460
|
|
|
461
|
-
//
|
|
462
|
-
|
|
461
|
+
// The record names the page by the rule the SPA and the search index read
|
|
462
|
+
// (`recordTitle`: `title`, `name`, then its handle). ⛔ Until 2026-09-14 this read
|
|
463
|
+
// `title` alone, so a person record's page kept the template's own title.
|
|
464
|
+
const title = recordTitle(item)
|
|
465
|
+
if (title) concretePage.title = title
|
|
463
466
|
if (item.description || item.excerpt) concretePage.description = item.description || item.excerpt
|
|
464
467
|
|
|
465
468
|
expandedPages.push(concretePage)
|