Skip to content

RentnerPDF 0.1.0

Choose a tag to compare

@RentnerKev RentnerKev released this 02 Dec 15:26
5e1f303

RentnerPDF release banner

The first npm release includes the TypeScript API, six Windows and Linux platform packages, and the WebAssembly package. Raw IR documents use schema version 1, which accepts explicit null only for page variant overrides.

💥 Breaking Changes

  • apply the Phase 7 API decisions (37a8e2f)

🌟 Features

  • enforce raster and letterhead render budgets (b8ef1bd)
  • benchmarks: cap S11 at 30 minutes per library and add report notes (f15f38e)
  • benchmarks: warm medians in the local section of the report page (007c4ee)
  • benchmarks: name every commit of a local run on the report page (dfe9e27)
  • benchmarks: reproduction, caveats and local runs on the report page (1741bcd)
  • add the engine lifecycle with registerFont and close (a449936)
  • core: register fonts on a running engine and close native handles (abf89eb)
  • add hyphenation, justification and optimal line breaking to the text pipeline (74eb625)
  • commit the preliminary benchmark report and run measurements on demand only (b337331)
  • rebase the budgets on the engine thread pool from main (26ea877)
  • stop benchmark children at three quarters of the machine's memory (f7e8833)
  • set the budget baselines and tolerances from hosted-runner variance runs (e82c4d8)
  • keep partial benchmark results and document the budgets and the report (b73bad1)
  • add the S8, S9, S10, S11 and S13 benchmarks, CI budgets and the report workflow (059946f)
  • add tagged PDF and PDF/UA-1 output (079913b)
  • add PDF/A output, attachments and the Factur-X descriptor (18b1357)
  • text: add bidi helpers, emoji-aware fallback, variable fonts and dir (6c3e5b6)
  • render the playground in a Web Worker (9688bb6)
  • add usePdf and PdfPreview for live browser previews (5462e31)
  • add a Web Worker engine for the WebAssembly backend (c95c414)
  • add renderMany, renderToStream, signals and engine limits to the TS API (8eb80d6)
  • add engine threads, shaped-run cache, cancellation and limits (6dababe)
  • add usage guide, React-PDF migration notes and playground alpha (f3dd404)
  • add the Vite plugin and trace-friendly package loading (70c882e)
  • add the themed corpus document, IntelliSense check and docs (9d62680)
  • pass themes through the bindings and add themeFromCss (cfa6152)
  • read app themes and check className coverage against Tailwind (dcc53a7)
  • benchmarks: add S14 authoring paths (a357f75)
  • add @rentnerkev/pdf/react with renderToPdf (6ed110e)
  • core: parse the React path's markup into the IR (5a5103e)
  • add page templates, placeholders and wrap diagnostics (66d8bb6)
  • add data-driven tables with the columnar channel (3cbff69)
  • render the S2 invoice benchmark with RentnerPDF tables (78999c2)
  • add Table, Row and Cell components and factories (387a588)
  • add element-based tables to the core (c94689c)
  • bench: add S5, an image catalog with 50 JPEGs and 20 alpha PNGs (68e7c92)
  • add PDF letterheads drawn behind page content (de6a971)
  • add links, anchors, the document outline and more metadata (1ec2a84)
  • add the Svg component, drawn as vectors with krilla-svg (bf7bfa6)
  • core: cache decoded images per engine and check pixels first (78b0a47)
  • web: add the WebAssembly backend (3b2fb31)
  • web: add Image, PageBreak and Keep with an asset channel (ec2ecfd)
  • core: render images from asset buffers (3700caa)
  • benchmarks: add scenario S3, a 100-page text report (ba76583)
  • web: add the own JSX runtime and the authoring API (10d491c)
  • layout: add block, flex and grid layout with pagination (a292441)
  • text: add the text pipeline and bundle Noto Sans as default font (0bfa0e9)
  • style: add className with Tailwind semantics and the built-in theme (db9f51e)
  • engine: add IR v0 and the end-to-end engine skeleton (64f8b7e)
  • add pagination model spike (6caa583)
  • spike: add React integration paths and measurements for Spike E (504babf)
  • spike: add React markup parser prototype for Spike E (b9a8e39)
  • add table-driven className parser prototype (b839867)
  • add Tailwind tooling checks for the className spike (5463ea6)
  • add text stack spike (879c87d)
  • add krilla capability spike (11a9ab1)
  • spike: add boundary transfer benchmark harness (1d0373b)
  • spike: add boundary transfer IR and decoders (b53dd5f)
  • add distribution proof for native and WASM packages (919d043)

