Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 21:37
0145517

Added

  • Logging through SIRENE_LOG or RUST_LOG, with module filters, severity labels, and -vv
    for trace output. Logs go to stderr and keep rendered stdout unchanged.
  • A shared, cloneable sirene_core::Error that retains typed causes and reports the full
    causal chain.
  • Phase timings for reading, layout stages, and drawing, logged at trace level under
    sirene_core::profile (e.g. SIRENE_LOG=off,sirene_core::profile=trace). The stress bench
    prints them per shape with --phases.

Changed

  • Library graph construction and generic ASCII/scene rendering now return results, so invalid
    graph references can be reported to callers. PNG, editor, and release-tool errors retain
    their underlying causes.
  • Production crates reject explicit panic, unwrap, expect, and unreachable calls through
    Clippy; tests can still use them.
  • Faster layout and drawing of large diagrams: edge track assignment orders a gap's routes in
    linear time per relation, sequence lifelines no longer scan every activation per row, ASCII
    canvas cells take half the memory, and long lines of quoted items, xychart categories, or
    ;-joined sequence statements are read in linear time. Output is unchanged.
  • Block, C4, Wardley, journey, git, and styled flowchart drawings look up ids, classes,
    sections, and lanes by index instead of scanning per item; one-line block rows are read in
    linear time; sankey cycle checks skip links that repeat a kept one. Output is unchanged.
  • The editor paints only what lies in the drawing area, and outlines, prunes, zooms to, and
    styles a large selection without looking up each selected node by scanning every node.
  • Diagnostic lines and columns for the editor, check, and Markdown blocks come from one
    diagnostic::LineIndex per source instead of a scan from the start per diagnostic.

Fixed

  • Clicking C4 or architecture nodes no longer indexes an empty flowchart model.
  • Failed terminal writes, directory traversal, confirmation input, and file dialogs are
    reported as errors. Settings persistence failures remain observable in the editor.
  • Parsers reject source beyond their representable byte limit with a diagnostic.
  • Editor: the block added to a Markdown file with none is named for the language of the code
    typed so far (dot, plantuml, mermaid), not the first keystroke's.
  • Desktop app: a writable file in a directory that does not allow a new file is saved in place
    instead of failing.
  • Desktop app: an export to the open document's own file is refused instead of replacing the
    diagram's source with the image.