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.0 #138091

Merged
merged 2 commits into from
Jul 31, 2023
Merged

d2 0.6.0 #138091

merged 2 commits into from
Jul 31, 2023

Conversation

Porkepix
Copy link
Contributor

Created by brew bump


Created with brew bump-formula-pr.

release notes
D2 v0.6 introduces variable substitutions and globs. These two were the last of the features planned in the initial designs for D2, and v1 is now very close!

The power of variables and globs in a programming language need no introduction, so here's two minimal examples to get started:

Variables:

vars: {
  color: aquamarine
}

x.style.fill: ${color}

Globs:

x
y
z

*.style.fill: aquamarine

Both are live on D2 Playground so give it a try! Looking forward to your issues and iterating

Layout capability also takes a subtle but important step forward: you can now customize the position of labels and icons.

Features 🚀

  • Variables and substitutions are implemented. See docs. #1473
  • Configure timeout value with D2_TIMEOUT env var #1392
  • Scale renders and disable fit to screen with --scale flag #1413
  • null keyword can be used to un-declare. See docs #1446
  • Develop multi-board diagrams in watch mode (links to layers/scenarios/steps work in --watch) #1503
  • Glob patterns have been implemented. See docs. #1479

Improvements 🧹

  • Display version on CLI help invocation #1400
  • Improved readability of connection labels when they overlap another connection #447
  • Error message when shape is given a composite #1415
  • Improved rendering and text measurement for code shapes #1425
  • The autoformatter moves board declarations to the bottom of its scope #1424
  • All font styles in sketch mode use a consistent font-family #1463
  • Tooltip and link icons are positioned on shape border #1466
  • Tooltip and link icons are always rendered over shapes #1467
  • Boards with no objects are considered folders #1504
  • DEBUG environment variable ignored if set incorrectly #1505

Bugfixes ⛑️

  • Fixes edge case in compiler using dots in quotes #1401
  • Fixes grid label font size for TALA #1412
  • Fixes person shape label positioning with multiple or 3d #1478

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

🤖 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 Jul 31, 2023
@BrewTestBot BrewTestBot added this pull request to the merge queue Jul 31, 2023
Merged via the queue into Homebrew:master with commit 94d0a57 Jul 31, 2023
12 checks passed
@github-actions github-actions bot added the outdated PR was locked due to age label Aug 31, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2023
@Porkepix Porkepix deleted the bump-d2-0.6.0 branch February 5, 2024 16:16
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