Skip to content

v0.2.1

Choose a tag to compare

@osolmaz osolmaz released this 30 Nov 08:27
· 15 commits to main since this release

Highlights

  • Browser & Node.js packaging (@f-office/core, @f-office/docs):
    • Split "browser" and "node" conditional exports in @f-office/core so browser bundles and Web Workers never import node:fs/promises.
    • Fixed "sideEffects" declarations (["./dist/worker.js"] in @f-office/core, ["./dist/element.js"] in @f-office/docs) and added Content Security Policy (CSP) guidance to both READMEs.
  • Whole-document search, scrollTo, and lazy highlights:
    • Added worker-backed Document.search(query, options) over the compact TextMap in f-office-wasm / @f-office/core, returning lightweight { page, rects, range, snippet } matches without rendering offscreen pages.
    • Added FOfficeDocs.search(), scrollTo(page, rect, options), and lazy per-page setHighlights() / clearHighlights(kind?) in @f-office/docs (and <f-office-docs>).
  • Optional pure-Rust WOFF2 font decoding:
    • Added the optional woff2 feature in f-office-fonts (pure Rust via wuff, no C++ dependency), enabled in f-office-wasm / @f-office/core so Renderer.addFont() transparently decodes .woff2 fonts.
  • DOCX layout & PDF writer improvements:
    • Restored Type 2 Shading Pattern fills for gradients in the streaming PDF writer and preserved image clips on unrewritable CMYK JPEGs and large pre-IDAT PNG headers.
    • Improved RTL reading order, East Asian punctuation kerning, inline table wrap clearing, continuous section adoption after empty page breaks, split-row vertical alignment, and blanks-only line heights before manual breaks.