Skip to content

RentnerPDF 1.0.2

Latest

Choose a tag to compare

@RentnerKev RentnerKev released this 03 Dec 14:41
f6ee60d

RentnerPDF release banner

v1.0.1...v1.0.2

Security

  • Bound resource use when parsing SVG, resolving theme and inline styles, caching assets, and laying out markers, text fields, and number formats.
  • Check render and font sizes before copying data across the native and WebAssembly boundaries. Handle errors consistently in native markup diagnostics.

Fixes

  • Honor the table header repeat style and keep shaping cache entries distinct when their context boundaries differ.
  • Reject invalid limits in both engine bindings and catch native engine initialization panics.
  • Keep the previous PDF visible until a replacement is ready, reuse completed renders when React Activity reveals a preview, and clear the React and playground previews when their document is removed. Avoid re-rendering equivalent dates.
  • Show the idle state for an empty playground editor and enforce local access and request limits on its development server.
  • Make the bundled declarations resolve under TypeScript 5.7 and later with NodeNext and bundler module resolution.
  • Fix worker initialization cleanup, the ir declaration lookup in /ai, and the Vite client guard for /ai.
  • Recognize the same 148 standard CSS named colors in document styles and SVG.

Performance

  • Load engine bindings and default fonts in parallel, transfer encoder-owned buffers to the worker, and keep Node.js URL and file modules out of browser worker bundles.
  • Speed up columnar table encoding on Node.js and Bun while preserving exact buffer lengths and the existing wire format.
  • Speed up font startup and straightforward left-to-right text, reuse styles across table cells, and reduce allocation in layout, SVG, and glyph output.

Build and verification

  • Consolidate the TypeScript distribution build, package WebAssembly in clean verification builds, and validate the package inventory. The package ships all engine variants in one @rentnerkev/pdf tarball. The benchmark measures each local engine footprint separately.
  • Pin CI build tools, validate workflow configuration against the trusted base, reject artifact digest mismatches, and check lockfile drift when crate manifests change.
  • Refresh the hosted benchmark report and its README summary from the December 3, 2026 run.