@barefootjs/hono 0.26.2 → 0.26.3

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.
@@ -462,7 +462,7 @@ export default ${this.componentName}` : "";
462
462
  const children = this.renderChildrenInLoop(loop.children);
463
463
  this.loopKeyStack.pop();
464
464
  let mapExpr;
465
- const preamble = loop.typedMapPreamble ?? loop.mapPreamble;
465
+ const preamble = loop.preamble?.ssrText;
466
466
  let safeChildren = children.startsWith("{") ? `<>${children}</>` : children;
467
467
  if (loop.bodyIsMultiRoot) {
468
468
  safeChildren = `<>{bfComment('bf-loop-i')}${children}</>`;
package/dist/build.js CHANGED
@@ -462,7 +462,7 @@ export default ${this.componentName}` : "";
462
462
  const children = this.renderChildrenInLoop(loop.children);
463
463
  this.loopKeyStack.pop();
464
464
  let mapExpr;
465
- const preamble = loop.typedMapPreamble ?? loop.mapPreamble;
465
+ const preamble = loop.preamble?.ssrText;
466
466
  let safeChildren = children.startsWith("{") ? `<>${children}</>` : children;
467
467
  if (loop.bodyIsMultiRoot) {
468
468
  safeChildren = `<>{bfComment('bf-loop-i')}${children}</>`;
package/dist/index.js CHANGED
@@ -462,7 +462,7 @@ export default ${this.componentName}` : "";
462
462
  const children = this.renderChildrenInLoop(loop.children);
463
463
  this.loopKeyStack.pop();
464
464
  let mapExpr;
465
- const preamble = loop.typedMapPreamble ?? loop.mapPreamble;
465
+ const preamble = loop.preamble?.ssrText;
466
466
  let safeChildren = children.startsWith("{") ? `<>${children}</>` : children;
467
467
  if (loop.bodyIsMultiRoot) {
468
468
  safeChildren = `<>{bfComment('bf-loop-i')}${children}</>`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barefootjs/hono",
3
- "version": "0.26.2",
3
+ "version": "0.26.3",
4
4
  "description": "Hono integration for BarefootJS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -857,8 +857,8 @@ export class HonoAdapter extends JsxAdapter implements IRNodeEmitter<HonoRenderC
857
857
  this.loopKeyStack.pop()
858
858
 
859
859
  let mapExpr: string
860
- // Use typed mapPreamble when available to preserve type annotations in .tsx output
861
- const preamble = loop.typedMapPreamble ?? loop.mapPreamble
860
+ // Raw TSX preamble text (types + JSX intact) for the JSX-runtime output
861
+ const preamble = loop.preamble?.ssrText
862
862
  // When the rendered children are a JSX expression-container (e.g. a single
863
863
  // ternary `{cond ? <A/> : <B/>}` from renderConditional), they cannot be
864
864
  // used directly as an arrow body — `(x) => {…}` is parsed as a block