@barefootjs/go-template 0.28.1 → 0.29.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/dist/index.js
CHANGED
|
@@ -6211,7 +6211,9 @@ var conformancePins = {
|
|
|
6211
6211
|
"date-method-uncatalogued": [{ code: "BF021", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2356" }]
|
|
6212
6212
|
};
|
|
6213
6213
|
// src/render-divergences.ts
|
|
6214
|
-
var renderDivergences = {
|
|
6214
|
+
var renderDivergences = {
|
|
6215
|
+
"composite-row-child-component": "a child component nested inside a dynamic loop row receives one hoisted props value built outside `{{range}}`, so every row renders the child with zero-value props (https://github.com/piconic-ai/barefootjs/issues/2445)"
|
|
6216
|
+
};
|
|
6215
6217
|
export {
|
|
6216
6218
|
renderDivergences,
|
|
6217
6219
|
goTemplateAdapter,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-divergences.d.ts","sourceRoot":"","sources":["../src/render-divergences.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAExD,eAAO,MAAM,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"render-divergences.d.ts","sourceRoot":"","sources":["../src/render-divergences.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAExD,eAAO,MAAM,iBAAiB,EAAE,iBAuB/B,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barefootjs/go-template",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "Go html/template adapter for BarefootJS - generates Go template files from IR",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"directory": "packages/adapter-go-template"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@barefootjs/shared": "0.
|
|
52
|
+
"@barefootjs/shared": "0.29.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@barefootjs/jsx": ">=0.2.0",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@barefootjs/adapter-tests": "0.1.0",
|
|
60
|
-
"@barefootjs/jsx": "0.
|
|
60
|
+
"@barefootjs/jsx": "0.29.0"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -29,4 +29,14 @@ export const renderDivergences: RenderDivergences = {
|
|
|
29
29
|
// production). `buildDynamicChildLoopSeeding` (this package's
|
|
30
30
|
// `test-render.ts`) now replicates that documented contract for a
|
|
31
31
|
// signal-backed dynamic child-component loop.
|
|
32
|
+
|
|
33
|
+
// #2445: a child component nested inside a dynamic loop row whose root
|
|
34
|
+
// is a plain element gets ONE hoisted `BadgeSlot0 BadgeProps` field on
|
|
35
|
+
// the parent, built outside the loop with no per-row data, and the
|
|
36
|
+
// template passes `$.BadgeSlot0` for every row — so every row renders
|
|
37
|
+
// the child with zero-value props. The sibling shape (row root IS the
|
|
38
|
+
// child component) already emits a per-row slice; see the `todo-app-ssr`
|
|
39
|
+
// note above on `.TodoItems []TodoItemProps`.
|
|
40
|
+
'composite-row-child-component':
|
|
41
|
+
'a child component nested inside a dynamic loop row receives one hoisted props value built outside `{{range}}`, so every row renders the child with zero-value props (https://github.com/piconic-ai/barefootjs/issues/2445)',
|
|
32
42
|
}
|