@barefootjs/mojolicious 0.17.1 → 0.18.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/src/index.ts CHANGED
@@ -6,3 +6,4 @@
6
6
 
7
7
  export { MojoAdapter, mojoAdapter } from './adapter/index.ts'
8
8
  export type { MojoAdapterOptions } from './adapter/index.ts'
9
+ export { conformancePins } from './conformance-pins.ts'
@@ -213,6 +213,14 @@ export async function renderMojoComponent(options: RenderOptions): Promise<strin
213
213
  await Bun.write(resolve(tempDir, `${toSnakeCase(childName)}.html.ep`), patchTemplate(template))
214
214
  }
215
215
 
216
+ // Surface every `props.<x>` access as a propsParam before building
217
+ // the top-level stash (idempotent; the same shared pass the adapter's
218
+ // `generate` applies to its own IR instance — this round-tripped IR
219
+ // hasn't been augmented). Without it, a read reachable only through a
220
+ // dynamic text child / condition / loop array (#2126 follow-up) has
221
+ // no param entry, `buildPerlProps` seeds nothing, and the template's
222
+ // bare `$var` aborts under Mojo::Template's strict vars.
223
+ augmentInheritedPropAccesses(ir)
216
224
  // Build props hash for Perl
217
225
  const propsPerl = buildPerlProps(componentName, props, ir)
218
226