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