@barefootjs/mojolicious 0.2.0 → 0.4.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barefootjs/mojolicious",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Mojolicious EP template adapter for BarefootJS - generates .html.ep files from IR",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"directory": "packages/adapter-mojolicious"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@barefootjs/shared": "0.
|
|
55
|
+
"@barefootjs/shared": "0.4.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@barefootjs/jsx": "0.2.0"
|
|
58
|
+
"@barefootjs/jsx": ">=0.2.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@barefootjs/adapter-tests": "0.1.0",
|
|
62
|
-
"@barefootjs/jsx": "0.
|
|
62
|
+
"@barefootjs/jsx": "0.4.0",
|
|
63
63
|
"typescript": "^5.0.0"
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -69,6 +69,21 @@ runAdapterConformanceTests({
|
|
|
69
69
|
'toggle-shared',
|
|
70
70
|
'reactive-props',
|
|
71
71
|
'props-reactivity-comparison',
|
|
72
|
+
// #1633: child component forwards a destructured rest bag
|
|
73
|
+
// (`function NativeSelect({ children, ...props })`) onto its
|
|
74
|
+
// element via `{...props}`. The Mojo child template references
|
|
75
|
+
// `$props` (`<%== $bf->spread_attrs($props) %>`), but
|
|
76
|
+
// `render_child` doesn't plumb the rest-spread bag into the child
|
|
77
|
+
// template's scope, so rendering dies with `Global symbol "$props"
|
|
78
|
+
// requires explicit package name`. The Go adapter plumbs the same
|
|
79
|
+
// bag via the `Spread_0`/`Extras map[string]any` Input field, so it
|
|
80
|
+
// renders fine; Mojo needs the equivalent render_child plumbing.
|
|
81
|
+
// The fixture exists to pin the CSR layer of #1633 (children
|
|
82
|
+
// materialization), which Hono / Go / CSR all verify — Mojo's
|
|
83
|
+
// spread-bag-in-child gap is orthogonal. Same class of spread-bag
|
|
84
|
+
// limitation that keeps `jsx-spread-rest-prop` /
|
|
85
|
+
// `jsx-spread-props-object` off the CSR conformance path.
|
|
86
|
+
'native-select-spread-children',
|
|
72
87
|
],
|
|
73
88
|
// Per-fixture build-time contracts for shapes the Mojo adapter
|
|
74
89
|
// intentionally refuses to lower. Owned by this adapter test file
|