@uniweb/runtime 0.8.42 → 0.9.0

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/setup.js +10 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/runtime",
3
- "version": "0.8.42",
3
+ "version": "0.9.0",
4
4
  "description": "Minimal runtime for loading Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -35,7 +35,7 @@
35
35
  "node": ">=20.19"
36
36
  },
37
37
  "dependencies": {
38
- "@uniweb/core": "0.7.34",
38
+ "@uniweb/core": "0.8.0",
39
39
  "@uniweb/theming": "0.1.15"
40
40
  },
41
41
  "devDependencies": {
@@ -43,7 +43,7 @@
43
43
  "esbuild": "^0.21.0 || ^0.23.0 || ^0.24.0 || ^0.25.0 || ^0.27.0",
44
44
  "vite": "^7.3.1",
45
45
  "vitest": "^4.1.7",
46
- "@uniweb/build": "0.15.13"
46
+ "@uniweb/build": "0.15.14"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react": "^19.0.0",
package/src/setup.js CHANGED
@@ -218,11 +218,16 @@ function createIconResolver(iconConfig = {}) {
218
218
 
219
219
  function buildDefaultFetcher(content) {
220
220
  // Base for resolving local absolute paths (e.g. /data/*.json). Prefer the base
221
- // the PAYLOAD carries (`content.config.base`) — a backend-hosted SPA is served
222
- // under a subpath the payload declares (e.g. /gateway/site/<uuid>/) that the
223
- // gateway-delivered runtime bundle can't know via Vite's build-time BASE_URL.
224
- // This is the SAME base routing uses; without it local fetches hit the origin
225
- // root and 404. Falls back to Vite's BASE_URL for a statically built site.
221
+ // the PAYLOAD carries (`content.config.base`) — a host-served SPA runs under
222
+ // whatever subpath its host declares, which a host-delivered runtime bundle
223
+ // cannot know from Vite's build-time BASE_URL. This is the SAME base routing
224
+ // uses; without it local fetches hit the origin root and 404. Falls back to
225
+ // Vite's BASE_URL for a statically built site.
226
+ //
227
+ // The runtime models NO host route shape, and must not start: every request it
228
+ // makes is `{base}/…` against a base it was handed. That is what lets a host
229
+ // serve data wherever it likes — including intercepting a site-local path and
230
+ // proxying it onward — with no framework change.
226
231
  const basePath = content?.config?.base || import.meta.env?.BASE_URL || ''
227
232
  // Per-site transport config from `site.yml fetcher:`. The default fetcher
228
233
  // recognizes `baseUrl` and `envelope`; foundations with their own fetchers