@formepdf/core 0.30.0 → 0.32.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.
@@ -10,7 +10,10 @@
10
10
  * `DecompressionStream`. No Node-only APIs.
11
11
  */
12
12
  export function uint8ArrayToBase64(bytes) {
13
- // Browser-native: binary string → btoa
13
+ if ('toBase64' in bytes && typeof bytes.toBase64 === 'function') {
14
+ return bytes.toBase64();
15
+ }
16
+ // Keep older browsers and edge runtimes working without a polyfill.
14
17
  let binary = '';
15
18
  for (let i = 0; i < bytes.length; i++) {
16
19
  binary += String.fromCharCode(bytes[i]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formepdf/core",
3
- "version": "0.30.0",
3
+ "version": "0.32.0",
4
4
  "description": "WASM-powered PDF rendering engine for Forme",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -64,22 +64,22 @@
64
64
  "prepublishOnly": "npm run build && ./scripts/assert-tarball.sh"
65
65
  },
66
66
  "dependencies": {
67
- "@formepdf/react": "0.30.0"
67
+ "@formepdf/react": "0.32.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.30.0",
75
- "@formepdf/html": "^0.30.0",
74
+ "@formepdf/templates": "0.32.0",
75
+ "@formepdf/html": "^0.32.0",
76
76
  "@pdf-testkit/vitest": "^0.5.0",
77
77
  "@types/node": "^22.0.0",
78
78
  "@types/react": "^19.0.0",
79
79
  "react": "^19.0.0",
80
80
  "typescript": "^5.7.0",
81
81
  "vitest": "^4.1.0",
82
- "@formepdf/fonts-standard": "0.30.0",
82
+ "@formepdf/fonts-standard": "0.32.0",
83
83
  "pdfjs-dist": "^4.10.38"
84
84
  },
85
85
  "files": [
package/pkg/forme_bg.wasm CHANGED
Binary file
package/pkg/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "forme-pdf",
3
3
  "type": "module",
4
4
  "description": "A page-native PDF rendering engine. Layout INTO pages, not onto an infinite canvas.",
5
- "version": "0.30.0",
5
+ "version": "0.32.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
Binary file
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "forme-pdf",
3
3
  "description": "A page-native PDF rendering engine. Layout INTO pages, not onto an infinite canvas.",
4
- "version": "0.30.0",
4
+ "version": "0.32.0",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
Binary file
@@ -2,7 +2,7 @@
2
2
  "name": "forme-pdf",
3
3
  "type": "module",
4
4
  "description": "A page-native PDF rendering engine. Layout INTO pages, not onto an infinite canvas.",
5
- "version": "0.30.0",
5
+ "version": "0.32.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",