Skip to content

flowfig 0.6.0

Choose a tag to compare

@iamalvisng iamalvisng released this 04 Oct 01:07
· 191 commits to main since this release

Cleaner timelines and swimlanes, stricter checks, and Windows support for open and gif.

npx flowfig init   # get the new agent instructions

Improvements

  • Timeline. The animation starts at the first item, so the first frame of a GIF and of a README shows the playhead in place. The today line and the playhead run behind the bars and do not cross the bar text. A dependency line goes around the bars it does not connect.
  • Swimlanes. An edge label stays inside one lane, not on the border between two lanes. A decision at the end of a wrapped block keeps its stub label inside its lane and inside the figure.
  • Windows. The tests now run on Windows in CI, including gif with Chrome. flowfig gif stops all browser helper processes on Windows and removes its temp folder. flowfig init prints paths with / on every system.
  • Agent instructions. A pasted Mermaid design keeps its arrow types: a plain arrow stays a plain message, even for a queue. In a process document, the agent draws each path to its end, with one step per path. When a text does not fit its box, the agent widens the box or moves the detail, and does not cut a fact.

Fixes

  • On Windows, flowfig verify accepted a source path outside the repo. It now reports it.

Checks

These checks are new, so a figure that passed check --strict in 0.5.0 can now report a fault:

  • label-overlap also reports an edge label across a lane border.
  • edge-crosses-box also reports a timeline dependency line through a bar.

Requirements

  • Node 18 or later.
  • React 18 or later, only for the <Flow /> player.
  • flowfig gif uses Chrome, Edge, Chromium or Brave from your machine.

Upgrade

Render your figures again with 0.6.0 and run check --strict. Run npx flowfig init again in your repo to get the new agent instructions.

Full Changelog: v0.5.0...v0.6.0