d2/ci/release/changelogs/next.md

2.7 KiB

Features 💸

  • Formatting of d2 scripts is supported on the CLI with the fmt subcommand. #292
  • Latex is now supported. See docs for more. #229
  • direction keyword is now supported to specify up, down, right, left layouts. See docs for more. #251
  • Arrowhead labels are now supported. #182
  • stroke-dash on shapes is now supported. #188
  • font-color is now supported on shapes and connections. #215
  • font-size is now supported on shapes and connections. #250
  • Querying shapes and connections by ID is now supported in renders. #218
  • install.sh now accepts -d as an alias for --dry-run. #266
  • -b/--bundle flag to d2 now works and bundles all image assets directly as base64 data urls. #278

Improvements 🧹

  • Local images can now be included, e.g. icon: ./my_img.png. #146
  • ELK layout engine now defaults to top-down to be consistent with dagre. #251
  • install.sh prints the dry run message more visibly. #266
  • d2 now lives in the root folder of the repository instead of as a subcommand. So you can run go install oss.terrastruct.com/d2@latest to install from source now. #290
  • BROWSER=0 now works to disable opening a browser on --watch. #311

Bugfixes ⛑️

  • 3D style was missing border and other styles for its top and right faces. #187
  • System dark mode was incorrectly applying to markdown in renders. #159
  • Fixes markdown newlines created with a trailing double space or backslash. #214
  • Fixes images not loading in PNG exports. #224
  • Avoid logging benign file watching errors. #293
  • $BROWSER now works to open a custom browser correctly. For example, to open Firefox on macOS: BROWSER='open -aFirefox' #311