Paradoc v0.7.0
Released 2026-10-08
Paradoc 0.7 records who issued a form and which edition an artifact encodes, and lets bundles address registry artifacts by edition and version. It also adds PDF digital-signature helpers and per-overlay fonts to the renderer.
Highlights
- Artifacts carry an optional
issuerandedition(key,label,date,effectiveFrom), andcodeis the form number as the issuer prints it. - Registry coordinates take the form
@org/repo/name[/edition][@version], with helpers to parse and format them. @paradoc/render/pdfcan prepare, embed and read a PDF digital signature.- PDF text overlays can each use their own font, and
pdfFontMetrics()reports whether a font can draw a string and how wide it is. paradoc migratemoves artifacts to schema2026-10-02.
Breaking changes
Schemas and artifacts
- Schema
2026-10-02removesreleaseDate. Record the issuer and edition withissuerandeditioninstead. - A registry bundle item's
slugis only the address@org/repo/name. Edition and version move to the neweditionandversionfields. Edition keys cannot becurrent,latest,editions,tagsordiff. - The hosted
2026-09-24schemas are removed fromschema.paradoc.dev. Runparadoc migrateto move files to2026-10-02.
Core and SDK
- The builders drop
.releaseDate()for.issuer()and.edition()..registry(key, coordinate, include?)takes a full three-segment coordinate and throws aTypeErroron any other value.
Essentials
- Each form's
spechas a top-levelissuerinstead ofmetadata.issuer, andmetadata.sourceUrlis removed.
Upgrading from 0.6
- Run
paradoc migrate <file-or-directory> --dry-run, review the changes, then rerun without--dry-run. The step removesreleaseDateand moves a slug's@versionintoversion. - Correct by hand any registry slug that is not
@org/repo/name[@version], such as@paradoc/essentials/tax/w-9@1.0.0. The migration stops on it. - Replace
.releaseDate()with.issuer()and.edition(), and pass full@org/repo/namecoordinates to.registry(). - Read
issuerfrom an essentials form'sspecinstead ofspec.metadata.issuer.
Other changes
Schemas and types
@paradoc/schemasexportsparseArtifactCoordinate,formatArtifactCoordinate,ArtifactCoordinateSchema, the edition and version selector schemas, and the reserved edition keys.@paradoc/typesexportsArtifactEdition.
Core
sealBundlerefuses a part whose edition differs from the edition its bundle item declares.
Render
preparePdfSignature,signedBytes,embedPdfSignatureandreadPdfSignaturesign a PDF with a container from any signing service.- A text overlay takes its own
font, andpdfFontMetrics(font)returnscanDrawandwidth. - Rendering on a page that an earlier render drew on keeps the earlier fonts and images.
CLI
paradoc showprints the issuer and edition, and shows registry bundle items as full coordinates.paradoc new --codesets the issuer's form number.- The CLI sends all telemetry to
telemetry.paradoc.dev. Public-registry installs send adirectory.installedevent in the same batch, and nothing goes totasks.paradoc.dev.PARADOC_TELEMETRY_URLpoints the CLI at another telemetry origin, such ashttps://telemetry-dev.paradoc.dev.
AI tools
inspect_artifactreturns the artifact's issuer and edition.