Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

d2 0.6.2 #156634

Merged
merged 2 commits into from
Dec 7, 2023
Merged

d2 0.6.2 #156634

merged 2 commits into from
Dec 7, 2023

Conversation

BrewTestBot
Copy link
Member

Created by brew bump


Created with brew bump-formula-pr.

release notes
D2 0.6.2 makes grid diagrams significantly more powerful. Namely, connections can now be made from grid elements to other grid elements. This enables diagrams like the following.

vector-grid

Source code

Playground link

Credit: this diagram is based off of a manually-drawn one from a blog post

In addition, another significant feature is that using the ELK layout engine will now route SQL diagrams to their exact columns.

Screen Shot 2023-12-06 at 3 26 39 PM

Playground link

Note that all previous playground links will be broken given the encoding change. The encoding before 0.6.2 used the keyword set as compression dictionary, but it no longer does, so this will be the last time playground links break.

Features 🚀

  • ELK routes sql_table edges to the exact columns (ty @landmaj) #1681
  • Unfilled triangle arrowhead is available. #1711
  • Grid containers customize label positions. #1715
  • A single board from a multi-board diagram can be rendered with --target flag. #1725

Improvements 🧹

  • Grid cells can contain nested edges #1629
  • Edges can go across constant nears, sequence diagrams, and grids, including nested ones. #1631
  • All vars defined in a scope are accessible everywhere in that scope, i.e., an object can use a var defined after itself. #1695
  • Encoding API switches to standard zlib encoding so that decoding doesn't depend on source. #1709
  • currentcolor is accepted as a color option to inherit parent colors. (ty @hboomsma) #1700
  • Grid containers can be sized with width/height even when using a layout plugin without that feature. #1731
  • Watch mode watches for changes in both the input file and imported files #1720

Bugfixes ⛑️

  • Fixes a bug calculating grid height with only grid-rows and different horizontal-gap and vertical-gap values. #1646
  • Grid layout accounts for each cell's outside labels and icons #1624
  • Grid layout accounts for labels wider or taller than the shape and fixes default label positions for image grid cells. #1670
  • Fixes a panic with a spread substitution in a glob map #1643
  • Fixes use of null in sql_table constraints (ty @landmaj) #1660
  • Fixes ELK growing shapes with width/height set #1679
  • Adds a compiler error when accidentally using an arrowhead on a shape #1686
  • Correctly reports errors from invalid values set by globs. #1691
  • Fixes panic when spread substitution referenced a nonexistant var. #1695
  • Fixes incorrect appendix icon numbering. #1704
  • Fixes crash when using --watch and navigating to an invalid board path #1693
  • Fixes edge case where nested edge globs were creating excess shapes #1713
  • Fixes a panic with a connection to a grid cell that is a container in TALA #1729
  • Fixes incorrect grid cell positioning when the grid has a shape set and fixes content sometimes escaping circle shapes. #1734
  • Fixes content sometimes escaping cloud shapes. #1736
  • Fixes panic using a glob filter (e.g. &a) outside globs. #1748
  • Fixes glob keys with import values (e.g. user*: @lib/user). #1755

@github-actions github-actions bot added go Go use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` labels Dec 7, 2023
Copy link
Contributor

github-actions bot commented Dec 7, 2023

🤖 An automated task has requested bottles to be published to this PR.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Dec 7, 2023
@BrewTestBot BrewTestBot added this pull request to the merge queue Dec 7, 2023
Merged via the queue into Homebrew:master with commit bba2b55 Dec 7, 2023
12 checks passed
@BrewTestBot BrewTestBot deleted the bump-d2-0.6.2 branch December 7, 2023 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. go Go use is a significant feature of the PR or issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants