@uniweb/core 1.6.13 → 1.6.15
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 +3 -3
- package/src/entity-store.js +7 -1
- package/src/website.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/core",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.15",
|
|
4
4
|
"description": "Core classes for the Uniweb platform - Uniweb, Website, Page, Block",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"vitest": "^4.1.7"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@uniweb/
|
|
57
|
-
"@uniweb/
|
|
56
|
+
"@uniweb/theming": "~1.3.3",
|
|
57
|
+
"@uniweb/semantic-parser": "~1.13.6"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"test": "vitest run"
|
package/src/entity-store.js
CHANGED
|
@@ -216,7 +216,13 @@ export default class EntityStore {
|
|
|
216
216
|
dispatch: (request) => dispatcher.dispatch(request, ctx),
|
|
217
217
|
// What the plan uses without asking, when it is held (`keyProgram`'s held steps).
|
|
218
218
|
peek: (request) => dispatcher.peek?.(request, ctx),
|
|
219
|
-
|
|
219
|
+
// ⛔ A fetch its caller cancelled did not fail: its caller drops the answer. Under `uniweb dev`
|
|
220
|
+
// React's StrictMode mounts a block twice and cancels the first mount's fetch, so until
|
|
221
|
+
// 2026-11-22 every such block logged "failed …: aborted" while it rendered, and, the log being
|
|
222
|
+
// once per key per page, a real failure of the second mount then said nothing.
|
|
223
|
+
onFailure: (key, cfg, message) => {
|
|
224
|
+
if (!signal?.aborted) reportFetchFailure(this.dev, block, key, cfg, message)
|
|
225
|
+
},
|
|
220
226
|
})
|
|
221
227
|
|
|
222
228
|
this._applyRecordRoutes(data, this._configs(fills), block.website)
|
package/src/website.js
CHANGED
|
@@ -994,7 +994,11 @@ export default class Website {
|
|
|
994
994
|
}
|
|
995
995
|
return null
|
|
996
996
|
}
|
|
997
|
-
|
|
997
|
+
// A static build's payload holds one concrete page per record, each a copy of the template
|
|
998
|
+
// with its id, and no template (`recordPageFor` above reads it the same way): the template's
|
|
999
|
+
// route is the one each record's link fills. ⛔ Until 2026-11-22 this returned the route of
|
|
1000
|
+
// whichever copy the id map held last, and every record linked to that one record's page.
|
|
1001
|
+
return this.translateRoute(page.dynamicContext?.templateRoute ?? page.route)
|
|
998
1002
|
}
|
|
999
1003
|
|
|
1000
1004
|
/**
|