@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.
@@ -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` is
34
- // hand-authored to the CORRECT output because the emission bug lives in
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, currently emits the broken form (verified against this
37
- // adapter's emitted template; see each fixture's docstring). Graduate
38
- // by fixing the shared emission, regenerating `expectedHtml` from the
39
- // fixed reference, and deleting these lines (and the matching hono
40
- // `skipJsx` entries).
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/2460)',
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
  }