Repository navigation
Releases
Releases · ghazalialshafi/nimaid
nimaid 0.6.1
Fixed
- Kanban crashed on 32-bit targets (wasm32, armv7, i386) with
over- or underflowwhen a card had anassigned:name longer than 6 characters:
the avatar-colour hash usedint, which is 32 bits there. It now uses wrappinguint64arithmetic (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
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_typenow also returns
pie,xychart,timeline,quadrant,journey,packet,kanban,radar,treemapandsankey. - Python package (
python/):pip install nimaid— platform wheels for Linux (glibc + musl), macOS and Windows;nimaid-noto-emojifor colour emoji. - WebAssembly build (
wasm/):nimaid.wasm+nimaid.mjsfor Node, Deno, Bun and browsers; npm packagenimaid. - 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.pykeeps 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
backgroundOfis exported.- The
nimaidCLI falls back to the built-in font whenfonts/DejaVuSans.ttfis not next to the binary (release builds). - FAQ:
themeVariablesaccept CSS colour names (since 0.5.0).