@uniweb/core 0.29.6 → 0.29.8
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 +1 -1
- package/src/data-paths.js +2 -2
- package/src/fetch-config.js +1 -1
- package/src/route-match.js +1 -1
- package/src/scope.js +1 -1
package/package.json
CHANGED
package/src/data-paths.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* ⚠️ `<name>` IS A QUERY'S NAME. `/data/<name>.json` is a named query's
|
|
6
6
|
* MATERIALIZATION — the answer when no host declares a live lane — and never the
|
|
7
|
-
* definition of anything. The records themselves
|
|
8
|
-
*
|
|
7
|
+
* definition of anything. The records themselves are the files in
|
|
8
|
+
* `records/{schema}/` — every file there is one.
|
|
9
9
|
*
|
|
10
10
|
* Why this module exists. The path `/data/<name>.json` was a bare string
|
|
11
11
|
* literal in six places across three packages: the build wrote it
|
package/src/fetch-config.js
CHANGED
|
@@ -684,7 +684,7 @@ function bindWhere(where, variables) {
|
|
|
684
684
|
/**
|
|
685
685
|
* ⭐ `scope:` IS ITS OWN FIELD, on both lanes. The service takes it natively; on
|
|
686
686
|
* the compiled file the evaluators apply it to each record's placement (`path`,
|
|
687
|
-
* the folder `records.yml` put it in) — `@uniweb/core`'s `applyScope`, the one the
|
|
687
|
+
* the folder `records/folder.yml` put it in) — `@uniweb/core`'s `applyScope`, the one the
|
|
688
688
|
* build uses too. ⛔ Until 2026-09-11 it was folded here into
|
|
689
689
|
* `where: { path: { under } }`, an authored form that is now retired in its
|
|
690
690
|
* favour [Diego]: a branch is a scope, and `where` stays the author's predicate.
|
package/src/route-match.js
CHANGED
|
@@ -539,7 +539,7 @@ export function fillRoutePattern(pattern, values) {
|
|
|
539
539
|
// A catch-all is filled from the record's placement and handle — the split
|
|
540
540
|
// rule in reverse (`joinPathCapture`) — with each SEGMENT encoded and the
|
|
541
541
|
// slashes between them kept as structure. `dir` is the placement; a record
|
|
542
|
-
// carries it as `path` (the folder `records.yml` put it in), which is why
|
|
542
|
+
// carries it as `path` (the folder `records/folder.yml` put it in), which is why
|
|
543
543
|
// `path` here is read as the DIRECTORY and never as a composed capture.
|
|
544
544
|
const handle = recordHandle(values)
|
|
545
545
|
if (joinPathCapture({ dir: values.dir ?? values.path, slug: handle }) === null) return null
|
package/src/scope.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* A query's `scope:` — the folder branch it reads — evaluated over records that
|
|
3
3
|
* carry their placement.
|
|
4
4
|
*
|
|
5
|
-
* A record's `path` is the folder `records.yml` placed it in (`build/src/site/
|
|
5
|
+
* A record's `path` is the folder `records/folder.yml` placed it in (`build/src/site/
|
|
6
6
|
* query-processor.js`). A scope contains that folder and every folder below it, at
|
|
7
7
|
* SEGMENT boundaries: `field` holds `field` and `field/2025`, never `fieldwork`.
|
|
8
8
|
* The root (`''`) holds everything.
|