@barefootjs/erb 0.30.2 → 0.30.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erb-adapter.d.ts","sourceRoot":"","sources":["../../src/adapter/erb-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,KAAK,EACV,WAAW,EAEX,MAAM,EACN,SAAS,EACT,MAAM,EACN,YAAY,EACZ,aAAa,EACb,MAAM,EACN,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,EACb,UAAU,EACV,OAAO,EAMP,yBAAyB,EAC1B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAE3B,KAAK,aAAa,EAClB,KAAK,UAAU,EA+BhB,MAAM,iBAAiB,CAAA;AAKxB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAoClD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAoBvD,qBAAa,UAAW,SAAQ,WAAY,YAAW,aAAa,CAAC,YAAY,CAAC;IAChF,IAAI,SAAQ;IACZ,SAAS,SAAS;IAClB,qBAAqB,UAAO;IAI5B,kBAAkB,EAAG,cAAc,CAAS;IAE5C;;;;;;OAMG;IACH,kBAAkB,EAAE,yBAAyB,CAAyB;IAEtE,OAAO,CAAC,aAAa,CAAa;IAClC;;;;oDAIgD;IAChD,OAAO,CAAC,cAAc,CAAyB;IAC/C,OAAO,CAAC,OAAO,CAA6B;IAC5C,OAAO,CAAC,MAAM,CAAsB;IACpC;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB,CAAI;IAC/B;;;;;OAKG;IACH,OAAO,CAAC,eAAe,CAAsB;IA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,QAAQ,CAAC,kBAAkB,CAoKlC;IAED;;;OAGG;IACH,OAAO,CAAC,kBAAkB,CAAI;IAE9B;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;IA0B3B,8EAA8E;IAC9E,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,gBAAgB;IAyCxB,iBAAiB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAMjD;IAED,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvC;IAED,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvC;IAMD;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IA8B5B,OAAO,CAAC,iCAAiC;IAkCzC;;;;;;;OAOG;IACH,OAAO,CAAC,gCAAgC;IAmBxC;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,+BAA+B;IAuBvC;;;;;;;OAOG;IACH,OAAO,KAAK,OAAO,GAWlB;IAED;;;;OAIG;IACH,OAAO,KAAK,SAAS,GAQpB;IAED,sEAAsE;IACtE,OAAO,KAAK,OAAO,GAElB;IAED,OAAO,CAAC,uBAAuB;IA+E/B;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;IAI9B;uEACmE;IACnE,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,gBAAgB;IAcxB,iFAAiF;IACjF,OAAO,CAAC,2BAA2B;CAGpC;AAED,eAAO,MAAM,UAAU,YAAmB,CAAA"}
|
package/dist/adapter/index.js
CHANGED
|
@@ -188442,6 +188442,8 @@ class ErbAdapter extends BaseAdapter {
|
|
|
188442
188442
|
}
|
|
188443
188443
|
if (!/^[A-Za-z_$][\w$]*$/.test(bare))
|
|
188444
188444
|
return false;
|
|
188445
|
+
if (this.isLoopBoundName(bare))
|
|
188446
|
+
return false;
|
|
188445
188447
|
return this.booleanTypedProps.has(bare);
|
|
188446
188448
|
}
|
|
188447
188449
|
shouldWrapBoolStr(expr, name) {
|
|
@@ -188994,7 +188996,7 @@ ${children}`;
|
|
|
188994
188996
|
}
|
|
188995
188997
|
const bareId = value.expr.trim();
|
|
188996
188998
|
const normalizedBareId = this.propsObjectName && bareId.startsWith(`${this.propsObjectName}.`) ? bareId.slice(this.propsObjectName.length + 1) : bareId;
|
|
188997
|
-
if (!isBooleanAttr(name) && !value.presenceOrUndefined && /^[A-Za-z_$][\w$]*$/.test(normalizedBareId) && this.nullableOptionalProps.has(normalizedBareId)) {
|
|
188999
|
+
if (!isBooleanAttr(name) && !value.presenceOrUndefined && /^[A-Za-z_$][\w$]*$/.test(normalizedBareId) && this.nullableOptionalProps.has(normalizedBareId) && !this.isLoopBoundName(normalizedBareId)) {
|
|
188998
189000
|
const ruby2 = this.convertExpressionToRuby(value.expr);
|
|
188999
189001
|
const body = this.shouldWrapBoolStr(value.expr, name) ? `${name}="<%= bf.h(bf.bool_str(${ruby2})) %>"` : `${name}="<%= bf.h(${ruby2}) %>"`;
|
|
189000
189002
|
return `<% if !(${ruby2}).nil? %>${body}<% end %>`;
|
package/dist/build.js
CHANGED
|
@@ -188442,6 +188442,8 @@ class ErbAdapter extends BaseAdapter {
|
|
|
188442
188442
|
}
|
|
188443
188443
|
if (!/^[A-Za-z_$][\w$]*$/.test(bare))
|
|
188444
188444
|
return false;
|
|
188445
|
+
if (this.isLoopBoundName(bare))
|
|
188446
|
+
return false;
|
|
188445
188447
|
return this.booleanTypedProps.has(bare);
|
|
188446
188448
|
}
|
|
188447
188449
|
shouldWrapBoolStr(expr, name) {
|
|
@@ -188994,7 +188996,7 @@ ${children}`;
|
|
|
188994
188996
|
}
|
|
188995
188997
|
const bareId = value.expr.trim();
|
|
188996
188998
|
const normalizedBareId = this.propsObjectName && bareId.startsWith(`${this.propsObjectName}.`) ? bareId.slice(this.propsObjectName.length + 1) : bareId;
|
|
188997
|
-
if (!isBooleanAttr(name) && !value.presenceOrUndefined && /^[A-Za-z_$][\w$]*$/.test(normalizedBareId) && this.nullableOptionalProps.has(normalizedBareId)) {
|
|
188999
|
+
if (!isBooleanAttr(name) && !value.presenceOrUndefined && /^[A-Za-z_$][\w$]*$/.test(normalizedBareId) && this.nullableOptionalProps.has(normalizedBareId) && !this.isLoopBoundName(normalizedBareId)) {
|
|
188998
189000
|
const ruby2 = this.convertExpressionToRuby(value.expr);
|
|
188999
189001
|
const body = this.shouldWrapBoolStr(value.expr, name) ? `${name}="<%= bf.h(bf.bool_str(${ruby2})) %>"` : `${name}="<%= bf.h(${ruby2}) %>"`;
|
|
189000
189002
|
return `<% if !(${ruby2}).nil? %>${body}<% end %>`;
|
package/dist/index.js
CHANGED
|
@@ -188442,6 +188442,8 @@ class ErbAdapter extends BaseAdapter {
|
|
|
188442
188442
|
}
|
|
188443
188443
|
if (!/^[A-Za-z_$][\w$]*$/.test(bare))
|
|
188444
188444
|
return false;
|
|
188445
|
+
if (this.isLoopBoundName(bare))
|
|
188446
|
+
return false;
|
|
188445
188447
|
return this.booleanTypedProps.has(bare);
|
|
188446
188448
|
}
|
|
188447
188449
|
shouldWrapBoolStr(expr, name) {
|
|
@@ -188994,7 +188996,7 @@ ${children}`;
|
|
|
188994
188996
|
}
|
|
188995
188997
|
const bareId = value.expr.trim();
|
|
188996
188998
|
const normalizedBareId = this.propsObjectName && bareId.startsWith(`${this.propsObjectName}.`) ? bareId.slice(this.propsObjectName.length + 1) : bareId;
|
|
188997
|
-
if (!isBooleanAttr(name) && !value.presenceOrUndefined && /^[A-Za-z_$][\w$]*$/.test(normalizedBareId) && this.nullableOptionalProps.has(normalizedBareId)) {
|
|
188999
|
+
if (!isBooleanAttr(name) && !value.presenceOrUndefined && /^[A-Za-z_$][\w$]*$/.test(normalizedBareId) && this.nullableOptionalProps.has(normalizedBareId) && !this.isLoopBoundName(normalizedBareId)) {
|
|
188998
189000
|
const ruby2 = this.convertExpressionToRuby(value.expr);
|
|
188999
189001
|
const body = this.shouldWrapBoolStr(value.expr, name) ? `${name}="<%= bf.h(bf.bool_str(${ruby2})) %>"` : `${name}="<%= bf.h(${ruby2}) %>"`;
|
|
189000
189002
|
return `<% if !(${ruby2}).nil? %>${body}<% end %>`;
|
|
@@ -189288,7 +189290,6 @@ var conformancePins = {
|
|
|
189288
189290
|
// src/render-divergences.ts
|
|
189289
189291
|
var renderDivergences = {
|
|
189290
189292
|
"aliased-destructured-prop": "aliased destructured prop `{ n: count }` loses its rename — template vars, ssr-defaults, and the props bridge all key off the local name, so the prop is always undefined (https://github.com/piconic-ai/barefootjs/issues/2460)",
|
|
189291
|
-
"loop-param-shadows-bool-prop": 'a .map() param sharing a boolean prop\'s name is routed through the bool lowering in attribute position (renders "true"/"false" instead of the row string) — `collectBooleanTypedProps` lacks the loop-bound-name subtraction its sibling `collectStringValueNames` got in #2236 (https://github.com/piconic-ai/barefootjs/issues/2488)',
|
|
189292
189293
|
"loop-param-shadows-spread-const": "a .map() param shadowing an object const is resolved by `emitSpread` against `localConstants` with no loop-shadow check (the live `loopBoundNames` map exists but is not consulted on this path), so every row spreads the OUTER const instead of the row value (https://github.com/piconic-ai/barefootjs/issues/2489)",
|
|
189293
189294
|
"loop-param-shadows-record-template-span": 'a dynamic-key element access on a loop row (`tone[k]`) renders empty: row hashes deserialize with SYMBOL keys while the dynamic key is a STRING, so `tone["a"]` is nil (https://github.com/piconic-ai/barefootjs/issues/2491)'
|
|
189294
189295
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-divergences.d.ts","sourceRoot":"","sources":["../src/render-divergences.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAExD,eAAO,MAAM,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"render-divergences.d.ts","sourceRoot":"","sources":["../src/render-divergences.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAExD,eAAO,MAAM,iBAAiB,EAAE,iBAwB/B,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barefootjs/erb",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.3",
|
|
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.30.
|
|
57
|
+
"@barefootjs/shared": "0.30.3"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@barefootjs/jsx": ">=0.2.0"
|
|
@@ -381,6 +381,10 @@ export class ErbAdapter extends BaseAdapter implements IRNodeEmitter<ErbRenderCt
|
|
|
381
381
|
bare = bare.slice(this.propsObjectName.length + 1)
|
|
382
382
|
}
|
|
383
383
|
if (!/^[A-Za-z_$][\w$]*$/.test(bare)) return false
|
|
384
|
+
// Inside a `.map()` callback, a param that shares a boolean prop's name
|
|
385
|
+
// is the ROW binding, not the prop — route it through plain string
|
|
386
|
+
// emission instead of `bf.bool_str` (#2488).
|
|
387
|
+
if (this.isLoopBoundName(bare)) return false
|
|
384
388
|
return this.booleanTypedProps.has(bare)
|
|
385
389
|
}
|
|
386
390
|
|
|
@@ -1427,7 +1431,11 @@ export class ErbAdapter extends BaseAdapter implements IRNodeEmitter<ErbRenderCt
|
|
|
1427
1431
|
!isBooleanAttr(name) &&
|
|
1428
1432
|
!value.presenceOrUndefined &&
|
|
1429
1433
|
/^[A-Za-z_$][\w$]*$/.test(normalizedBareId) &&
|
|
1430
|
-
this.nullableOptionalProps.has(normalizedBareId)
|
|
1434
|
+
this.nullableOptionalProps.has(normalizedBareId) &&
|
|
1435
|
+
// Inside a `.map()` callback, a param that shadows a nullable
|
|
1436
|
+
// optional prop's name is the row binding, not the prop — skip the
|
|
1437
|
+
// spurious `.nil?` guard (#2488).
|
|
1438
|
+
!this.isLoopBoundName(normalizedBareId)
|
|
1431
1439
|
) {
|
|
1432
1440
|
const ruby = this.convertExpressionToRuby(value.expr)
|
|
1433
1441
|
const body =
|
|
@@ -34,8 +34,6 @@ export const renderDivergences: RenderDivergences = {
|
|
|
34
34
|
// #2482 audit follow-ups: loop-scope holes in per-adapter name
|
|
35
35
|
// classification. Graduate by applying the loop-bound-name guards
|
|
36
36
|
// described in each issue and deleting the line.
|
|
37
|
-
'loop-param-shadows-bool-prop':
|
|
38
|
-
'a .map() param sharing a boolean prop\'s name is routed through the bool lowering in attribute position (renders "true"/"false" instead of the row string) — `collectBooleanTypedProps` lacks the loop-bound-name subtraction its sibling `collectStringValueNames` got in #2236 (https://github.com/piconic-ai/barefootjs/issues/2488)',
|
|
39
37
|
'loop-param-shadows-spread-const':
|
|
40
38
|
'a .map() param shadowing an object const is resolved by `emitSpread` against `localConstants` with no loop-shadow check (the live `loopBoundNames` map exists but is not consulted on this path), so every row spreads the OUTER const instead of the row value (https://github.com/piconic-ai/barefootjs/issues/2489)',
|
|
41
39
|
'loop-param-shadows-record-template-span':
|