@barefootjs/jinja 0.26.1 → 0.26.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":"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,eAmG7B,CAAA"}
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,eA+H7B,CAAA"}
package/dist/index.js CHANGED
@@ -189198,6 +189198,17 @@ Options:
189198
189198
  var jinjaAdapter = new JinjaAdapter;
189199
189199
  // src/conformance-pins.ts
189200
189200
  var conformancePins = {
189201
+ "filter-typeof-predicate": [{ code: "BF021", severity: "error" }],
189202
+ "map-preamble-branch-body": [{ code: "BF021", severity: "error" }],
189203
+ "map-array-builder-body": [{ code: "BF021", severity: "error" }],
189204
+ "map-array-builder-escaping": [{ code: "BF021", severity: "error" }],
189205
+ "fill-unsupported": [{ code: "BF101", severity: "error" }],
189206
+ "find-typeof-predicate": [{ code: "BF101", severity: "error" }],
189207
+ "some-typeof-predicate": [{ code: "BF101", severity: "error" }],
189208
+ "every-typeof-predicate": [{ code: "BF101", severity: "error" }],
189209
+ "reduce-typeof-body": [{ code: "BF101", severity: "error" }],
189210
+ "reduce-right-typeof-body": [{ code: "BF101", severity: "error" }],
189211
+ "flatmap-typeof-projection": [{ code: "BF101", severity: "error" }],
189201
189212
  "static-array-from-props": [
189202
189213
  { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2321" }
189203
189214
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barefootjs/jinja",
3
- "version": "0.26.1",
3
+ "version": "0.26.3",
4
4
  "description": "Jinja2 adapter for BarefootJS — compiles IR to .jinja templates and ships the Python BarefootJS rendering runtime; runs under any Python web framework (Flask, etc.)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -53,14 +53,14 @@
53
53
  "directory": "packages/adapter-jinja"
54
54
  },
55
55
  "dependencies": {
56
- "@barefootjs/shared": "0.26.1"
56
+ "@barefootjs/shared": "0.26.3"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@barefootjs/jsx": ">=0.2.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@barefootjs/adapter-tests": "0.1.0",
63
- "@barefootjs/jsx": "0.26.1",
63
+ "@barefootjs/jsx": "0.26.3",
64
64
  "typescript": "^5.0.0"
65
65
  }
66
66
  }
@@ -11,6 +11,34 @@
11
11
  import type { ConformancePins } from '@barefootjs/jsx'
12
12
 
13
13
  export const conformancePins: ConformancePins = {
14
+ // Off-subset filter predicate (`typeof`) the compiler can't lower; a
15
+ // JS-runtime target runs it, a DSL adapter surfaces BF021 + `/* @client */`.
16
+ // See spec/callback-fidelity.md.
17
+ 'filter-typeof-predicate': [{ code: 'BF021', severity: 'error' }],
18
+ // A `.map()` body with a `const`/`let` preamble before its branches:
19
+ // a JS runtime folds it, a DSL adapter can't carry the loop-local into a
20
+ // conditional branch template, so it refuses with BF021 + `/* @client */`.
21
+ // See spec/callback-fidelity.md.
22
+ 'map-preamble-branch-body': [{ code: 'BF021', severity: 'error' }],
23
+ 'map-array-builder-body': [{ code: 'BF021', severity: 'error' }],
24
+ 'map-array-builder-escaping': [{ code: 'BF021', severity: 'error' }],
25
+ // `.fill(value)` mutates the receiver in place — no template lowering
26
+ // on any DSL adapter; a JS-runtime target runs it, a DSL adapter
27
+ // surfaces BF101 + `/* @client */`. See spec/callback-fidelity.md.
28
+ 'fill-unsupported': [{ code: 'BF101', severity: 'error' }],
29
+ // Off-subset `.find()` / `.some()` / `.every()` predicate (`typeof`) the
30
+ // compiler can't lower; a JS-runtime target runs it, a DSL adapter
31
+ // surfaces BF101 + `/* @client */`. See spec/callback-fidelity.md.
32
+ 'find-typeof-predicate': [{ code: 'BF101', severity: 'error' }],
33
+ 'some-typeof-predicate': [{ code: 'BF101', severity: 'error' }],
34
+ 'every-typeof-predicate': [{ code: 'BF101', severity: 'error' }],
35
+ // Off-subset `.reduce()` / `.reduceRight()` body / `.flatMap()`
36
+ // projection (`typeof`) the compiler can't lower; a JS-runtime target
37
+ // runs it, a DSL adapter surfaces BF101 + `/* @client */`.
38
+ // See spec/callback-fidelity.md.
39
+ 'reduce-typeof-body': [{ code: 'BF101', severity: 'error' }],
40
+ 'reduce-right-typeof-body': [{ code: 'BF101', severity: 'error' }],
41
+ 'flatmap-typeof-projection': [{ code: 'BF101', severity: 'error' }],
14
42
  // `todo-app` / `todo-app-ssr` no longer pinned (#2205) — the conformance
15
43
  // harness now passes `siblingTemplatesRegistered: true` for fixtures with
16
44
  // sibling `components`, matching `bf build`'s real semantics, so the