Skip to content

generateDiff

function generateDiff(params): DiffOutput;

Defined in: src/diff.ts:449

Generate an SVG diff diagram comparing two AWS Step Functions ASL definitions.

Added states are highlighted green, modified states yellow, and removed states red. Removed states are included as orphan end-nodes so they remain visible in the diagram.

GenerateDiffParams

Any additional DiagramOptions passed through to generateSvg

DiffOutput

DiffOutput with SVG markup and a per-category state summary

With collapse set, a changed state that ends up inside a collapsed container’s placeholder would otherwise vanish from the diagram along with its diff color. The placeholder is flagged instead: an amber (modified) outline, plus a "<n> changed inside" annotation (unless the container itself already carries a more specific added/removed status, which wins).