Skip to content

v0.13.0

Choose a tag to compare

@Innei Innei released this 14 May 13:26
· 93 commits to main since this release
5b9c506

Summary

Consolidates the two separate LiteXML CLI entry points (litexml-to-html in @haklex/rich-compose and litexml-to-lexical in @haklex/rich-litexml) into a single new package, @haklex/rich-litexml-cli, which exposes a unified litexml binary supporting --format html|json|markdown. Input format (LiteXML vs Lexical JSON) is auto-detected and overridable via --input-format. Markdown output is powered by @haklex/rich-headless $toMarkdown() and covers the full Haklex node set (mentions, footnotes, spoilers, KaTeX, code blocks, tables, …).

Breaking Changes

  • @haklex/rich-compose no longer ships the litexml-to-html binary. Use @haklex/rich-litexml-cli's litexml --format html instead.
    • npx @haklex/rich-compose litexml-to-html input.xmlnpx @haklex/rich-litexml-cli litexml input.xml --format html
  • @haklex/rich-litexml no longer ships the litexml-to-lexical binary. Use @haklex/rich-litexml-cli's litexml --format json instead.
    • npx @haklex/rich-litexml litexml-to-lexical input.xmlnpx @haklex/rich-litexml-cli litexml input.xml --format json

No library API exports were removed; only the CLI binaries shifted. Programmatic consumers of @haklex/rich-compose / @haklex/rich-litexml are unaffected.

Features

  • New package @haklex/rich-litexml-cli (litexml binary, --format html|json|markdown).
  • New Markdown output path driven by @haklex/rich-headless $toMarkdown().
  • Auto-detect input format (LiteXML vs Lexical JSON), with --input-format override.
  • @haklex/rich-compose exposes new subpath exports ./litexml-html-preview-client.js and ./litexml-html-preview-client.css (the React hydration bundle consumed by the new HTML preview CLI).

Bug Fixes

None this release.

Bump rationale

Shared version: 0.12.0 → 0.13.0 (minor)

Package Signal Bump
@haklex/rich-compose src/index.ts exports unchanged; new subpath exports ./litexml-html-preview-client.{js,css} (additive). Removed bin.litexml-to-html — replacement shipped same release. minor
@haklex/rich-litexml src/index.ts exports unchanged; removed bin.litexml-to-lexical — replacement shipped same release. minor
@haklex/rich-litexml-cli New package, initial publish at the shared version. n/a
34 other @haklex/* packages No src/** diff. follow shared bump

max(bumps) = minor → 0.13.0.