@barefootjs/hono 0.26.1 → 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.
- package/dist/adapter/index.js +1 -1
- package/dist/build.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/adapter/hono-adapter.ts +2 -2
package/dist/adapter/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.
|
|
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.
|
|
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.
|
|
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
|
@@ -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
|
-
//
|
|
861
|
-
const preamble = loop.
|
|
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
|