Skip to content

v0.0.20

Choose a tag to compare

@buger buger released this 22 Oct 15:29
· 21 commits to main since this release
ded763d
fix(flowchart): wrap method parens in unquoted node labels (#54)

* feat(flowchart): add invalid fixture for method parens in unquoted label; test and previews\n\n- Invalid: method-parens-in-unquoted-label.mmd\n- Test: wrap label with .Error() in quotes (FL-LABEL-PARENS-UNQUOTED)\n- Regenerate previews

* fix(flowchart/validate): ensure parens-in-unquoted labels are reported even when earlier parse errors occur; do not modify fixtures; regenerate previews

* fix(flowchart/validate): avoid false positives on cylinder/parallelogram when sweeping for parens-in-unquoted; regenerate previews

* feat(flowchart): add invalid fixture for method call in unquoted label (initializeModel); previews updated\n\n- Detects and safely wraps all unquoted labels with ()\n- Safe autofix renders via mermaid-cli

* fix(flowchart/validate): scan all [ ... ] labels per line; dedupe parens-in-unquoted diagnostics; skip typed shapes\n\n- Iterate all square-bracket segments on a line (index scan)\n- Deduplicate against parser-mapped errors using line:column ranges\n- Skip parallelogram/trapezoid ([/.../], [\…\]) and cylinder/stadium-in-square cases\n- Keeps fixtures unchanged; previews regenerated in prior commit

* feat(flowchart): edge inline label brackets → encode [ ] to []; add invalid fixture; update diagnostics and autofix; regen previews