@takumi-rs/core 2.13.7 → 2.14.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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  **Native Node.js bindings for [Takumi](https://github.com/kane50613/takumi), a Rust image rendering engine.**
7
7
 
8
- The high-performance N-API runtime that turns node trees into OG cards, banners, and animations, no headless browser required.
8
+ Render node trees as Open Graph images, banners, and animations in Node.js or Bun. For JSX, HTML, and automatic resource loading, use [`takumi-js`](https://www.npmjs.com/package/takumi-js).
9
9
 
10
10
  [Documentation](https://takumi.kane.tw/docs/) · [Playground](https://takumi.kane.tw/playground)
11
11
 
@@ -37,7 +37,7 @@ const png = await renderer.render(
37
37
 
38
38
  ## Fonts
39
39
 
40
- Pass fonts on the render options, no separate registration step:
40
+ Pass fonts through the render options. A separate registration step is optional:
41
41
 
42
42
  ```ts
43
43
  import { readFile } from "node:fs/promises";
package/dist/export.cjs CHANGED
@@ -3,7 +3,6 @@ let module$1 = require(/* turbopackOptional: true */ "module");
3
3
  let _takumi_rs_helpers_renderer = require(/* turbopackOptional: true */ "@takumi-rs/helpers/renderer");
4
4
  //#region index.js
5
5
  const require$1 = (0, module$1.createRequire)(require(/* turbopackOptional: true */ "url").pathToFileURL(__filename).href);
6
- new URL(".", require(/* turbopackOptional: true */ "url").pathToFileURL(__filename).href).pathname;
7
6
  const { readFileSync } = require$1(/* turbopackOptional: true */ "fs");
8
7
  let nativeBinding = null;
9
8
  const loadErrors = [];
@@ -60,7 +59,7 @@ function requireNative() {
60
59
  try {
61
60
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/core.android-arm64.node");
62
61
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/package.json").version;
63
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
62
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
64
63
  return binding;
65
64
  } catch (e) {
66
65
  loadErrors.push(e);
@@ -74,7 +73,7 @@ function requireNative() {
74
73
  try {
75
74
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/core.android-arm-eabi.node");
76
75
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/package.json").version;
77
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
76
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
78
77
  return binding;
79
78
  } catch (e) {
80
79
  loadErrors.push(e);
@@ -91,7 +90,7 @@ function requireNative() {
91
90
  try {
92
91
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/core.win32-x64-gnu.node");
93
92
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/package.json").version;
94
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
93
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
95
94
  return binding;
96
95
  } catch (e) {
97
96
  loadErrors.push(e);
@@ -105,7 +104,7 @@ function requireNative() {
105
104
  try {
106
105
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/core.win32-x64-msvc.node");
107
106
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/package.json").version;
108
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
107
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
109
108
  return binding;
110
109
  } catch (e) {
111
110
  loadErrors.push(e);
@@ -120,7 +119,7 @@ function requireNative() {
120
119
  try {
121
120
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/core.win32-ia32-msvc.node");
122
121
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/package.json").version;
123
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
122
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
124
123
  return binding;
125
124
  } catch (e) {
126
125
  loadErrors.push(e);
@@ -134,7 +133,7 @@ function requireNative() {
134
133
  try {
135
134
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/core.win32-arm64-msvc.node");
136
135
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/package.json").version;
137
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
136
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
138
137
  return binding;
139
138
  } catch (e) {
140
139
  loadErrors.push(e);
@@ -149,7 +148,7 @@ function requireNative() {
149
148
  try {
150
149
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/core.darwin-universal.node");
151
150
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/package.json").version;
152
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
151
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
153
152
  return binding;
154
153
  } catch (e) {
155
154
  loadErrors.push(e);
@@ -163,7 +162,7 @@ function requireNative() {
163
162
  try {
164
163
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/core.darwin-x64.node");
165
164
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/package.json").version;
166
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
165
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
167
166
  return binding;
168
167
  } catch (e) {
169
168
  loadErrors.push(e);
@@ -177,7 +176,7 @@ function requireNative() {
177
176
  try {
178
177
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/core.darwin-arm64.node");
179
178
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/package.json").version;
180
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
179
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
181
180
  return binding;
182
181
  } catch (e) {
183
182
  loadErrors.push(e);
@@ -193,7 +192,7 @@ function requireNative() {
193
192
  try {
194
193
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/core.freebsd-x64.node");
195
194
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/package.json").version;
196
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
195
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
197
196
  return binding;
198
197
  } catch (e) {
199
198
  loadErrors.push(e);
@@ -207,7 +206,7 @@ function requireNative() {
207
206
  try {
208
207
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/core.freebsd-arm64.node");
209
208
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/package.json").version;
210
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
209
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
211
210
  return binding;
212
211
  } catch (e) {
213
212
  loadErrors.push(e);
@@ -224,7 +223,7 @@ function requireNative() {
224
223
  try {
225
224
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/core.linux-x64-musl.node");
226
225
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/package.json").version;
227
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
226
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
228
227
  return binding;
229
228
  } catch (e) {
230
229
  loadErrors.push(e);
@@ -238,7 +237,7 @@ function requireNative() {
238
237
  try {
239
238
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/core.linux-x64-gnu.node");
240
239
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/package.json").version;
241
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
240
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
242
241
  return binding;
243
242
  } catch (e) {
244
243
  loadErrors.push(e);
@@ -254,7 +253,7 @@ function requireNative() {
254
253
  try {
255
254
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/core.linux-arm64-musl.node");
256
255
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/package.json").version;
257
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
256
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
258
257
  return binding;
259
258
  } catch (e) {
260
259
  loadErrors.push(e);
@@ -268,7 +267,7 @@ function requireNative() {
268
267
  try {
269
268
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/core.linux-arm64-gnu.node");
270
269
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/package.json").version;
271
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
270
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
272
271
  return binding;
273
272
  } catch (e) {
274
273
  loadErrors.push(e);
@@ -284,7 +283,7 @@ function requireNative() {
284
283
  try {
285
284
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/core.linux-arm-musleabihf.node");
286
285
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/package.json").version;
287
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
286
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
288
287
  return binding;
289
288
  } catch (e) {
290
289
  loadErrors.push(e);
@@ -298,7 +297,7 @@ function requireNative() {
298
297
  try {
299
298
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/core.linux-arm-gnueabihf.node");
300
299
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/package.json").version;
301
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
300
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
302
301
  return binding;
303
302
  } catch (e) {
304
303
  loadErrors.push(e);
@@ -314,7 +313,7 @@ function requireNative() {
314
313
  try {
315
314
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/core.linux-loong64-musl.node");
316
315
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/package.json").version;
317
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
316
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
318
317
  return binding;
319
318
  } catch (e) {
320
319
  loadErrors.push(e);
@@ -328,7 +327,7 @@ function requireNative() {
328
327
  try {
329
328
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/core.linux-loong64-gnu.node");
330
329
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/package.json").version;
331
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
330
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
332
331
  return binding;
333
332
  } catch (e) {
334
333
  loadErrors.push(e);
@@ -344,7 +343,7 @@ function requireNative() {
344
343
  try {
345
344
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/core.linux-riscv64-musl.node");
346
345
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/package.json").version;
347
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
346
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
348
347
  return binding;
349
348
  } catch (e) {
350
349
  loadErrors.push(e);
@@ -358,7 +357,7 @@ function requireNative() {
358
357
  try {
359
358
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/core.linux-riscv64-gnu.node");
360
359
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/package.json").version;
361
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
360
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
362
361
  return binding;
363
362
  } catch (e) {
364
363
  loadErrors.push(e);
@@ -373,7 +372,7 @@ function requireNative() {
373
372
  try {
374
373
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/core.linux-ppc64-gnu.node");
375
374
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/package.json").version;
376
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
375
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
377
376
  return binding;
378
377
  } catch (e) {
379
378
  loadErrors.push(e);
@@ -387,7 +386,7 @@ function requireNative() {
387
386
  try {
388
387
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/core.linux-s390x-gnu.node");
389
388
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/package.json").version;
390
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
389
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
391
390
  return binding;
392
391
  } catch (e) {
393
392
  loadErrors.push(e);
@@ -403,7 +402,7 @@ function requireNative() {
403
402
  try {
404
403
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/core.openharmony-arm64.node");
405
404
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/package.json").version;
406
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
405
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
407
406
  return binding;
408
407
  } catch (e) {
409
408
  loadErrors.push(e);
@@ -417,7 +416,7 @@ function requireNative() {
417
416
  try {
418
417
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/core.openharmony-x64.node");
419
418
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/package.json").version;
420
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
419
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
421
420
  return binding;
422
421
  } catch (e) {
423
422
  loadErrors.push(e);
@@ -431,7 +430,7 @@ function requireNative() {
431
430
  try {
432
431
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/core.openharmony-arm.node");
433
432
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/package.json").version;
434
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
433
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
435
434
  return binding;
436
435
  } catch (e) {
437
436
  loadErrors.push(e);
@@ -521,7 +520,7 @@ if (!nativeBinding || forceWasi) {
521
520
  if (!candidateFailed) {
522
521
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
523
522
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-wasm32-wasi/package.json").version;
524
- if (bindingPackageVersion !== "2.13.7") throw new Error(`WASI binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
523
+ if (bindingPackageVersion !== "2.14.0") throw new Error(`WASI binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
525
524
  }
526
525
  wasiBinding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-wasm32-wasi/core.wasm32-wasi.node");
527
526
  nativeBinding = wasiBinding;
package/dist/export.d.cts CHANGED
@@ -187,7 +187,7 @@ interface RendererOptions {
187
187
  /**
188
188
  * Byte budget shared by every cached resource — decoded images, SVG
189
189
  * rasters, parsed stylesheets. `0` disables caching.
190
- * @default 16 MiB
190
+ * @default 64 MiB
191
191
  */
192
192
  cacheMaxBytes?: number;
193
193
  }
package/dist/export.d.mts CHANGED
@@ -187,7 +187,7 @@ interface RendererOptions {
187
187
  /**
188
188
  * Byte budget shared by every cached resource — decoded images, SVG
189
189
  * rasters, parsed stylesheets. `0` disables caching.
190
- * @default 16 MiB
190
+ * @default 64 MiB
191
191
  */
192
192
  cacheMaxBytes?: number;
193
193
  }
package/dist/export.mjs CHANGED
@@ -58,7 +58,7 @@ function requireNative() {
58
58
  try {
59
59
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/core.android-arm64.node");
60
60
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/package.json").version;
61
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
61
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
62
62
  return binding;
63
63
  } catch (e) {
64
64
  loadErrors.push(e);
@@ -72,7 +72,7 @@ function requireNative() {
72
72
  try {
73
73
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/core.android-arm-eabi.node");
74
74
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/package.json").version;
75
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
75
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
76
76
  return binding;
77
77
  } catch (e) {
78
78
  loadErrors.push(e);
@@ -89,7 +89,7 @@ function requireNative() {
89
89
  try {
90
90
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/core.win32-x64-gnu.node");
91
91
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/package.json").version;
92
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
92
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
93
93
  return binding;
94
94
  } catch (e) {
95
95
  loadErrors.push(e);
@@ -103,7 +103,7 @@ function requireNative() {
103
103
  try {
104
104
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/core.win32-x64-msvc.node");
105
105
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/package.json").version;
106
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
106
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
107
107
  return binding;
108
108
  } catch (e) {
109
109
  loadErrors.push(e);
@@ -118,7 +118,7 @@ function requireNative() {
118
118
  try {
119
119
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/core.win32-ia32-msvc.node");
120
120
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/package.json").version;
121
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
121
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
122
122
  return binding;
123
123
  } catch (e) {
124
124
  loadErrors.push(e);
@@ -132,7 +132,7 @@ function requireNative() {
132
132
  try {
133
133
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/core.win32-arm64-msvc.node");
134
134
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/package.json").version;
135
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
135
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
136
136
  return binding;
137
137
  } catch (e) {
138
138
  loadErrors.push(e);
@@ -147,7 +147,7 @@ function requireNative() {
147
147
  try {
148
148
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/core.darwin-universal.node");
149
149
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/package.json").version;
150
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
150
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
151
151
  return binding;
152
152
  } catch (e) {
153
153
  loadErrors.push(e);
@@ -161,7 +161,7 @@ function requireNative() {
161
161
  try {
162
162
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/core.darwin-x64.node");
163
163
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/package.json").version;
164
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
164
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
165
165
  return binding;
166
166
  } catch (e) {
167
167
  loadErrors.push(e);
@@ -175,7 +175,7 @@ function requireNative() {
175
175
  try {
176
176
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/core.darwin-arm64.node");
177
177
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/package.json").version;
178
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
178
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
179
179
  return binding;
180
180
  } catch (e) {
181
181
  loadErrors.push(e);
@@ -191,7 +191,7 @@ function requireNative() {
191
191
  try {
192
192
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/core.freebsd-x64.node");
193
193
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/package.json").version;
194
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
194
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
195
195
  return binding;
196
196
  } catch (e) {
197
197
  loadErrors.push(e);
@@ -205,7 +205,7 @@ function requireNative() {
205
205
  try {
206
206
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/core.freebsd-arm64.node");
207
207
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/package.json").version;
208
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
208
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
209
209
  return binding;
210
210
  } catch (e) {
211
211
  loadErrors.push(e);
@@ -222,7 +222,7 @@ function requireNative() {
222
222
  try {
223
223
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/core.linux-x64-musl.node");
224
224
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/package.json").version;
225
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
225
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
226
226
  return binding;
227
227
  } catch (e) {
228
228
  loadErrors.push(e);
@@ -236,7 +236,7 @@ function requireNative() {
236
236
  try {
237
237
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/core.linux-x64-gnu.node");
238
238
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/package.json").version;
239
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
239
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
240
240
  return binding;
241
241
  } catch (e) {
242
242
  loadErrors.push(e);
@@ -252,7 +252,7 @@ function requireNative() {
252
252
  try {
253
253
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/core.linux-arm64-musl.node");
254
254
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/package.json").version;
255
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
255
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
256
256
  return binding;
257
257
  } catch (e) {
258
258
  loadErrors.push(e);
@@ -266,7 +266,7 @@ function requireNative() {
266
266
  try {
267
267
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/core.linux-arm64-gnu.node");
268
268
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/package.json").version;
269
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
269
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
270
270
  return binding;
271
271
  } catch (e) {
272
272
  loadErrors.push(e);
@@ -282,7 +282,7 @@ function requireNative() {
282
282
  try {
283
283
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/core.linux-arm-musleabihf.node");
284
284
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/package.json").version;
285
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
285
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
286
286
  return binding;
287
287
  } catch (e) {
288
288
  loadErrors.push(e);
@@ -296,7 +296,7 @@ function requireNative() {
296
296
  try {
297
297
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/core.linux-arm-gnueabihf.node");
298
298
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/package.json").version;
299
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
299
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
300
300
  return binding;
301
301
  } catch (e) {
302
302
  loadErrors.push(e);
@@ -312,7 +312,7 @@ function requireNative() {
312
312
  try {
313
313
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/core.linux-loong64-musl.node");
314
314
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/package.json").version;
315
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
315
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
316
316
  return binding;
317
317
  } catch (e) {
318
318
  loadErrors.push(e);
@@ -326,7 +326,7 @@ function requireNative() {
326
326
  try {
327
327
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/core.linux-loong64-gnu.node");
328
328
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/package.json").version;
329
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
329
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
330
330
  return binding;
331
331
  } catch (e) {
332
332
  loadErrors.push(e);
@@ -342,7 +342,7 @@ function requireNative() {
342
342
  try {
343
343
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/core.linux-riscv64-musl.node");
344
344
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/package.json").version;
345
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
345
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
346
346
  return binding;
347
347
  } catch (e) {
348
348
  loadErrors.push(e);
@@ -356,7 +356,7 @@ function requireNative() {
356
356
  try {
357
357
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/core.linux-riscv64-gnu.node");
358
358
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/package.json").version;
359
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
359
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
360
360
  return binding;
361
361
  } catch (e) {
362
362
  loadErrors.push(e);
@@ -371,7 +371,7 @@ function requireNative() {
371
371
  try {
372
372
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/core.linux-ppc64-gnu.node");
373
373
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/package.json").version;
374
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
374
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
375
375
  return binding;
376
376
  } catch (e) {
377
377
  loadErrors.push(e);
@@ -385,7 +385,7 @@ function requireNative() {
385
385
  try {
386
386
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/core.linux-s390x-gnu.node");
387
387
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/package.json").version;
388
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
388
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
389
389
  return binding;
390
390
  } catch (e) {
391
391
  loadErrors.push(e);
@@ -401,7 +401,7 @@ function requireNative() {
401
401
  try {
402
402
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/core.openharmony-arm64.node");
403
403
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/package.json").version;
404
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
404
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
405
405
  return binding;
406
406
  } catch (e) {
407
407
  loadErrors.push(e);
@@ -415,7 +415,7 @@ function requireNative() {
415
415
  try {
416
416
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/core.openharmony-x64.node");
417
417
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/package.json").version;
418
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
418
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
419
419
  return binding;
420
420
  } catch (e) {
421
421
  loadErrors.push(e);
@@ -429,7 +429,7 @@ function requireNative() {
429
429
  try {
430
430
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/core.openharmony-arm.node");
431
431
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/package.json").version;
432
- if (bindingPackageVersion !== "2.13.7" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
432
+ if (bindingPackageVersion !== "2.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
433
433
  return binding;
434
434
  } catch (e) {
435
435
  loadErrors.push(e);
@@ -519,7 +519,7 @@ if (!nativeBinding || forceWasi) {
519
519
  if (!candidateFailed) {
520
520
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
521
521
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-wasm32-wasi/package.json").version;
522
- if (bindingPackageVersion !== "2.13.7") throw new Error(`WASI binding package version mismatch, expected 2.13.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
522
+ if (bindingPackageVersion !== "2.14.0") throw new Error(`WASI binding package version mismatch, expected 2.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
523
523
  }
524
524
  wasiBinding = require(/* turbopackOptional: true */ "@takumi-rs/core-wasm32-wasi/core.wasm32-wasi.node");
525
525
  nativeBinding = wasiBinding;
package/index.d.ts CHANGED
@@ -243,7 +243,7 @@ export interface RendererOptions {
243
243
  /**
244
244
  * Byte budget shared by every cached resource — decoded images, SVG
245
245
  * rasters, parsed stylesheets. `0` disables caching.
246
- * @default 16 MiB
246
+ * @default 64 MiB
247
247
  */
248
248
  cacheMaxBytes?: number
249
249
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takumi-rs/core",
3
- "version": "2.13.7",
3
+ "version": "2.14.0",
4
4
  "description": "Render OG images from Takumi node trees with native Node.js bindings. No headless browser.",
5
5
  "keywords": [
6
6
  "css",
@@ -69,17 +69,17 @@
69
69
  "publish-lint": "attw --pack . && publint --strict ."
70
70
  },
71
71
  "dependencies": {
72
- "@takumi-rs/helpers": "2.13.7"
72
+ "@takumi-rs/helpers": "2.14.0"
73
73
  },
74
74
  "devDependencies": {
75
- "@napi-rs/cli": "3.8.6",
76
- "@types/bun": "^1.4.0",
75
+ "@napi-rs/cli": "3.9.0",
76
+ "@types/bun": "^1.4.1",
77
77
  "@types/react": "19.2.18",
78
78
  "csstype": "^3.2.3",
79
- "lucide-react": "^1.37.0",
79
+ "lucide-react": "^1.45.0",
80
80
  "mitata": "^1.0.34",
81
81
  "react": "^19.2.8",
82
- "tsdown": "0.22.14",
82
+ "tsdown": "0.23.0",
83
83
  "unrun": "^0.3.1"
84
84
  },
85
85
  "peerDependencies": {
@@ -108,13 +108,13 @@
108
108
  "node": ">=18"
109
109
  },
110
110
  "optionalDependencies": {
111
- "@takumi-rs/core-darwin-x64": "2.13.7",
112
- "@takumi-rs/core-darwin-arm64": "2.13.7",
113
- "@takumi-rs/core-linux-arm64-gnu": "2.13.7",
114
- "@takumi-rs/core-linux-arm64-musl": "2.13.7",
115
- "@takumi-rs/core-win32-arm64-msvc": "2.13.7",
116
- "@takumi-rs/core-linux-x64-gnu": "2.13.7",
117
- "@takumi-rs/core-linux-x64-musl": "2.13.7",
118
- "@takumi-rs/core-win32-x64-msvc": "2.13.7"
111
+ "@takumi-rs/core-darwin-x64": "2.14.0",
112
+ "@takumi-rs/core-darwin-arm64": "2.14.0",
113
+ "@takumi-rs/core-linux-arm64-gnu": "2.14.0",
114
+ "@takumi-rs/core-linux-arm64-musl": "2.14.0",
115
+ "@takumi-rs/core-win32-arm64-msvc": "2.14.0",
116
+ "@takumi-rs/core-linux-x64-gnu": "2.14.0",
117
+ "@takumi-rs/core-linux-x64-musl": "2.14.0",
118
+ "@takumi-rs/core-win32-x64-msvc": "2.14.0"
119
119
  }
120
120
  }