@uniweb/kit 0.13.7 → 0.14.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/kit",
3
- "version": "0.13.7",
3
+ "version": "0.14.0",
4
4
  "description": "Standard component library for Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -113,7 +113,14 @@ function normalize(raw) {
113
113
  component: raw?.component ?? null,
114
114
  snippetText: raw?.snippetText ?? null,
115
115
  matches: raw?.matches ?? null,
116
- collection: raw?.collection ?? null,
116
+ // ⭐ `group` — the named set a record came from, renamed from `collection`
117
+ // 2026-08-27 with @uniweb/projections. "Collection" is framework's BUILD
118
+ // concept; a hosted site's records come from a folder and have no collection,
119
+ // so the word did not survive the lane it was travelling into.
120
+ // ⚠️ `collection` is still read as a fallback: a search index is a PUBLISHED
121
+ // ARTIFACT, and a site that has not rebuilt since the rename is still serving
122
+ // the old key. Dropping it would blank the field for every such site.
123
+ group: raw?.group ?? raw?.collection ?? null,
117
124
  item: raw?.item ?? null
118
125
  }
119
126
  }
@@ -58,7 +58,7 @@ export function emptyResult() {
58
58
  // Match ranges, when the provider scores locally and can report them.
59
59
  matches: null,
60
60
  // Collection provenance, when the hit is a record rather than a page.
61
- collection: null,
61
+ group: null,
62
62
  item: null
63
63
  }
64
64
  }