@inixiative/json-rules 3.1.0 → 3.1.1
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/README.md +4 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1166,7 +1166,10 @@ mapDefaults: {
|
|
|
1166
1166
|
model>].sources[<field>]` — and takes that source's eligibility (tenancy included), label and
|
|
1167
1167
|
axes; its own `where`, and child layers, only narrow it. Nothing is carried from the path above.
|
|
1168
1168
|
A pointer whose model declares no source fails `validateNarrowing` (`invalid_source`) and throws
|
|
1169
|
-
from `projectLens` / `toSourceQueries
|
|
1169
|
+
from `projectLens` (by path) / `toSourceQueries` / `materializeSources`; `projectLens(…, { by:
|
|
1170
|
+
'model' })` and `describeRuleSources` read the lens without validating it. A pointer drops the
|
|
1171
|
+
path's carried grants from the layer that declares it on, so a tenant layer added *after* a pointer
|
|
1172
|
+
scopes it through `mapDefaults` (the model's own grant or source), not a root `where`. Across a bridge it is how a picker gets options at all: the
|
|
1170
1173
|
model source compiles against the far map alone, with that map's own tenancy, where a path source
|
|
1171
1174
|
offers nothing. `materializeSources` refuses a pointer — a fetched collection can't hold unlinked
|
|
1172
1175
|
rows; query it with `toSourceQueries` and `materializeSourceQuery`.
|