@formepdf/core 0.18.0 → 0.20.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formepdf/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "WASM-powered PDF rendering engine for Forme",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -64,21 +64,22 @@
|
|
|
64
64
|
"prepublishOnly": "npm run build && ./scripts/assert-tarball.sh"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@formepdf/react": "0.
|
|
67
|
+
"@formepdf/react": "0.20.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "^18 || ^19"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@cloudflare/vitest-pool-workers": "^0.22.0",
|
|
74
|
-
"@formepdf/templates": "0.
|
|
75
|
-
"@
|
|
74
|
+
"@formepdf/templates": "0.20.0",
|
|
75
|
+
"@formepdf/html": "^0.20.0",
|
|
76
|
+
"@pdf-testkit/vitest": "^0.1.6",
|
|
76
77
|
"@types/node": "^22.0.0",
|
|
77
78
|
"@types/react": "^19.0.0",
|
|
78
79
|
"react": "^19.0.0",
|
|
79
80
|
"typescript": "^5.7.0",
|
|
80
81
|
"vitest": "^4.1.0",
|
|
81
|
-
"@formepdf/fonts-standard": "0.
|
|
82
|
+
"@formepdf/fonts-standard": "0.20.0"
|
|
82
83
|
},
|
|
83
84
|
"files": [
|
|
84
85
|
"dist/",
|
package/pkg/forme_bg.wasm
CHANGED
|
Binary file
|
package/pkg/package.json
CHANGED
package/pkg-node/forme_bg.wasm
CHANGED
|
Binary file
|
package/pkg-node/package.json
CHANGED
package/pkg-web/forme_bg.wasm
CHANGED
|
Binary file
|
package/pkg-web/package.json
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Dogfood experiment (non-gating): when the template-regression suite
|
|
3
|
+
# fails, pull the pdf-testkit semantic diff blocks out of its captured
|
|
4
|
+
# output so they land in the GitHub job summary instead of dying in the
|
|
5
|
+
# log scrollback. The vitest matcher already computes and formats these;
|
|
6
|
+
# this script only surfaces them. It must never fail a build: any
|
|
7
|
+
# problem here prints nothing and exits 0. Remove the experiment by
|
|
8
|
+
# deleting this file and the two CI lines that reference it.
|
|
9
|
+
set +e
|
|
10
|
+
LOG="${1:-/tmp/templates-regression.log}"
|
|
11
|
+
[ -f "$LOG" ] || exit 0
|
|
12
|
+
grep -q "PDF snapshot changed" "$LOG" || exit 0
|
|
13
|
+
|
|
14
|
+
echo "## Template regression: semantic diff (pdf-testkit)"
|
|
15
|
+
echo ""
|
|
16
|
+
echo "The gate above is authoritative; this explains what moved."
|
|
17
|
+
echo ""
|
|
18
|
+
awk '
|
|
19
|
+
/ FAIL .*regression/ { name=$0; sub(/^.*> /, "", name); next }
|
|
20
|
+
/PDF snapshot changed/ {
|
|
21
|
+
inblock=1
|
|
22
|
+
if (name != "") { print "### " name; name="" }
|
|
23
|
+
print "```"
|
|
24
|
+
sub(/^.*PDF snapshot changed/, "PDF snapshot changed")
|
|
25
|
+
print
|
|
26
|
+
next
|
|
27
|
+
}
|
|
28
|
+
inblock && /baseline: / { print; print "```"; print ""; inblock=0; next }
|
|
29
|
+
inblock { print }
|
|
30
|
+
' "$LOG"
|
|
31
|
+
exit 0
|