v0.11.0 — Svelte adapter + @formepdf/shared
Two brand-new packages join the family, and the existing packages get an internal refactor to support them.
New packages
@formepdf/svelte — Svelte 5 authoring adapter with the full component set as .svelte files. Layout (Document, Page, View, Text), semantic headings (H1–H6), lists, inline formatting, tables, media (Image, Svg, QrCode, Barcode, Canvas, Watermark), all five chart types, form fields, and PageBreak / Fixed. Same props as @formepdf/react, so anything you know from JSX just works. Includes a formePreview() SvelteKit route helper for the live preview UI and one-call renderDocument() / renderDocumentWithLayout() wrappers over @formepdf/core.
npm install @formepdf/svelte @formepdf/coreSee the Svelte guide.
@formepdf/shared — framework-neutral serialization core. Extracted from @formepdf/react so both React and Svelte adapters (and future ones) share the same document-model types, Style mapping, CSS shorthand parsing, Font registration store, Canvas recorder, chart kind builders, and semantic-component defaults. Internal-facing but published for adapter authors.
Changed
- @formepdf/react — internal refactor: framework-neutral internals moved to @formepdf/shared and re-exported. Public API is unchanged — all 215 tests pass without modification.
- @formepdf/core — new renderSerializedDoc(doc, options?) and renderSerializedDocWithLayout(doc, options?) exports. Accept a pre-serialized FormeDocument (JSON), used by the Svelte adapter to hand off after its SSR-then-parse pass.
- All other npm packages: version alignment only, no functional changes.
Full changelogs
- @formepdf/svelte
- @formepdf/shared
- @formepdf/react
- @formepdf/core
Svelte adapter contributed by @cmjoseph07 in #21.