@barefootjs/erb 0.33.0 → 0.33.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/dist/conformance-pins.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/vite.js +2 -0
- package/package.json +5 -5
- package/src/conformance-pins.ts +7 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conformance-pins.d.ts","sourceRoot":"","sources":["../src/conformance-pins.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"conformance-pins.d.ts","sourceRoot":"","sources":["../src/conformance-pins.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,eAAO,MAAM,eAAe,EAAE,eA+C7B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -189284,7 +189284,9 @@ var conformancePins = {
|
|
|
189284
189284
|
],
|
|
189285
189285
|
"filter-nested-find-predicate": [{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2320" }],
|
|
189286
189286
|
"date-method-uncatalogued": [{ code: "BF021", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2356" }],
|
|
189287
|
-
"rich-prop-client-read": [{ code: "BF049", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2648" }]
|
|
189287
|
+
"rich-prop-client-read": [{ code: "BF049", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2648" }],
|
|
189288
|
+
"jsx-element-prop-ternary": [{ code: "BF021", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2667" }],
|
|
189289
|
+
"jsx-element-prop-array": [{ code: "BF021", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2667" }]
|
|
189288
189290
|
};
|
|
189289
189291
|
// src/render-divergences.ts
|
|
189290
189292
|
var renderDivergences = {};
|
package/dist/vite.js
CHANGED
|
@@ -2273,6 +2273,7 @@ var ErrorCodes = {
|
|
|
2273
2273
|
MISSING_KEY_IN_LIST: "BF023",
|
|
2274
2274
|
MISSING_KEY_IN_NESTED_LIST: "BF024",
|
|
2275
2275
|
UNSUPPORTED_DESTRUCTURE_REST: "BF025",
|
|
2276
|
+
RETURN_VALUE_NOT_JSX: "BF027",
|
|
2276
2277
|
PROPS_DESTRUCTURING: "BF043",
|
|
2277
2278
|
SIGNAL_GETTER_NOT_CALLED: "BF044",
|
|
2278
2279
|
JSX_IN_LOCAL_FUNCTION: "BF045",
|
|
@@ -2304,6 +2305,7 @@ var errorMessages = {
|
|
|
2304
2305
|
[ErrorCodes.MISSING_KEY_IN_LIST]: "Missing key attribute in list rendering. Add a key prop for efficient updates",
|
|
2305
2306
|
[ErrorCodes.MISSING_KEY_IN_NESTED_LIST]: "Nested .map() loop requires key attribute for event delegation. Add a key prop to elements in the inner loop",
|
|
2306
2307
|
[ErrorCodes.UNSUPPORTED_DESTRUCTURE_REST]: "Computed property key in .map() callback destructure is not supported. Rewrite the callback to destructure explicit bindings (e.g., `({ a, b }) => ...`) so the compiler can rewrite references to per-item signal accessors.",
|
|
2308
|
+
[ErrorCodes.RETURN_VALUE_NOT_JSX]: "Component's return value is not recognized as JSX — return the JSX expression directly instead of binding it to a local variable first.",
|
|
2307
2309
|
[ErrorCodes.PROPS_DESTRUCTURING]: "Props destructuring in function parameters breaks reactivity. Use props object directly.",
|
|
2308
2310
|
[ErrorCodes.SIGNAL_GETTER_NOT_CALLED]: "Signal/memo getter passed without calling it. Use getter() to read the value.",
|
|
2309
2311
|
[ErrorCodes.JSX_IN_LOCAL_FUNCTION]: "Local function returns JSX but cannot be inlined. Extract it as a top-level PascalCase component or use a single return statement.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barefootjs/erb",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"description": "ERB (Embedded Ruby) adapter for BarefootJS — compiles IR to .erb templates and ships the Ruby rendering backend; runs under any Rack app (Sinatra, Rails)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"directory": "packages/adapter-erb"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@barefootjs/shared": "0.33.
|
|
57
|
+
"@barefootjs/shared": "0.33.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@barefootjs/jsx": ">=0.2.0",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@barefootjs/adapter-tests": "0.1.0",
|
|
74
|
-
"@barefootjs/jsx": "0.33.
|
|
75
|
-
"@barefootjs/vite": "0.33.
|
|
76
|
-
"@barefootjs/client": "0.33.
|
|
74
|
+
"@barefootjs/jsx": "0.33.1",
|
|
75
|
+
"@barefootjs/vite": "0.33.1",
|
|
76
|
+
"@barefootjs/client": "0.33.1",
|
|
77
77
|
"typescript": "^5.0.0",
|
|
78
78
|
"vite": "^6.0.0"
|
|
79
79
|
}
|
package/src/conformance-pins.ts
CHANGED
|
@@ -49,4 +49,11 @@ export const conformancePins: ConformancePins = {
|
|
|
49
49
|
'filter-nested-find-predicate': [{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2320' }],
|
|
50
50
|
'date-method-uncatalogued': [{ code: 'BF021', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2356' }],
|
|
51
51
|
'rich-prop-client-read': [{ code: 'BF049', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2648' }],
|
|
52
|
+
// #2667: a ternary/array LITERALLY WRAPPING JSX at a non-children prop
|
|
53
|
+
// position (e.g. `header={cond ? <a/> : <b/>}`) is refused ahead of
|
|
54
|
+
// `adapter.generate()` in the shared jsx-to-ir.ts phase, so it is pinned
|
|
55
|
+
// identically on every adapter (including Hono) — same reasoning as
|
|
56
|
+
// `rich-prop-client-read` above.
|
|
57
|
+
'jsx-element-prop-ternary': [{ code: 'BF021', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2667' }],
|
|
58
|
+
'jsx-element-prop-array': [{ code: 'BF021', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2667' }],
|
|
52
59
|
}
|