@barefootjs/xslate 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.
@@ -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+I7B,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,eA8J7B,CAAA"}
package/dist/index.js CHANGED
@@ -189149,6 +189149,8 @@ var conformancePins = {
189149
189149
  "reduce-typeof-body": [{ code: "BF101", severity: "error" }],
189150
189150
  "reduce-right-typeof-body": [{ code: "BF101", severity: "error" }],
189151
189151
  "flatmap-typeof-projection": [{ code: "BF101", severity: "error" }],
189152
+ "tag-cloud": [{ code: "BF021", severity: "error" }],
189153
+ "preamble-cells": [{ code: "BF021", severity: "error" }],
189152
189154
  "static-array-from-props": [
189153
189155
  { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2321" }
189154
189156
  ],
@@ -1,5 +1,5 @@
1
1
  package BarefootJS::Backend::Xslate;
2
- our $VERSION = "0.26.2";
2
+ our $VERSION = "0.26.3";
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.26.3",
3
+ "version": "0.26.4",
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.26.3"
58
+ "@barefootjs/shared": "0.26.4"
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.26.3",
65
+ "@barefootjs/jsx": "0.26.4",
66
66
  "typescript": "^5.0.0"
67
67
  }
68
68
  }
@@ -37,6 +37,21 @@ export const conformancePins: ConformancePins = {
37
37
  'reduce-typeof-body': [{ code: 'BF101', severity: 'error' }],
38
38
  'reduce-right-typeof-body': [{ code: 'BF101', severity: 'error' }],
39
39
  'flatmap-typeof-projection': [{ code: 'BF101', severity: 'error' }],
40
+ // JSX-returning `.flatMap()` body carried as structured segments — i.e.
41
+ // one with STATEMENTS (early returns, consts): a JS runtime executes it
42
+ // verbatim; a DSL template runtime can't, so it refuses with BF021 +
43
+ // `/* @client */` (pre-gate this emitted an empty loop body — silent
44
+ // divergence). A pure PROJECTION body (`flatMap(it => it.tags.map(...))`,
45
+ // e.g. the `flatmap-expression-body` fixture) is NOT pinned: it lowers to
46
+ // neutral nested-loop IR this adapter templatizes natively.
47
+ // See spec/callback-fidelity.md.
48
+ 'tag-cloud': [{ code: 'BF021', severity: 'error' }],
49
+ // A keyed `.map()` row body whose preamble builds a JSX leaf from item
50
+ // state (`cells.push(<td>{stateLabel}</td>)`) embedded as `{cells}` — the
51
+ // Stage 3 array-builder carrier, jsRuntime-only: a JS runtime runs it
52
+ // verbatim (and patches the region on same-key updates, #2389), a DSL
53
+ // adapter refuses with BF021 + `/* @client */`. See spec/callback-fidelity.md.
54
+ 'preamble-cells': [{ code: 'BF021', severity: 'error' }],
40
55
  // `todo-app` / `todo-app-ssr` no longer pinned (#2205) — the conformance
41
56
  // harness now passes `siblingTemplatesRegistered: true` for fixtures with
42
57
  // sibling `components`, matching `bf build`'s real semantics, so the