Repository navigation
v0.10.1
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
d2package (#60):Source,SourceWithOptions,NewRendereremit D2 source text — markdown labels (bold title, italic stats), nativetooltipattributes carrying the canonical plan YAML,style.stroke-dashfor 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 viaOptions.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.