2022-11-21 22:01:33 +00:00
|
|
|
#### Features 🚀
|
2022-11-15 00:53:57 +00:00
|
|
|
|
2022-12-01 17:21:16 +00:00
|
|
|
- Formatting of d2 scripts is supported on the CLI with the `fmt` subcommand.
|
2022-12-01 10:48:30 +00:00
|
|
|
[#292](https://github.com/terrastruct/d2/pull/292)
|
2022-11-28 03:56:09 +00:00
|
|
|
- Latex is now supported. See [docs](https://d2lang.com/tour/text) for more.
|
|
|
|
|
[#229](https://github.com/terrastruct/d2/pull/229)
|
2022-11-30 00:02:37 +00:00
|
|
|
- `direction` keyword is now supported to specify `up`, `down`, `right`, `left` layouts. See
|
2022-11-29 05:55:45 +00:00
|
|
|
[docs](https://d2lang.com/tour/layouts) for more.
|
|
|
|
|
[#251](https://github.com/terrastruct/d2/pull/251)
|
2022-11-24 07:20:17 +00:00
|
|
|
- Arrowhead labels are now supported. [#182](https://github.com/terrastruct/d2/pull/182)
|
2022-11-24 09:07:25 +00:00
|
|
|
- `stroke-dash` on shapes is now supported. [#188](https://github.com/terrastruct/d2/issues/188)
|
2022-11-26 00:55:52 +00:00
|
|
|
- `font-color` is now supported on shapes and connections. [#215](https://github.com/terrastruct/d2/pull/215)
|
2022-11-29 23:37:50 +00:00
|
|
|
- `font-size` is now supported on shapes and connections. [#250](https://github.com/terrastruct/d2/pull/250)
|
2022-11-26 03:43:35 +00:00
|
|
|
- Querying shapes and connections by ID is now supported in renders. [#218](https://github.com/terrastruct/d2/pull/218)
|
2022-11-29 22:33:37 +00:00
|
|
|
- [install.sh](./install.sh) now accepts `-d` as an alias for `--dry-run`.
|
|
|
|
|
[#266](https://github.com/terrastruct/d2/pull/266)
|
2022-11-30 22:34:33 +00:00
|
|
|
- `-b/--bundle` flag to `d2` now works and bundles all image assets directly as base64
|
|
|
|
|
data urls. [#278](https://github.com/terrastruct/d2/pull/278)
|
2022-11-15 00:53:57 +00:00
|
|
|
|
2022-12-01 20:59:53 +00:00
|
|
|
#### Improvements 🧹
|
2022-11-15 00:53:57 +00:00
|
|
|
|
2022-11-27 02:17:34 +00:00
|
|
|
- Local images can now be included, e.g. `icon: ./my_img.png`.
|
2022-11-29 16:40:05 +00:00
|
|
|
[#146](https://github.com/terrastruct/d2/issues/146)
|
2022-11-29 05:55:45 +00:00
|
|
|
- ELK layout engine now defaults to top-down to be consistent with dagre.
|
|
|
|
|
[#251](https://github.com/terrastruct/d2/pull/251)
|
2022-11-29 22:33:37 +00:00
|
|
|
- [install.sh](./install.sh) prints the dry run message more visibly.
|
|
|
|
|
[#266](https://github.com/terrastruct/d2/pull/266)
|
2022-12-01 05:14:38 +00:00
|
|
|
- `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.
|
2022-12-01 05:50:55 +00:00
|
|
|
[#290](https://github.com/terrastruct/d2/pull/290)
|
2022-12-01 19:01:37 +00:00
|
|
|
- `BROWSER=0` now works to disable opening a browser on `--watch`.
|
|
|
|
|
[#311](https://github.com/terrastruct/d2/pull/311)
|
2022-11-27 02:17:34 +00:00
|
|
|
|
2022-11-15 00:53:57 +00:00
|
|
|
#### Bugfixes 🔴
|
2022-11-24 07:20:17 +00:00
|
|
|
|
|
|
|
|
- 3D style was missing border and other styles for its top and right faces.
|
|
|
|
|
[#187](https://github.com/terrastruct/d2/pull/187)
|
2022-11-25 19:22:34 +00:00
|
|
|
- System dark mode was incorrectly applying to markdown in renders.
|
|
|
|
|
[#159](https://github.com/terrastruct/d2/issues/159)
|
2022-11-25 23:25:04 +00:00
|
|
|
- Fixes markdown newlines created with a trailing double space or backslash.
|
2022-11-26 00:17:14 +00:00
|
|
|
[#214](https://github.com/terrastruct/d2/pull/214)
|
2022-12-01 11:40:59 +00:00
|
|
|
- Fixes images not loading in PNG exports.
|
2022-11-26 23:31:17 +00:00
|
|
|
[#224](https://github.com/terrastruct/d2/pull/224)
|
2022-12-01 11:40:59 +00:00
|
|
|
- Avoid logging benign file watching errors.
|
|
|
|
|
[#293](https://github.com/terrastruct/d2/pull/293)
|
2022-12-01 19:01:37 +00:00
|
|
|
- `$BROWSER` now works to open a custom browser correctly.
|
|
|
|
|
For example, to open Firefox on macOS: `BROWSER='open -aFirefox'`
|
|
|
|
|
[#311](https://github.com/terrastruct/d2/pull/311)
|