From cd9b0272d5e8d84578ff5b8f4265b24d2b0e5586 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Sun, 12 Feb 2023 17:03:56 -0800 Subject: [PATCH 1/2] save --- ci/release/changelogs/next.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md index 537b89ad1..b7147c630 100644 --- a/ci/release/changelogs/next.md +++ b/ci/release/changelogs/next.md @@ -1,21 +1,17 @@ +Diagrams are now much more legible. + +Here's what a D2 diagram looks like in 0.2 vs 0.1: + #### Features ๐Ÿš€ - `double-border` keyword implemented. [#565](https://github.com/terrastruct/d2/pull/565) - The [Dockerfile](./docs/INSTALL.md#docker) now supports rendering PNGs [#594](https://github.com/terrastruct/d2/issues/594) - - There was a minor breaking change as part of this where the default working directory of the Dockerfile is now `/home/debian/src` instead of `/root/src` to allow UID remapping with [`fixuid`](https://github.com/boxboat/fixuid). - - `d2 fmt` accepts multiple files to be formatted [#718](https://github.com/terrastruct/d2/issues/718) - - `font-size` works for `sql_table` and `class` shapes [#769](https://github.com/terrastruct/d2/issues/769) - - You can now use the reserved keywords `layers`/`scenarios`/`steps` to define diagrams with multiple levels of abstractions. [#714](https://github.com/terrastruct/d2/pull/714) Docs to come soon - - [#416](https://github.com/terrastruct/d2/issues/416) was also fixed so you can no - longer use keywords intended for use under `style` outside and vice versa. e.g. - `obj.style.shape` and `obj.double-border` are now illegal. The correct uses are - `obj.shape` and `obj.style.double-border`. - Many other minor compiler bugs were fixed. #### Improvements ๐Ÿงน @@ -43,3 +39,7 @@ - Tooltips with ampersand would result in invalid SVGs. [#798](https://github.com/terrastruct/d2/pull/798) - Fixes class height when there are no rows. [#756](https://github.com/terrastruct/d2/pull/756) - Border radius was not firefox-compatible. [#799](https://github.com/terrastruct/d2/pull/799) + +#### Breaking changes + +- You can no longer use keywords intended for use under `style` outside and vice versa. e.g. `obj.style.shape` and `obj.double-border` are now illegal. The correct usages have always been `obj.shape` and `obj.style.double-border`; it just wasn't enforced until now. From 5c501f4a0bd96ce98a16d40440ae62ed04c25419 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Mon, 13 Feb 2023 00:51:15 -0800 Subject: [PATCH 2/2] changelog --- ci/release/changelogs/next.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md index b7147c630..2ca488754 100644 --- a/ci/release/changelogs/next.md +++ b/ci/release/changelogs/next.md @@ -1,7 +1,9 @@ -Diagrams are now much more legible. - Here's what a D2 diagram looks like in 0.2 vs 0.1: +Much more legible right? This upgrade trims a lot of the excess whitespace present before and makes diagrams more compact. We've also combed through each shape to improve their label positions, paddings, and aspect ratios at different sizes. + +There's also been a major compiler rewrite. It's fixed many minor compiler bugs, but most importantly, it implements multi-board diagrams. Stay tuned for more as we write docs and make this accessible in the next release! + #### Features ๐Ÿš€ - `double-border` keyword implemented. [#565](https://github.com/terrastruct/d2/pull/565) @@ -9,17 +11,14 @@ Here's what a D2 diagram looks like in 0.2 vs 0.1: - There was a minor breaking change as part of this where the default working directory of the Dockerfile is now `/home/debian/src` instead of `/root/src` to allow UID remapping with [`fixuid`](https://github.com/boxboat/fixuid). - `d2 fmt` accepts multiple files to be formatted [#718](https://github.com/terrastruct/d2/issues/718) - `font-size` works for `sql_table` and `class` shapes [#769](https://github.com/terrastruct/d2/issues/769) -- You can now use the reserved keywords `layers`/`scenarios`/`steps` to define diagrams - with multiple levels of abstractions. [#714](https://github.com/terrastruct/d2/pull/714) - Docs to come soon - - Many other minor compiler bugs were fixed. +- You can now use the reserved keywords `layers`/`scenarios`/`steps` to define diagrams with multiple levels of abstractions. Coming soon. [#714](https://github.com/terrastruct/d2/pull/714) #### Improvements ๐Ÿงน -- Code snippets use bold and italic font styles as determined by highlighter [#710](https://github.com/terrastruct/d2/issues/710), [#741](https://github.com/terrastruct/d2/issues/741) - Reduces default padding of shapes. [#702](https://github.com/terrastruct/d2/pull/702) - Ensures labels fit inside shapes with shape-specific inner bounding boxes. [#702](https://github.com/terrastruct/d2/pull/702) - dagre container labels changed positions to outside the shape. Many previously obscured container labels are now legible. [#788](https://github.com/terrastruct/d2/pull/788) +- Code snippets use bold and italic font styles as determined by highlighter [#710](https://github.com/terrastruct/d2/issues/710), [#741](https://github.com/terrastruct/d2/issues/741) - Improves package shape dimensions with short height. [#702](https://github.com/terrastruct/d2/pull/702) - Sequence diagrams are rendered more compacted, both vertically and horizontally. [#796](https://github.com/terrastruct/d2/pull/796) - Keeps person shape from becoming too distorted. [#702](https://github.com/terrastruct/d2/pull/702)