@barefootjs/mojolicious 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;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,eAAO,MAAM,eAAe,EAAE,
|
|
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,eAyK7B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1910,6 +1910,17 @@ Options:
|
|
|
1910
1910
|
var mojoAdapter = new MojoAdapter;
|
|
1911
1911
|
// src/conformance-pins.ts
|
|
1912
1912
|
var conformancePins = {
|
|
1913
|
+
"filter-typeof-predicate": [{ code: "BF021", severity: "error" }],
|
|
1914
|
+
"map-preamble-branch-body": [{ code: "BF021", severity: "error" }],
|
|
1915
|
+
"map-array-builder-body": [{ code: "BF021", severity: "error" }],
|
|
1916
|
+
"map-array-builder-escaping": [{ code: "BF021", severity: "error" }],
|
|
1917
|
+
"fill-unsupported": [{ code: "BF101", severity: "error" }],
|
|
1918
|
+
"find-typeof-predicate": [{ code: "BF101", severity: "error" }],
|
|
1919
|
+
"some-typeof-predicate": [{ code: "BF101", severity: "error" }],
|
|
1920
|
+
"every-typeof-predicate": [{ code: "BF101", severity: "error" }],
|
|
1921
|
+
"reduce-typeof-body": [{ code: "BF101", severity: "error" }],
|
|
1922
|
+
"reduce-right-typeof-body": [{ code: "BF101", severity: "error" }],
|
|
1923
|
+
"flatmap-typeof-projection": [{ code: "BF101", severity: "error" }],
|
|
1913
1924
|
"static-array-from-props": [
|
|
1914
1925
|
{ code: "BF101", severity: "error", issue: "https://github.com/piconic-ai/barefootjs/issues/2321" }
|
|
1915
1926
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barefootjs/mojolicious",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.3",
|
|
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.26.
|
|
55
|
+
"@barefootjs/shared": "0.26.3"
|
|
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.26.
|
|
63
|
+
"@barefootjs/jsx": "0.26.3"
|
|
64
64
|
}
|
|
65
65
|
}
|
package/src/conformance-pins.ts
CHANGED
|
@@ -9,6 +9,34 @@
|
|
|
9
9
|
import type { ConformancePins } from '@barefootjs/jsx'
|
|
10
10
|
|
|
11
11
|
export const conformancePins: ConformancePins = {
|
|
12
|
+
// Off-subset filter predicate (`typeof`) the compiler can't lower; a
|
|
13
|
+
// JS-runtime target runs it, a DSL adapter surfaces BF021 + `/* @client */`.
|
|
14
|
+
// See spec/callback-fidelity.md.
|
|
15
|
+
'filter-typeof-predicate': [{ code: 'BF021', severity: 'error' }],
|
|
16
|
+
// A `.map()` body with a `const`/`let` preamble before its branches:
|
|
17
|
+
// a JS runtime folds it, a DSL adapter can't carry the loop-local into a
|
|
18
|
+
// conditional branch template, so it refuses with BF021 + `/* @client */`.
|
|
19
|
+
// See spec/callback-fidelity.md.
|
|
20
|
+
'map-preamble-branch-body': [{ code: 'BF021', severity: 'error' }],
|
|
21
|
+
'map-array-builder-body': [{ code: 'BF021', severity: 'error' }],
|
|
22
|
+
'map-array-builder-escaping': [{ code: 'BF021', severity: 'error' }],
|
|
23
|
+
// `.fill(value)` mutates the receiver in place — no template lowering
|
|
24
|
+
// on any DSL adapter; a JS-runtime target runs it, a DSL adapter
|
|
25
|
+
// surfaces BF101 + `/* @client */`. See spec/callback-fidelity.md.
|
|
26
|
+
'fill-unsupported': [{ code: 'BF101', severity: 'error' }],
|
|
27
|
+
// Off-subset `.find()` / `.some()` / `.every()` predicate (`typeof`) the
|
|
28
|
+
// compiler can't lower; a JS-runtime target runs it, a DSL adapter
|
|
29
|
+
// surfaces BF101 + `/* @client */`. See spec/callback-fidelity.md.
|
|
30
|
+
'find-typeof-predicate': [{ code: 'BF101', severity: 'error' }],
|
|
31
|
+
'some-typeof-predicate': [{ code: 'BF101', severity: 'error' }],
|
|
32
|
+
'every-typeof-predicate': [{ code: 'BF101', severity: 'error' }],
|
|
33
|
+
// Off-subset `.reduce()` / `.reduceRight()` body / `.flatMap()`
|
|
34
|
+
// projection (`typeof`) the compiler can't lower; a JS-runtime target
|
|
35
|
+
// runs it, a DSL adapter surfaces BF101 + `/* @client */`.
|
|
36
|
+
// See spec/callback-fidelity.md.
|
|
37
|
+
'reduce-typeof-body': [{ code: 'BF101', severity: 'error' }],
|
|
38
|
+
'reduce-right-typeof-body': [{ code: 'BF101', severity: 'error' }],
|
|
39
|
+
'flatmap-typeof-projection': [{ code: 'BF101', severity: 'error' }],
|
|
12
40
|
// `todo-app` / `todo-app-ssr` no longer pinned (#2205) — the conformance
|
|
13
41
|
// harness now passes `siblingTemplatesRegistered: true` for fixtures with
|
|
14
42
|
// sibling `components`, matching `bf build`'s real semantics, so the
|