@barefootjs/go-template 0.30.4 → 0.30.6
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/adapter/go-template-adapter.d.ts.map +1 -1
- package/dist/adapter/index.js +128 -17
- package/dist/adapter/memo/memo-compute.d.ts.map +1 -1
- package/dist/adapter/value/value-lowering.d.ts +50 -0
- package/dist/adapter/value/value-lowering.d.ts.map +1 -1
- package/dist/build.js +128 -17
- package/dist/index.js +129 -22
- package/dist/render-divergences.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/adapter/go-template-adapter.ts +41 -7
- package/src/adapter/memo/memo-compute.ts +60 -1
- package/src/adapter/value/value-lowering.ts +172 -0
- package/src/render-divergences.ts +12 -20
|
@@ -30,26 +30,18 @@ export const renderDivergences: RenderDivergences = {
|
|
|
30
30
|
// `test-render.ts`) now replicates that documented contract for a
|
|
31
31
|
// signal-backed dynamic child-component loop.
|
|
32
32
|
|
|
33
|
-
// Onboarding TSX-fidelity fixtures (PR #2461): `expectedHtml`
|
|
34
|
-
// hand-authored to the CORRECT output
|
|
33
|
+
// Onboarding TSX-fidelity fixtures (PR #2461): `expectedHtml` was
|
|
34
|
+
// hand-authored to the CORRECT output while the emission bug lived in
|
|
35
35
|
// the shared compiler layer — every adapter, including the Hono
|
|
36
|
-
// reference,
|
|
37
|
-
//
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
-
// `
|
|
36
|
+
// reference, used to emit the broken form. That shared-layer defect
|
|
37
|
+
// (#2460) is now FIXED (b4f5075): `expectedHtml` is generated from the
|
|
38
|
+
// Hono reference like any other fixture. The remaining gap is
|
|
39
|
+
// Go-specific — the Input struct field stays keyed by the local
|
|
40
|
+
// binding instead of `sourceName ?? name`, so the caller-side struct
|
|
41
|
+
// literal fails `go run` outright — tracked by #2525 (go-template's
|
|
42
|
+
// `go run` exit-1 failure). Graduate by keying the Input struct field
|
|
43
|
+
// by `sourceName ?? name` and deleting this line (and the matching
|
|
44
|
+
// hono `skipJsx` entry, already gone).
|
|
41
45
|
'aliased-destructured-prop':
|
|
42
|
-
'aliased destructured prop `{ n: count }` loses its rename — the Input struct field is Count `json:"count"`, so the caller-side struct literal keyed by the real prop name fails `go run` outright (unknown field N, exit 1) (https://github.com/piconic-ai/barefootjs/issues/
|
|
43
|
-
|
|
44
|
-
// #2482 audit follow-ups: loop-scope holes specific to this adapter's
|
|
45
|
-
// four-stack scope tracking and its SSR seeding. Graduate by applying
|
|
46
|
-
// the fix described in each issue and deleting the line.
|
|
47
|
-
'nested-loop-tail-content':
|
|
48
|
-
'the `inLoop` clobber is FIXED (#2487) — outer-row content after a nested loop now takes the loop arms and the spread resolves row-scoped. Residual: the spread\'s attribute NAMES are still mangled by the Go-cased-key kebab conversion (`data-kind` → `-data-kind`), which is #2490; this entry graduates with that fix (https://github.com/piconic-ai/barefootjs/issues/2490)',
|
|
49
|
-
'loop-param-shadows-spread-const':
|
|
50
|
-
'spreading a loop row object mangles attribute names (`id` → `-i-d`, `title` → `-title`); the spread VALUE is correctly row-scoped, distinguishing this from the template-adapter const-shadow hole #2489 (https://github.com/piconic-ai/barefootjs/issues/2490)',
|
|
51
|
-
'loop-param-shadows-record-template-span':
|
|
52
|
-
'a dynamic-key element access on a loop row (`tone[k]`) renders empty at execute time — the emitted template contains no baked const (correct post-fix), but the row lookup resolves to nothing (https://github.com/piconic-ai/barefootjs/issues/2491)',
|
|
53
|
-
'callback-param-shadows-prop':
|
|
54
|
-
'JS-computed signal/memo initializers (`[…].map(…).join(…)`, memo over signal + prop) don\'t seed Go SSR — renders `[]` / empty where every other adapter renders the computed value; hydration snaps to correct (https://github.com/piconic-ai/barefootjs/issues/2492)',
|
|
46
|
+
'aliased destructured prop `{ n: count }` loses its rename — the Input struct field is Count `json:"count"`, so the caller-side struct literal keyed by the real prop name fails `go run` outright (unknown field N, exit 1) (https://github.com/piconic-ai/barefootjs/issues/2525)',
|
|
55
47
|
}
|