Skip to content

Releases

nimaid 0.6.1

Choose a tag to compare

@github-actions github-actions released this 26 Nov 10:39

Fixed

  • Kanban crashed on 32-bit targets (wasm32, armv7, i386) with over- or underflow when a card had an assigned: name longer than 6 characters:
    the avatar-colour hash used int, which is 32 bits there. It now uses wrapping uint64 arithmetic (same colours as before on 64-bit).

Added

  • The wasm test suite renders every shipped example on wasm32 (it previously rendered only tiny diagrams), plus a kanban regression test.
  • Website + playground (site/, deployed to GitHub Pages by .github/workflows/pages.yml): a home page with a gallery of all 18 diagram types, and a live playground
    (editor, pan/zoom preview, 26 examples, SVG/PNG export, shareable links, colour emoji loaded on demand). New logo; README and package READMEs link to it.

nimaid 0.6.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 05:06

First release with the C API, Python wheels, WebAssembly build and automated cross-platform releases, on top of all eighteen diagram types
(the ten chart diagrams added in 0.4.0 – 0.5.1 are covered by every binding).

Added

  • C API (capi/): stable C ABI (nimaid.h), reusable contexts, PNG / GIF / SVG / RGBA output, fonts from files or memory,
    header-only C++ wrapper. DejaVu Sans is embedded, so no font files are needed. nimaid_detect_type now also returns
    pie, xychart, timeline, quadrant, journey, packet, kanban, radar, treemap and sankey.
  • Python package (python/): pip install nimaid — platform wheels for Linux (glibc + musl), macOS and Windows; nimaid-noto-emoji for colour emoji.
  • WebAssembly build (wasm/): nimaid.wasm + nimaid.mjs for Node, Deno, Bun and browsers; npm package nimaid.
  • Standalone CLI binaries for 14 platforms with the font built in (-d:nimaidEmbedFont).
  • Automated releases: one tag builds everything with Zig, tests it on real runners (Linux x86_64/ARM, macOS Intel/ARM, Windows,
    Alpine, old glibc, QEMU ARM/i386), then publishes a GitHub Release, the PyPI wheels and (optionally) the npm package.
  • Library: initTextMetricsData, loadEmojiFontData, unloadEmojiFont, buildMermaidSceneLoaded (fonts from memory / reuse of loaded fonts).
  • tools/bump_version.py keeps every version string in sync.
  • C, Python and wasm test suites render and detect all ten chart types; the C API docs gained Tutorial 9 (charts) and the chart syntax / theme references.

Changed

  • backgroundOf is exported.
  • The nimaid CLI falls back to the built-in font when fonts/DejaVuSans.ttf is not next to the binary (release builds).
  • FAQ: themeVariables accept CSS colour names (since 0.5.0).