Skip to content

0.1.1

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Sep 14:40
· 1 commit to main since this release

Review-feedback release: addresses the Obsidian plugin review scan. No functional changes — rendered output is byte-identical to 0.1.0 (verified against the golden masters).

Changed

  • No more innerHTML. Rendered SVG is now parsed with DOMParser and appended as a real element; error blocks are built with Obsidian's createEl, so error text travels as textContent and the DOM handles escaping. A test now asserts the built bundle never assigns innerHTML.
  • Obsidian DOM helpers throughout. The zoom/legend control buttons use createDiv/createEl instead of document.createElement.
  • Typed renderer internals. The shape-kwargs type is a real interface instead of Record<string, any>, clearing the scan's no-unsafe-* warnings at their root. Removed dead code (unused constant and import) and an unneeded type assertion.

Notes for reviewers

The remaining scan warnings (node: imports and console output in src/cli.ts / src/io.ts) are isokit's Node CLI shell, which is not part of the plugin bundle — tests/obsidian.ts asserts the built main.js contains no node: requires.