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.5.0 #133241

Merged
merged 2 commits into from
Jun 9, 2023
Merged

d2 0.5.0 #133241

merged 2 commits into from
Jun 9, 2023

Conversation

chenrui333
Copy link
Member

Created by brew bump


Created with brew bump-formula-pr.

release notes
There are three important features that were in the initial design of D2 that have not been done and hold it back from 1.0: globs, imports, and vars. This release brings imports.

Imports open up a world of possibilities and works beautifully to modularize diagrams. See the new docs to try it out today.

As usual, many improvements and bug fixes accompany this release. D2 0.5 produces more legible diagrams by masking obstructions (e.g. arrow going through a label), has better error messages to guide you, is faster at certain tasks, and addresses many issues brought by community bug reports.

Features 🚀

  • D2 files have the ability to import from other D2 files. See docs. #1371
  • sql_table alternatively takes an array of constraints instead of being limited to a single one. Thanks @satoqz ! #1245

Improvements 🧹

  • Use shape-specific sizing for grid containers #1294
  • Grid diagrams support nested shapes or grid diagrams #1309
  • grid-gap, vertical-gap, and horizontal-gap apply to padding on grid diagrams #1309
  • Watch mode browser uses an error favicon to easily indicate compiler errors. Thanks @sinyo-matu ! #1240
  • Grid layout performance improved when there are many similarly sized shapes #1315
  • Connections and labels are adjusted for shapes with 3d or multiple #1340
  • Constraints in sql_table render even if they have no matching abbreviation #1372
  • Constraints in sql_table sheds their excessive letter-spacing and is padded from the end consistently #1372
  • Duplicate image URLs in icons are only fetched once #1373
  • In watch mode, images are cached by default across compiles. Can be disabled with flag --img-cache=0. #1373
  • Common invalid array separator , usage in class arrays returns a helpful error message #1376
  • Invalid constraint usage is met with an error message, preventing a common mistake of omitting shape: sql_table #1379
  • Connections no longer obscure outside labels #1381
  • Container connections in dagre are more balanced #1384
  • Connections that go through shape labels are now masked translucently #1383

Bugfixes ⛑️

  • Shadow is no longer cut off when --pad is 0. Thank you @LeonardsonCC ! #1326
  • Fixes grid layout overwriting label placements for nested objects #1345
  • Fixes fonts not rendering correctly on certain platforms. Thanks @mikeday for identifying the solution. #1356
  • Fixes folders not rendering in animations (--animate-interval) #1357
  • Fixes panic using reserved keywords as containers #1358
  • When multiple classes are change different attributes of arrowheads, they are
    all applied instead of only the last one #1362
  • Prevent empty block strings #1364
  • Fixes dagre mis-aligning a nested shape's connection #1370
  • Fixes a bug in grids sometimes putting a shape on the next row/column #1380

Breaking changes

  • @xyz is now reserved as a pattern for imports. If you previously had a key that started like that, it must either be renamed or quoted like "@xyz".
  • Likewise with ...@xyz (spread operator import)

@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 Jun 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 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 Jun 9, 2023
@BrewTestBot BrewTestBot added this pull request to the merge queue Jun 9, 2023
Merged via the queue into Homebrew:master with commit 90fda4e Jun 9, 2023
@github-actions github-actions bot added the outdated PR was locked due to age label Jul 10, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 10, 2023
@chenrui333 chenrui333 deleted the bump-d2-0.5.0 branch January 22, 2024 14:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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 outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants