Skip to content

Releases

v0.10.0-ls11

Choose a tag to compare

@github-actions github-actions released this 27 Nov 15:44

CI

Test report · Build status

LinuxServer changes

Full Changelog: v0.9.0-ls10...v0.10.0-ls11

Upstream changes

Source: https://github.com/d2lang/d2/releases/tag/v0.10.0

AI is ripping. Finally got around to clearing out some long-standing issues, formalize a grammar (though it's still wip), fix a bunch of corner cases, tedious issues, etc. I'm focusing on 2 things:

  1. Performance -- across size of build (mainly for client-side/JS use case), size of output, and speed. All 3 have advanced significantly in this release, somewhat near capabilities of public frontier models. We'll revisit when the Reimann Hypothesis-solving generation of models come out.
  2. Animations. I make a lot of 3b1b-type explainer videos to understand things in my day-to-day work and the quality is tempermental. There's a 3b1b library for their animations but it didn't work well for me and I've removed it from my prompts. I'm more motivated to do well here for my own use case, so I want to make animations in D2 really nice throughout the 0.10 series of releases.

I plan to cut a 1.0 soon finally. There'll be more one-time breaking changes like consolidating casing/hyphenation (e.g. sequence_diagram to sequence-diagram).

AI-generated changelog:

Features 🚀

  • Animated transitions. Set animate-duration to animate styles, gradients, text decorations, grid edits, and sketch shading in SVG or GIF. It defaults to zero. animate-interval sets the minimum time per board. Timing · Grid examples
A shield cache combines 1,200 requests from six edge locations into one origin read.

Cache stampede source

  • TALA step animations. Small edits can preserve node positions and routes across steps and scenarios. Connections draw in, groups move between containers, trailing SQL rows slide in or out, and sequence messages travel to their receivers. Animated steps and source · Go API
A telescope detects a signal. An outbox saves the receipt and reuses it when the publisher retries.

Warning

Animated transitions are in alpha. Send feedback or suggestions.

  • Language server. Run d2 lsp for live diagnostics, completion, and formatting in your editor. Go to definition, find references, and rename shapes across open diagrams and their imports. In VS Code, install the official extension with code --install-extension d2lang.d2lang. VS Code guide · Other editors
  • MCP server. Run d2 mcp to let an AI client look up D2 syntax, check diagrams, and render PNG, SVG, or text. Starting with v0.10.0, stable releases publish io.github.d2lang/d2 to the official MCP Registry after the PyPI package ships. Set up Codex or Claude Code · Registry listing manifest
  • ELK. Set elk-algorithm in the diagram. New options control edge routing, layer placement, tree ordering, and spacing. Compare algorithms · Layered options · Run the radial example in the Playground
  • Configuration. Set scale and force-appendix in vars.d2-config, and dagre-nodesep and dagre-edgesep in vars.d2-config.data. Export options · Dagre spacing
  • Connections. Crossing lines now leave a transparent gap in the back line where there’s room. #3011
  • Themes. Select light and dark themes by name, for example theme-id: Terminal or --dark-theme dark-mauve. Themes
  • Syntax. Use unquoted labels like cost $5 and #oncall, colors like #abc, and names like R&D. Variables can use keyword names, and nested shapes can be named layers, scenarios, or steps. Punctuation · Hash-prefixed labels and keyword names
  • Formatter. d2 fmt README.md formats D2 fences in Markdown. Use d2 fmt --check --diff README.md to show a diff in CI. Formatter options
  • Installation. Run the CLI with uvx d2lang, or install it in CI with d2lang/setup-d2@v1. Windows x64 now has a -user.msi installer for users without administrator rights. uv and uvx · GitHub Actions · Windows
  • Linux packages. Install a specific GitHub release with APT on Debian or Ubuntu (amd64, arm64) or DNF on Fedora or RHEL (x86_64, aarch64). Download the matching .deb or .rpm and pass its local path to the package manager. Debian and Ubuntu · Fedora and RHEL
  • Language reference. Explore the grammar with railroad diagrams, EBNF, and parser conformance cases. Download the docs as Markdown, by page or in one file. Grammar reference · Conformance cases · Page index · Full text

Improvements 🧹

CLI export time on an Apple M4, including startup, layout, and SVG output. Timings use d70ec718.

Workload v0.9.0 v0.10.0 candidate Speedup
3,000 rectangles in a grid 8.29 s 159 ms 52.1×
Ten real-world diagrams, sum of medians 451 ms 307 ms 1.47×

Layout and rendering. Native timings compare each optimization with its preceding implementation. Engine rows total layout time across the test suite. Layout benchmarks

Workload Before After
Dagre 298 ms 22.9 ms
ELK 190 ms 28.1 ms
TALA, one seed, including routing 11.47 s 3.08 s
Choose grid row breaks, 100 cells in 10 rows 27.94 ms 11.38 µs
Compile two SQL tables with a global edge style declared first 936 µs 73 µs
Re-render a 1,000-message sequence after a label edit 24.4 ms 16.3 ms
Write a 30-slide PowerPoint deck 3.3 ms 2.1 ms

SVG output size. Each file uses gzip level 9. The two candidate builds produced identical SVGs for all 16 fixtures with version metadata omitted. SVG changes

Diagram v0.9.0 v0.10.0 candidate Reduction
Links example with forced appendix 274.6 KB 117.8 KB 57.1%
Five multiboard animations 37.9 KB 30.4 KB 19.6%
Ten real-world diagrams 200.8 KB 198.9 KB 1.0%

CLI and Docker sizes. The macOS candidate was built at e53d9644.

Artifact Before After Change
Docker layers, Linux x86-64, before/after deduplication 92.16 MB 54.60 MB −41%
Docker layers, Linux arm64, same change 86.55 MB 52.16 MB −40%
macOS arm64 CLI, v0.9.0 → candidate 40.04 MB 39.28 MB −1.9%
Linux x86-64 CLI, PowerPoint writer change alone 43.47 MB 40.42 MB −7%
  • TALA aligns connections across containers, centers parallel branches, packs hierarchies more tightly, and routes larger diagrams. #3034 · #2986 · #3025
  • Grids balance row widths with grid-rows alone and column heights with grid-columns alone. Grid layouts
  • Exports. Repeated renders reuse bundled f...
Read more

v0.9.0-ls10

Choose a tag to compare

@github-actions github-actions released this 24 Nov 12:43

CI

Test report · Build status

LinuxServer changes

Full Changelog: v0.9.0-ls9...v0.9.0-ls10

Upstream changes

Source: https://github.com/d2lang/d2/releases/tag/v0.9.0

Features 🚀

  • TALA is now open source and bundled with D2, including the JavaScript/WASM package. Select it with d2 --layout=tala, D2_LAYOUT=tala, or vars.d2-config.layout-engine: tala. No separate plugin installation or license key is required.
  • tala: configure layout attempts with --tala-seeds, D2_TALA_SEEDS, or vars.d2-config.data.tala-seeds.
  • exports: render PNG, GIF, PDF, and PPTX with the built-in renderer

Improvements 🧹

  • performance: reduce repeated work in Dagre ranking, text measurement, SVG preparation, and PNG encoding
  • performance: reduce repeated work in selective imports, dynamic grid layout, and PNG connection rendering
  • exports: reduce PNG memory usage and support images above the previous 67-megapixel limit
  • performance: SVG rendering is approximately 10× faster across the E2E corpus. Real-world diagrams compile, lay out, and render approximately 3× faster at the median.
  • renders: SVG exports are approximately 24% smaller across the E2E corpus and 18% smaller across real-world fixtures, with unchanged appearance.
  • renders: render Markdown labels as native SVG instead of HTML foreignObject content

Bugfixes ⛑️

  • install: reject the obsolete --tala installer flag with migration guidance before installing, instead of incorrectly claiming that older D2 releases bundle TALA
  • sequence diagrams: keep synthetic lifeline endpoint IDs stable across architectures
  • exports: honor D2_TIMEOUT during PNG and GIF rendering
  • compiler: keep recursive globs out of class and variable definitions and report class reference cycles instead of overflowing the stack
  • renders: decode gzip, Brotli, and deflate remote images before embedding them

For the latest d2.js changes, see separate changelog.

v0.9.0-ls9

Choose a tag to compare

@github-actions github-actions released this 21 Nov 16:44

CI

Test report · Build status

LinuxServer changes

Full Changelog: v0.9.0-ls8...v0.9.0-ls9

Upstream changes

Source: https://github.com/d2lang/d2/releases/tag/v0.9.0

Features 🚀

  • TALA is now open source and bundled with D2, including the JavaScript/WASM package. Select it with d2 --layout=tala, D2_LAYOUT=tala, or vars.d2-config.layout-engine: tala. No separate plugin installation or license key is required.
  • tala: configure layout attempts with --tala-seeds, D2_TALA_SEEDS, or vars.d2-config.data.tala-seeds.
  • exports: render PNG, GIF, PDF, and PPTX with the built-in renderer

Improvements 🧹

  • performance: reduce repeated work in Dagre ranking, text measurement, SVG preparation, and PNG encoding
  • performance: reduce repeated work in selective imports, dynamic grid layout, and PNG connection rendering
  • exports: reduce PNG memory usage and support images above the previous 67-megapixel limit
  • performance: SVG rendering is approximately 10× faster across the E2E corpus. Real-world diagrams compile, lay out, and render approximately 3× faster at the median.
  • renders: SVG exports are approximately 24% smaller across the E2E corpus and 18% smaller across real-world fixtures, with unchanged appearance.
  • renders: render Markdown labels as native SVG instead of HTML foreignObject content

Bugfixes ⛑️

  • install: reject the obsolete --tala installer flag with migration guidance before installing, instead of incorrectly claiming that older D2 releases bundle TALA
  • sequence diagrams: keep synthetic lifeline endpoint IDs stable across architectures
  • exports: honor D2_TIMEOUT during PNG and GIF rendering
  • compiler: keep recursive globs out of class and variable definitions and report class reference cycles instead of overflowing the stack
  • renders: decode gzip, Brotli, and deflate remote images before embedding them

For the latest d2.js changes, see separate changelog.

v0.9.0-ls8

Choose a tag to compare

@github-actions github-actions released this 14 Nov 16:44

CI

Test report · Build status

LinuxServer changes

Full Changelog: v0.9.0-ls7...v0.9.0-ls8

Upstream changes

Source: https://github.com/d2lang/d2/releases/tag/v0.9.0

Features 🚀

  • TALA is now open source and bundled with D2, including the JavaScript/WASM package. Select it with d2 --layout=tala, D2_LAYOUT=tala, or vars.d2-config.layout-engine: tala. No separate plugin installation or license key is required.
  • tala: configure layout attempts with --tala-seeds, D2_TALA_SEEDS, or vars.d2-config.data.tala-seeds.
  • exports: render PNG, GIF, PDF, and PPTX with the built-in renderer

Improvements 🧹

  • performance: reduce repeated work in Dagre ranking, text measurement, SVG preparation, and PNG encoding
  • performance: reduce repeated work in selective imports, dynamic grid layout, and PNG connection rendering
  • exports: reduce PNG memory usage and support images above the previous 67-megapixel limit
  • performance: SVG rendering is approximately 10× faster across the E2E corpus. Real-world diagrams compile, lay out, and render approximately 3× faster at the median.
  • renders: SVG exports are approximately 24% smaller across the E2E corpus and 18% smaller across real-world fixtures, with unchanged appearance.
  • renders: render Markdown labels as native SVG instead of HTML foreignObject content

Bugfixes ⛑️

  • install: reject the obsolete --tala installer flag with migration guidance before installing, instead of incorrectly claiming that older D2 releases bundle TALA
  • sequence diagrams: keep synthetic lifeline endpoint IDs stable across architectures
  • exports: honor D2_TIMEOUT during PNG and GIF rendering
  • compiler: keep recursive globs out of class and variable definitions and report class reference cycles instead of overflowing the stack
  • renders: decode gzip, Brotli, and deflate remote images before embedding them

For the latest d2.js changes, see separate changelog.

v0.9.0-ls7

Choose a tag to compare

@github-actions github-actions released this 07 Nov 16:43

CI

Test report · Build status

LinuxServer changes

Full Changelog: v0.9.0-ls6...v0.9.0-ls7

Upstream changes

Source: https://github.com/d2lang/d2/releases/tag/v0.9.0

Features 🚀

  • TALA is now open source and bundled with D2, including the JavaScript/WASM package. Select it with d2 --layout=tala, D2_LAYOUT=tala, or vars.d2-config.layout-engine: tala. No separate plugin installation or license key is required.
  • tala: configure layout attempts with --tala-seeds, D2_TALA_SEEDS, or vars.d2-config.data.tala-seeds.
  • exports: render PNG, GIF, PDF, and PPTX with the built-in renderer

Improvements 🧹

  • performance: reduce repeated work in Dagre ranking, text measurement, SVG preparation, and PNG encoding
  • performance: reduce repeated work in selective imports, dynamic grid layout, and PNG connection rendering
  • exports: reduce PNG memory usage and support images above the previous 67-megapixel limit
  • performance: SVG rendering is approximately 10× faster across the E2E corpus. Real-world diagrams compile, lay out, and render approximately 3× faster at the median.
  • renders: SVG exports are approximately 24% smaller across the E2E corpus and 18% smaller across real-world fixtures, with unchanged appearance.
  • renders: render Markdown labels as native SVG instead of HTML foreignObject content

Bugfixes ⛑️

  • install: reject the obsolete --tala installer flag with migration guidance before installing, instead of incorrectly claiming that older D2 releases bundle TALA
  • sequence diagrams: keep synthetic lifeline endpoint IDs stable across architectures
  • exports: honor D2_TIMEOUT during PNG and GIF rendering
  • compiler: keep recursive globs out of class and variable definitions and report class reference cycles instead of overflowing the stack
  • renders: decode gzip, Brotli, and deflate remote images before embedding them

For the latest d2.js changes, see separate changelog.

v0.9.0-ls6

Choose a tag to compare

@github-actions github-actions released this 03 Nov 12:43

CI

Test report · Build status

LinuxServer changes

Full Changelog: v0.9.0-ls5...v0.9.0-ls6

Upstream changes

Source: https://github.com/d2lang/d2/releases/tag/v0.9.0

Features 🚀

  • TALA is now open source and bundled with D2, including the JavaScript/WASM package. Select it with d2 --layout=tala, D2_LAYOUT=tala, or vars.d2-config.layout-engine: tala. No separate plugin installation or license key is required.
  • tala: configure layout attempts with --tala-seeds, D2_TALA_SEEDS, or vars.d2-config.data.tala-seeds.
  • exports: render PNG, GIF, PDF, and PPTX with the built-in renderer

Improvements 🧹

  • performance: reduce repeated work in Dagre ranking, text measurement, SVG preparation, and PNG encoding
  • performance: reduce repeated work in selective imports, dynamic grid layout, and PNG connection rendering
  • exports: reduce PNG memory usage and support images above the previous 67-megapixel limit
  • performance: SVG rendering is approximately 10× faster across the E2E corpus. Real-world diagrams compile, lay out, and render approximately 3× faster at the median.
  • renders: SVG exports are approximately 24% smaller across the E2E corpus and 18% smaller across real-world fixtures, with unchanged appearance.
  • renders: render Markdown labels as native SVG instead of HTML foreignObject content

Bugfixes ⛑️

  • install: reject the obsolete --tala installer flag with migration guidance before installing, instead of incorrectly claiming that older D2 releases bundle TALA
  • sequence diagrams: keep synthetic lifeline endpoint IDs stable across architectures
  • exports: honor D2_TIMEOUT during PNG and GIF rendering
  • compiler: keep recursive globs out of class and variable definitions and report class reference cycles instead of overflowing the stack
  • renders: decode gzip, Brotli, and deflate remote images before embedding them

For the latest d2.js changes, see separate changelog.

v0.9.0-ls5

Choose a tag to compare

@github-actions github-actions released this 30 Oct 17:25

CI

Test report · Build status

LinuxServer changes

Full Changelog: v0.9.0-ls4...v0.9.0-ls5

Upstream changes

Source: https://github.com/d2lang/d2/releases/tag/v0.9.0

Features 🚀

  • TALA is now open source and bundled with D2, including the JavaScript/WASM package. Select it with d2 --layout=tala, D2_LAYOUT=tala, or vars.d2-config.layout-engine: tala. No separate plugin installation or license key is required.
  • tala: configure layout attempts with --tala-seeds, D2_TALA_SEEDS, or vars.d2-config.data.tala-seeds.
  • exports: render PNG, GIF, PDF, and PPTX with the built-in renderer

Improvements 🧹

  • performance: reduce repeated work in Dagre ranking, text measurement, SVG preparation, and PNG encoding
  • performance: reduce repeated work in selective imports, dynamic grid layout, and PNG connection rendering
  • exports: reduce PNG memory usage and support images above the previous 67-megapixel limit
  • performance: SVG rendering is approximately 10× faster across the E2E corpus. Real-world diagrams compile, lay out, and render approximately 3× faster at the median.
  • renders: SVG exports are approximately 24% smaller across the E2E corpus and 18% smaller across real-world fixtures, with unchanged appearance.
  • renders: render Markdown labels as native SVG instead of HTML foreignObject content

Bugfixes ⛑️

  • install: reject the obsolete --tala installer flag with migration guidance before installing, instead of incorrectly claiming that older D2 releases bundle TALA
  • sequence diagrams: keep synthetic lifeline endpoint IDs stable across architectures
  • exports: honor D2_TIMEOUT during PNG and GIF rendering
  • compiler: keep recursive globs out of class and variable definitions and report class reference cycles instead of overflowing the stack
  • renders: decode gzip, Brotli, and deflate remote images before embedding them

For the latest d2.js changes, see separate changelog.

v0.9.0-ls4

Choose a tag to compare

@github-actions github-actions released this 27 Oct 12:47

CI

Test report · Build status

LinuxServer changes

Full Changelog: v0.9.0-ls3...v0.9.0-ls4

Upstream changes

Source: https://github.com/d2lang/d2/releases/tag/v0.9.0

Features 🚀

  • TALA is now open source and bundled with D2, including the JavaScript/WASM package. Select it with d2 --layout=tala, D2_LAYOUT=tala, or vars.d2-config.layout-engine: tala. No separate plugin installation or license key is required.
  • tala: configure layout attempts with --tala-seeds, D2_TALA_SEEDS, or vars.d2-config.data.tala-seeds.
  • exports: render PNG, GIF, PDF, and PPTX with the built-in renderer

Improvements 🧹

  • performance: reduce repeated work in Dagre ranking, text measurement, SVG preparation, and PNG encoding
  • performance: reduce repeated work in selective imports, dynamic grid layout, and PNG connection rendering
  • exports: reduce PNG memory usage and support images above the previous 67-megapixel limit
  • performance: SVG rendering is approximately 10× faster across the E2E corpus. Real-world diagrams compile, lay out, and render approximately 3× faster at the median.
  • renders: SVG exports are approximately 24% smaller across the E2E corpus and 18% smaller across real-world fixtures, with unchanged appearance.
  • renders: render Markdown labels as native SVG instead of HTML foreignObject content

Bugfixes ⛑️

  • install: reject the obsolete --tala installer flag with migration guidance before installing, instead of incorrectly claiming that older D2 releases bundle TALA
  • sequence diagrams: keep synthetic lifeline endpoint IDs stable across architectures
  • exports: honor D2_TIMEOUT during PNG and GIF rendering
  • compiler: keep recursive globs out of class and variable definitions and report class reference cycles instead of overflowing the stack
  • renders: decode gzip, Brotli, and deflate remote images before embedding them

For the latest d2.js changes, see separate changelog.

v0.9.0-ls3

Choose a tag to compare

@github-actions github-actions released this 26 Oct 20:51

CI

Test report · Build status

LinuxServer changes

Full Changelog: v0.9.0-ls2...v0.9.0-ls3

Upstream changes

Source: https://github.com/d2lang/d2/releases/tag/v0.9.0

Features 🚀

  • TALA is now open source and bundled with D2, including the JavaScript/WASM package. Select it with d2 --layout=tala, D2_LAYOUT=tala, or vars.d2-config.layout-engine: tala. No separate plugin installation or license key is required.
  • tala: configure layout attempts with --tala-seeds, D2_TALA_SEEDS, or vars.d2-config.data.tala-seeds.
  • exports: render PNG, GIF, PDF, and PPTX with the built-in renderer

Improvements 🧹

  • performance: reduce repeated work in Dagre ranking, text measurement, SVG preparation, and PNG encoding
  • performance: reduce repeated work in selective imports, dynamic grid layout, and PNG connection rendering
  • exports: reduce PNG memory usage and support images above the previous 67-megapixel limit
  • performance: SVG rendering is approximately 10× faster across the E2E corpus. Real-world diagrams compile, lay out, and render approximately 3× faster at the median.
  • renders: SVG exports are approximately 24% smaller across the E2E corpus and 18% smaller across real-world fixtures, with unchanged appearance.
  • renders: render Markdown labels as native SVG instead of HTML foreignObject content

Bugfixes ⛑️

  • install: reject the obsolete --tala installer flag with migration guidance before installing, instead of incorrectly claiming that older D2 releases bundle TALA
  • sequence diagrams: keep synthetic lifeline endpoint IDs stable across architectures
  • exports: honor D2_TIMEOUT during PNG and GIF rendering
  • compiler: keep recursive globs out of class and variable definitions and report class reference cycles instead of overflowing the stack
  • renders: decode gzip, Brotli, and deflate remote images before embedding them

For the latest d2.js changes, see separate changelog.

v0.9.0-ls2

Choose a tag to compare

@github-actions github-actions released this 26 Oct 12:43

CI

Test report · Build status

LinuxServer changes

Full Changelog: v0.9.0-ls1...v0.9.0-ls2

Upstream changes

Source: https://github.com/d2lang/d2/releases/tag/v0.9.0

Features 🚀

  • TALA is now open source and bundled with D2, including the JavaScript/WASM package. Select it with d2 --layout=tala, D2_LAYOUT=tala, or vars.d2-config.layout-engine: tala. No separate plugin installation or license key is required.
  • tala: configure layout attempts with --tala-seeds, D2_TALA_SEEDS, or vars.d2-config.data.tala-seeds.
  • exports: render PNG, GIF, PDF, and PPTX with the built-in renderer

Improvements 🧹

  • performance: reduce repeated work in Dagre ranking, text measurement, SVG preparation, and PNG encoding
  • performance: reduce repeated work in selective imports, dynamic grid layout, and PNG connection rendering
  • exports: reduce PNG memory usage and support images above the previous 67-megapixel limit
  • performance: SVG rendering is approximately 10× faster across the E2E corpus. Real-world diagrams compile, lay out, and render approximately 3× faster at the median.
  • renders: SVG exports are approximately 24% smaller across the E2E corpus and 18% smaller across real-world fixtures, with unchanged appearance.
  • renders: render Markdown labels as native SVG instead of HTML foreignObject content

Bugfixes ⛑️

  • install: reject the obsolete --tala installer flag with migration guidance before installing, instead of incorrectly claiming that older D2 releases bundle TALA
  • sequence diagrams: keep synthetic lifeline endpoint IDs stable across architectures
  • exports: honor D2_TIMEOUT during PNG and GIF rendering
  • compiler: keep recursive globs out of class and variable definitions and report class reference cycles instead of overflowing the stack
  • renders: decode gzip, Brotli, and deflate remote images before embedding them

For the latest d2.js changes, see separate changelog.