Skip to content

v0.10.1

Choose a tag to compare

@apstndb apstndb released this 08 Jul 07:15
· 2 commits to main since this release
76d9c87

v0.10.1

New D2 backend and a backend-neutral graph IR. Additive only: all existing rendered output (Mermaid, DOT, SVG goldens, tooltips) is byte-identical to v0.10.0.

Added

  • d2 package (#60): Source, SourceWithOptions, NewRenderer emit D2 source text — markdown labels (bold title, italic stats), native tooltip attributes carrying the canonical plan YAML, style.stroke-dash for remote-call edges, and an optional query-text node. Render with the d2 toolchain, e.g. spannerplanviz --type d2 ... > plan.d2 && d2 plan.d2 plan.svg. Output is validated against d2 v0.7.x in tests when the binary is available.
  • CLI: --type d2 (#60).
  • mermaid: optional query-text node via Options.ShowQuery / ShowQueryStats (#60) — previously these flags were honored only by the Graphviz path; default remains off, so existing output is unchanged.
  • visualize.BuildGraph (#59): resolves a plan into the internal backend-neutral graph model consumed by the dot/mermaid/d2 serializers (structure, labels, tooltips, edge styles, optional query text). Serializers now own only traversal order, markup, and escaping.

Internal

  • internal/graphmodel (#59): graph-scope IR (the analog of the v0.9.2 label IR); the per-node label IR moved there. Pure refactor — every golden byte-identical.