Repository navigation
Releases
v0.10.0-ls11
CI
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:
- 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.
- 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-durationto animate styles, gradients, text decorations, grid edits, and sketch shading in SVG or GIF. It defaults to zero.animate-intervalsets the minimum time per board. Timing · Grid examples
- 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
Warning
Animated transitions are in alpha. Send feedback or suggestions.
- Language server. Run
d2 lspfor 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 withcode --install-extension d2lang.d2lang. VS Code guide · Other editors - MCP server. Run
d2 mcpto let an AI client look up D2 syntax, check diagrams, and render PNG, SVG, or text. Starting with v0.10.0, stable releases publishio.github.d2lang/d2to the official MCP Registry after the PyPI package ships. Set up Codex or Claude Code · Registry listing manifest - ELK. Set
elk-algorithmin 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
scaleandforce-appendixinvars.d2-config, anddagre-nodesepanddagre-edgesepinvars.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: Terminalor--dark-theme dark-mauve. Themes - Syntax. Use unquoted labels like
cost $5and#oncall, colors like#abc, and names likeR&D. Variables can use keyword names, and nested shapes can be namedlayers,scenarios, orsteps. Punctuation · Hash-prefixed labels and keyword names - Formatter.
d2 fmt README.mdformats D2 fences in Markdown. Used2 fmt --check --diff README.mdto show a diff in CI. Formatter options - Installation. Run the CLI with
uvx d2lang, or install it in CI withd2lang/setup-d2@v1. Windows x64 now has a-user.msiinstaller 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.debor.rpmand 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-rowsalone and column heights withgrid-columnsalone. Grid layouts - Exports. Repeated renders reuse bundled f...
v0.9.0-ls10
CI
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, orvars.d2-config.layout-engine: tala. No separate plugin installation or license key is required. - tala: configure layout attempts with
--tala-seeds,D2_TALA_SEEDS, orvars.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
foreignObjectcontent
Bugfixes ⛑️
- install: reject the obsolete
--talainstaller 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_TIMEOUTduring 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
CI
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, orvars.d2-config.layout-engine: tala. No separate plugin installation or license key is required. - tala: configure layout attempts with
--tala-seeds,D2_TALA_SEEDS, orvars.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
foreignObjectcontent
Bugfixes ⛑️
- install: reject the obsolete
--talainstaller 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_TIMEOUTduring 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
CI
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, orvars.d2-config.layout-engine: tala. No separate plugin installation or license key is required. - tala: configure layout attempts with
--tala-seeds,D2_TALA_SEEDS, orvars.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
foreignObjectcontent
Bugfixes ⛑️
- install: reject the obsolete
--talainstaller 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_TIMEOUTduring 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
CI
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, orvars.d2-config.layout-engine: tala. No separate plugin installation or license key is required. - tala: configure layout attempts with
--tala-seeds,D2_TALA_SEEDS, orvars.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
foreignObjectcontent
Bugfixes ⛑️
- install: reject the obsolete
--talainstaller 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_TIMEOUTduring 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
CI
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, orvars.d2-config.layout-engine: tala. No separate plugin installation or license key is required. - tala: configure layout attempts with
--tala-seeds,D2_TALA_SEEDS, orvars.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
foreignObjectcontent
Bugfixes ⛑️
- install: reject the obsolete
--talainstaller 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_TIMEOUTduring 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
CI
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, orvars.d2-config.layout-engine: tala. No separate plugin installation or license key is required. - tala: configure layout attempts with
--tala-seeds,D2_TALA_SEEDS, orvars.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
foreignObjectcontent
Bugfixes ⛑️
- install: reject the obsolete
--talainstaller 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_TIMEOUTduring 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
CI
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, orvars.d2-config.layout-engine: tala. No separate plugin installation or license key is required. - tala: configure layout attempts with
--tala-seeds,D2_TALA_SEEDS, orvars.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
foreignObjectcontent
Bugfixes ⛑️
- install: reject the obsolete
--talainstaller 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_TIMEOUTduring 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
CI
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, orvars.d2-config.layout-engine: tala. No separate plugin installation or license key is required. - tala: configure layout attempts with
--tala-seeds,D2_TALA_SEEDS, orvars.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
foreignObjectcontent
Bugfixes ⛑️
- install: reject the obsolete
--talainstaller 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_TIMEOUTduring 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
CI
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, orvars.d2-config.layout-engine: tala. No separate plugin installation or license key is required. - tala: configure layout attempts with
--tala-seeds,D2_TALA_SEEDS, orvars.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
foreignObjectcontent
Bugfixes ⛑️
- install: reject the obsolete
--talainstaller 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_TIMEOUTduring 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.