Skip to content

v0.10.0

Choose a tag to compare

@apstndb apstndb released this 08 Jul 05:22
· 5 commits to main since this release
c4dba53

v0.10.0

The dot package becomes the single source of truth for graph construction, and CLI --type dot output changes. Minor version bump per this module's policy: rendering output changes are breaking events.

Breaking

  • --type dot now emits pure, unlaid-out DOT source generated by the dot package (no pos/bb/layout attributes), instead of Graphviz's layout-annotated -Tdot output. The graph semantics are identical; pipe through Graphviz yourself for laid-out output (e.g. spannerplanviz --type dot ... | dot -Tsvg). DOT output also no longer loads the embedded Graphviz/WASM runtime, so it is faster and lighter.

Changed

  • The graphviz package (svg/png) now renders by parsing the dot package's output (dot.SourceWithOptions → ParseBytes → layout) instead of constructing a cgraph directly (#56). SVG output is byte-identical (goldens unchanged); the duplicated construction path and its structural parity test are removed, replaced by a quoting/escaping regression test over a special-characters profile.

Notes

  • Library API unchanged; graphviz.DOT remains available for runtime -Tdot rendering via graphviz.NewRenderer if the old behavior is needed programmatically.