@uniweb/build 1.14.4 → 1.15.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/build",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.1",
|
|
4
4
|
"description": "Build tooling for the Uniweb Component Web Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
"js-yaml": "^4.3.2",
|
|
57
57
|
"sharp": "^0.35.5",
|
|
58
58
|
"yaml": "^2.5.0",
|
|
59
|
-
"@uniweb/schemas": "~1.6.7",
|
|
60
59
|
"@uniweb/content-reader": "~1.5.8",
|
|
61
60
|
"@uniweb/theming": "~1.2.1",
|
|
61
|
+
"@uniweb/projections": "~1.2.11",
|
|
62
|
+
"@uniweb/schemas": "~1.6.7",
|
|
62
63
|
"@uniweb/semantic-parser": "~1.13.2",
|
|
63
|
-
"@uniweb/projections": "~1.2.10",
|
|
64
64
|
"@uniweb/content-writer": "~1.3.1"
|
|
65
65
|
},
|
|
66
66
|
"optionalDependencies": {
|
|
67
|
-
"@uniweb/runtime": "~1.
|
|
67
|
+
"@uniweb/runtime": "~1.4.1"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"@tailwindcss/vite": "^4.0.0",
|
|
74
74
|
"@vitejs/plugin-react": "^4.0.0 || ^5.0.0",
|
|
75
75
|
"vite-plugin-svgr": "^4.0.0",
|
|
76
|
-
"@uniweb/core": "~1.6.
|
|
77
|
-
"@uniweb/runtime": "~1.
|
|
76
|
+
"@uniweb/core": "~1.6.2",
|
|
77
|
+
"@uniweb/runtime": "~1.4.1"
|
|
78
78
|
},
|
|
79
79
|
"peerDependenciesMeta": {
|
|
80
80
|
"vite": {
|
package/src/import-map-plugin.js
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* named re-exports, and injects a <script type="importmap"> into the HTML.
|
|
10
10
|
*
|
|
11
11
|
* Used by:
|
|
12
|
-
* - Site builds (runtime mode + extensions) —
|
|
13
|
-
* - Runtime shell build —
|
|
12
|
+
* - Site builds (runtime mode + extensions) — src/site/config.js
|
|
13
|
+
* - Runtime shell build — @uniweb/runtime's vite.config.app.js
|
|
14
14
|
* - An authoring tool's live preview — its own runtime build
|
|
15
15
|
*
|
|
16
16
|
* @module @uniweb/build/import-map-plugin
|
package/src/prerender.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
deriveCacheKey,
|
|
24
24
|
evaluateQuery,
|
|
25
25
|
} from '@uniweb/core'
|
|
26
|
-
import { recordTitle, recordImage, routePatternToRegex, routeFieldOf } from '@uniweb/core/route-match'
|
|
26
|
+
import { isDynamicRoute, recordTitle, recordImage, routePatternToRegex, routeFieldOf } from '@uniweb/core/route-match'
|
|
27
27
|
import DataStore from '@uniweb/core/datastore'
|
|
28
28
|
import { executeFetch, mergeDataIntoContent, toFetchList } from './site/data-fetcher.js'
|
|
29
29
|
import { createFileTransport } from './site/file-transport.js'
|
|
@@ -1031,7 +1031,7 @@ export async function prerenderSite(siteDir, options = {}) {
|
|
|
1031
1031
|
for (const page of website.pages) {
|
|
1032
1032
|
// Skip dynamic template pages — they exist in the content for runtime
|
|
1033
1033
|
// route matching but can't be pre-rendered (no concrete route)
|
|
1034
|
-
if (page.route
|
|
1034
|
+
if (isDynamicRoute(page.route)) continue
|
|
1035
1035
|
|
|
1036
1036
|
// Build the output route with locale prefix
|
|
1037
1037
|
// For non-default locales, translate route slugs (e.g., /about → /acerca-de)
|
package/src/runtime-schema.js
CHANGED
|
@@ -256,8 +256,8 @@ export function extractLayoutRuntimeSchema(fullMeta) {
|
|
|
256
256
|
// ⛔ No `areas`: the areas a page renders are its site's `layout/` folder
|
|
257
257
|
// (`Website.getLayoutAreas`), and a layout's list of them is for the editor.
|
|
258
258
|
|
|
259
|
-
// `false` is a value, not an absence: it is the documented way a layout
|
|
260
|
-
//
|
|
259
|
+
// `false` is a value, not an absence: it is the documented way a layout gives
|
|
260
|
+
// up its body's wrapper along with any name. The previous guard was
|
|
261
261
|
// `fullMeta.transitions && typeof … === 'object'`, which is false for `false`
|
|
262
262
|
// — so the opt-out was dropped here and never reached the runtime, even
|
|
263
263
|
// though `resolveLayoutTransitions` has always handled it. Same for `layers`.
|
|
@@ -61,9 +61,10 @@ let _buildingSSRBundle = false
|
|
|
61
61
|
* Emit dist/runtime-pin.json declaring the @uniweb/runtime version this
|
|
62
62
|
* foundation was built against.
|
|
63
63
|
*
|
|
64
|
-
* ⛔ **NOTHING
|
|
65
|
-
* with the foundation (as `info.runtime`), so the floor reaches a
|
|
66
|
-
*
|
|
64
|
+
* ⛔ **THE FRAMEWORK CHECKS NOTHING AGAINST IT.** `uniweb register` reads the pin
|
|
65
|
+
* and carries it with the foundation (as `info.runtime`), so the floor reaches a
|
|
66
|
+
* party that can act on it, and what that party does is its own to say. This
|
|
67
|
+
* header previously said a
|
|
67
68
|
* server-side isolate read the pin to pick which runtime to side-load, and that
|
|
68
69
|
* a "semver resolver" applied the policy. Neither existed, and for a while the
|
|
69
70
|
* pin was written and read by nothing at all. The wrong version had reached
|
|
@@ -121,13 +122,15 @@ let _buildingSSRBundle = false
|
|
|
121
122
|
* core. So this is the designated home for the answer; nothing has asked for the
|
|
122
123
|
* answer yet.
|
|
123
124
|
*
|
|
124
|
-
* ⇒ **
|
|
125
|
-
*
|
|
125
|
+
* ⇒ **What would give it a consumer:**
|
|
126
|
+
* the runtime declaring what it supplies — replacing today's `>=` version
|
|
126
127
|
* compare, which is a proxy that holds only while the runtime's version number
|
|
127
|
-
* tracks its externals contract
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
128
|
+
* tracks its externals contract. Until then, delivering `policy` would add a field
|
|
129
|
+
* compared against a number already known to be a stand-in.
|
|
130
|
+
* ⚠️ A publish path consulting floors was the other event named here, and it has
|
|
131
|
+
* happened: a backend's publish takes the floor into account (the backend's own
|
|
132
|
+
* measurement, 2026-08-25), and `policy` has not been re-opened since.
|
|
133
|
+
* **Do not wire it, and do not remove it, without re-opening that.**
|
|
131
134
|
*
|
|
132
135
|
* @param {string} outDir - dist/ directory to write to.
|
|
133
136
|
* @param {string} projectRoot - foundation project root (where package.json lives).
|