Repository navigation
v0.9.1
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
dotpackage:Source,SourceWithOptions,NewRenderer,Options. Emits DOT source describing the same graph as thegraphvizpackage (same nodes, edges, attributes, and traversal order) while depending only onvisualize— nogoccy/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.dotgolden.
Fixed
graphvizpackage: the query-text edge (--show-query/--show-query-stats) no longer renders a straynode0->querytext 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 dotstill renders through the Graphviz runtime for byte-stable output.