Skip to content

v0.9.1

Choose a tag to compare

@apstndb apstndb released this 07 Jul 18:44
· 9 commits to main since this release
56d576d

v0.9.1

New dot package for generating Graphviz DOT source text without a Graphviz runtime, plus a fix for a stray edge label in --show-query output. No breaking changes.

Added

  • dot package: Source, SourceWithOptions, NewRenderer, Options. Emits DOT source describing the same graph as the graphviz package (same nodes, edges, attributes, and traversal order) while depending only on visualize — no goccy/go-graphviz, wazero, or font stack. Intended for embedders that lay out the graph elsewhere, such as a browser-side Graphviz build (used by rendertree-web to shrink its Go WASM binary).
  • Structural parity tests: both outputs are parsed with Graphviz and compared (nodes, edges, semantic attributes), plus a dca_profile.golden.dot golden.

Fixed

  • graphviz package: the query-text edge (--show-query / --show-query-stats) no longer renders a stray node0->query text label. Once regular edges declared the label attribute, cgraph's default "\E" leaked onto the label-less query edge and Graphviz expanded it to the edge name. The query edge now sets an explicit empty label; the SVG golden is regenerated.

Notes

  • Library API remains experimental per README; this release is additive.
  • CLI behavior is unchanged except for the fixed stray label; --type dot still renders through the Graphviz runtime for byte-stable output.