@barefootjs/go-template 0.26.3 → 0.26.4
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 +2 -0
- package/package.json +3 -3
- package/src/conformance-pins.ts +15 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conformance-pins.d.ts","sourceRoot":"","sources":["../src/conformance-pins.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;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;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,eAAO,MAAM,eAAe,EAAE,eAqL7B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -6192,6 +6192,8 @@ var conformancePins = {
|
|
|
6192
6192
|
"reduce-typeof-body": [{ code: "BF101", severity: "error" }],
|
|
6193
6193
|
"reduce-right-typeof-body": [{ code: "BF101", severity: "error" }],
|
|
6194
6194
|
"flatmap-typeof-projection": [{ code: "BF101", severity: "error" }],
|
|
6195
|
+
"tag-cloud": [{ code: "BF021", severity: "error" }],
|
|
6196
|
+
"preamble-cells": [{ code: "BF021", severity: "error" }],
|
|
6195
6197
|
"static-array-from-props": [
|
|
6196
6198
|
{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2321" }
|
|
6197
6199
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barefootjs/go-template",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.4",
|
|
4
4
|
"description": "Go html/template adapter for BarefootJS - generates Go template files from IR",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"directory": "packages/adapter-go-template"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@barefootjs/shared": "0.26.
|
|
52
|
+
"@barefootjs/shared": "0.26.4"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@barefootjs/jsx": ">=0.2.0",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@barefootjs/adapter-tests": "0.1.0",
|
|
60
|
-
"@barefootjs/jsx": "0.26.
|
|
60
|
+
"@barefootjs/jsx": "0.26.4"
|
|
61
61
|
}
|
|
62
62
|
}
|
package/src/conformance-pins.ts
CHANGED
|
@@ -39,6 +39,21 @@ export const conformancePins: ConformancePins = {
|
|
|
39
39
|
'reduce-typeof-body': [{ code: 'BF101', severity: 'error' }],
|
|
40
40
|
'reduce-right-typeof-body': [{ code: 'BF101', severity: 'error' }],
|
|
41
41
|
'flatmap-typeof-projection': [{ code: 'BF101', severity: 'error' }],
|
|
42
|
+
// JSX-returning `.flatMap()` body carried as structured segments — i.e.
|
|
43
|
+
// one with STATEMENTS (early returns, consts): a JS runtime executes it
|
|
44
|
+
// verbatim; a DSL template runtime can't, so it refuses with BF021 +
|
|
45
|
+
// `/* @client */` (pre-gate this emitted an empty loop body — silent
|
|
46
|
+
// divergence). A pure PROJECTION body (`flatMap(it => it.tags.map(...))`,
|
|
47
|
+
// e.g. the `flatmap-expression-body` fixture) is NOT pinned: it lowers to
|
|
48
|
+
// neutral nested-loop IR this adapter templatizes natively.
|
|
49
|
+
// See spec/callback-fidelity.md.
|
|
50
|
+
'tag-cloud': [{ code: 'BF021', severity: 'error' }],
|
|
51
|
+
// A keyed `.map()` row body whose preamble builds a JSX leaf from item
|
|
52
|
+
// state (`cells.push(<td>{stateLabel}</td>)`) embedded as `{cells}` — the
|
|
53
|
+
// Stage 3 array-builder carrier, jsRuntime-only: a JS runtime runs it
|
|
54
|
+
// verbatim (and patches the region on same-key updates, #2389), a DSL
|
|
55
|
+
// adapter refuses with BF021 + `/* @client */`. See spec/callback-fidelity.md.
|
|
56
|
+
'preamble-cells': [{ code: 'BF021', severity: 'error' }],
|
|
42
57
|
// `style-object-dynamic` / `style-3-signals` no longer pinned — a
|
|
43
58
|
// `style={{ … }}` object literal now lowers to a CSS string with dynamic
|
|
44
59
|
// values interpolated (`background-color:{{.Color}};padding:8px`) via
|