@uniweb/unipress 0.9.2 → 0.9.3

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/unipress",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Compile a content directory into a document (PDF, EPUB, Paged.js HTML, Typst source bundle, DOCX, XLSX) using a Uniweb foundation. Five built-in templates: book, monograph, report, data-report, directory.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -49,11 +49,11 @@
49
49
  "prompts": "^2.4.2",
50
50
  "react": "^19.0.0",
51
51
  "react-dom": "^19.0.0",
52
- "@uniweb/build": "^0.35.0",
53
- "@uniweb/content-reader": "^1.2.4",
54
- "@uniweb/runtime": "^0.13.7",
52
+ "@uniweb/build": "^0.36.0",
53
+ "@uniweb/runtime": "^0.14.0",
54
+ "@uniweb/core": "^0.19.0",
55
55
  "@uniweb/semantic-parser": "^1.4.0",
56
- "@uniweb/core": "^0.18.0"
56
+ "@uniweb/content-reader": "^1.2.4"
57
57
  },
58
58
  "devDependencies": {
59
59
  "vitest": "^4.1.7"
@@ -35,7 +35,7 @@ function attachData(section, key, data) {
35
35
  function findQueryRecords(fetchConfig, resolved) {
36
36
  // `as` is the binding key; `schema` is its pre-2026-09-02 name, still on any
37
37
  // payload written before then.
38
- if (!fetchConfig?.path || !(fetchConfig.as ?? fetchConfig.schema)) return null
38
+ if (!fetchConfig?.path || !fetchConfig.as) return null
39
39
  const m = COLLECTION_PATH_RE.exec(fetchConfig.path)
40
40
  if (!m) return null
41
41
  const records = resolved[m[1]]
@@ -54,7 +54,7 @@ function attachSectionFetches(sections, resolved, cascade = null) {
54
54
  if (!Array.isArray(sections)) return
55
55
  for (const section of sections) {
56
56
  const records = findQueryRecords(section.fetch, resolved)
57
- if (records) attachData(section, section.fetch.as ?? section.fetch.schema, records)
57
+ if (records) attachData(section, section.fetch.as, records)
58
58
  if (cascade) attachData(section, cascade.key, cascade.records)
59
59
  if (Array.isArray(section.subsections) && section.subsections.length) {
60
60
  attachSectionFetches(section.subsections, resolved, cascade)
@@ -122,7 +122,7 @@ async function resolveLocalQueries(siteContent, sitePath) {
122
122
  // section tree; a section's own fetch still takes priority.
123
123
  const pageRecords = findQueryRecords(page.fetch, resolved)
124
124
  const cascade = pageRecords
125
- ? { key: page.fetch.as ?? page.fetch.schema, records: pageRecords }
125
+ ? { key: page.fetch.as, records: pageRecords }
126
126
  : null
127
127
  attachSectionFetches(page.sections, resolved, cascade)
128
128
  }