🐛 Fixes

  • text: finish bidi and hyphenation verification (05faddc)
  • keep columnar IR types internal (0553eeb)
  • fonts: refuse fonts whose name table subsetter cannot subset (f4e8884)
  • benchmarks: singular wording for one missing scenario (234d28c)
  • keep Tailwind CSS v4 font-size semantics with tailwind-merge 3.7.2 (b6fd37d)
  • benchmarks: hoist the result reader of bench:publish (2d23ec3)
  • check byte limits and restart the WebAssembly module after a trap (7824966)
  • take hayro-write 0.9 for letterheads over krilla's pin (9c5faee)
  • refuse fonts with units per em outside 16 to 16384 (3b5f96a)
  • refuse fonts with contourless glyphs that carry point data (93744ae)
  • draw .notdef for glyph ids beyond 16 bits (bae704f)
  • count SVG style rules before simplecss parses them (def84c9)
  • confine theme package imports and bound theme warnings (7b2ca24)
  • bound balanced and total-fit line breaking (a434ea2)
  • keep metadata and attachment names from breaking the XMP packet (ccd9989)
  • measure what usvg builds from an SVG before converting it (fb5b5db)
  • keep a broken soft hyphen's advance on its hyphen glyph (49eac13)
  • satisfy lint and add hypher to the oracle and fuzz lockfiles (d41188a)
  • keep breaking past a hyphenation point whose hyphen does not fit (58cc0c5)
  • keep every budget tolerance at three times its measured spread (c54933f)
  • print GiB and singular worker labels in the benchmark report (1ab9eff)
  • validate the S6 corpus with the corpus fonts and test the TS API (fc46a5d)
  • keep the worker engine when a second init arrives (53c565b)
  • address the CodeQL findings in the framework check scripts (99aaa75)
  • keep the platform requires visible to Next.js output tracing (ebc3543)
  • create the native loader's require on first use (fcf0f1c)
  • read theme files through one handle with a bounded read (63c8f87)
  • let the large table scenarios finish for every library (e3c5e3d)
  • form flex and grid bands from layout order (4c9acf0)
  • measure text boxes at their final width and truncate trailing page space (4c45330)
  • layout: measure page-level absolute insets from the paper edges (e7f23b7)
  • layout: place positioned boxes when a flex or grid container splits (7a1323c)
  • spike: read the native addon once when measuring its size (c052550)
  • write spike font downloads atomically (fff7a66)
  • ci: route only the @RentnerKev scope to the local registry (83de1ad)
  • align license, native loader and CI checks (9e27b7b)

⚡ Performance

  • shrink layout boxes from 1,376 to 296 bytes (3604501)
  • reserve the box arena and drop styles after the tree is built (c51322c)
  • reserve shaped-text vectors per run (c8561c8)
  • admit shaped runs on their second occurrence (c2525e8)

♻️ Refactoring

  • text: hyphenate with own Knuth–Liang tries instead of hypher (e6aeb14)
  • assets: read image headers with own readers instead of imagesize (8c357b1)
  • complete the native SVG converter (ff81166)
  • borrow image paths for writer error locations (5cf175f)
  • share engine option preparation and input evaluation (b806654)

