@barefootjs/go-template 0.21.3 → 0.23.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/dist/conformance-pins.d.ts.map +1 -1
- package/dist/index.js +9 -5
- package/package.json +3 -3
- package/src/conformance-pins.ts +11 -7
|
@@ -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,eAyI7B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -6172,15 +6172,19 @@ ${children}`;
|
|
|
6172
6172
|
var goTemplateAdapter = new GoTemplateAdapter;
|
|
6173
6173
|
// src/conformance-pins.ts
|
|
6174
6174
|
var conformancePins = {
|
|
6175
|
-
"static-array-from-props": [
|
|
6176
|
-
|
|
6175
|
+
"static-array-from-props": [
|
|
6176
|
+
{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2321" }
|
|
6177
|
+
],
|
|
6178
|
+
"static-array-from-props-with-component": [
|
|
6179
|
+
{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2321" }
|
|
6180
|
+
],
|
|
6177
6181
|
"filter-nested-callback-predicate": [
|
|
6178
|
-
{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/
|
|
6182
|
+
{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2320" }
|
|
6179
6183
|
],
|
|
6180
6184
|
"filter-nested-find-predicate": [
|
|
6181
|
-
{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/
|
|
6185
|
+
{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2320" }
|
|
6182
6186
|
],
|
|
6183
|
-
"dangerous-inner-html-dynamic": [{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/
|
|
6187
|
+
"dangerous-inner-html-dynamic": [{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2319" }],
|
|
6184
6188
|
"date-method-uncatalogued": [{ code: "BF021", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2274" }]
|
|
6185
6189
|
};
|
|
6186
6190
|
// src/render-divergences.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barefootjs/go-template",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
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.
|
|
52
|
+
"@barefootjs/shared": "0.23.0"
|
|
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.
|
|
60
|
+
"@barefootjs/jsx": "0.23.0"
|
|
61
61
|
}
|
|
62
62
|
}
|
package/src/conformance-pins.ts
CHANGED
|
@@ -41,12 +41,16 @@ export const conformancePins: ConformancePins = {
|
|
|
41
41
|
// building loud, so `renderLoop` raises BF101 for a bare-identifier loop
|
|
42
42
|
// array bound to such a const. See the `renderLoop` comment at the check
|
|
43
43
|
// site; Jinja / ERB apply the same narrow check for the same reason.
|
|
44
|
-
'static-array-from-props': [
|
|
44
|
+
'static-array-from-props': [
|
|
45
|
+
{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2321' },
|
|
46
|
+
],
|
|
45
47
|
// Same computed-const array as above — the destructure param itself no
|
|
46
48
|
// longer contributes a diagnostic, and BF103 (sibling-imported child
|
|
47
49
|
// component in the loop body) no longer fires either now that the
|
|
48
50
|
// conformance harness passes `siblingTemplatesRegistered: true` (#2205).
|
|
49
|
-
'static-array-from-props-with-component': [
|
|
51
|
+
'static-array-from-props-with-component': [
|
|
52
|
+
{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2321' },
|
|
53
|
+
],
|
|
50
54
|
// (`style-3-signals` graduated alongside `style-object-dynamic` — see note
|
|
51
55
|
// above; the `style={{ … }}` object now lowers to a CSS string.)
|
|
52
56
|
// (`tagged-template-classname` graduated by #2092 — the tag resolves
|
|
@@ -60,12 +64,12 @@ export const conformancePins: ConformancePins = {
|
|
|
60
64
|
// instead of lossy. The `/* @client */` twin
|
|
61
65
|
// (`filter-nested-callback-predicate-client`) has no pin here: it must
|
|
62
66
|
// render clean on every adapter, which asserts the suppression contract.
|
|
63
|
-
// https://github.com/piconic-ai/barefootjs/issues/2038
|
|
67
|
+
// Faithful lowering tracked: https://github.com/piconic-ai/barefootjs/issues/2320 (successor to #2038)
|
|
64
68
|
'filter-nested-callback-predicate': [
|
|
65
|
-
{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/
|
|
69
|
+
{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2320' },
|
|
66
70
|
],
|
|
67
71
|
'filter-nested-find-predicate': [
|
|
68
|
-
{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/
|
|
72
|
+
{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2320' },
|
|
69
73
|
],
|
|
70
74
|
// #1310 / #2087: rest destructure in .map() callback. `isLowerableLoopDestructure`
|
|
71
75
|
// now admits every shape this fixture family exercises — each fixed/rest
|
|
@@ -135,8 +139,8 @@ export const conformancePins: ConformancePins = {
|
|
|
135
139
|
// `dangerouslySetInnerHTML={{ __html: '...' }}` is spliced directly into
|
|
136
140
|
// the template as trusted raw text (`resolveDangerousInnerHtml`, #2207).
|
|
137
141
|
// A dynamic/signal-derived value still refuses with BF101 — see the
|
|
138
|
-
// `dangerous-inner-html-dynamic` fixture/pin below (tracked: #2215).
|
|
139
|
-
'dangerous-inner-html-dynamic': [{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/
|
|
142
|
+
// `dangerous-inner-html-dynamic` fixture/pin below (tracked: #2319, successor to #2215).
|
|
143
|
+
'dangerous-inner-html-dynamic': [{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2319' }],
|
|
140
144
|
// #2273: a method call on a prop typed as a built-in host rich type
|
|
141
145
|
// (Date, Map, …) has no catalogued lowering in any adapter — this is a
|
|
142
146
|
// compiler-level refusal (`checkRichTypeMethodCalls`, wired ahead of
|