@metaobjectsdev/render 1.0.5-rc.6 → 1.0.5-rc.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.
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
// `hasAbilities` follows from it. Declaring both would let them disagree.
|
|
7
7
|
//
|
|
8
8
|
// THE RULE IS SHARED ON PURPOSE. The JVM has carried this since 7.7.7
|
|
9
|
-
// (`com.metaobjects.render.PayloadAccessors`,
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
// apart". TypeScript had neither half, which is why the same template verified clean
|
|
9
|
+
// (`com.metaobjects.render.PayloadAccessors`, accepted by `render.Verify`; it was once
|
|
10
|
+
// emitted as `has<Field>()` methods on every generated payload record, and since
|
|
11
|
+
// ADR-0056 the JVM engine derives it from the record instead), and its comment says
|
|
12
|
+
// the two sides share one rule so they "can never drift apart". TypeScript had neither half, which is why the same template verified clean
|
|
13
13
|
// on the JVM and reported drift here — and, worse, RENDERED WRONG rather than
|
|
14
14
|
// failing: `{{#hasAbilities}}` resolved to nothing on a populated payload, so the
|
|
15
15
|
// section silently vanished. This module is the TS half of that shared rule.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload-accessors.js","sourceRoot":"","sources":["../src/payload-accessors.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,EAAE;AACF,oFAAoF;AACpF,iFAAiF;AACjF,8EAA8E;AAC9E,0EAA0E;AAC1E,EAAE;AACF,sEAAsE;AACtE,
|
|
1
|
+
{"version":3,"file":"payload-accessors.js","sourceRoot":"","sources":["../src/payload-accessors.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,EAAE;AACF,oFAAoF;AACpF,iFAAiF;AACjF,8EAA8E;AAC9E,0EAA0E;AAC1E,EAAE;AACF,sEAAsE;AACtE,uFAAuF;AACvF,iFAAiF;AACjF,oFAAoF;AACpF,2IAA2I;AAC3I,8EAA8E;AAC9E,kFAAkF;AA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;IACD,OAAO,GAAmB,CAAC;AAC7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metaobjectsdev/render",
|
|
3
|
-
"version": "1.0.5-rc.
|
|
3
|
+
"version": "1.0.5-rc.8",
|
|
4
4
|
"description": "Logic-less, deterministic text render engine (Mustache) for MetaObjects templates — provider-resolved partials, format-driven escaping, zero core dependency.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
package/src/payload-accessors.ts
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
// `hasAbilities` follows from it. Declaring both would let them disagree.
|
|
7
7
|
//
|
|
8
8
|
// THE RULE IS SHARED ON PURPOSE. The JVM has carried this since 7.7.7
|
|
9
|
-
// (`com.metaobjects.render.PayloadAccessors`,
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
// apart". TypeScript had neither half, which is why the same template verified clean
|
|
9
|
+
// (`com.metaobjects.render.PayloadAccessors`, accepted by `render.Verify`; it was once
|
|
10
|
+
// emitted as `has<Field>()` methods on every generated payload record, and since
|
|
11
|
+
// ADR-0056 the JVM engine derives it from the record instead), and its comment says
|
|
12
|
+
// the two sides share one rule so they "can never drift apart". TypeScript had neither half, which is why the same template verified clean
|
|
13
13
|
// on the JVM and reported drift here — and, worse, RENDERED WRONG rather than
|
|
14
14
|
// failing: `{{#hasAbilities}}` resolved to nothing on a populated payload, so the
|
|
15
15
|
// section silently vanished. This module is the TS half of that shared rule.
|