@barefootjs/xslate 0.21.4 → 0.24.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.
@@ -1 +1 @@
1
- {"version":3,"file":"conformance-pins.d.ts","sourceRoot":"","sources":["../src/conformance-pins.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,eAAO,MAAM,eAAe,EAAE,eA+G7B,CAAA"}
1
+ {"version":3,"file":"conformance-pins.d.ts","sourceRoot":"","sources":["../src/conformance-pins.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,eAAO,MAAM,eAAe,EAAE,eAmH7B,CAAA"}
package/dist/index.js CHANGED
@@ -189135,15 +189135,19 @@ Options:
189135
189135
  var xslateAdapter = new XslateAdapter;
189136
189136
  // src/conformance-pins.ts
189137
189137
  var conformancePins = {
189138
- "static-array-from-props": [{ code: "BF101", severity: "error" }],
189139
- "static-array-from-props-with-component": [{ code: "BF101", severity: "error" }],
189138
+ "static-array-from-props": [
189139
+ { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2321" }
189140
+ ],
189141
+ "static-array-from-props-with-component": [
189142
+ { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2321" }
189143
+ ],
189140
189144
  "filter-nested-callback-predicate": [
189141
- { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2038" }
189145
+ { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2320" }
189142
189146
  ],
189143
189147
  "filter-nested-find-predicate": [
189144
- { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2038" }
189148
+ { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2320" }
189145
189149
  ],
189146
- "dangerous-inner-html-dynamic": [{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2215" }],
189150
+ "dangerous-inner-html-dynamic": [{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2319" }],
189147
189151
  "date-method-uncatalogued": [{ code: "BF021", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2274" }]
189148
189152
  };
189149
189153
  // src/render-divergences.ts
@@ -1,5 +1,5 @@
1
1
  package BarefootJS::Backend::Xslate;
2
- our $VERSION = "0.21.3";
2
+ our $VERSION = "0.23.0";
3
3
  use strict;
4
4
  use warnings;
5
5
  use utf8;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barefootjs/xslate",
3
- "version": "0.21.4",
3
+ "version": "0.24.1",
4
4
  "description": "Text::Xslate (Kolon) adapter for BarefootJS — compiles IR to .tx templates and ships the Xslate rendering backend; runs under any PSGI/Plack app",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -55,14 +55,14 @@
55
55
  "directory": "packages/adapter-xslate"
56
56
  },
57
57
  "dependencies": {
58
- "@barefootjs/shared": "0.21.4"
58
+ "@barefootjs/shared": "0.24.1"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@barefootjs/jsx": ">=0.2.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@barefootjs/adapter-tests": "0.1.0",
65
- "@barefootjs/jsx": "0.21.4",
65
+ "@barefootjs/jsx": "0.24.1",
66
66
  "typescript": "^5.0.0"
67
67
  }
68
68
  }
@@ -31,12 +31,16 @@ export const conformancePins: ConformancePins = {
31
31
  // `arrayConst` BF101 check in `renderLoop`. This was always true; it was
32
32
  // simply unreachable before because BF104 refused the destructure shape
33
33
  // first.
34
- 'static-array-from-props': [{ code: 'BF101', severity: 'error' }],
34
+ 'static-array-from-props': [
35
+ { code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2321' },
36
+ ],
35
37
  // The BF101 above fires; BF104 no longer does (see above), and BF103
36
38
  // (sibling-imported `<Tag>` child component in the loop body) no longer
37
39
  // does either now that the conformance harness passes
38
40
  // `siblingTemplatesRegistered: true` (#2205).
39
- 'static-array-from-props-with-component': [{ code: 'BF101', severity: 'error' }],
41
+ 'static-array-from-props-with-component': [
42
+ { code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2321' },
43
+ ],
40
44
  // #1310 / #2087: rest destructure in .map() callback. All four shapes now
41
45
  // lower via #2087 Phase B's `segments`-walking accessor:
42
46
  // - object-rest read via member access (`rest-destructure-object-in-map`):
@@ -90,12 +94,12 @@ export const conformancePins: ConformancePins = {
90
94
  // Perl `grep`.) The `/* @client */` twin
91
95
  // (`filter-nested-callback-predicate-client`) has no pin here: it must
92
96
  // render clean on every adapter, which asserts the suppression contract.
93
- // https://github.com/piconic-ai/barefootjs/issues/2038
97
+ // Faithful lowering tracked: https://github.com/piconic-ai/barefootjs/issues/2320 (successor to #2038)
94
98
  'filter-nested-callback-predicate': [
95
- { code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2038' },
99
+ { code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2320' },
96
100
  ],
97
101
  'filter-nested-find-predicate': [
98
- { code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2038' },
102
+ { code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2320' },
99
103
  ],
100
104
  // NB: TOP-LEVEL `.find` / `.findIndex` / `.findLast` / `.findLastIndex`
101
105
  // (text position) are NOT pinned here — unlike mojo (which refuses them),
@@ -111,8 +115,8 @@ export const conformancePins: ConformancePins = {
111
115
  // `dangerouslySetInnerHTML={{ __html: '...' }}` is spliced directly into
112
116
  // the template as trusted raw text (`resolveDangerousInnerHtml`, #2207).
113
117
  // A dynamic/signal-derived value still refuses with BF101 — see the
114
- // `dangerous-inner-html-dynamic` fixture/pin below (tracked: #2215).
115
- 'dangerous-inner-html-dynamic': [{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2215' }],
118
+ // `dangerous-inner-html-dynamic` fixture/pin below (tracked: #2319, successor to #2215).
119
+ 'dangerous-inner-html-dynamic': [{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2319' }],
116
120
  // #2273: a method call on a prop typed as a built-in host rich type
117
121
  // (Date, Map, …) has no catalogued lowering in any adapter — this is a
118
122
  // compiler-level refusal (`checkRichTypeMethodCalls`, wired ahead of