📦 Dependencies

  • Bump the routine-updates group across 1 directory with 2 updates (34dff9b)
  • Bump imagesize from 0.14.0 to 0.15.0 in /core (#55) (dd1f068)
  • Bump @types/node in /benchmarks in the routine-updates group (#12) (9bd07f4)

📦 Build

  • add a profiling profile with symbols and line tables (a4ce01a)
  • drop the name section from the release WebAssembly module (94c30da)
  • use fat LTO and one codegen unit for release builds (269f1cd)

🤖 CI

  • re-baseline the performance budgets on the finished engine (21d8039)
  • enforce the performance budgets in two tiers (d61af3b)
  • run S11 and S12 in separate report jobs (8c29d5d)
  • validate the corpus as PDF/UA-1 with veraPDF (8111280)
  • test the React path on React 19.0, latest and canary (c8ee0d9)
  • run the rendering suites on Linux and Windows only (32a135a)
  • skip the setup-bun cache on the Windows ARM consumer job (207d5cc)
  • compare rendered bytes even when a rendering suite fails (abbad21)
  • run the rendering suites on Linux, Windows and macOS (cd5749e)
  • benchmarks: build RentnerPDF before running its adapter (6be8283)
  • Bump the routine-updates group with 2 updates (#1) (af9aaf3)

📝 Docs

  • record the Phase 7 decisions and mark experimental parts (c9c238c)
  • the subsetter name table overflow in the security review (51b52ff)
  • S11's time limit and its absence from the final hosted run (f51638a)
  • the final benchmark report (eea4591)
  • order the S12 memory table by size (91cc240)
  • performance summary in the README, S13 and text-heavy findings (cd0f448)
  • record the profiling pass, the budget tiers and the Phase 4 exit (948d0fb)
  • describe hayro-write's Crypt filter handling precisely (52677ed)
  • record the follow-ups of the Phase 7 security review (3a3013e)
  • record the units-per-em panic (7257161)
  • record the second font panic the fuzzer found (6dfe73b)
  • record the first fuzz campaign and the letterhead parser panic (4d16615)
  • note the style rule count in the SVG limits (a54ee5c)
  • describe the API as a release candidate and name its exported types (702e88d)
  • name only Babel for the dispose symbol fallback (789c76d)
  • add the Phase 7 API review and the IR v1 proposal (cc99771)
  • fix stale platform statements and the list advice (53bf9c5)
  • complete the usage guide, README and recipes for the release candidate (99b33df)
  • add migration guides for pdfmake and PDFKit (63bc1d0)
  • keep the line-break dictionaries on by default (69e79fe)
  • mark Phase 6 as complete (dc0b8fb)
  • record the Phase 7 security review (ec1c0db)
  • add the line-breaking corpus document, notices and Phase 6b docs (2adbee3)
  • mark Phase 5 as complete (0bd7660)
  • describe S8's native path after the engine thread pool landed (b86c96a)
  • describe the native S8 path independently of the thread pool (1a62e9b)
  • update the Disposable follow-up after the worker engine landed (f2fb52c)
  • give each moved-on browser preview item its own reason (970fd55)
  • document the browser preview helpers (2240142)
  • add the Linux addon sizes from the Platforms builds (016aa2c)
  • record the Phase 4 binary-size measurements (1c3b8ee)
  • mark Phase 3 as complete (c3632b2)
  • close the gaps from the Phase 3 exit test (fd0a041)
  • document engine threads, renderMany, streams, cancellation and limits (a81adef)
  • name the stacks and the Vite plugin in the README's recipe link (261ccca)
  • add framework recipes and record the D-23 decision (fb4f752)
  • note the cost of a themed engine (2c13563)
  • record the S14 measurements (55aa313)
  • mark Phase 2 as complete (bec64c8)
  • document the React integration (aaf8b37)
  • add the S4 and S12 measurements (47e311f)
  • list the table corpus document in the testing plan (26faf24)
  • mark Phase 1 as complete (6ae1f7f)
  • document graphics, navigation, the asset cache and letterheads (6c9fd7a)
  • record images, the WASM backend and the WASI check (8b0f35b)
  • planning: pass the phase 0 decision gate (bc6b695)
  • planning: record Spike E React integration results (2a067cd)
  • add spike F report for D-08 and D-22 (8b4e9a6)
  • record text stack spike results (743bc3e)
  • planning: add spike C boundary transfer results (dd007a1)
  • add repository banners and clarify zizmor exceptions (36e7e35)

🎨 Style

  • apply automatic formatting (669c243)
  • apply automatic formatting (c3a551b)
  • apply automatic formatting (9b61e74)
  • apply automatic formatting (1fefbcb)
  • format the layout changes (36af094)
  • apply automatic formatting (52116bc)
  • format the snippet test (de1b896)
  • apply automatic formatting (da78224)
  • apply automatic formatting (2f7fbb3)

✅ Tests

  • fuzz SVG, image, letterhead, font, theme, channel and fields (8a73c00)
  • pass no document language explicitly in the TypeScript warning test (1f26030)
  • cover hyphenation, justification and total-fit breaking (ad927ac)
  • cover tagging in TypeScript and document tagged PDF (30215fe)
  • validate PDF/A-3b and ZUGFeRD output with veraPDF and Mustang (8b6412d)
  • cover scripts, fallback, variable fonts and dir; document Phase 6a (c9e784e)
  • add the S6 typography corpus with a text round trip (58b48b6)
  • leave the S9 concurrency check to its own fix (69002d9)
  • remove timing races from the engine concurrency checks (f76d26b)
  • make the React timeout cancellation test independent of machine speed (0871425)
  • check that renders overlap instead of timing them in the S9 check (1d3ed6c)
  • allow expect in the run cache unit tests like the other colocated tests (a7a932f)
  • print page x of y in the S2 invoice of every library (e67104d)
  • list the corpus invoice items in a table (3fdff57)
  • check the framework integration with a TanStack Start fixture (8554c9b)
  • keep the table type and JSX tests lint-clean (d233e83)
  • add graphics and navigation documents to the output corpus (11f8756)
  • add images to the output corpus (f4426e9)
  • add the Phase 1 output corpus with snapshot, visual and determinism suites (5a6eb5d)

🧹 Chores

  • reconcile SVG converter with main (a3dd165)
  • sync security budgets with main (1e7f327)
  • ci: sync Dependabot Cargo lockfiles (3b4b469)
  • reconcile security budgets with main (07d3d01)
  • merge main after the dependency refactor (f72c327)
  • merge main into feat/api-decisions (7eb68e5)
  • tighten binary size budgets (90295bd)
  • sync imagesize 0.15 into the oracle and fuzz lockfiles (1d54c55)
  • prepare for oxlint 1.96 and pin fearless_simd to vello_cpu's version (0673082)
  • lock the SVG check's dependencies in the text oracle (9fc2ade)
  • merge origin/main into feat/security-hardening (c7ceffb)
  • merge origin/main into docs/release-candidate (03b16e2)
  • merge origin/main into feat/api-review (dd59611)
  • drop the macOS targets and all Apple runners (13274ae)
  • benchmarks: add the phase 0 benchmark harness (bc488c8)
  • merge main into feat/spike-boundary-transfer (a0ef719)
  • merge main into feat/spike-react-integration (9ed8a76)
  • bootstrap repository foundation (4e30e3a)

Other

  • pause before the weekly usage limit (own bidi, hyphenation and image headers) (9c2d0c9)
  • pause before the weekly usage limit (security budgets) (baf7615)
  • pause before the weekly usage limit (own SVG converter) (1e54052)