@barefootjs/blade 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;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,eAAO,MAAM,eAAe,EAAE,eAkF7B,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,eAsF7B,CAAA"}
package/dist/index.js CHANGED
@@ -189177,15 +189177,19 @@ Options:
189177
189177
  var bladeAdapter = new BladeAdapter;
189178
189178
  // src/conformance-pins.ts
189179
189179
  var conformancePins = {
189180
- "static-array-from-props": [{ code: "BF101", severity: "error" }],
189181
- "static-array-from-props-with-component": [{ code: "BF101", severity: "error" }],
189180
+ "static-array-from-props": [
189181
+ { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2321" }
189182
+ ],
189183
+ "static-array-from-props-with-component": [
189184
+ { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2321" }
189185
+ ],
189182
189186
  "filter-nested-callback-predicate": [
189183
- { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2038" }
189187
+ { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2320" }
189184
189188
  ],
189185
189189
  "filter-nested-find-predicate": [
189186
- { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2038" }
189190
+ { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2320" }
189187
189191
  ],
189188
- "dangerous-inner-html-dynamic": [{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2215" }],
189192
+ "dangerous-inner-html-dynamic": [{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2319" }],
189189
189193
  "date-method-uncatalogued": [{ code: "BF021", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2274" }]
189190
189194
  };
189191
189195
  // src/render-divergences.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barefootjs/blade",
3
- "version": "0.21.4",
3
+ "version": "0.24.1",
4
4
  "description": "Laravel Blade (PHP) adapter for BarefootJS — compiles IR to .blade.php templates and ships the PHP BarefootJS rendering runtime on illuminate/view standalone",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -54,14 +54,14 @@
54
54
  "directory": "packages/adapter-blade"
55
55
  },
56
56
  "dependencies": {
57
- "@barefootjs/shared": "0.21.4"
57
+ "@barefootjs/shared": "0.24.1"
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.21.4",
64
+ "@barefootjs/jsx": "0.24.1",
65
65
  "typescript": "^5.0.0"
66
66
  }
67
67
  }
@@ -29,11 +29,15 @@ export const conformancePins: ConformancePins = {
29
29
  // can't bind as a template variable — refused loudly with BF101 (same
30
30
  // check and policy as Jinja / ERB) instead of silently iterating zero
31
31
  // times over an unbound name.
32
- 'static-array-from-props': [{ code: 'BF101', severity: 'error' }],
32
+ 'static-array-from-props': [
33
+ { code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2321' },
34
+ ],
33
35
  // BF101 (computed local-const loop array, as above) fires; BF103
34
36
  // (imported child in the loop body) no longer does now that the
35
37
  // conformance harness passes `siblingTemplatesRegistered: true` (#2205).
36
- 'static-array-from-props-with-component': [{ code: 'BF101', severity: 'error' }],
38
+ 'static-array-from-props-with-component': [
39
+ { code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2321' },
40
+ ],
37
41
  // #2087 Phase B: every `.map()` destructure shape in the shared corpus
38
42
  // now lowers on Blade via an `@php(...)` local built from the binding's
39
43
  // structured `segments` path (`bladeLoopBindingAccessor` in
@@ -63,12 +67,12 @@ export const conformancePins: ConformancePins = {
63
67
  // lossy, same as Jinja. The `/* @client */` twin
64
68
  // (`filter-nested-callback-predicate-client`) has no pin here: it must
65
69
  // render clean on every adapter, which asserts the suppression contract.
66
- // https://github.com/piconic-ai/barefootjs/issues/2038
70
+ // Faithful lowering tracked: https://github.com/piconic-ai/barefootjs/issues/2320 (successor to #2038)
67
71
  'filter-nested-callback-predicate': [
68
- { code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2038' },
72
+ { code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2320' },
69
73
  ],
70
74
  'filter-nested-find-predicate': [
71
- { code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2038' },
75
+ { code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2320' },
72
76
  ],
73
77
  // NB: TOP-LEVEL `.find` / `.findIndex` / `.findLast` / `.findLastIndex`
74
78
  // (text position) are NOT pinned here — like Jinja (unlike mojo, which
@@ -84,8 +88,8 @@ export const conformancePins: ConformancePins = {
84
88
  // `dangerouslySetInnerHTML={{ __html: '...' }}` is spliced directly into
85
89
  // the template as trusted raw text (`resolveDangerousInnerHtml`, #2207).
86
90
  // A dynamic/signal-derived value still refuses with BF101 — see the
87
- // `dangerous-inner-html-dynamic` fixture/pin below (tracked: #2215).
88
- 'dangerous-inner-html-dynamic': [{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2215' }],
91
+ // `dangerous-inner-html-dynamic` fixture/pin below (tracked: #2319, successor to #2215).
92
+ 'dangerous-inner-html-dynamic': [{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2319' }],
89
93
  // #2273: a method call on a prop typed as a built-in host rich type
90
94
  // (Date, Map, …) has no catalogued lowering in any adapter — this is a
91
95
  // compiler-level refusal (`checkRichTypeMethodCalls`, wired ahead of