@uniweb/build 0.71.0 → 0.72.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 +8 -8
  2. package/src/uwx/site.js +6 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/build",
3
- "version": "0.71.0",
3
+ "version": "0.72.0",
4
4
  "description": "Build tooling for the Uniweb Component Web Platform",
5
5
  "type": "module",
6
6
  "exports": {
@@ -57,15 +57,15 @@
57
57
  "js-yaml": "^4.1.0",
58
58
  "sharp": "^0.35.3",
59
59
  "yaml": "^2.5.0",
60
+ "@uniweb/content-reader": "^1.2.7",
60
61
  "@uniweb/content-writer": "^0.3.4",
62
+ "@uniweb/projections": "^0.7.11",
61
63
  "@uniweb/semantic-parser": "^1.4.1",
62
- "@uniweb/projections": "^0.7.10",
63
- "@uniweb/theming": "^0.1.16",
64
- "@uniweb/content-reader": "^1.2.7",
65
- "@uniweb/schemas": "^0.9.1"
64
+ "@uniweb/schemas": "^0.9.1",
65
+ "@uniweb/theming": "^0.2.0"
66
66
  },
67
67
  "optionalDependencies": {
68
- "@uniweb/runtime": "^0.28.1"
68
+ "@uniweb/runtime": "^0.28.3"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
@@ -74,8 +74,8 @@
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.34.0",
78
- "@uniweb/runtime": "^0.28.1"
77
+ "@uniweb/core": "^0.35.0",
78
+ "@uniweb/runtime": "^0.28.3"
79
79
  },
80
80
  "peerDependenciesMeta": {
81
81
  "vite": {
package/src/uwx/site.js CHANGED
@@ -303,8 +303,10 @@ function localizePageMeta(page, route, sourceLocale, translations) {
303
303
  function mapSectionData(section) {
304
304
  const params = { ...section.params }
305
305
  // ⭐ The section's own data rides in `params.fetch` [Diego, 2026-09-28] — nothing on a store's
306
- // side acts on it by name. ⚠️ Also sent as the `fetch` field it had until then, until an
307
- // editor's reader looks in `params.fetch` (uwx-format.md § A page section's fields).
306
+ // side acts on it by name, and every reader looks there first: core since 0.34.0 (runtime
307
+ // 0.28.1, the least a site publishes at), and an editor. ⛔ Until 2026-09-28 it was also sent as
308
+ // the `fetch` field beside the params, equal; a pull still reads a stored field where `params`
309
+ // has no `fetch` (`sectionRecordToFile`). uwx-format.md § A page section's fields.
308
310
  if (section.fetch) params.fetch = section.fetch
309
311
  const data = { type: section.type || FILLED_SECTION_TYPE } // entity type requires `type`
310
312
  setIf(data, 'stable_id', section.stableId ?? undefined)
@@ -313,14 +315,10 @@ function mapSectionData(section) {
313
315
  // No `preset` or `input`: nothing read either, and the collector drops them (2026-09-27).
314
316
  // ⭐ `background` and `theme` ride IN `params` [Diego, 2026-09-28] — where the runtime reads
315
317
  // them, and where a section stores them. ⛔ Not also as the `background` / `theme_override`
316
- // fields, as build 0.69 sent them: every reader of a stored section reads `params` — a publish
317
- // carries `params` whole, and the app reads a stored field first, then `params` — so nothing
318
- // needs them, and a push that stops sending them lets a backend retire them without refusing
319
- // it. A pull still prefers a stored field while one exists (`sectionRecordToFile`).
320
- // uwx-format.md § A page section's fields, Order.
318
+ // fields, as build 0.69 sent them: every reader of a stored section reads `params`, and the
319
+ // site-content Model no longer has either field. uwx-format.md § A page section's fields.
321
320
  if (Object.keys(params).length > 0) data.params = params
322
321
  data.content = section.content // leaf insets in it as written — no `insets` field since 2026-09-27
323
- setIf(data, 'fetch', section.fetch ?? undefined)
324
322
  return data
325
323
  }
326
324