@barefootjs/mojolicious 0.21.4 → 0.23.0

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,eAyI7B,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,eA6I7B,CAAA"}
package/dist/index.js CHANGED
@@ -1907,12 +1907,16 @@ Options:
1907
1907
  var mojoAdapter = new MojoAdapter;
1908
1908
  // src/conformance-pins.ts
1909
1909
  var conformancePins = {
1910
- "static-array-from-props": [{ code: "BF101", severity: "error" }],
1911
- "static-array-from-props-with-component": [{ code: "BF101", severity: "error" }],
1910
+ "static-array-from-props": [
1911
+ { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2321" }
1912
+ ],
1913
+ "static-array-from-props-with-component": [
1914
+ { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2321" }
1915
+ ],
1912
1916
  "filter-nested-find-predicate": [
1913
- { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2038" }
1917
+ { code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2320" }
1914
1918
  ],
1915
- "dangerous-inner-html-dynamic": [{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2215" }],
1919
+ "dangerous-inner-html-dynamic": [{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2319" }],
1916
1920
  "date-method-uncatalogued": [{ code: "BF021", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2274" }]
1917
1921
  };
1918
1922
  // src/render-divergences.ts
@@ -1,5 +1,5 @@
1
1
  package BarefootJS::Backend::Mojo;
2
- our $VERSION = "0.21.3";
2
+ our $VERSION = "0.21.4";
3
3
  use Mojo::Base -base, -signatures;
4
4
 
5
5
  use Mojo::ByteStream qw(b);
@@ -1,5 +1,5 @@
1
1
  package Mojolicious::Plugin::BarefootJS::DevReload;
2
- our $VERSION = "0.21.3";
2
+ our $VERSION = "0.21.4";
3
3
  use Mojo::Base 'Mojolicious::Plugin', -signatures;
4
4
 
5
5
  =head1 NAME
@@ -1,5 +1,5 @@
1
1
  package Mojolicious::Plugin::BarefootJS;
2
- our $VERSION = "0.21.3";
2
+ our $VERSION = "0.21.4";
3
3
  use Mojo::Base 'Mojolicious::Plugin', -signatures;
4
4
 
5
5
  use Mojo::File qw(path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barefootjs/mojolicious",
3
- "version": "0.21.4",
3
+ "version": "0.23.0",
4
4
  "description": "Mojolicious EP template adapter for BarefootJS - generates .html.ep files from IR",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -52,7 +52,7 @@
52
52
  "directory": "packages/adapter-mojolicious"
53
53
  },
54
54
  "dependencies": {
55
- "@barefootjs/shared": "0.21.4"
55
+ "@barefootjs/shared": "0.23.0"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@barefootjs/jsx": ">=0.2.0",
@@ -60,6 +60,6 @@
60
60
  },
61
61
  "devDependencies": {
62
62
  "@barefootjs/adapter-tests": "0.1.0",
63
- "@barefootjs/jsx": "0.21.4"
63
+ "@barefootjs/jsx": "0.23.0"
64
64
  }
65
65
  }
@@ -31,12 +31,16 @@ export const conformancePins: ConformancePins = {
31
31
  // bind as a template variable — see the dedicated `arrayConst` BF101
32
32
  // check in `renderLoop`. This was always true; it was simply
33
33
  // unreachable before because BF104 refused the destructure shape 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
41
45
  // now lower via #2087 Phase B's `segments`-walking accessor:
42
46
  // - object-rest read via member access (`rest-destructure-object-in-map`):
@@ -64,9 +68,9 @@ export const conformancePins: ConformancePins = {
64
68
  // The nested `.some` sibling (`filter-nested-callback-predicate`) is
65
69
  // NOT pinned: Mojo lowers it to a real inline Perl `grep` and must
66
70
  // render to Hono parity instead.
67
- // https://github.com/piconic-ai/barefootjs/issues/2038
71
+ // Faithful lowering tracked: https://github.com/piconic-ai/barefootjs/issues/2320 (successor to #2038)
68
72
  'filter-nested-find-predicate': [
69
- { code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2038' },
73
+ { code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2320' },
70
74
  ],
71
75
  // #1467 demo-corpus context providers (`radio-group`, `accordion`,
72
76
  // `dialog`, `popover`, `select`, `dropdown-menu`, `combobox`,
@@ -137,8 +141,8 @@ export const conformancePins: ConformancePins = {
137
141
  // `dangerouslySetInnerHTML={{ __html: '...' }}` is spliced directly into
138
142
  // the template as trusted raw text (`resolveDangerousInnerHtml`, #2207).
139
143
  // A dynamic/signal-derived value still refuses with BF101 — see the
140
- // `dangerous-inner-html-dynamic` fixture/pin below (tracked: #2215).
141
- 'dangerous-inner-html-dynamic': [{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2215' }],
144
+ // `dangerous-inner-html-dynamic` fixture/pin below (tracked: #2319, successor to #2215).
145
+ 'dangerous-inner-html-dynamic': [{ code: 'BF101', severity: 'error', issue: 'https://github.com/piconic-ai/barefootjs/issues/2319' }],
142
146
  // #2273: a method call on a prop typed as a built-in host rich type
143
147
  // (Date, Map, …) has no catalogued lowering in any adapter — this is a
144
148
  // compiler-level refusal (`checkRichTypeMethodCalls`, wired ahead of